Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for CTSim 6.0.0.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell [email protected] and [email protected]
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
273 $0: have one."
274 fi
275 exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293 { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302 return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381 else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398 else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
482 N
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512 *)
513 ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
536 fi
537 else
538 as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='CTSim'
582 PACKAGE_TARNAME='ctsim'
583 PACKAGE_VERSION='6.0.0'
584 PACKAGE_STRING='CTSim 6.0.0'
585 PACKAGE_BUGREPORT='[email protected]'
586 PACKAGE_URL='http://www.ctsim.org/'
587
588 ac_unique_file="src/ctsim.cpp"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 # include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 # include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
624
625 ac_subst_vars='am__EXEEXT_FALSE
626 am__EXEEXT_TRUE
627 LTLIBOBJS
628 LIBOBJS
629 wx_cppflags
630 my_includes
631 lamdefs
632 lamprograms
633 ctlibs
634 HAVE_WXWINDOWS_FALSE
635 HAVE_WXWINDOWS_TRUE
636 wxlibs
637 wxcflags
638 HAVE_SGP_FALSE
639 HAVE_SGP_TRUE
640 NO_X_FALSE
641 NO_X_TRUE
642 X_BASIC_LIBS
643 X_TOOLKIT_LIBS
644 X_EXTRA_LIBS
645 X_LIBS
646 X_PRE_LIBS
647 X_CFLAGS
648 XMKMF
649 USE_LAM_FALSE
650 USE_LAM_TRUE
651 webenabled
652 USE_HTML_FALSE
653 USE_HTML_TRUE
654 htmldata
655 cgiprograms
656 webdataurl
657 webdatadir
658 cgibinurl
659 cgibindir
660 mpienable
661 lamdir
662 DEBUG_FALSE
663 DEBUG_TRUE
664 CPUEXT_FLAGS
665 SIMD_FLAGS
666 INCLUDED_GETOPT_LONG_FALSE
667 INCLUDED_GETOPT_LONG_TRUE
668 wxconfig
669 EGREP
670 GREP
671 CPP
672 am__fastdepCXX_FALSE
673 am__fastdepCXX_TRUE
674 CXXDEPMODE
675 ac_ct_CXX
676 CXXFLAGS
677 CXX
678 am__fastdepCC_FALSE
679 am__fastdepCC_TRUE
680 CCDEPMODE
681 am__nodep
682 AMDEPBACKSLASH
683 AMDEP_FALSE
684 AMDEP_TRUE
685 am__quote
686 am__include
687 DEPDIR
688 OBJEXT
689 EXEEXT
690 ac_ct_CC
691 CPPFLAGS
692 LDFLAGS
693 CFLAGS
694 CC
695 RANLIB
696 AM_BACKSLASH
697 AM_DEFAULT_VERBOSITY
698 AM_DEFAULT_V
699 AM_V
700 am__untar
701 am__tar
702 AMTAR
703 am__leading_dot
704 SET_MAKE
705 AWK
706 mkdir_p
707 MKDIR_P
708 INSTALL_STRIP_PROGRAM
709 STRIP
710 install_sh
711 MAKEINFO
712 AUTOHEADER
713 AUTOMAKE
714 AUTOCONF
715 ACLOCAL
716 VERSION
717 PACKAGE
718 CYGPATH_W
719 am__isrc
720 INSTALL_DATA
721 INSTALL_SCRIPT
722 INSTALL_PROGRAM
723 MAINT
724 MAINTAINER_MODE_FALSE
725 MAINTAINER_MODE_TRUE
726 target_os
727 target_vendor
728 target_cpu
729 target
730 host_os
731 host_vendor
732 host_cpu
733 host
734 build_os
735 build_vendor
736 build_cpu
737 build
738 target_alias
739 host_alias
740 build_alias
741 LIBS
742 ECHO_T
743 ECHO_N
744 ECHO_C
745 DEFS
746 mandir
747 localedir
748 libdir
749 psdir
750 pdfdir
751 dvidir
752 htmldir
753 infodir
754 docdir
755 oldincludedir
756 includedir
757 runstatedir
758 localstatedir
759 sharedstatedir
760 sysconfdir
761 datadir
762 datarootdir
763 libexecdir
764 sbindir
765 bindir
766 program_transform_name
767 prefix
768 exec_prefix
769 PACKAGE_URL
770 PACKAGE_BUGREPORT
771 PACKAGE_STRING
772 PACKAGE_VERSION
773 PACKAGE_TARNAME
774 PACKAGE_NAME
775 PATH_SEPARATOR
776 SHELL'
777 ac_subst_files=''
778 ac_user_opts='
779 enable_option_checking
780 enable_maintainer_mode
781 enable_silent_rules
782 enable_dependency_tracking
783 enable_debug
784 enable_verbose_warnings
785 enable_static
786 enable_openmp
787 with_lam
788 with_ctn
789 with_mcpu
790 with_cgibin_dir
791 with_cgibin_url
792 with_webdata_dir
793 with_webdata_url
794 with_html_dir
795 with_x
796 enable_dmalloc
797 enable_efence
798 '
799 ac_precious_vars='build_alias
800 host_alias
801 target_alias
802 CC
803 CFLAGS
804 LDFLAGS
805 LIBS
806 CPPFLAGS
807 CXX
808 CXXFLAGS
809 CCC
810 CPP
811 XMKMF'
812
813
814 # Initialize some variables set by options.
815 ac_init_help=
816 ac_init_version=false
817 ac_unrecognized_opts=
818 ac_unrecognized_sep=
819 # The variables have the same names as the options, with
820 # dashes changed to underlines.
821 cache_file=/dev/null
822 exec_prefix=NONE
823 no_create=
824 no_recursion=
825 prefix=NONE
826 program_prefix=NONE
827 program_suffix=NONE
828 program_transform_name=s,x,x,
829 silent=
830 site=
831 srcdir=
832 verbose=
833 x_includes=NONE
834 x_libraries=NONE
835
836 # Installation directory options.
837 # These are left unexpanded so users can "make install exec_prefix=/foo"
838 # and all the variables that are supposed to be based on exec_prefix
839 # by default will actually change.
840 # Use braces instead of parens because sh, perl, etc. also accept them.
841 # (The list follows the same order as the GNU Coding Standards.)
842 bindir='${exec_prefix}/bin'
843 sbindir='${exec_prefix}/sbin'
844 libexecdir='${exec_prefix}/libexec'
845 datarootdir='${prefix}/share'
846 datadir='${datarootdir}'
847 sysconfdir='${prefix}/etc'
848 sharedstatedir='${prefix}/com'
849 localstatedir='${prefix}/var'
850 runstatedir='${localstatedir}/run'
851 includedir='${prefix}/include'
852 oldincludedir='/usr/include'
853 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
854 infodir='${datarootdir}/info'
855 htmldir='${docdir}'
856 dvidir='${docdir}'
857 pdfdir='${docdir}'
858 psdir='${docdir}'
859 libdir='${exec_prefix}/lib'
860 localedir='${datarootdir}/locale'
861 mandir='${datarootdir}/man'
862
863 ac_prev=
864 ac_dashdash=
865 for ac_option
866 do
867 # If the previous option needs an argument, assign it.
868 if test -n "$ac_prev"; then
869 eval $ac_prev=\$ac_option
870 ac_prev=
871 continue
872 fi
873
874 case $ac_option in
875 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
876 *=) ac_optarg= ;;
877 *) ac_optarg=yes ;;
878 esac
879
880 # Accept the important Cygnus configure options, so we can diagnose typos.
881
882 case $ac_dashdash$ac_option in
883 --)
884 ac_dashdash=yes ;;
885
886 -bindir | --bindir | --bindi | --bind | --bin | --bi)
887 ac_prev=bindir ;;
888 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889 bindir=$ac_optarg ;;
890
891 -build | --build | --buil | --bui | --bu)
892 ac_prev=build_alias ;;
893 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894 build_alias=$ac_optarg ;;
895
896 -cache-file | --cache-file | --cache-fil | --cache-fi \
897 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898 ac_prev=cache_file ;;
899 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901 cache_file=$ac_optarg ;;
902
903 --config-cache | -C)
904 cache_file=config.cache ;;
905
906 -datadir | --datadir | --datadi | --datad)
907 ac_prev=datadir ;;
908 -datadir=* | --datadir=* | --datadi=* | --datad=*)
909 datadir=$ac_optarg ;;
910
911 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912 | --dataroo | --dataro | --datar)
913 ac_prev=datarootdir ;;
914 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916 datarootdir=$ac_optarg ;;
917
918 -disable-* | --disable-*)
919 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922 as_fn_error $? "invalid feature name: $ac_useropt"
923 ac_useropt_orig=$ac_useropt
924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925 case $ac_user_opts in
926 *"
927 "enable_$ac_useropt"
928 "*) ;;
929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
930 ac_unrecognized_sep=', ';;
931 esac
932 eval enable_$ac_useropt=no ;;
933
934 -docdir | --docdir | --docdi | --doc | --do)
935 ac_prev=docdir ;;
936 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
937 docdir=$ac_optarg ;;
938
939 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
940 ac_prev=dvidir ;;
941 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
942 dvidir=$ac_optarg ;;
943
944 -enable-* | --enable-*)
945 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948 as_fn_error $? "invalid feature name: $ac_useropt"
949 ac_useropt_orig=$ac_useropt
950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
952 *"
953 "enable_$ac_useropt"
954 "*) ;;
955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
956 ac_unrecognized_sep=', ';;
957 esac
958 eval enable_$ac_useropt=\$ac_optarg ;;
959
960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962 | --exec | --exe | --ex)
963 ac_prev=exec_prefix ;;
964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966 | --exec=* | --exe=* | --ex=*)
967 exec_prefix=$ac_optarg ;;
968
969 -gas | --gas | --ga | --g)
970 # Obsolete; use --with-gas.
971 with_gas=yes ;;
972
973 -help | --help | --hel | --he | -h)
974 ac_init_help=long ;;
975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976 ac_init_help=recursive ;;
977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978 ac_init_help=short ;;
979
980 -host | --host | --hos | --ho)
981 ac_prev=host_alias ;;
982 -host=* | --host=* | --hos=* | --ho=*)
983 host_alias=$ac_optarg ;;
984
985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986 ac_prev=htmldir ;;
987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988 | --ht=*)
989 htmldir=$ac_optarg ;;
990
991 -includedir | --includedir | --includedi | --included | --include \
992 | --includ | --inclu | --incl | --inc)
993 ac_prev=includedir ;;
994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995 | --includ=* | --inclu=* | --incl=* | --inc=*)
996 includedir=$ac_optarg ;;
997
998 -infodir | --infodir | --infodi | --infod | --info | --inf)
999 ac_prev=infodir ;;
1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001 infodir=$ac_optarg ;;
1002
1003 -libdir | --libdir | --libdi | --libd)
1004 ac_prev=libdir ;;
1005 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006 libdir=$ac_optarg ;;
1007
1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009 | --libexe | --libex | --libe)
1010 ac_prev=libexecdir ;;
1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012 | --libexe=* | --libex=* | --libe=*)
1013 libexecdir=$ac_optarg ;;
1014
1015 -localedir | --localedir | --localedi | --localed | --locale)
1016 ac_prev=localedir ;;
1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018 localedir=$ac_optarg ;;
1019
1020 -localstatedir | --localstatedir | --localstatedi | --localstated \
1021 | --localstate | --localstat | --localsta | --localst | --locals)
1022 ac_prev=localstatedir ;;
1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1025 localstatedir=$ac_optarg ;;
1026
1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028 ac_prev=mandir ;;
1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030 mandir=$ac_optarg ;;
1031
1032 -nfp | --nfp | --nf)
1033 # Obsolete; use --without-fp.
1034 with_fp=no ;;
1035
1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037 | --no-cr | --no-c | -n)
1038 no_create=yes ;;
1039
1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042 no_recursion=yes ;;
1043
1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046 | --oldin | --oldi | --old | --ol | --o)
1047 ac_prev=oldincludedir ;;
1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051 oldincludedir=$ac_optarg ;;
1052
1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054 ac_prev=prefix ;;
1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056 prefix=$ac_optarg ;;
1057
1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059 | --program-pre | --program-pr | --program-p)
1060 ac_prev=program_prefix ;;
1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063 program_prefix=$ac_optarg ;;
1064
1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066 | --program-suf | --program-su | --program-s)
1067 ac_prev=program_suffix ;;
1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070 program_suffix=$ac_optarg ;;
1071
1072 -program-transform-name | --program-transform-name \
1073 | --program-transform-nam | --program-transform-na \
1074 | --program-transform-n | --program-transform- \
1075 | --program-transform | --program-transfor \
1076 | --program-transfo | --program-transf \
1077 | --program-trans | --program-tran \
1078 | --progr-tra | --program-tr | --program-t)
1079 ac_prev=program_transform_name ;;
1080 -program-transform-name=* | --program-transform-name=* \
1081 | --program-transform-nam=* | --program-transform-na=* \
1082 | --program-transform-n=* | --program-transform-=* \
1083 | --program-transform=* | --program-transfor=* \
1084 | --program-transfo=* | --program-transf=* \
1085 | --program-trans=* | --program-tran=* \
1086 | --progr-tra=* | --program-tr=* | --program-t=*)
1087 program_transform_name=$ac_optarg ;;
1088
1089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090 ac_prev=pdfdir ;;
1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092 pdfdir=$ac_optarg ;;
1093
1094 -psdir | --psdir | --psdi | --psd | --ps)
1095 ac_prev=psdir ;;
1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097 psdir=$ac_optarg ;;
1098
1099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100 | -silent | --silent | --silen | --sile | --sil)
1101 silent=yes ;;
1102
1103 -runstatedir | --runstatedir | --runstatedi | --runstated \
1104 | --runstate | --runstat | --runsta | --runst | --runs \
1105 | --run | --ru | --r)
1106 ac_prev=runstatedir ;;
1107 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1108 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1109 | --run=* | --ru=* | --r=*)
1110 runstatedir=$ac_optarg ;;
1111
1112 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1113 ac_prev=sbindir ;;
1114 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1115 | --sbi=* | --sb=*)
1116 sbindir=$ac_optarg ;;
1117
1118 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1119 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1120 | --sharedst | --shareds | --shared | --share | --shar \
1121 | --sha | --sh)
1122 ac_prev=sharedstatedir ;;
1123 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1124 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1125 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1126 | --sha=* | --sh=*)
1127 sharedstatedir=$ac_optarg ;;
1128
1129 -site | --site | --sit)
1130 ac_prev=site ;;
1131 -site=* | --site=* | --sit=*)
1132 site=$ac_optarg ;;
1133
1134 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1135 ac_prev=srcdir ;;
1136 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1137 srcdir=$ac_optarg ;;
1138
1139 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1140 | --syscon | --sysco | --sysc | --sys | --sy)
1141 ac_prev=sysconfdir ;;
1142 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1143 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1144 sysconfdir=$ac_optarg ;;
1145
1146 -target | --target | --targe | --targ | --tar | --ta | --t)
1147 ac_prev=target_alias ;;
1148 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1149 target_alias=$ac_optarg ;;
1150
1151 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1152 verbose=yes ;;
1153
1154 -version | --version | --versio | --versi | --vers | -V)
1155 ac_init_version=: ;;
1156
1157 -with-* | --with-*)
1158 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1159 # Reject names that are not valid shell variable names.
1160 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1161 as_fn_error $? "invalid package name: $ac_useropt"
1162 ac_useropt_orig=$ac_useropt
1163 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1164 case $ac_user_opts in
1165 *"
1166 "with_$ac_useropt"
1167 "*) ;;
1168 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1169 ac_unrecognized_sep=', ';;
1170 esac
1171 eval with_$ac_useropt=\$ac_optarg ;;
1172
1173 -without-* | --without-*)
1174 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177 as_fn_error $? "invalid package name: $ac_useropt"
1178 ac_useropt_orig=$ac_useropt
1179 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1181 *"
1182 "with_$ac_useropt"
1183 "*) ;;
1184 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1185 ac_unrecognized_sep=', ';;
1186 esac
1187 eval with_$ac_useropt=no ;;
1188
1189 --x)
1190 # Obsolete; use --with-x.
1191 with_x=yes ;;
1192
1193 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1194 | --x-incl | --x-inc | --x-in | --x-i)
1195 ac_prev=x_includes ;;
1196 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1197 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1198 x_includes=$ac_optarg ;;
1199
1200 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1201 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1202 ac_prev=x_libraries ;;
1203 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1204 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1205 x_libraries=$ac_optarg ;;
1206
1207 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1208 Try \`$0 --help' for more information"
1209 ;;
1210
1211 *=*)
1212 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1213 # Reject names that are not valid shell variable names.
1214 case $ac_envvar in #(
1215 '' | [0-9]* | *[!_$as_cr_alnum]* )
1216 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1217 esac
1218 eval $ac_envvar=\$ac_optarg
1219 export $ac_envvar ;;
1220
1221 *)
1222 # FIXME: should be removed in autoconf 3.0.
1223 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1224 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1225 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1226 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1227 ;;
1228
1229 esac
1230 done
1231
1232 if test -n "$ac_prev"; then
1233 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1234 as_fn_error $? "missing argument to $ac_option"
1235 fi
1236
1237 if test -n "$ac_unrecognized_opts"; then
1238 case $enable_option_checking in
1239 no) ;;
1240 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1241 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1242 esac
1243 fi
1244
1245 # Check all directory arguments for consistency.
1246 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1247 datadir sysconfdir sharedstatedir localstatedir includedir \
1248 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1249 libdir localedir mandir runstatedir
1250 do
1251 eval ac_val=\$$ac_var
1252 # Remove trailing slashes.
1253 case $ac_val in
1254 */ )
1255 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1256 eval $ac_var=\$ac_val;;
1257 esac
1258 # Be sure to have absolute directory names.
1259 case $ac_val in
1260 [\\/$]* | ?:[\\/]* ) continue;;
1261 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1262 esac
1263 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1264 done
1265
1266 # There might be people who depend on the old broken behavior: `$host'
1267 # used to hold the argument of --host etc.
1268 # FIXME: To remove some day.
1269 build=$build_alias
1270 host=$host_alias
1271 target=$target_alias
1272
1273 # FIXME: To remove some day.
1274 if test "x$host_alias" != x; then
1275 if test "x$build_alias" = x; then
1276 cross_compiling=maybe
1277 elif test "x$build_alias" != "x$host_alias"; then
1278 cross_compiling=yes
1279 fi
1280 fi
1281
1282 ac_tool_prefix=
1283 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1284
1285 test "$silent" = yes && exec 6>/dev/null
1286
1287
1288 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1289 ac_ls_di=`ls -di .` &&
1290 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1291 as_fn_error $? "working directory cannot be determined"
1292 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1293 as_fn_error $? "pwd does not report name of working directory"
1294
1295
1296 # Find the source files, if location was not specified.
1297 if test -z "$srcdir"; then
1298 ac_srcdir_defaulted=yes
1299 # Try the directory containing this script, then the parent directory.
1300 ac_confdir=`$as_dirname -- "$as_myself" ||
1301 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1302 X"$as_myself" : 'X\(//\)[^/]' \| \
1303 X"$as_myself" : 'X\(//\)$' \| \
1304 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1305 $as_echo X"$as_myself" |
1306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1307 s//\1/
1308 q
1309 }
1310 /^X\(\/\/\)[^/].*/{
1311 s//\1/
1312 q
1313 }
1314 /^X\(\/\/\)$/{
1315 s//\1/
1316 q
1317 }
1318 /^X\(\/\).*/{
1319 s//\1/
1320 q
1321 }
1322 s/.*/./; q'`
1323 srcdir=$ac_confdir
1324 if test ! -r "$srcdir/$ac_unique_file"; then
1325 srcdir=..
1326 fi
1327 else
1328 ac_srcdir_defaulted=no
1329 fi
1330 if test ! -r "$srcdir/$ac_unique_file"; then
1331 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1332 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1333 fi
1334 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1335 ac_abs_confdir=`(
1336 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1337 pwd)`
1338 # When building in place, set srcdir=.
1339 if test "$ac_abs_confdir" = "$ac_pwd"; then
1340 srcdir=.
1341 fi
1342 # Remove unnecessary trailing slashes from srcdir.
1343 # Double slashes in file names in object file debugging info
1344 # mess up M-x gdb in Emacs.
1345 case $srcdir in
1346 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1347 esac
1348 for ac_var in $ac_precious_vars; do
1349 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1350 eval ac_env_${ac_var}_value=\$${ac_var}
1351 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1352 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1353 done
1354
1355 #
1356 # Report the --help message.
1357 #
1358 if test "$ac_init_help" = "long"; then
1359 # Omit some internal or obsolete options to make the list less imposing.
1360 # This message is too long to be a string in the A/UX 3.1 sh.
1361 cat <<_ACEOF
1362 \`configure' configures CTSim 6.0.0 to adapt to many kinds of systems.
1363
1364 Usage: $0 [OPTION]... [VAR=VALUE]...
1365
1366 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1367 VAR=VALUE. See below for descriptions of some of the useful variables.
1368
1369 Defaults for the options are specified in brackets.
1370
1371 Configuration:
1372 -h, --help display this help and exit
1373 --help=short display options specific to this package
1374 --help=recursive display the short help of all the included packages
1375 -V, --version display version information and exit
1376 -q, --quiet, --silent do not print \`checking ...' messages
1377 --cache-file=FILE cache test results in FILE [disabled]
1378 -C, --config-cache alias for \`--cache-file=config.cache'
1379 -n, --no-create do not create output files
1380 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1381
1382 Installation directories:
1383 --prefix=PREFIX install architecture-independent files in PREFIX
1384 [$ac_default_prefix]
1385 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1386 [PREFIX]
1387
1388 By default, \`make install' will install all the files in
1389 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1390 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1391 for instance \`--prefix=\$HOME'.
1392
1393 For better control, use the options below.
1394
1395 Fine tuning of the installation directories:
1396 --bindir=DIR user executables [EPREFIX/bin]
1397 --sbindir=DIR system admin executables [EPREFIX/sbin]
1398 --libexecdir=DIR program executables [EPREFIX/libexec]
1399 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1400 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1401 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1402 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1403 --libdir=DIR object code libraries [EPREFIX/lib]
1404 --includedir=DIR C header files [PREFIX/include]
1405 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1406 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1407 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1408 --infodir=DIR info documentation [DATAROOTDIR/info]
1409 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1410 --mandir=DIR man documentation [DATAROOTDIR/man]
1411 --docdir=DIR documentation root [DATAROOTDIR/doc/ctsim]
1412 --htmldir=DIR html documentation [DOCDIR]
1413 --dvidir=DIR dvi documentation [DOCDIR]
1414 --pdfdir=DIR pdf documentation [DOCDIR]
1415 --psdir=DIR ps documentation [DOCDIR]
1416 _ACEOF
1417
1418 cat <<\_ACEOF
1419
1420 Program names:
1421 --program-prefix=PREFIX prepend PREFIX to installed program names
1422 --program-suffix=SUFFIX append SUFFIX to installed program names
1423 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1424
1425 X features:
1426 --x-includes=DIR X include files are in DIR
1427 --x-libraries=DIR X library files are in DIR
1428
1429 System types:
1430 --build=BUILD configure for building on BUILD [guessed]
1431 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1432 --target=TARGET configure for building compilers for TARGET [HOST]
1433 _ACEOF
1434 fi
1435
1436 if test -n "$ac_init_help"; then
1437 case $ac_init_help in
1438 short | recursive ) echo "Configuration of CTSim 6.0.0:";;
1439 esac
1440 cat <<\_ACEOF
1441
1442 Optional Features:
1443 --disable-option-checking ignore unrecognized --enable/--with options
1444 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1445 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1446 --enable-maintainer-mode
1447 enable make rules and dependencies not useful (and
1448 sometimes confusing) to the casual installer
1449 --enable-silent-rules less verbose build output (undo: "make V=1")
1450 --disable-silent-rules verbose build output (undo: "make V=0")
1451 --enable-dependency-tracking
1452 do not reject slow dependency extractors
1453 --disable-dependency-tracking
1454 speeds up one-time build
1455 --enable-debug Turn on debugging
1456 --enable-verbose-warnings
1457 Enable verbose compiler warnings.
1458 --enable-static Enable static executables
1459 --disable-openmp Disable use of OpenMP
1460 --enable-dmalloc Use dmalloc memory allocation
1461 --enable-efence
1462
1463 Optional Packages:
1464 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1465 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1466 --with-lam=PATH Set path of LAM MPI
1467 --with-ctn=PATH Set path of CTN DICOM library
1468 --with-mcpu=CPU Set name of CPU for gcc -mcpu
1469 --with-cgibin-dir=PATH Set path of CGI binaries directory
1470 --with-cgibin-url=PATH Set URL path of CGI binaries
1471 --with-webdata-dir=PATH Set path of webdata
1472 --with-webdata-url=PATH Set URL path of webdata
1473 --with-html-dir=PATH Set directory of html files
1474 --with-x use the X Window System
1475
1476 Some influential environment variables:
1477 CC C compiler command
1478 CFLAGS C compiler flags
1479 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1480 nonstandard directory <lib dir>
1481 LIBS libraries to pass to the linker, e.g. -l<library>
1482 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1483 you have headers in a nonstandard directory <include dir>
1484 CXX C++ compiler command
1485 CXXFLAGS C++ compiler flags
1486 CPP C preprocessor
1487 XMKMF Path to xmkmf, Makefile generator for X Window System
1488
1489 Use these variables to override the choices made by `configure' or to help
1490 it to find libraries and programs with nonstandard names/locations.
1491
1492 Report bugs to <[email protected]>.
1493 CTSim home page: <http://www.ctsim.org/>.
1494 _ACEOF
1495 ac_status=$?
1496 fi
1497
1498 if test "$ac_init_help" = "recursive"; then
1499 # If there are subdirs, report their specific --help.
1500 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1501 test -d "$ac_dir" ||
1502 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1503 continue
1504 ac_builddir=.
1505
1506 case "$ac_dir" in
1507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 *)
1509 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1510 # A ".." for each directory in $ac_dir_suffix.
1511 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1512 case $ac_top_builddir_sub in
1513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1515 esac ;;
1516 esac
1517 ac_abs_top_builddir=$ac_pwd
1518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519 # for backward compatibility:
1520 ac_top_builddir=$ac_top_build_prefix
1521
1522 case $srcdir in
1523 .) # We are building in place.
1524 ac_srcdir=.
1525 ac_top_srcdir=$ac_top_builddir_sub
1526 ac_abs_top_srcdir=$ac_pwd ;;
1527 [\\/]* | ?:[\\/]* ) # Absolute name.
1528 ac_srcdir=$srcdir$ac_dir_suffix;
1529 ac_top_srcdir=$srcdir
1530 ac_abs_top_srcdir=$srcdir ;;
1531 *) # Relative name.
1532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533 ac_top_srcdir=$ac_top_build_prefix$srcdir
1534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1535 esac
1536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1537
1538 cd "$ac_dir" || { ac_status=$?; continue; }
1539 # Check for guested configure.
1540 if test -f "$ac_srcdir/configure.gnu"; then
1541 echo &&
1542 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543 elif test -f "$ac_srcdir/configure"; then
1544 echo &&
1545 $SHELL "$ac_srcdir/configure" --help=recursive
1546 else
1547 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1548 fi || ac_status=$?
1549 cd "$ac_pwd" || { ac_status=$?; break; }
1550 done
1551 fi
1552
1553 test -n "$ac_init_help" && exit $ac_status
1554 if $ac_init_version; then
1555 cat <<\_ACEOF
1556 CTSim configure 6.0.0
1557 generated by GNU Autoconf 2.69
1558
1559 Copyright (C) 2012 Free Software Foundation, Inc.
1560 This configure script is free software; the Free Software Foundation
1561 gives unlimited permission to copy, distribute and modify it.
1562 _ACEOF
1563 exit
1564 fi
1565
1566 ## ------------------------ ##
1567 ## Autoconf initialization. ##
1568 ## ------------------------ ##
1569
1570 # ac_fn_c_try_compile LINENO
1571 # --------------------------
1572 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1573 ac_fn_c_try_compile ()
1574 {
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 rm -f conftest.$ac_objext
1577 if { { ac_try="$ac_compile"
1578 case "(($ac_try" in
1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580 *) ac_try_echo=$ac_try;;
1581 esac
1582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583 $as_echo "$ac_try_echo"; } >&5
1584 (eval "$ac_compile") 2>conftest.err
1585 ac_status=$?
1586 if test -s conftest.err; then
1587 grep -v '^ *+' conftest.err >conftest.er1
1588 cat conftest.er1 >&5
1589 mv -f conftest.er1 conftest.err
1590 fi
1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592 test $ac_status = 0; } && {
1593 test -z "$ac_c_werror_flag" ||
1594 test ! -s conftest.err
1595 } && test -s conftest.$ac_objext; then :
1596 ac_retval=0
1597 else
1598 $as_echo "$as_me: failed program was:" >&5
1599 sed 's/^/| /' conftest.$ac_ext >&5
1600
1601 ac_retval=1
1602 fi
1603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604 as_fn_set_status $ac_retval
1605
1606 } # ac_fn_c_try_compile
1607
1608 # ac_fn_cxx_try_compile LINENO
1609 # ----------------------------
1610 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1611 ac_fn_cxx_try_compile ()
1612 {
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 rm -f conftest.$ac_objext
1615 if { { ac_try="$ac_compile"
1616 case "(($ac_try" in
1617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618 *) ac_try_echo=$ac_try;;
1619 esac
1620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621 $as_echo "$ac_try_echo"; } >&5
1622 (eval "$ac_compile") 2>conftest.err
1623 ac_status=$?
1624 if test -s conftest.err; then
1625 grep -v '^ *+' conftest.err >conftest.er1
1626 cat conftest.er1 >&5
1627 mv -f conftest.er1 conftest.err
1628 fi
1629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630 test $ac_status = 0; } && {
1631 test -z "$ac_cxx_werror_flag" ||
1632 test ! -s conftest.err
1633 } && test -s conftest.$ac_objext; then :
1634 ac_retval=0
1635 else
1636 $as_echo "$as_me: failed program was:" >&5
1637 sed 's/^/| /' conftest.$ac_ext >&5
1638
1639 ac_retval=1
1640 fi
1641 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1642 as_fn_set_status $ac_retval
1643
1644 } # ac_fn_cxx_try_compile
1645
1646 # ac_fn_c_try_run LINENO
1647 # ----------------------
1648 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1649 # that executables *can* be run.
1650 ac_fn_c_try_run ()
1651 {
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 if { { ac_try="$ac_link"
1654 case "(($ac_try" in
1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656 *) ac_try_echo=$ac_try;;
1657 esac
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 $as_echo "$ac_try_echo"; } >&5
1660 (eval "$ac_link") 2>&5
1661 ac_status=$?
1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1664 { { case "(($ac_try" in
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1667 esac
1668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669 $as_echo "$ac_try_echo"; } >&5
1670 (eval "$ac_try") 2>&5
1671 ac_status=$?
1672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673 test $ac_status = 0; }; }; then :
1674 ac_retval=0
1675 else
1676 $as_echo "$as_me: program exited with status $ac_status" >&5
1677 $as_echo "$as_me: failed program was:" >&5
1678 sed 's/^/| /' conftest.$ac_ext >&5
1679
1680 ac_retval=$ac_status
1681 fi
1682 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684 as_fn_set_status $ac_retval
1685
1686 } # ac_fn_c_try_run
1687
1688 # ac_fn_c_try_cpp LINENO
1689 # ----------------------
1690 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_c_try_cpp ()
1692 {
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 if { { ac_try="$ac_cpp conftest.$ac_ext"
1695 case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1702 ac_status=$?
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1707 fi
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } > conftest.i && {
1710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1712 }; then :
1713 ac_retval=0
1714 else
1715 $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1717
1718 ac_retval=1
1719 fi
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721 as_fn_set_status $ac_retval
1722
1723 } # ac_fn_c_try_cpp
1724
1725 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1726 # -------------------------------------------------------
1727 # Tests whether HEADER exists and can be compiled using the include files in
1728 # INCLUDES, setting the cache variable VAR accordingly.
1729 ac_fn_c_check_header_compile ()
1730 {
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733 $as_echo_n "checking for $2... " >&6; }
1734 if eval \${$3+:} false; then :
1735 $as_echo_n "(cached) " >&6
1736 else
1737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1738 /* end confdefs.h. */
1739 $4
1740 #include <$2>
1741 _ACEOF
1742 if ac_fn_c_try_compile "$LINENO"; then :
1743 eval "$3=yes"
1744 else
1745 eval "$3=no"
1746 fi
1747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1748 fi
1749 eval ac_res=\$$3
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1751 $as_echo "$ac_res" >&6; }
1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753
1754 } # ac_fn_c_check_header_compile
1755
1756 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1757 # --------------------------------------------
1758 # Tries to find the compile-time value of EXPR in a program that includes
1759 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1760 # computed
1761 ac_fn_c_compute_int ()
1762 {
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 if test "$cross_compiling" = yes; then
1765 # Depending upon the size, compute the lo and hi bounds.
1766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1767 /* end confdefs.h. */
1768 $4
1769 int
1770 main ()
1771 {
1772 static int test_array [1 - 2 * !(($2) >= 0)];
1773 test_array [0] = 0;
1774 return test_array [0];
1775
1776 ;
1777 return 0;
1778 }
1779 _ACEOF
1780 if ac_fn_c_try_compile "$LINENO"; then :
1781 ac_lo=0 ac_mid=0
1782 while :; do
1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784 /* end confdefs.h. */
1785 $4
1786 int
1787 main ()
1788 {
1789 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1790 test_array [0] = 0;
1791 return test_array [0];
1792
1793 ;
1794 return 0;
1795 }
1796 _ACEOF
1797 if ac_fn_c_try_compile "$LINENO"; then :
1798 ac_hi=$ac_mid; break
1799 else
1800 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1801 if test $ac_lo -le $ac_mid; then
1802 ac_lo= ac_hi=
1803 break
1804 fi
1805 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1806 fi
1807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1808 done
1809 else
1810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811 /* end confdefs.h. */
1812 $4
1813 int
1814 main ()
1815 {
1816 static int test_array [1 - 2 * !(($2) < 0)];
1817 test_array [0] = 0;
1818 return test_array [0];
1819
1820 ;
1821 return 0;
1822 }
1823 _ACEOF
1824 if ac_fn_c_try_compile "$LINENO"; then :
1825 ac_hi=-1 ac_mid=-1
1826 while :; do
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h. */
1829 $4
1830 int
1831 main ()
1832 {
1833 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1834 test_array [0] = 0;
1835 return test_array [0];
1836
1837 ;
1838 return 0;
1839 }
1840 _ACEOF
1841 if ac_fn_c_try_compile "$LINENO"; then :
1842 ac_lo=$ac_mid; break
1843 else
1844 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1845 if test $ac_mid -le $ac_hi; then
1846 ac_lo= ac_hi=
1847 break
1848 fi
1849 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1850 fi
1851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1852 done
1853 else
1854 ac_lo= ac_hi=
1855 fi
1856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1857 fi
1858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1859 # Binary search between lo and hi bounds.
1860 while test "x$ac_lo" != "x$ac_hi"; do
1861 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863 /* end confdefs.h. */
1864 $4
1865 int
1866 main ()
1867 {
1868 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1869 test_array [0] = 0;
1870 return test_array [0];
1871
1872 ;
1873 return 0;
1874 }
1875 _ACEOF
1876 if ac_fn_c_try_compile "$LINENO"; then :
1877 ac_hi=$ac_mid
1878 else
1879 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1880 fi
1881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1882 done
1883 case $ac_lo in #((
1884 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1885 '') ac_retval=1 ;;
1886 esac
1887 else
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h. */
1890 $4
1891 static long int longval () { return $2; }
1892 static unsigned long int ulongval () { return $2; }
1893 #include <stdio.h>
1894 #include <stdlib.h>
1895 int
1896 main ()
1897 {
1898
1899 FILE *f = fopen ("conftest.val", "w");
1900 if (! f)
1901 return 1;
1902 if (($2) < 0)
1903 {
1904 long int i = longval ();
1905 if (i != ($2))
1906 return 1;
1907 fprintf (f, "%ld", i);
1908 }
1909 else
1910 {
1911 unsigned long int i = ulongval ();
1912 if (i != ($2))
1913 return 1;
1914 fprintf (f, "%lu", i);
1915 }
1916 /* Do not output a trailing newline, as this causes \r\n confusion
1917 on some platforms. */
1918 return ferror (f) || fclose (f) != 0;
1919
1920 ;
1921 return 0;
1922 }
1923 _ACEOF
1924 if ac_fn_c_try_run "$LINENO"; then :
1925 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1926 else
1927 ac_retval=1
1928 fi
1929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1930 conftest.$ac_objext conftest.beam conftest.$ac_ext
1931 rm -f conftest.val
1932
1933 fi
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935 as_fn_set_status $ac_retval
1936
1937 } # ac_fn_c_compute_int
1938
1939 # ac_fn_c_try_link LINENO
1940 # -----------------------
1941 # Try to link conftest.$ac_ext, and return whether this succeeded.
1942 ac_fn_c_try_link ()
1943 {
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 rm -f conftest.$ac_objext conftest$ac_exeext
1946 if { { ac_try="$ac_link"
1947 case "(($ac_try" in
1948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1949 *) ac_try_echo=$ac_try;;
1950 esac
1951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1952 $as_echo "$ac_try_echo"; } >&5
1953 (eval "$ac_link") 2>conftest.err
1954 ac_status=$?
1955 if test -s conftest.err; then
1956 grep -v '^ *+' conftest.err >conftest.er1
1957 cat conftest.er1 >&5
1958 mv -f conftest.er1 conftest.err
1959 fi
1960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1961 test $ac_status = 0; } && {
1962 test -z "$ac_c_werror_flag" ||
1963 test ! -s conftest.err
1964 } && test -s conftest$ac_exeext && {
1965 test "$cross_compiling" = yes ||
1966 test -x conftest$ac_exeext
1967 }; then :
1968 ac_retval=0
1969 else
1970 $as_echo "$as_me: failed program was:" >&5
1971 sed 's/^/| /' conftest.$ac_ext >&5
1972
1973 ac_retval=1
1974 fi
1975 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1976 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1977 # interfere with the next link command; also delete a directory that is
1978 # left behind by Apple's compiler. We do this before executing the actions.
1979 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1980 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1981 as_fn_set_status $ac_retval
1982
1983 } # ac_fn_c_try_link
1984
1985 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1986 # -------------------------------------------------------
1987 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1988 # the include files in INCLUDES and setting the cache variable VAR
1989 # accordingly.
1990 ac_fn_c_check_header_mongrel ()
1991 {
1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993 if eval \${$3+:} false; then :
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1995 $as_echo_n "checking for $2... " >&6; }
1996 if eval \${$3+:} false; then :
1997 $as_echo_n "(cached) " >&6
1998 fi
1999 eval ac_res=\$$3
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001 $as_echo "$ac_res" >&6; }
2002 else
2003 # Is the header compilable?
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2005 $as_echo_n "checking $2 usability... " >&6; }
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h. */
2008 $4
2009 #include <$2>
2010 _ACEOF
2011 if ac_fn_c_try_compile "$LINENO"; then :
2012 ac_header_compiler=yes
2013 else
2014 ac_header_compiler=no
2015 fi
2016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2018 $as_echo "$ac_header_compiler" >&6; }
2019
2020 # Is the header present?
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2022 $as_echo_n "checking $2 presence... " >&6; }
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2025 #include <$2>
2026 _ACEOF
2027 if ac_fn_c_try_cpp "$LINENO"; then :
2028 ac_header_preproc=yes
2029 else
2030 ac_header_preproc=no
2031 fi
2032 rm -f conftest.err conftest.i conftest.$ac_ext
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2034 $as_echo "$ac_header_preproc" >&6; }
2035
2036 # So? What about this header?
2037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2038 yes:no: )
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2040 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2042 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2043 ;;
2044 no:yes:* )
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2046 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2048 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2050 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2052 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2054 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2055 ( $as_echo "## --------------------------------- ##
2056 ## Report this to [email protected] ##
2057 ## --------------------------------- ##"
2058 ) | sed "s/^/$as_me: WARNING: /" >&2
2059 ;;
2060 esac
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2062 $as_echo_n "checking for $2... " >&6; }
2063 if eval \${$3+:} false; then :
2064 $as_echo_n "(cached) " >&6
2065 else
2066 eval "$3=\$ac_header_compiler"
2067 fi
2068 eval ac_res=\$$3
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2070 $as_echo "$ac_res" >&6; }
2071 fi
2072 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2073
2074 } # ac_fn_c_check_header_mongrel
2075
2076 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2077 # -------------------------------------------
2078 # Tests whether TYPE exists after having included INCLUDES, setting cache
2079 # variable VAR accordingly.
2080 ac_fn_c_check_type ()
2081 {
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2084 $as_echo_n "checking for $2... " >&6; }
2085 if eval \${$3+:} false; then :
2086 $as_echo_n "(cached) " >&6
2087 else
2088 eval "$3=no"
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2091 $4
2092 int
2093 main ()
2094 {
2095 if (sizeof ($2))
2096 return 0;
2097 ;
2098 return 0;
2099 }
2100 _ACEOF
2101 if ac_fn_c_try_compile "$LINENO"; then :
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103 /* end confdefs.h. */
2104 $4
2105 int
2106 main ()
2107 {
2108 if (sizeof (($2)))
2109 return 0;
2110 ;
2111 return 0;
2112 }
2113 _ACEOF
2114 if ac_fn_c_try_compile "$LINENO"; then :
2115
2116 else
2117 eval "$3=yes"
2118 fi
2119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120 fi
2121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122 fi
2123 eval ac_res=\$$3
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2125 $as_echo "$ac_res" >&6; }
2126 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2127
2128 } # ac_fn_c_check_type
2129
2130 # ac_fn_c_check_func LINENO FUNC VAR
2131 # ----------------------------------
2132 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2133 ac_fn_c_check_func ()
2134 {
2135 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2137 $as_echo_n "checking for $2... " >&6; }
2138 if eval \${$3+:} false; then :
2139 $as_echo_n "(cached) " >&6
2140 else
2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h. */
2143 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2145 #define $2 innocuous_$2
2146
2147 /* System header to define __stub macros and hopefully few prototypes,
2148 which can conflict with char $2 (); below.
2149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2150 <limits.h> exists even on freestanding compilers. */
2151
2152 #ifdef __STDC__
2153 # include <limits.h>
2154 #else
2155 # include <assert.h>
2156 #endif
2157
2158 #undef $2
2159
2160 /* Override any GCC internal prototype to avoid an error.
2161 Use char because int might match the return type of a GCC
2162 builtin and then its argument prototype would still apply. */
2163 #ifdef __cplusplus
2164 extern "C"
2165 #endif
2166 char $2 ();
2167 /* The GNU C library defines this for functions which it implements
2168 to always fail with ENOSYS. Some functions are actually named
2169 something starting with __ and the normal name is an alias. */
2170 #if defined __stub_$2 || defined __stub___$2
2171 choke me
2172 #endif
2173
2174 int
2175 main ()
2176 {
2177 return $2 ();
2178 ;
2179 return 0;
2180 }
2181 _ACEOF
2182 if ac_fn_c_try_link "$LINENO"; then :
2183 eval "$3=yes"
2184 else
2185 eval "$3=no"
2186 fi
2187 rm -f core conftest.err conftest.$ac_objext \
2188 conftest$ac_exeext conftest.$ac_ext
2189 fi
2190 eval ac_res=\$$3
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2192 $as_echo "$ac_res" >&6; }
2193 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2194
2195 } # ac_fn_c_check_func
2196 cat >config.log <<_ACEOF
2197 This file contains any messages produced by compilers while
2198 running configure, to aid debugging if configure makes a mistake.
2199
2200 It was created by CTSim $as_me 6.0.0, which was
2201 generated by GNU Autoconf 2.69. Invocation command line was
2202
2203 $ $0 $@
2204
2205 _ACEOF
2206 exec 5>>config.log
2207 {
2208 cat <<_ASUNAME
2209 ## --------- ##
2210 ## Platform. ##
2211 ## --------- ##
2212
2213 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2214 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2215 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2216 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2217 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2218
2219 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2220 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2221
2222 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2223 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2224 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2225 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2226 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2227 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2228 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2229
2230 _ASUNAME
2231
2232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2233 for as_dir in $PATH
2234 do
2235 IFS=$as_save_IFS
2236 test -z "$as_dir" && as_dir=.
2237 $as_echo "PATH: $as_dir"
2238 done
2239 IFS=$as_save_IFS
2240
2241 } >&5
2242
2243 cat >&5 <<_ACEOF
2244
2245
2246 ## ----------- ##
2247 ## Core tests. ##
2248 ## ----------- ##
2249
2250 _ACEOF
2251
2252
2253 # Keep a trace of the command line.
2254 # Strip out --no-create and --no-recursion so they do not pile up.
2255 # Strip out --silent because we don't want to record it for future runs.
2256 # Also quote any args containing shell meta-characters.
2257 # Make two passes to allow for proper duplicate-argument suppression.
2258 ac_configure_args=
2259 ac_configure_args0=
2260 ac_configure_args1=
2261 ac_must_keep_next=false
2262 for ac_pass in 1 2
2263 do
2264 for ac_arg
2265 do
2266 case $ac_arg in
2267 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2268 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2269 | -silent | --silent | --silen | --sile | --sil)
2270 continue ;;
2271 *\'*)
2272 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2273 esac
2274 case $ac_pass in
2275 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2276 2)
2277 as_fn_append ac_configure_args1 " '$ac_arg'"
2278 if test $ac_must_keep_next = true; then
2279 ac_must_keep_next=false # Got value, back to normal.
2280 else
2281 case $ac_arg in
2282 *=* | --config-cache | -C | -disable-* | --disable-* \
2283 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2284 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2285 | -with-* | --with-* | -without-* | --without-* | --x)
2286 case "$ac_configure_args0 " in
2287 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2288 esac
2289 ;;
2290 -* ) ac_must_keep_next=true ;;
2291 esac
2292 fi
2293 as_fn_append ac_configure_args " '$ac_arg'"
2294 ;;
2295 esac
2296 done
2297 done
2298 { ac_configure_args0=; unset ac_configure_args0;}
2299 { ac_configure_args1=; unset ac_configure_args1;}
2300
2301 # When interrupted or exit'd, cleanup temporary files, and complete
2302 # config.log. We remove comments because anyway the quotes in there
2303 # would cause problems or look ugly.
2304 # WARNING: Use '\'' to represent an apostrophe within the trap.
2305 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2306 trap 'exit_status=$?
2307 # Save into config.log some information that might help in debugging.
2308 {
2309 echo
2310
2311 $as_echo "## ---------------- ##
2312 ## Cache variables. ##
2313 ## ---------------- ##"
2314 echo
2315 # The following way of writing the cache mishandles newlines in values,
2316 (
2317 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2318 eval ac_val=\$$ac_var
2319 case $ac_val in #(
2320 *${as_nl}*)
2321 case $ac_var in #(
2322 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2323 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2324 esac
2325 case $ac_var in #(
2326 _ | IFS | as_nl) ;; #(
2327 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2328 *) { eval $ac_var=; unset $ac_var;} ;;
2329 esac ;;
2330 esac
2331 done
2332 (set) 2>&1 |
2333 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2334 *${as_nl}ac_space=\ *)
2335 sed -n \
2336 "s/'\''/'\''\\\\'\'''\''/g;
2337 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2338 ;; #(
2339 *)
2340 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2341 ;;
2342 esac |
2343 sort
2344 )
2345 echo
2346
2347 $as_echo "## ----------------- ##
2348 ## Output variables. ##
2349 ## ----------------- ##"
2350 echo
2351 for ac_var in $ac_subst_vars
2352 do
2353 eval ac_val=\$$ac_var
2354 case $ac_val in
2355 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2356 esac
2357 $as_echo "$ac_var='\''$ac_val'\''"
2358 done | sort
2359 echo
2360
2361 if test -n "$ac_subst_files"; then
2362 $as_echo "## ------------------- ##
2363 ## File substitutions. ##
2364 ## ------------------- ##"
2365 echo
2366 for ac_var in $ac_subst_files
2367 do
2368 eval ac_val=\$$ac_var
2369 case $ac_val in
2370 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2371 esac
2372 $as_echo "$ac_var='\''$ac_val'\''"
2373 done | sort
2374 echo
2375 fi
2376
2377 if test -s confdefs.h; then
2378 $as_echo "## ----------- ##
2379 ## confdefs.h. ##
2380 ## ----------- ##"
2381 echo
2382 cat confdefs.h
2383 echo
2384 fi
2385 test "$ac_signal" != 0 &&
2386 $as_echo "$as_me: caught signal $ac_signal"
2387 $as_echo "$as_me: exit $exit_status"
2388 } >&5
2389 rm -f core *.core core.conftest.* &&
2390 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2391 exit $exit_status
2392 ' 0
2393 for ac_signal in 1 2 13 15; do
2394 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2395 done
2396 ac_signal=0
2397
2398 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2399 rm -f -r conftest* confdefs.h
2400
2401 $as_echo "/* confdefs.h */" > confdefs.h
2402
2403 # Predefined preprocessor variables.
2404
2405 cat >>confdefs.h <<_ACEOF
2406 #define PACKAGE_NAME "$PACKAGE_NAME"
2407 _ACEOF
2408
2409 cat >>confdefs.h <<_ACEOF
2410 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2411 _ACEOF
2412
2413 cat >>confdefs.h <<_ACEOF
2414 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2415 _ACEOF
2416
2417 cat >>confdefs.h <<_ACEOF
2418 #define PACKAGE_STRING "$PACKAGE_STRING"
2419 _ACEOF
2420
2421 cat >>confdefs.h <<_ACEOF
2422 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2423 _ACEOF
2424
2425 cat >>confdefs.h <<_ACEOF
2426 #define PACKAGE_URL "$PACKAGE_URL"
2427 _ACEOF
2428
2429
2430 # Let the site file select an alternate cache file if it wants to.
2431 # Prefer an explicitly selected file to automatically selected ones.
2432 ac_site_file1=NONE
2433 ac_site_file2=NONE
2434 if test -n "$CONFIG_SITE"; then
2435 # We do not want a PATH search for config.site.
2436 case $CONFIG_SITE in #((
2437 -*) ac_site_file1=./$CONFIG_SITE;;
2438 */*) ac_site_file1=$CONFIG_SITE;;
2439 *) ac_site_file1=./$CONFIG_SITE;;
2440 esac
2441 elif test "x$prefix" != xNONE; then
2442 ac_site_file1=$prefix/share/config.site
2443 ac_site_file2=$prefix/etc/config.site
2444 else
2445 ac_site_file1=$ac_default_prefix/share/config.site
2446 ac_site_file2=$ac_default_prefix/etc/config.site
2447 fi
2448 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2449 do
2450 test "x$ac_site_file" = xNONE && continue
2451 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2453 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2454 sed 's/^/| /' "$ac_site_file" >&5
2455 . "$ac_site_file" \
2456 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2458 as_fn_error $? "failed to load site script $ac_site_file
2459 See \`config.log' for more details" "$LINENO" 5; }
2460 fi
2461 done
2462
2463 if test -r "$cache_file"; then
2464 # Some versions of bash will fail to source /dev/null (special files
2465 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2466 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2468 $as_echo "$as_me: loading cache $cache_file" >&6;}
2469 case $cache_file in
2470 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2471 *) . "./$cache_file";;
2472 esac
2473 fi
2474 else
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2476 $as_echo "$as_me: creating cache $cache_file" >&6;}
2477 >$cache_file
2478 fi
2479
2480 # Check that the precious variables saved in the cache have kept the same
2481 # value.
2482 ac_cache_corrupted=false
2483 for ac_var in $ac_precious_vars; do
2484 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2485 eval ac_new_set=\$ac_env_${ac_var}_set
2486 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2487 eval ac_new_val=\$ac_env_${ac_var}_value
2488 case $ac_old_set,$ac_new_set in
2489 set,)
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2491 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2492 ac_cache_corrupted=: ;;
2493 ,set)
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2495 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2496 ac_cache_corrupted=: ;;
2497 ,);;
2498 *)
2499 if test "x$ac_old_val" != "x$ac_new_val"; then
2500 # differences in whitespace do not lead to failure.
2501 ac_old_val_w=`echo x $ac_old_val`
2502 ac_new_val_w=`echo x $ac_new_val`
2503 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2505 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2506 ac_cache_corrupted=:
2507 else
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2509 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2510 eval $ac_var=\$ac_old_val
2511 fi
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2513 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2515 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2516 fi;;
2517 esac
2518 # Pass precious variables to config.status.
2519 if test "$ac_new_set" = set; then
2520 case $ac_new_val in
2521 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2522 *) ac_arg=$ac_var=$ac_new_val ;;
2523 esac
2524 case " $ac_configure_args " in
2525 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2526 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2527 esac
2528 fi
2529 done
2530 if $ac_cache_corrupted; then
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2534 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2535 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2536 fi
2537 ## -------------------- ##
2538 ## Main body of script. ##
2539 ## -------------------- ##
2540
2541 ac_ext=c
2542 ac_cpp='$CPP $CPPFLAGS'
2543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2546
2547
2548
2549
2550 ac_aux_dir=
2551 for ac_dir in scripts/ "$srcdir"/scripts/; do
2552 if test -f "$ac_dir/install-sh"; then
2553 ac_aux_dir=$ac_dir
2554 ac_install_sh="$ac_aux_dir/install-sh -c"
2555 break
2556 elif test -f "$ac_dir/install.sh"; then
2557 ac_aux_dir=$ac_dir
2558 ac_install_sh="$ac_aux_dir/install.sh -c"
2559 break
2560 elif test -f "$ac_dir/shtool"; then
2561 ac_aux_dir=$ac_dir
2562 ac_install_sh="$ac_aux_dir/shtool install -c"
2563 break
2564 fi
2565 done
2566 if test -z "$ac_aux_dir"; then
2567 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/ \"$srcdir\"/scripts/" "$LINENO" 5
2568 fi
2569
2570 # These three variables are undocumented and unsupported,
2571 # and are intended to be withdrawn in a future Autoconf release.
2572 # They can cause serious problems if a builder's source tree is in a directory
2573 # whose full name contains unusual characters.
2574 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2575 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2576 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2577
2578
2579
2580 # Make sure we can run config.sub.
2581 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2582 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2583
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2585 $as_echo_n "checking build system type... " >&6; }
2586 if ${ac_cv_build+:} false; then :
2587 $as_echo_n "(cached) " >&6
2588 else
2589 ac_build_alias=$build_alias
2590 test "x$ac_build_alias" = x &&
2591 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2592 test "x$ac_build_alias" = x &&
2593 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2594 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2595 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2596
2597 fi
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2599 $as_echo "$ac_cv_build" >&6; }
2600 case $ac_cv_build in
2601 *-*-*) ;;
2602 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2603 esac
2604 build=$ac_cv_build
2605 ac_save_IFS=$IFS; IFS='-'
2606 set x $ac_cv_build
2607 shift
2608 build_cpu=$1
2609 build_vendor=$2
2610 shift; shift
2611 # Remember, the first character of IFS is used to create $*,
2612 # except with old shells:
2613 build_os=$*
2614 IFS=$ac_save_IFS
2615 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2616
2617
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2619 $as_echo_n "checking host system type... " >&6; }
2620 if ${ac_cv_host+:} false; then :
2621 $as_echo_n "(cached) " >&6
2622 else
2623 if test "x$host_alias" = x; then
2624 ac_cv_host=$ac_cv_build
2625 else
2626 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2627 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2628 fi
2629
2630 fi
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2632 $as_echo "$ac_cv_host" >&6; }
2633 case $ac_cv_host in
2634 *-*-*) ;;
2635 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2636 esac
2637 host=$ac_cv_host
2638 ac_save_IFS=$IFS; IFS='-'
2639 set x $ac_cv_host
2640 shift
2641 host_cpu=$1
2642 host_vendor=$2
2643 shift; shift
2644 # Remember, the first character of IFS is used to create $*,
2645 # except with old shells:
2646 host_os=$*
2647 IFS=$ac_save_IFS
2648 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2649
2650
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2652 $as_echo_n "checking target system type... " >&6; }
2653 if ${ac_cv_target+:} false; then :
2654 $as_echo_n "(cached) " >&6
2655 else
2656 if test "x$target_alias" = x; then
2657 ac_cv_target=$ac_cv_host
2658 else
2659 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2660 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2661 fi
2662
2663 fi
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2665 $as_echo "$ac_cv_target" >&6; }
2666 case $ac_cv_target in
2667 *-*-*) ;;
2668 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2669 esac
2670 target=$ac_cv_target
2671 ac_save_IFS=$IFS; IFS='-'
2672 set x $ac_cv_target
2673 shift
2674 target_cpu=$1
2675 target_vendor=$2
2676 shift; shift
2677 # Remember, the first character of IFS is used to create $*,
2678 # except with old shells:
2679 target_os=$*
2680 IFS=$ac_save_IFS
2681 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2682
2683
2684 # The aliases save the names the user supplied, while $host etc.
2685 # will get canonicalized.
2686 test -n "$target_alias" &&
2687 test "$program_prefix$program_suffix$program_transform_name" = \
2688 NONENONEs,x,x, &&
2689 program_prefix=${target_alias}-
2690
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2692 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2693 # Check whether --enable-maintainer-mode was given.
2694 if test "${enable_maintainer_mode+set}" = set; then :
2695 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2696 else
2697 USE_MAINTAINER_MODE=no
2698 fi
2699
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2701 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2702 if test $USE_MAINTAINER_MODE = yes; then
2703 MAINTAINER_MODE_TRUE=
2704 MAINTAINER_MODE_FALSE='#'
2705 else
2706 MAINTAINER_MODE_TRUE='#'
2707 MAINTAINER_MODE_FALSE=
2708 fi
2709
2710 MAINT=$MAINTAINER_MODE_TRUE
2711
2712
2713 am__api_version='1.15'
2714
2715 # Find a good install program. We prefer a C program (faster),
2716 # so one script is as good as another. But avoid the broken or
2717 # incompatible versions:
2718 # SysV /etc/install, /usr/sbin/install
2719 # SunOS /usr/etc/install
2720 # IRIX /sbin/install
2721 # AIX /bin/install
2722 # AmigaOS /C/install, which installs bootblocks on floppy discs
2723 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2724 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2725 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2726 # OS/2's system install, which has a completely different semantic
2727 # ./install, which can be erroneously created by make from ./install.sh.
2728 # Reject install programs that cannot install multiple files.
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2730 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2731 if test -z "$INSTALL"; then
2732 if ${ac_cv_path_install+:} false; then :
2733 $as_echo_n "(cached) " >&6
2734 else
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736 for as_dir in $PATH
2737 do
2738 IFS=$as_save_IFS
2739 test -z "$as_dir" && as_dir=.
2740 # Account for people who put trailing slashes in PATH elements.
2741 case $as_dir/ in #((
2742 ./ | .// | /[cC]/* | \
2743 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2744 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2745 /usr/ucb/* ) ;;
2746 *)
2747 # OSF1 and SCO ODT 3.0 have their own names for install.
2748 # Don't use installbsd from OSF since it installs stuff as root
2749 # by default.
2750 for ac_prog in ginstall scoinst install; do
2751 for ac_exec_ext in '' $ac_executable_extensions; do
2752 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2753 if test $ac_prog = install &&
2754 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2755 # AIX install. It has an incompatible calling convention.
2756 :
2757 elif test $ac_prog = install &&
2758 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2759 # program-specific install script used by HP pwplus--don't use.
2760 :
2761 else
2762 rm -rf conftest.one conftest.two conftest.dir
2763 echo one > conftest.one
2764 echo two > conftest.two
2765 mkdir conftest.dir
2766 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2767 test -s conftest.one && test -s conftest.two &&
2768 test -s conftest.dir/conftest.one &&
2769 test -s conftest.dir/conftest.two
2770 then
2771 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2772 break 3
2773 fi
2774 fi
2775 fi
2776 done
2777 done
2778 ;;
2779 esac
2780
2781 done
2782 IFS=$as_save_IFS
2783
2784 rm -rf conftest.one conftest.two conftest.dir
2785
2786 fi
2787 if test "${ac_cv_path_install+set}" = set; then
2788 INSTALL=$ac_cv_path_install
2789 else
2790 # As a last resort, use the slow shell script. Don't cache a
2791 # value for INSTALL within a source directory, because that will
2792 # break other packages using the cache if that directory is
2793 # removed, or if the value is a relative name.
2794 INSTALL=$ac_install_sh
2795 fi
2796 fi
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2798 $as_echo "$INSTALL" >&6; }
2799
2800 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2801 # It thinks the first close brace ends the variable substitution.
2802 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2803
2804 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2805
2806 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2807
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2809 $as_echo_n "checking whether build environment is sane... " >&6; }
2810 # Reject unsafe characters in $srcdir or the absolute working directory
2811 # name. Accept space and tab only in the latter.
2812 am_lf='
2813 '
2814 case `pwd` in
2815 *[\\\"\#\$\&\'\`$am_lf]*)
2816 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2817 esac
2818 case $srcdir in
2819 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2820 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2821 esac
2822
2823 # Do 'set' in a subshell so we don't clobber the current shell's
2824 # arguments. Must try -L first in case configure is actually a
2825 # symlink; some systems play weird games with the mod time of symlinks
2826 # (eg FreeBSD returns the mod time of the symlink's containing
2827 # directory).
2828 if (
2829 am_has_slept=no
2830 for am_try in 1 2; do
2831 echo "timestamp, slept: $am_has_slept" > conftest.file
2832 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2833 if test "$*" = "X"; then
2834 # -L didn't work.
2835 set X `ls -t "$srcdir/configure" conftest.file`
2836 fi
2837 if test "$*" != "X $srcdir/configure conftest.file" \
2838 && test "$*" != "X conftest.file $srcdir/configure"; then
2839
2840 # If neither matched, then we have a broken ls. This can happen
2841 # if, for instance, CONFIG_SHELL is bash and it inherits a
2842 # broken ls alias from the environment. This has actually
2843 # happened. Such a system could not be considered "sane".
2844 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2845 alias in your environment" "$LINENO" 5
2846 fi
2847 if test "$2" = conftest.file || test $am_try -eq 2; then
2848 break
2849 fi
2850 # Just in case.
2851 sleep 1
2852 am_has_slept=yes
2853 done
2854 test "$2" = conftest.file
2855 )
2856 then
2857 # Ok.
2858 :
2859 else
2860 as_fn_error $? "newly created file is older than distributed files!
2861 Check your system clock" "$LINENO" 5
2862 fi
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2864 $as_echo "yes" >&6; }
2865 # If we didn't sleep, we still need to ensure time stamps of config.status and
2866 # generated files are strictly newer.
2867 am_sleep_pid=
2868 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2869 ( sleep 1 ) &
2870 am_sleep_pid=$!
2871 fi
2872
2873 rm -f conftest.file
2874
2875 test "$program_prefix" != NONE &&
2876 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2877 # Use a double $ so make ignores it.
2878 test "$program_suffix" != NONE &&
2879 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2880 # Double any \ or $.
2881 # By default was `s,x,x', remove it if useless.
2882 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2883 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2884
2885 # Expand $ac_aux_dir to an absolute path.
2886 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2887
2888 if test x"${MISSING+set}" != xset; then
2889 case $am_aux_dir in
2890 *\ * | *\ *)
2891 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2892 *)
2893 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2894 esac
2895 fi
2896 # Use eval to expand $SHELL
2897 if eval "$MISSING --is-lightweight"; then
2898 am_missing_run="$MISSING "
2899 else
2900 am_missing_run=
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2902 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2903 fi
2904
2905 if test x"${install_sh+set}" != xset; then
2906 case $am_aux_dir in
2907 *\ * | *\ *)
2908 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2909 *)
2910 install_sh="\${SHELL} $am_aux_dir/install-sh"
2911 esac
2912 fi
2913
2914 # Installed binaries are usually stripped using 'strip' when the user
2915 # run "make install-strip". However 'strip' might not be the right
2916 # tool to use in cross-compilation environments, therefore Automake
2917 # will honor the 'STRIP' environment variable to overrule this program.
2918 if test "$cross_compiling" != no; then
2919 if test -n "$ac_tool_prefix"; then
2920 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2921 set dummy ${ac_tool_prefix}strip; ac_word=$2
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923 $as_echo_n "checking for $ac_word... " >&6; }
2924 if ${ac_cv_prog_STRIP+:} false; then :
2925 $as_echo_n "(cached) " >&6
2926 else
2927 if test -n "$STRIP"; then
2928 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2929 else
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 for as_dir in $PATH
2932 do
2933 IFS=$as_save_IFS
2934 test -z "$as_dir" && as_dir=.
2935 for ac_exec_ext in '' $ac_executable_extensions; do
2936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2937 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2939 break 2
2940 fi
2941 done
2942 done
2943 IFS=$as_save_IFS
2944
2945 fi
2946 fi
2947 STRIP=$ac_cv_prog_STRIP
2948 if test -n "$STRIP"; then
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2950 $as_echo "$STRIP" >&6; }
2951 else
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953 $as_echo "no" >&6; }
2954 fi
2955
2956
2957 fi
2958 if test -z "$ac_cv_prog_STRIP"; then
2959 ac_ct_STRIP=$STRIP
2960 # Extract the first word of "strip", so it can be a program name with args.
2961 set dummy strip; ac_word=$2
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2963 $as_echo_n "checking for $ac_word... " >&6; }
2964 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2965 $as_echo_n "(cached) " >&6
2966 else
2967 if test -n "$ac_ct_STRIP"; then
2968 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2969 else
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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2977 ac_cv_prog_ac_ct_STRIP="strip"
2978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2979 break 2
2980 fi
2981 done
2982 done
2983 IFS=$as_save_IFS
2984
2985 fi
2986 fi
2987 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2988 if test -n "$ac_ct_STRIP"; then
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2990 $as_echo "$ac_ct_STRIP" >&6; }
2991 else
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2993 $as_echo "no" >&6; }
2994 fi
2995
2996 if test "x$ac_ct_STRIP" = x; then
2997 STRIP=":"
2998 else
2999 case $cross_compiling:$ac_tool_warned in
3000 yes:)
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3003 ac_tool_warned=yes ;;
3004 esac
3005 STRIP=$ac_ct_STRIP
3006 fi
3007 else
3008 STRIP="$ac_cv_prog_STRIP"
3009 fi
3010
3011 fi
3012 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3013
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3015 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3016 if test -z "$MKDIR_P"; then
3017 if ${ac_cv_path_mkdir+:} false; then :
3018 $as_echo_n "(cached) " >&6
3019 else
3020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3022 do
3023 IFS=$as_save_IFS
3024 test -z "$as_dir" && as_dir=.
3025 for ac_prog in mkdir gmkdir; do
3026 for ac_exec_ext in '' $ac_executable_extensions; do
3027 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3028 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3029 'mkdir (GNU coreutils) '* | \
3030 'mkdir (coreutils) '* | \
3031 'mkdir (fileutils) '4.1*)
3032 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3033 break 3;;
3034 esac
3035 done
3036 done
3037 done
3038 IFS=$as_save_IFS
3039
3040 fi
3041
3042 test -d ./--version && rmdir ./--version
3043 if test "${ac_cv_path_mkdir+set}" = set; then
3044 MKDIR_P="$ac_cv_path_mkdir -p"
3045 else
3046 # As a last resort, use the slow shell script. Don't cache a
3047 # value for MKDIR_P within a source directory, because that will
3048 # break other packages using the cache if that directory is
3049 # removed, or if the value is a relative name.
3050 MKDIR_P="$ac_install_sh -d"
3051 fi
3052 fi
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3054 $as_echo "$MKDIR_P" >&6; }
3055
3056 for ac_prog in gawk mawk nawk awk
3057 do
3058 # Extract the first word of "$ac_prog", so it can be a program name with args.
3059 set dummy $ac_prog; ac_word=$2
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3061 $as_echo_n "checking for $ac_word... " >&6; }
3062 if ${ac_cv_prog_AWK+:} false; then :
3063 $as_echo_n "(cached) " >&6
3064 else
3065 if test -n "$AWK"; then
3066 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3067 else
3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069 for as_dir in $PATH
3070 do
3071 IFS=$as_save_IFS
3072 test -z "$as_dir" && as_dir=.
3073 for ac_exec_ext in '' $ac_executable_extensions; do
3074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3075 ac_cv_prog_AWK="$ac_prog"
3076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3077 break 2
3078 fi
3079 done
3080 done
3081 IFS=$as_save_IFS
3082
3083 fi
3084 fi
3085 AWK=$ac_cv_prog_AWK
3086 if test -n "$AWK"; then
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3088 $as_echo "$AWK" >&6; }
3089 else
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3091 $as_echo "no" >&6; }
3092 fi
3093
3094
3095 test -n "$AWK" && break
3096 done
3097
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3099 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3100 set x ${MAKE-make}
3101 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3102 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3103 $as_echo_n "(cached) " >&6
3104 else
3105 cat >conftest.make <<\_ACEOF
3106 SHELL = /bin/sh
3107 all:
3108 @echo '@@@%%%=$(MAKE)=@@@%%%'
3109 _ACEOF
3110 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3111 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3112 *@@@%%%=?*=@@@%%%*)
3113 eval ac_cv_prog_make_${ac_make}_set=yes;;
3114 *)
3115 eval ac_cv_prog_make_${ac_make}_set=no;;
3116 esac
3117 rm -f conftest.make
3118 fi
3119 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3121 $as_echo "yes" >&6; }
3122 SET_MAKE=
3123 else
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3125 $as_echo "no" >&6; }
3126 SET_MAKE="MAKE=${MAKE-make}"
3127 fi
3128
3129 rm -rf .tst 2>/dev/null
3130 mkdir .tst 2>/dev/null
3131 if test -d .tst; then
3132 am__leading_dot=.
3133 else
3134 am__leading_dot=_
3135 fi
3136 rmdir .tst 2>/dev/null
3137
3138 # Check whether --enable-silent-rules was given.
3139 if test "${enable_silent_rules+set}" = set; then :
3140 enableval=$enable_silent_rules;
3141 fi
3142
3143 case $enable_silent_rules in # (((
3144 yes) AM_DEFAULT_VERBOSITY=0;;
3145 no) AM_DEFAULT_VERBOSITY=1;;
3146 *) AM_DEFAULT_VERBOSITY=1;;
3147 esac
3148 am_make=${MAKE-make}
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3150 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3151 if ${am_cv_make_support_nested_variables+:} false; then :
3152 $as_echo_n "(cached) " >&6
3153 else
3154 if $as_echo 'TRUE=$(BAR$(V))
3155 BAR0=false
3156 BAR1=true
3157 V=1
3158 am__doit:
3159 @$(TRUE)
3160 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3161 am_cv_make_support_nested_variables=yes
3162 else
3163 am_cv_make_support_nested_variables=no
3164 fi
3165 fi
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3167 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3168 if test $am_cv_make_support_nested_variables = yes; then
3169 AM_V='$(V)'
3170 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3171 else
3172 AM_V=$AM_DEFAULT_VERBOSITY
3173 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3174 fi
3175 AM_BACKSLASH='\'
3176
3177 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3178 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3179 # is not polluted with repeated "-I."
3180 am__isrc=' -I$(srcdir)'
3181 # test to see if srcdir already configured
3182 if test -f $srcdir/config.status; then
3183 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3184 fi
3185 fi
3186
3187 # test whether we have cygpath
3188 if test -z "$CYGPATH_W"; then
3189 if (cygpath --version) >/dev/null 2>/dev/null; then
3190 CYGPATH_W='cygpath -w'
3191 else
3192 CYGPATH_W=echo
3193 fi
3194 fi
3195
3196
3197 # Define the identity of the package.
3198 PACKAGE='ctsim'
3199 VERSION='6.0.0'
3200
3201
3202 cat >>confdefs.h <<_ACEOF
3203 #define PACKAGE "$PACKAGE"
3204 _ACEOF
3205
3206
3207 cat >>confdefs.h <<_ACEOF
3208 #define VERSION "$VERSION"
3209 _ACEOF
3210
3211 # Some tools Automake needs.
3212
3213 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3214
3215
3216 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3217
3218
3219 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3220
3221
3222 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3223
3224
3225 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3226
3227 # For better backward compatibility. To be removed once Automake 1.9.x
3228 # dies out for good. For more background, see:
3229 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3230 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3231 mkdir_p='$(MKDIR_P)'
3232
3233 # We need awk for the "check" target (and possibly the TAP driver). The
3234 # system "awk" is bad on some platforms.
3235 # Always define AMTAR for backward compatibility. Yes, it's still used
3236 # in the wild :-( We should find a proper way to deprecate it ...
3237 AMTAR='$${TAR-tar}'
3238
3239
3240 # We'll loop over all known methods to create a tar archive until one works.
3241 _am_tools='gnutar pax cpio none'
3242
3243 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3244
3245
3246
3247
3248
3249
3250 # POSIX will say in a future version that running "rm -f" with no argument
3251 # is OK; and we want to be able to make that assumption in our Makefile
3252 # recipes. So use an aggressive probe to check that the usage we want is
3253 # actually supported "in the wild" to an acceptable degree.
3254 # See automake bug#10828.
3255 # To make any issue more visible, cause the running configure to be aborted
3256 # by default if the 'rm' program in use doesn't match our expectations; the
3257 # user can still override this though.
3258 if rm -f && rm -fr && rm -rf; then : OK; else
3259 cat >&2 <<'END'
3260 Oops!
3261
3262 Your 'rm' program seems unable to run without file operands specified
3263 on the command line, even when the '-f' option is present. This is contrary
3264 to the behaviour of most rm programs out there, and not conforming with
3265 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3266
3267 Please tell [email protected] about your system, including the value
3268 of your $PATH and any error possibly output before this message. This
3269 can help us improve future automake versions.
3270
3271 END
3272 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3273 echo 'Configuration will proceed anyway, since you have set the' >&2
3274 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3275 echo >&2
3276 else
3277 cat >&2 <<'END'
3278 Aborting the configuration process, to ensure you take notice of the issue.
3279
3280 You can download and install GNU coreutils to get an 'rm' implementation
3281 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3282
3283 If you want to complete the configuration process using your problematic
3284 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3285 to "yes", and re-run configure.
3286
3287 END
3288 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3289 fi
3290 fi
3291
3292 ac_config_headers="$ac_config_headers config.h"
3293
3294
3295 for ac_prog in gawk mawk nawk awk
3296 do
3297 # Extract the first word of "$ac_prog", so it can be a program name with args.
3298 set dummy $ac_prog; ac_word=$2
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3300 $as_echo_n "checking for $ac_word... " >&6; }
3301 if ${ac_cv_prog_AWK+:} false; then :
3302 $as_echo_n "(cached) " >&6
3303 else
3304 if test -n "$AWK"; then
3305 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3306 else
3307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308 for as_dir in $PATH
3309 do
3310 IFS=$as_save_IFS
3311 test -z "$as_dir" && as_dir=.
3312 for ac_exec_ext in '' $ac_executable_extensions; do
3313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3314 ac_cv_prog_AWK="$ac_prog"
3315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3316 break 2
3317 fi
3318 done
3319 done
3320 IFS=$as_save_IFS
3321
3322 fi
3323 fi
3324 AWK=$ac_cv_prog_AWK
3325 if test -n "$AWK"; then
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3327 $as_echo "$AWK" >&6; }
3328 else
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330 $as_echo "no" >&6; }
3331 fi
3332
3333
3334 test -n "$AWK" && break
3335 done
3336
3337
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3339 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3340 set x ${MAKE-make}
3341 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3342 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3343 $as_echo_n "(cached) " >&6
3344 else
3345 cat >conftest.make <<\_ACEOF
3346 SHELL = /bin/sh
3347 all:
3348 @echo '@@@%%%=$(MAKE)=@@@%%%'
3349 _ACEOF
3350 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3351 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3352 *@@@%%%=?*=@@@%%%*)
3353 eval ac_cv_prog_make_${ac_make}_set=yes;;
3354 *)
3355 eval ac_cv_prog_make_${ac_make}_set=no;;
3356 esac
3357 rm -f conftest.make
3358 fi
3359 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3361 $as_echo "yes" >&6; }
3362 SET_MAKE=
3363 else
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365 $as_echo "no" >&6; }
3366 SET_MAKE="MAKE=${MAKE-make}"
3367 fi
3368
3369 if test -n "$ac_tool_prefix"; then
3370 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3371 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3373 $as_echo_n "checking for $ac_word... " >&6; }
3374 if ${ac_cv_prog_RANLIB+:} false; then :
3375 $as_echo_n "(cached) " >&6
3376 else
3377 if test -n "$RANLIB"; then
3378 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3379 else
3380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381 for as_dir in $PATH
3382 do
3383 IFS=$as_save_IFS
3384 test -z "$as_dir" && as_dir=.
3385 for ac_exec_ext in '' $ac_executable_extensions; do
3386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3387 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3389 break 2
3390 fi
3391 done
3392 done
3393 IFS=$as_save_IFS
3394
3395 fi
3396 fi
3397 RANLIB=$ac_cv_prog_RANLIB
3398 if test -n "$RANLIB"; then
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3400 $as_echo "$RANLIB" >&6; }
3401 else
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3403 $as_echo "no" >&6; }
3404 fi
3405
3406
3407 fi
3408 if test -z "$ac_cv_prog_RANLIB"; then
3409 ac_ct_RANLIB=$RANLIB
3410 # Extract the first word of "ranlib", so it can be a program name with args.
3411 set dummy ranlib; ac_word=$2
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3413 $as_echo_n "checking for $ac_word... " >&6; }
3414 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3415 $as_echo_n "(cached) " >&6
3416 else
3417 if test -n "$ac_ct_RANLIB"; then
3418 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3419 else
3420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421 for as_dir in $PATH
3422 do
3423 IFS=$as_save_IFS
3424 test -z "$as_dir" && as_dir=.
3425 for ac_exec_ext in '' $ac_executable_extensions; do
3426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3427 ac_cv_prog_ac_ct_RANLIB="ranlib"
3428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3429 break 2
3430 fi
3431 done
3432 done
3433 IFS=$as_save_IFS
3434
3435 fi
3436 fi
3437 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3438 if test -n "$ac_ct_RANLIB"; then
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3440 $as_echo "$ac_ct_RANLIB" >&6; }
3441 else
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3443 $as_echo "no" >&6; }
3444 fi
3445
3446 if test "x$ac_ct_RANLIB" = x; then
3447 RANLIB=":"
3448 else
3449 case $cross_compiling:$ac_tool_warned in
3450 yes:)
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3453 ac_tool_warned=yes ;;
3454 esac
3455 RANLIB=$ac_ct_RANLIB
3456 fi
3457 else
3458 RANLIB="$ac_cv_prog_RANLIB"
3459 fi
3460
3461
3462 ac_ext=c
3463 ac_cpp='$CPP $CPPFLAGS'
3464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3467 if test -n "$ac_tool_prefix"; then
3468 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3469 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3471 $as_echo_n "checking for $ac_word... " >&6; }
3472 if ${ac_cv_prog_CC+:} false; then :
3473 $as_echo_n "(cached) " >&6
3474 else
3475 if test -n "$CC"; then
3476 ac_cv_prog_CC="$CC" # Let the user override the test.
3477 else
3478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479 for as_dir in $PATH
3480 do
3481 IFS=$as_save_IFS
3482 test -z "$as_dir" && as_dir=.
3483 for ac_exec_ext in '' $ac_executable_extensions; do
3484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3485 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3487 break 2
3488 fi
3489 done
3490 done
3491 IFS=$as_save_IFS
3492
3493 fi
3494 fi
3495 CC=$ac_cv_prog_CC
3496 if test -n "$CC"; then
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3498 $as_echo "$CC" >&6; }
3499 else
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3501 $as_echo "no" >&6; }
3502 fi
3503
3504
3505 fi
3506 if test -z "$ac_cv_prog_CC"; then
3507 ac_ct_CC=$CC
3508 # Extract the first word of "gcc", so it can be a program name with args.
3509 set dummy gcc; ac_word=$2
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3511 $as_echo_n "checking for $ac_word... " >&6; }
3512 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3513 $as_echo_n "(cached) " >&6
3514 else
3515 if test -n "$ac_ct_CC"; then
3516 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3517 else
3518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519 for as_dir in $PATH
3520 do
3521 IFS=$as_save_IFS
3522 test -z "$as_dir" && as_dir=.
3523 for ac_exec_ext in '' $ac_executable_extensions; do
3524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3525 ac_cv_prog_ac_ct_CC="gcc"
3526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3527 break 2
3528 fi
3529 done
3530 done
3531 IFS=$as_save_IFS
3532
3533 fi
3534 fi
3535 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3536 if test -n "$ac_ct_CC"; then
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3538 $as_echo "$ac_ct_CC" >&6; }
3539 else
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541 $as_echo "no" >&6; }
3542 fi
3543
3544 if test "x$ac_ct_CC" = x; then
3545 CC=""
3546 else
3547 case $cross_compiling:$ac_tool_warned in
3548 yes:)
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3551 ac_tool_warned=yes ;;
3552 esac
3553 CC=$ac_ct_CC
3554 fi
3555 else
3556 CC="$ac_cv_prog_CC"
3557 fi
3558
3559 if test -z "$CC"; then
3560 if test -n "$ac_tool_prefix"; then
3561 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3562 set dummy ${ac_tool_prefix}cc; ac_word=$2
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3564 $as_echo_n "checking for $ac_word... " >&6; }
3565 if ${ac_cv_prog_CC+:} false; then :
3566 $as_echo_n "(cached) " >&6
3567 else
3568 if test -n "$CC"; then
3569 ac_cv_prog_CC="$CC" # Let the user override the test.
3570 else
3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572 for as_dir in $PATH
3573 do
3574 IFS=$as_save_IFS
3575 test -z "$as_dir" && as_dir=.
3576 for ac_exec_ext in '' $ac_executable_extensions; do
3577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3578 ac_cv_prog_CC="${ac_tool_prefix}cc"
3579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3580 break 2
3581 fi
3582 done
3583 done
3584 IFS=$as_save_IFS
3585
3586 fi
3587 fi
3588 CC=$ac_cv_prog_CC
3589 if test -n "$CC"; then
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3591 $as_echo "$CC" >&6; }
3592 else
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3594 $as_echo "no" >&6; }
3595 fi
3596
3597
3598 fi
3599 fi
3600 if test -z "$CC"; then
3601 # Extract the first word of "cc", so it can be a program name with args.
3602 set dummy cc; ac_word=$2
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3604 $as_echo_n "checking for $ac_word... " >&6; }
3605 if ${ac_cv_prog_CC+:} false; then :
3606 $as_echo_n "(cached) " >&6
3607 else
3608 if test -n "$CC"; then
3609 ac_cv_prog_CC="$CC" # Let the user override the test.
3610 else
3611 ac_prog_rejected=no
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613 for as_dir in $PATH
3614 do
3615 IFS=$as_save_IFS
3616 test -z "$as_dir" && as_dir=.
3617 for ac_exec_ext in '' $ac_executable_extensions; do
3618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3619 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3620 ac_prog_rejected=yes
3621 continue
3622 fi
3623 ac_cv_prog_CC="cc"
3624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3625 break 2
3626 fi
3627 done
3628 done
3629 IFS=$as_save_IFS
3630
3631 if test $ac_prog_rejected = yes; then
3632 # We found a bogon in the path, so make sure we never use it.
3633 set dummy $ac_cv_prog_CC
3634 shift
3635 if test $# != 0; then
3636 # We chose a different compiler from the bogus one.
3637 # However, it has the same basename, so the bogon will be chosen
3638 # first if we set CC to just the basename; use the full file name.
3639 shift
3640 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3641 fi
3642 fi
3643 fi
3644 fi
3645 CC=$ac_cv_prog_CC
3646 if test -n "$CC"; then
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3648 $as_echo "$CC" >&6; }
3649 else
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3651 $as_echo "no" >&6; }
3652 fi
3653
3654
3655 fi
3656 if test -z "$CC"; then
3657 if test -n "$ac_tool_prefix"; then
3658 for ac_prog in cl.exe
3659 do
3660 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3661 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3663 $as_echo_n "checking for $ac_word... " >&6; }
3664 if ${ac_cv_prog_CC+:} false; then :
3665 $as_echo_n "(cached) " >&6
3666 else
3667 if test -n "$CC"; then
3668 ac_cv_prog_CC="$CC" # Let the user override the test.
3669 else
3670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 for as_dir in $PATH
3672 do
3673 IFS=$as_save_IFS
3674 test -z "$as_dir" && as_dir=.
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3677 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3679 break 2
3680 fi
3681 done
3682 done
3683 IFS=$as_save_IFS
3684
3685 fi
3686 fi
3687 CC=$ac_cv_prog_CC
3688 if test -n "$CC"; then
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3690 $as_echo "$CC" >&6; }
3691 else
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3693 $as_echo "no" >&6; }
3694 fi
3695
3696
3697 test -n "$CC" && break
3698 done
3699 fi
3700 if test -z "$CC"; then
3701 ac_ct_CC=$CC
3702 for ac_prog in cl.exe
3703 do
3704 # Extract the first word of "$ac_prog", so it can be a program name with args.
3705 set dummy $ac_prog; ac_word=$2
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3707 $as_echo_n "checking for $ac_word... " >&6; }
3708 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3709 $as_echo_n "(cached) " >&6
3710 else
3711 if test -n "$ac_ct_CC"; then
3712 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3713 else
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715 for as_dir in $PATH
3716 do
3717 IFS=$as_save_IFS
3718 test -z "$as_dir" && as_dir=.
3719 for ac_exec_ext in '' $ac_executable_extensions; do
3720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3721 ac_cv_prog_ac_ct_CC="$ac_prog"
3722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3723 break 2
3724 fi
3725 done
3726 done
3727 IFS=$as_save_IFS
3728
3729 fi
3730 fi
3731 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3732 if test -n "$ac_ct_CC"; then
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3734 $as_echo "$ac_ct_CC" >&6; }
3735 else
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3737 $as_echo "no" >&6; }
3738 fi
3739
3740
3741 test -n "$ac_ct_CC" && break
3742 done
3743
3744 if test "x$ac_ct_CC" = x; then
3745 CC=""
3746 else
3747 case $cross_compiling:$ac_tool_warned in
3748 yes:)
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3751 ac_tool_warned=yes ;;
3752 esac
3753 CC=$ac_ct_CC
3754 fi
3755 fi
3756
3757 fi
3758
3759
3760 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3761 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3762 as_fn_error $? "no acceptable C compiler found in \$PATH
3763 See \`config.log' for more details" "$LINENO" 5; }
3764
3765 # Provide some information about the compiler.
3766 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3767 set X $ac_compile
3768 ac_compiler=$2
3769 for ac_option in --version -v -V -qversion; do
3770 { { ac_try="$ac_compiler $ac_option >&5"
3771 case "(($ac_try" in
3772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773 *) ac_try_echo=$ac_try;;
3774 esac
3775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3776 $as_echo "$ac_try_echo"; } >&5
3777 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3778 ac_status=$?
3779 if test -s conftest.err; then
3780 sed '10a\
3781 ... rest of stderr output deleted ...
3782 10q' conftest.err >conftest.er1
3783 cat conftest.er1 >&5
3784 fi
3785 rm -f conftest.er1 conftest.err
3786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3787 test $ac_status = 0; }
3788 done
3789
3790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791 /* end confdefs.h. */
3792
3793 int
3794 main ()
3795 {
3796
3797 ;
3798 return 0;
3799 }
3800 _ACEOF
3801 ac_clean_files_save=$ac_clean_files
3802 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3803 # Try to create an executable without -o first, disregard a.out.
3804 # It will help us diagnose broken compilers, and finding out an intuition
3805 # of exeext.
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3807 $as_echo_n "checking whether the C compiler works... " >&6; }
3808 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3809
3810 # The possible output files:
3811 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3812
3813 ac_rmfiles=
3814 for ac_file in $ac_files
3815 do
3816 case $ac_file in
3817 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3818 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3819 esac
3820 done
3821 rm -f $ac_rmfiles
3822
3823 if { { ac_try="$ac_link_default"
3824 case "(($ac_try" in
3825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3826 *) ac_try_echo=$ac_try;;
3827 esac
3828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3829 $as_echo "$ac_try_echo"; } >&5
3830 (eval "$ac_link_default") 2>&5
3831 ac_status=$?
3832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3833 test $ac_status = 0; }; then :
3834 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3835 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3836 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3837 # so that the user can short-circuit this test for compilers unknown to
3838 # Autoconf.
3839 for ac_file in $ac_files ''
3840 do
3841 test -f "$ac_file" || continue
3842 case $ac_file in
3843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3844 ;;
3845 [ab].out )
3846 # We found the default executable, but exeext='' is most
3847 # certainly right.
3848 break;;
3849 *.* )
3850 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3851 then :; else
3852 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3853 fi
3854 # We set ac_cv_exeext here because the later test for it is not
3855 # safe: cross compilers may not add the suffix if given an `-o'
3856 # argument, so we may need to know it at that point already.
3857 # Even if this section looks crufty: it has the advantage of
3858 # actually working.
3859 break;;
3860 * )
3861 break;;
3862 esac
3863 done
3864 test "$ac_cv_exeext" = no && ac_cv_exeext=
3865
3866 else
3867 ac_file=''
3868 fi
3869 if test -z "$ac_file"; then :
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3871 $as_echo "no" >&6; }
3872 $as_echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.$ac_ext >&5
3874
3875 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3876 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3877 as_fn_error 77 "C compiler cannot create executables
3878 See \`config.log' for more details" "$LINENO" 5; }
3879 else
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3881 $as_echo "yes" >&6; }
3882 fi
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3884 $as_echo_n "checking for C compiler default output file name... " >&6; }
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3886 $as_echo "$ac_file" >&6; }
3887 ac_exeext=$ac_cv_exeext
3888
3889 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3890 ac_clean_files=$ac_clean_files_save
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3892 $as_echo_n "checking for suffix of executables... " >&6; }
3893 if { { ac_try="$ac_link"
3894 case "(($ac_try" in
3895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896 *) ac_try_echo=$ac_try;;
3897 esac
3898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3899 $as_echo "$ac_try_echo"; } >&5
3900 (eval "$ac_link") 2>&5
3901 ac_status=$?
3902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3903 test $ac_status = 0; }; then :
3904 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3905 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3906 # work properly (i.e., refer to `conftest.exe'), while it won't with
3907 # `rm'.
3908 for ac_file in conftest.exe conftest conftest.*; do
3909 test -f "$ac_file" || continue
3910 case $ac_file in
3911 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3912 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3913 break;;
3914 * ) break;;
3915 esac
3916 done
3917 else
3918 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3920 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3921 See \`config.log' for more details" "$LINENO" 5; }
3922 fi
3923 rm -f conftest conftest$ac_cv_exeext
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3925 $as_echo "$ac_cv_exeext" >&6; }
3926
3927 rm -f conftest.$ac_ext
3928 EXEEXT=$ac_cv_exeext
3929 ac_exeext=$EXEEXT
3930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3931 /* end confdefs.h. */
3932 #include <stdio.h>
3933 int
3934 main ()
3935 {
3936 FILE *f = fopen ("conftest.out", "w");
3937 return ferror (f) || fclose (f) != 0;
3938
3939 ;
3940 return 0;
3941 }
3942 _ACEOF
3943 ac_clean_files="$ac_clean_files conftest.out"
3944 # Check that the compiler produces executables we can run. If not, either
3945 # the compiler is broken, or we cross compile.
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3947 $as_echo_n "checking whether we are cross compiling... " >&6; }
3948 if test "$cross_compiling" != yes; then
3949 { { ac_try="$ac_link"
3950 case "(($ac_try" in
3951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3952 *) ac_try_echo=$ac_try;;
3953 esac
3954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3955 $as_echo "$ac_try_echo"; } >&5
3956 (eval "$ac_link") 2>&5
3957 ac_status=$?
3958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3959 test $ac_status = 0; }
3960 if { ac_try='./conftest$ac_cv_exeext'
3961 { { case "(($ac_try" in
3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963 *) ac_try_echo=$ac_try;;
3964 esac
3965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3966 $as_echo "$ac_try_echo"; } >&5
3967 (eval "$ac_try") 2>&5
3968 ac_status=$?
3969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3970 test $ac_status = 0; }; }; then
3971 cross_compiling=no
3972 else
3973 if test "$cross_compiling" = maybe; then
3974 cross_compiling=yes
3975 else
3976 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3978 as_fn_error $? "cannot run C compiled programs.
3979 If you meant to cross compile, use \`--host'.
3980 See \`config.log' for more details" "$LINENO" 5; }
3981 fi
3982 fi
3983 fi
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3985 $as_echo "$cross_compiling" >&6; }
3986
3987 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3988 ac_clean_files=$ac_clean_files_save
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3990 $as_echo_n "checking for suffix of object files... " >&6; }
3991 if ${ac_cv_objext+:} false; then :
3992 $as_echo_n "(cached) " >&6
3993 else
3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h. */
3996
3997 int
3998 main ()
3999 {
4000
4001 ;
4002 return 0;
4003 }
4004 _ACEOF
4005 rm -f conftest.o conftest.obj
4006 if { { ac_try="$ac_compile"
4007 case "(($ac_try" in
4008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4009 *) ac_try_echo=$ac_try;;
4010 esac
4011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4012 $as_echo "$ac_try_echo"; } >&5
4013 (eval "$ac_compile") 2>&5
4014 ac_status=$?
4015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4016 test $ac_status = 0; }; then :
4017 for ac_file in conftest.o conftest.obj conftest.*; do
4018 test -f "$ac_file" || continue;
4019 case $ac_file in
4020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4021 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4022 break;;
4023 esac
4024 done
4025 else
4026 $as_echo "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.$ac_ext >&5
4028
4029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4031 as_fn_error $? "cannot compute suffix of object files: cannot compile
4032 See \`config.log' for more details" "$LINENO" 5; }
4033 fi
4034 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4035 fi
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4037 $as_echo "$ac_cv_objext" >&6; }
4038 OBJEXT=$ac_cv_objext
4039 ac_objext=$OBJEXT
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4041 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4042 if ${ac_cv_c_compiler_gnu+:} false; then :
4043 $as_echo_n "(cached) " >&6
4044 else
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4047
4048 int
4049 main ()
4050 {
4051 #ifndef __GNUC__
4052 choke me
4053 #endif
4054
4055 ;
4056 return 0;
4057 }
4058 _ACEOF
4059 if ac_fn_c_try_compile "$LINENO"; then :
4060 ac_compiler_gnu=yes
4061 else
4062 ac_compiler_gnu=no
4063 fi
4064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4065 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4066
4067 fi
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4069 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4070 if test $ac_compiler_gnu = yes; then
4071 GCC=yes
4072 else
4073 GCC=
4074 fi
4075 ac_test_CFLAGS=${CFLAGS+set}
4076 ac_save_CFLAGS=$CFLAGS
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4078 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4079 if ${ac_cv_prog_cc_g+:} false; then :
4080 $as_echo_n "(cached) " >&6
4081 else
4082 ac_save_c_werror_flag=$ac_c_werror_flag
4083 ac_c_werror_flag=yes
4084 ac_cv_prog_cc_g=no
4085 CFLAGS="-g"
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4088
4089 int
4090 main ()
4091 {
4092
4093 ;
4094 return 0;
4095 }
4096 _ACEOF
4097 if ac_fn_c_try_compile "$LINENO"; then :
4098 ac_cv_prog_cc_g=yes
4099 else
4100 CFLAGS=""
4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h. */
4103
4104 int
4105 main ()
4106 {
4107
4108 ;
4109 return 0;
4110 }
4111 _ACEOF
4112 if ac_fn_c_try_compile "$LINENO"; then :
4113
4114 else
4115 ac_c_werror_flag=$ac_save_c_werror_flag
4116 CFLAGS="-g"
4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4119
4120 int
4121 main ()
4122 {
4123
4124 ;
4125 return 0;
4126 }
4127 _ACEOF
4128 if ac_fn_c_try_compile "$LINENO"; then :
4129 ac_cv_prog_cc_g=yes
4130 fi
4131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4132 fi
4133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134 fi
4135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136 ac_c_werror_flag=$ac_save_c_werror_flag
4137 fi
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4139 $as_echo "$ac_cv_prog_cc_g" >&6; }
4140 if test "$ac_test_CFLAGS" = set; then
4141 CFLAGS=$ac_save_CFLAGS
4142 elif test $ac_cv_prog_cc_g = yes; then
4143 if test "$GCC" = yes; then
4144 CFLAGS="-g -O2"
4145 else
4146 CFLAGS="-g"
4147 fi
4148 else
4149 if test "$GCC" = yes; then
4150 CFLAGS="-O2"
4151 else
4152 CFLAGS=
4153 fi
4154 fi
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4156 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4157 if ${ac_cv_prog_cc_c89+:} false; then :
4158 $as_echo_n "(cached) " >&6
4159 else
4160 ac_cv_prog_cc_c89=no
4161 ac_save_CC=$CC
4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h. */
4164 #include <stdarg.h>
4165 #include <stdio.h>
4166 struct stat;
4167 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4168 struct buf { int x; };
4169 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4170 static char *e (p, i)
4171 char **p;
4172 int i;
4173 {
4174 return p[i];
4175 }
4176 static char *f (char * (*g) (char **, int), char **p, ...)
4177 {
4178 char *s;
4179 va_list v;
4180 va_start (v,p);
4181 s = g (p, va_arg (v,int));
4182 va_end (v);
4183 return s;
4184 }
4185
4186 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4187 function prototypes and stuff, but not '\xHH' hex character constants.
4188 These don't provoke an error unfortunately, instead are silently treated
4189 as 'x'. The following induces an error, until -std is added to get
4190 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4191 array size at least. It's necessary to write '\x00'==0 to get something
4192 that's true only with -std. */
4193 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4194
4195 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4196 inside strings and character constants. */
4197 #define FOO(x) 'x'
4198 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4199
4200 int test (int i, double x);
4201 struct s1 {int (*f) (int a);};
4202 struct s2 {int (*f) (double a);};
4203 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4204 int argc;
4205 char **argv;
4206 int
4207 main ()
4208 {
4209 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4210 ;
4211 return 0;
4212 }
4213 _ACEOF
4214 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4215 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4216 do
4217 CC="$ac_save_CC $ac_arg"
4218 if ac_fn_c_try_compile "$LINENO"; then :
4219 ac_cv_prog_cc_c89=$ac_arg
4220 fi
4221 rm -f core conftest.err conftest.$ac_objext
4222 test "x$ac_cv_prog_cc_c89" != "xno" && break
4223 done
4224 rm -f conftest.$ac_ext
4225 CC=$ac_save_CC
4226
4227 fi
4228 # AC_CACHE_VAL
4229 case "x$ac_cv_prog_cc_c89" in
4230 x)
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4232 $as_echo "none needed" >&6; } ;;
4233 xno)
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4235 $as_echo "unsupported" >&6; } ;;
4236 *)
4237 CC="$CC $ac_cv_prog_cc_c89"
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4239 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4240 esac
4241 if test "x$ac_cv_prog_cc_c89" != xno; then :
4242
4243 fi
4244
4245 ac_ext=c
4246 ac_cpp='$CPP $CPPFLAGS'
4247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4250
4251 ac_ext=c
4252 ac_cpp='$CPP $CPPFLAGS'
4253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4257 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4258 if ${am_cv_prog_cc_c_o+:} false; then :
4259 $as_echo_n "(cached) " >&6
4260 else
4261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262 /* end confdefs.h. */
4263
4264 int
4265 main ()
4266 {
4267
4268 ;
4269 return 0;
4270 }
4271 _ACEOF
4272 # Make sure it works both with $CC and with simple cc.
4273 # Following AC_PROG_CC_C_O, we do the test twice because some
4274 # compilers refuse to overwrite an existing .o file with -o,
4275 # though they will create one.
4276 am_cv_prog_cc_c_o=yes
4277 for am_i in 1 2; do
4278 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4279 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4280 ac_status=$?
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); } \
4283 && test -f conftest2.$ac_objext; then
4284 : OK
4285 else
4286 am_cv_prog_cc_c_o=no
4287 break
4288 fi
4289 done
4290 rm -f core conftest*
4291 unset am_i
4292 fi
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4294 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4295 if test "$am_cv_prog_cc_c_o" != yes; then
4296 # Losing compiler, so override with the script.
4297 # FIXME: It is wrong to rewrite CC.
4298 # But if we don't then we get into trouble of one sort or another.
4299 # A longer-term fix would be to have automake use am__CC in this case,
4300 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4301 CC="$am_aux_dir/compile $CC"
4302 fi
4303 ac_ext=c
4304 ac_cpp='$CPP $CPPFLAGS'
4305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4308
4309 DEPDIR="${am__leading_dot}deps"
4310
4311 ac_config_commands="$ac_config_commands depfiles"
4312
4313
4314 am_make=${MAKE-make}
4315 cat > confinc << 'END'
4316 am__doit:
4317 @echo this is the am__doit target
4318 .PHONY: am__doit
4319 END
4320 # If we don't find an include directive, just comment out the code.
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4322 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4323 am__include="#"
4324 am__quote=
4325 _am_result=none
4326 # First try GNU make style include.
4327 echo "include confinc" > confmf
4328 # Ignore all kinds of additional output from 'make'.
4329 case `$am_make -s -f confmf 2> /dev/null` in #(
4330 *the\ am__doit\ target*)
4331 am__include=include
4332 am__quote=
4333 _am_result=GNU
4334 ;;
4335 esac
4336 # Now try BSD make style include.
4337 if test "$am__include" = "#"; then
4338 echo '.include "confinc"' > confmf
4339 case `$am_make -s -f confmf 2> /dev/null` in #(
4340 *the\ am__doit\ target*)
4341 am__include=.include
4342 am__quote="\""
4343 _am_result=BSD
4344 ;;
4345 esac
4346 fi
4347
4348
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4350 $as_echo "$_am_result" >&6; }
4351 rm -f confinc confmf
4352
4353 # Check whether --enable-dependency-tracking was given.
4354 if test "${enable_dependency_tracking+set}" = set; then :
4355 enableval=$enable_dependency_tracking;
4356 fi
4357
4358 if test "x$enable_dependency_tracking" != xno; then
4359 am_depcomp="$ac_aux_dir/depcomp"
4360 AMDEPBACKSLASH='\'
4361 am__nodep='_no'
4362 fi
4363 if test "x$enable_dependency_tracking" != xno; then
4364 AMDEP_TRUE=
4365 AMDEP_FALSE='#'
4366 else
4367 AMDEP_TRUE='#'
4368 AMDEP_FALSE=
4369 fi
4370
4371
4372
4373 depcc="$CC" am_compiler_list=
4374
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4376 $as_echo_n "checking dependency style of $depcc... " >&6; }
4377 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4378 $as_echo_n "(cached) " >&6
4379 else
4380 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4381 # We make a subdir and do the tests there. Otherwise we can end up
4382 # making bogus files that we don't know about and never remove. For
4383 # instance it was reported that on HP-UX the gcc test will end up
4384 # making a dummy file named 'D' -- because '-MD' means "put the output
4385 # in D".
4386 rm -rf conftest.dir
4387 mkdir conftest.dir
4388 # Copy depcomp to subdir because otherwise we won't find it if we're
4389 # using a relative directory.
4390 cp "$am_depcomp" conftest.dir
4391 cd conftest.dir
4392 # We will build objects and dependencies in a subdirectory because
4393 # it helps to detect inapplicable dependency modes. For instance
4394 # both Tru64's cc and ICC support -MD to output dependencies as a
4395 # side effect of compilation, but ICC will put the dependencies in
4396 # the current directory while Tru64 will put them in the object
4397 # directory.
4398 mkdir sub
4399
4400 am_cv_CC_dependencies_compiler_type=none
4401 if test "$am_compiler_list" = ""; then
4402 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4403 fi
4404 am__universal=false
4405 case " $depcc " in #(
4406 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4407 esac
4408
4409 for depmode in $am_compiler_list; do
4410 # Setup a source with many dependencies, because some compilers
4411 # like to wrap large dependency lists on column 80 (with \), and
4412 # we should not choose a depcomp mode which is confused by this.
4413 #
4414 # We need to recreate these files for each test, as the compiler may
4415 # overwrite some of them when testing with obscure command lines.
4416 # This happens at least with the AIX C compiler.
4417 : > sub/conftest.c
4418 for i in 1 2 3 4 5 6; do
4419 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4420 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4421 # Solaris 10 /bin/sh.
4422 echo '/* dummy */' > sub/conftst$i.h
4423 done
4424 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4425
4426 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4427 # mode. It turns out that the SunPro C++ compiler does not properly
4428 # handle '-M -o', and we need to detect this. Also, some Intel
4429 # versions had trouble with output in subdirs.
4430 am__obj=sub/conftest.${OBJEXT-o}
4431 am__minus_obj="-o $am__obj"
4432 case $depmode in
4433 gcc)
4434 # This depmode causes a compiler race in universal mode.
4435 test "$am__universal" = false || continue
4436 ;;
4437 nosideeffect)
4438 # After this tag, mechanisms are not by side-effect, so they'll
4439 # only be used when explicitly requested.
4440 if test "x$enable_dependency_tracking" = xyes; then
4441 continue
4442 else
4443 break
4444 fi
4445 ;;
4446 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4447 # This compiler won't grok '-c -o', but also, the minuso test has
4448 # not run yet. These depmodes are late enough in the game, and
4449 # so weak that their functioning should not be impacted.
4450 am__obj=conftest.${OBJEXT-o}
4451 am__minus_obj=
4452 ;;
4453 none) break ;;
4454 esac
4455 if depmode=$depmode \
4456 source=sub/conftest.c object=$am__obj \
4457 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4458 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4459 >/dev/null 2>conftest.err &&
4460 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4461 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4462 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4463 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4464 # icc doesn't choke on unknown options, it will just issue warnings
4465 # or remarks (even with -Werror). So we grep stderr for any message
4466 # that says an option was ignored or not supported.
4467 # When given -MP, icc 7.0 and 7.1 complain thusly:
4468 # icc: Command line warning: ignoring option '-M'; no argument required
4469 # The diagnosis changed in icc 8.0:
4470 # icc: Command line remark: option '-MP' not supported
4471 if (grep 'ignoring option' conftest.err ||
4472 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4473 am_cv_CC_dependencies_compiler_type=$depmode
4474 break
4475 fi
4476 fi
4477 done
4478
4479 cd ..
4480 rm -rf conftest.dir
4481 else
4482 am_cv_CC_dependencies_compiler_type=none
4483 fi
4484
4485 fi
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4487 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4488 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4489
4490 if
4491 test "x$enable_dependency_tracking" != xno \
4492 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4493 am__fastdepCC_TRUE=
4494 am__fastdepCC_FALSE='#'
4495 else
4496 am__fastdepCC_TRUE='#'
4497 am__fastdepCC_FALSE=
4498 fi
4499
4500
4501 ac_ext=cpp
4502 ac_cpp='$CXXCPP $CPPFLAGS'
4503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4504 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4506 if test -z "$CXX"; then
4507 if test -n "$CCC"; then
4508 CXX=$CCC
4509 else
4510 if test -n "$ac_tool_prefix"; then
4511 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4512 do
4513 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4514 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4516 $as_echo_n "checking for $ac_word... " >&6; }
4517 if ${ac_cv_prog_CXX+:} false; then :
4518 $as_echo_n "(cached) " >&6
4519 else
4520 if test -n "$CXX"; then
4521 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4522 else
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 for as_dir in $PATH
4525 do
4526 IFS=$as_save_IFS
4527 test -z "$as_dir" && as_dir=.
4528 for ac_exec_ext in '' $ac_executable_extensions; do
4529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4530 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4532 break 2
4533 fi
4534 done
4535 done
4536 IFS=$as_save_IFS
4537
4538 fi
4539 fi
4540 CXX=$ac_cv_prog_CXX
4541 if test -n "$CXX"; then
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4543 $as_echo "$CXX" >&6; }
4544 else
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4546 $as_echo "no" >&6; }
4547 fi
4548
4549
4550 test -n "$CXX" && break
4551 done
4552 fi
4553 if test -z "$CXX"; then
4554 ac_ct_CXX=$CXX
4555 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4556 do
4557 # Extract the first word of "$ac_prog", so it can be a program name with args.
4558 set dummy $ac_prog; ac_word=$2
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4560 $as_echo_n "checking for $ac_word... " >&6; }
4561 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4562 $as_echo_n "(cached) " >&6
4563 else
4564 if test -n "$ac_ct_CXX"; then
4565 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4566 else
4567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 for as_dir in $PATH
4569 do
4570 IFS=$as_save_IFS
4571 test -z "$as_dir" && as_dir=.
4572 for ac_exec_ext in '' $ac_executable_extensions; do
4573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4574 ac_cv_prog_ac_ct_CXX="$ac_prog"
4575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4576 break 2
4577 fi
4578 done
4579 done
4580 IFS=$as_save_IFS
4581
4582 fi
4583 fi
4584 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4585 if test -n "$ac_ct_CXX"; then
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4587 $as_echo "$ac_ct_CXX" >&6; }
4588 else
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4590 $as_echo "no" >&6; }
4591 fi
4592
4593
4594 test -n "$ac_ct_CXX" && break
4595 done
4596
4597 if test "x$ac_ct_CXX" = x; then
4598 CXX="g++"
4599 else
4600 case $cross_compiling:$ac_tool_warned in
4601 yes:)
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4604 ac_tool_warned=yes ;;
4605 esac
4606 CXX=$ac_ct_CXX
4607 fi
4608 fi
4609
4610 fi
4611 fi
4612 # Provide some information about the compiler.
4613 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4614 set X $ac_compile
4615 ac_compiler=$2
4616 for ac_option in --version -v -V -qversion; do
4617 { { ac_try="$ac_compiler $ac_option >&5"
4618 case "(($ac_try" in
4619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4620 *) ac_try_echo=$ac_try;;
4621 esac
4622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4623 $as_echo "$ac_try_echo"; } >&5
4624 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4625 ac_status=$?
4626 if test -s conftest.err; then
4627 sed '10a\
4628 ... rest of stderr output deleted ...
4629 10q' conftest.err >conftest.er1
4630 cat conftest.er1 >&5
4631 fi
4632 rm -f conftest.er1 conftest.err
4633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4634 test $ac_status = 0; }
4635 done
4636
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4638 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4639 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4640 $as_echo_n "(cached) " >&6
4641 else
4642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4643 /* end confdefs.h. */
4644
4645 int
4646 main ()
4647 {
4648 #ifndef __GNUC__
4649 choke me
4650 #endif
4651
4652 ;
4653 return 0;
4654 }
4655 _ACEOF
4656 if ac_fn_cxx_try_compile "$LINENO"; then :
4657 ac_compiler_gnu=yes
4658 else
4659 ac_compiler_gnu=no
4660 fi
4661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4662 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4663
4664 fi
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4666 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4667 if test $ac_compiler_gnu = yes; then
4668 GXX=yes
4669 else
4670 GXX=
4671 fi
4672 ac_test_CXXFLAGS=${CXXFLAGS+set}
4673 ac_save_CXXFLAGS=$CXXFLAGS
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4675 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4676 if ${ac_cv_prog_cxx_g+:} false; then :
4677 $as_echo_n "(cached) " >&6
4678 else
4679 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4680 ac_cxx_werror_flag=yes
4681 ac_cv_prog_cxx_g=no
4682 CXXFLAGS="-g"
4683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4684 /* end confdefs.h. */
4685
4686 int
4687 main ()
4688 {
4689
4690 ;
4691 return 0;
4692 }
4693 _ACEOF
4694 if ac_fn_cxx_try_compile "$LINENO"; then :
4695 ac_cv_prog_cxx_g=yes
4696 else
4697 CXXFLAGS=""
4698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4699 /* end confdefs.h. */
4700
4701 int
4702 main ()
4703 {
4704
4705 ;
4706 return 0;
4707 }
4708 _ACEOF
4709 if ac_fn_cxx_try_compile "$LINENO"; then :
4710
4711 else
4712 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4713 CXXFLAGS="-g"
4714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715 /* end confdefs.h. */
4716
4717 int
4718 main ()
4719 {
4720
4721 ;
4722 return 0;
4723 }
4724 _ACEOF
4725 if ac_fn_cxx_try_compile "$LINENO"; then :
4726 ac_cv_prog_cxx_g=yes
4727 fi
4728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4729 fi
4730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731 fi
4732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4733 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4734 fi
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4736 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4737 if test "$ac_test_CXXFLAGS" = set; then
4738 CXXFLAGS=$ac_save_CXXFLAGS
4739 elif test $ac_cv_prog_cxx_g = yes; then
4740 if test "$GXX" = yes; then
4741 CXXFLAGS="-g -O2"
4742 else
4743 CXXFLAGS="-g"
4744 fi
4745 else
4746 if test "$GXX" = yes; then
4747 CXXFLAGS="-O2"
4748 else
4749 CXXFLAGS=
4750 fi
4751 fi
4752 ac_ext=c
4753 ac_cpp='$CPP $CPPFLAGS'
4754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4757
4758 depcc="$CXX" am_compiler_list=
4759
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4761 $as_echo_n "checking dependency style of $depcc... " >&6; }
4762 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4763 $as_echo_n "(cached) " >&6
4764 else
4765 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4766 # We make a subdir and do the tests there. Otherwise we can end up
4767 # making bogus files that we don't know about and never remove. For
4768 # instance it was reported that on HP-UX the gcc test will end up
4769 # making a dummy file named 'D' -- because '-MD' means "put the output
4770 # in D".
4771 rm -rf conftest.dir
4772 mkdir conftest.dir
4773 # Copy depcomp to subdir because otherwise we won't find it if we're
4774 # using a relative directory.
4775 cp "$am_depcomp" conftest.dir
4776 cd conftest.dir
4777 # We will build objects and dependencies in a subdirectory because
4778 # it helps to detect inapplicable dependency modes. For instance
4779 # both Tru64's cc and ICC support -MD to output dependencies as a
4780 # side effect of compilation, but ICC will put the dependencies in
4781 # the current directory while Tru64 will put them in the object
4782 # directory.
4783 mkdir sub
4784
4785 am_cv_CXX_dependencies_compiler_type=none
4786 if test "$am_compiler_list" = ""; then
4787 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4788 fi
4789 am__universal=false
4790 case " $depcc " in #(
4791 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4792 esac
4793
4794 for depmode in $am_compiler_list; do
4795 # Setup a source with many dependencies, because some compilers
4796 # like to wrap large dependency lists on column 80 (with \), and
4797 # we should not choose a depcomp mode which is confused by this.
4798 #
4799 # We need to recreate these files for each test, as the compiler may
4800 # overwrite some of them when testing with obscure command lines.
4801 # This happens at least with the AIX C compiler.
4802 : > sub/conftest.c
4803 for i in 1 2 3 4 5 6; do
4804 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4805 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4806 # Solaris 10 /bin/sh.
4807 echo '/* dummy */' > sub/conftst$i.h
4808 done
4809 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4810
4811 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4812 # mode. It turns out that the SunPro C++ compiler does not properly
4813 # handle '-M -o', and we need to detect this. Also, some Intel
4814 # versions had trouble with output in subdirs.
4815 am__obj=sub/conftest.${OBJEXT-o}
4816 am__minus_obj="-o $am__obj"
4817 case $depmode in
4818 gcc)
4819 # This depmode causes a compiler race in universal mode.
4820 test "$am__universal" = false || continue
4821 ;;
4822 nosideeffect)
4823 # After this tag, mechanisms are not by side-effect, so they'll
4824 # only be used when explicitly requested.
4825 if test "x$enable_dependency_tracking" = xyes; then
4826 continue
4827 else
4828 break
4829 fi
4830 ;;
4831 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4832 # This compiler won't grok '-c -o', but also, the minuso test has
4833 # not run yet. These depmodes are late enough in the game, and
4834 # so weak that their functioning should not be impacted.
4835 am__obj=conftest.${OBJEXT-o}
4836 am__minus_obj=
4837 ;;
4838 none) break ;;
4839 esac
4840 if depmode=$depmode \
4841 source=sub/conftest.c object=$am__obj \
4842 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4843 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4844 >/dev/null 2>conftest.err &&
4845 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4846 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4847 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4848 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4849 # icc doesn't choke on unknown options, it will just issue warnings
4850 # or remarks (even with -Werror). So we grep stderr for any message
4851 # that says an option was ignored or not supported.
4852 # When given -MP, icc 7.0 and 7.1 complain thusly:
4853 # icc: Command line warning: ignoring option '-M'; no argument required
4854 # The diagnosis changed in icc 8.0:
4855 # icc: Command line remark: option '-MP' not supported
4856 if (grep 'ignoring option' conftest.err ||
4857 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4858 am_cv_CXX_dependencies_compiler_type=$depmode
4859 break
4860 fi
4861 fi
4862 done
4863
4864 cd ..
4865 rm -rf conftest.dir
4866 else
4867 am_cv_CXX_dependencies_compiler_type=none
4868 fi
4869
4870 fi
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4872 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4873 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4874
4875 if
4876 test "x$enable_dependency_tracking" != xno \
4877 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4878 am__fastdepCXX_TRUE=
4879 am__fastdepCXX_FALSE='#'
4880 else
4881 am__fastdepCXX_TRUE='#'
4882 am__fastdepCXX_FALSE=
4883 fi
4884
4885
4886 CFLAGS=""
4887 CXXFLAGS=""
4888
4889
4890 ac_ext=c
4891 ac_cpp='$CPP $CPPFLAGS'
4892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4896 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4897 # On Suns, sometimes $CPP names a directory.
4898 if test -n "$CPP" && test -d "$CPP"; then
4899 CPP=
4900 fi
4901 if test -z "$CPP"; then
4902 if ${ac_cv_prog_CPP+:} false; then :
4903 $as_echo_n "(cached) " >&6
4904 else
4905 # Double quotes because CPP needs to be expanded
4906 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4907 do
4908 ac_preproc_ok=false
4909 for ac_c_preproc_warn_flag in '' yes
4910 do
4911 # Use a header file that comes with gcc, so configuring glibc
4912 # with a fresh cross-compiler works.
4913 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4914 # <limits.h> exists even on freestanding compilers.
4915 # On the NeXT, cc -E runs the code through the compiler's parser,
4916 # not just through cpp. "Syntax error" is here to catch this case.
4917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4918 /* end confdefs.h. */
4919 #ifdef __STDC__
4920 # include <limits.h>
4921 #else
4922 # include <assert.h>
4923 #endif
4924 Syntax error
4925 _ACEOF
4926 if ac_fn_c_try_cpp "$LINENO"; then :
4927
4928 else
4929 # Broken: fails on valid input.
4930 continue
4931 fi
4932 rm -f conftest.err conftest.i conftest.$ac_ext
4933
4934 # OK, works on sane cases. Now check whether nonexistent headers
4935 # can be detected and how.
4936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4937 /* end confdefs.h. */
4938 #include <ac_nonexistent.h>
4939 _ACEOF
4940 if ac_fn_c_try_cpp "$LINENO"; then :
4941 # Broken: success on invalid input.
4942 continue
4943 else
4944 # Passes both tests.
4945 ac_preproc_ok=:
4946 break
4947 fi
4948 rm -f conftest.err conftest.i conftest.$ac_ext
4949
4950 done
4951 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4952 rm -f conftest.i conftest.err conftest.$ac_ext
4953 if $ac_preproc_ok; then :
4954 break
4955 fi
4956
4957 done
4958 ac_cv_prog_CPP=$CPP
4959
4960 fi
4961 CPP=$ac_cv_prog_CPP
4962 else
4963 ac_cv_prog_CPP=$CPP
4964 fi
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4966 $as_echo "$CPP" >&6; }
4967 ac_preproc_ok=false
4968 for ac_c_preproc_warn_flag in '' yes
4969 do
4970 # Use a header file that comes with gcc, so configuring glibc
4971 # with a fresh cross-compiler works.
4972 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4973 # <limits.h> exists even on freestanding compilers.
4974 # On the NeXT, cc -E runs the code through the compiler's parser,
4975 # not just through cpp. "Syntax error" is here to catch this case.
4976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4977 /* end confdefs.h. */
4978 #ifdef __STDC__
4979 # include <limits.h>
4980 #else
4981 # include <assert.h>
4982 #endif
4983 Syntax error
4984 _ACEOF
4985 if ac_fn_c_try_cpp "$LINENO"; then :
4986
4987 else
4988 # Broken: fails on valid input.
4989 continue
4990 fi
4991 rm -f conftest.err conftest.i conftest.$ac_ext
4992
4993 # OK, works on sane cases. Now check whether nonexistent headers
4994 # can be detected and how.
4995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4996 /* end confdefs.h. */
4997 #include <ac_nonexistent.h>
4998 _ACEOF
4999 if ac_fn_c_try_cpp "$LINENO"; then :
5000 # Broken: success on invalid input.
5001 continue
5002 else
5003 # Passes both tests.
5004 ac_preproc_ok=:
5005 break
5006 fi
5007 rm -f conftest.err conftest.i conftest.$ac_ext
5008
5009 done
5010 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5011 rm -f conftest.i conftest.err conftest.$ac_ext
5012 if $ac_preproc_ok; then :
5013
5014 else
5015 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5017 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5018 See \`config.log' for more details" "$LINENO" 5; }
5019 fi
5020
5021 ac_ext=c
5022 ac_cpp='$CPP $CPPFLAGS'
5023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5026
5027
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5029 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5030 if ${ac_cv_path_GREP+:} false; then :
5031 $as_echo_n "(cached) " >&6
5032 else
5033 if test -z "$GREP"; then
5034 ac_path_GREP_found=false
5035 # Loop through the user's path and test for each of PROGNAME-LIST
5036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5038 do
5039 IFS=$as_save_IFS
5040 test -z "$as_dir" && as_dir=.
5041 for ac_prog in grep ggrep; do
5042 for ac_exec_ext in '' $ac_executable_extensions; do
5043 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5044 as_fn_executable_p "$ac_path_GREP" || continue
5045 # Check for GNU ac_path_GREP and select it if it is found.
5046 # Check for GNU $ac_path_GREP
5047 case `"$ac_path_GREP" --version 2>&1` in
5048 *GNU*)
5049 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5050 *)
5051 ac_count=0
5052 $as_echo_n 0123456789 >"conftest.in"
5053 while :
5054 do
5055 cat "conftest.in" "conftest.in" >"conftest.tmp"
5056 mv "conftest.tmp" "conftest.in"
5057 cp "conftest.in" "conftest.nl"
5058 $as_echo 'GREP' >> "conftest.nl"
5059 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5060 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5061 as_fn_arith $ac_count + 1 && ac_count=$as_val
5062 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5063 # Best one so far, save it but keep looking for a better one
5064 ac_cv_path_GREP="$ac_path_GREP"
5065 ac_path_GREP_max=$ac_count
5066 fi
5067 # 10*(2^10) chars as input seems more than enough
5068 test $ac_count -gt 10 && break
5069 done
5070 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5071 esac
5072
5073 $ac_path_GREP_found && break 3
5074 done
5075 done
5076 done
5077 IFS=$as_save_IFS
5078 if test -z "$ac_cv_path_GREP"; then
5079 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5080 fi
5081 else
5082 ac_cv_path_GREP=$GREP
5083 fi
5084
5085 fi
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5087 $as_echo "$ac_cv_path_GREP" >&6; }
5088 GREP="$ac_cv_path_GREP"
5089
5090
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5092 $as_echo_n "checking for egrep... " >&6; }
5093 if ${ac_cv_path_EGREP+:} false; then :
5094 $as_echo_n "(cached) " >&6
5095 else
5096 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5097 then ac_cv_path_EGREP="$GREP -E"
5098 else
5099 if test -z "$EGREP"; then
5100 ac_path_EGREP_found=false
5101 # Loop through the user's path and test for each of PROGNAME-LIST
5102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5104 do
5105 IFS=$as_save_IFS
5106 test -z "$as_dir" && as_dir=.
5107 for ac_prog in egrep; do
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5110 as_fn_executable_p "$ac_path_EGREP" || continue
5111 # Check for GNU ac_path_EGREP and select it if it is found.
5112 # Check for GNU $ac_path_EGREP
5113 case `"$ac_path_EGREP" --version 2>&1` in
5114 *GNU*)
5115 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5116 *)
5117 ac_count=0
5118 $as_echo_n 0123456789 >"conftest.in"
5119 while :
5120 do
5121 cat "conftest.in" "conftest.in" >"conftest.tmp"
5122 mv "conftest.tmp" "conftest.in"
5123 cp "conftest.in" "conftest.nl"
5124 $as_echo 'EGREP' >> "conftest.nl"
5125 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5126 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5127 as_fn_arith $ac_count + 1 && ac_count=$as_val
5128 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5129 # Best one so far, save it but keep looking for a better one
5130 ac_cv_path_EGREP="$ac_path_EGREP"
5131 ac_path_EGREP_max=$ac_count
5132 fi
5133 # 10*(2^10) chars as input seems more than enough
5134 test $ac_count -gt 10 && break
5135 done
5136 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5137 esac
5138
5139 $ac_path_EGREP_found && break 3
5140 done
5141 done
5142 done
5143 IFS=$as_save_IFS
5144 if test -z "$ac_cv_path_EGREP"; then
5145 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5146 fi
5147 else
5148 ac_cv_path_EGREP=$EGREP
5149 fi
5150
5151 fi
5152 fi
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5154 $as_echo "$ac_cv_path_EGREP" >&6; }
5155 EGREP="$ac_cv_path_EGREP"
5156
5157
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5159 $as_echo_n "checking for ANSI C header files... " >&6; }
5160 if ${ac_cv_header_stdc+:} false; then :
5161 $as_echo_n "(cached) " >&6
5162 else
5163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5164 /* end confdefs.h. */
5165 #include <stdlib.h>
5166 #include <stdarg.h>
5167 #include <string.h>
5168 #include <float.h>
5169
5170 int
5171 main ()
5172 {
5173
5174 ;
5175 return 0;
5176 }
5177 _ACEOF
5178 if ac_fn_c_try_compile "$LINENO"; then :
5179 ac_cv_header_stdc=yes
5180 else
5181 ac_cv_header_stdc=no
5182 fi
5183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5184
5185 if test $ac_cv_header_stdc = yes; then
5186 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5188 /* end confdefs.h. */
5189 #include <string.h>
5190
5191 _ACEOF
5192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5193 $EGREP "memchr" >/dev/null 2>&1; then :
5194
5195 else
5196 ac_cv_header_stdc=no
5197 fi
5198 rm -f conftest*
5199
5200 fi
5201
5202 if test $ac_cv_header_stdc = yes; then
5203 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5205 /* end confdefs.h. */
5206 #include <stdlib.h>
5207
5208 _ACEOF
5209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5210 $EGREP "free" >/dev/null 2>&1; then :
5211
5212 else
5213 ac_cv_header_stdc=no
5214 fi
5215 rm -f conftest*
5216
5217 fi
5218
5219 if test $ac_cv_header_stdc = yes; then
5220 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5221 if test "$cross_compiling" = yes; then :
5222 :
5223 else
5224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5225 /* end confdefs.h. */
5226 #include <ctype.h>
5227 #include <stdlib.h>
5228 #if ((' ' & 0x0FF) == 0x020)
5229 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5230 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5231 #else
5232 # define ISLOWER(c) \
5233 (('a' <= (c) && (c) <= 'i') \
5234 || ('j' <= (c) && (c) <= 'r') \
5235 || ('s' <= (c) && (c) <= 'z'))
5236 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5237 #endif
5238
5239 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5240 int
5241 main ()
5242 {
5243 int i;
5244 for (i = 0; i < 256; i++)
5245 if (XOR (islower (i), ISLOWER (i))
5246 || toupper (i) != TOUPPER (i))
5247 return 2;
5248 return 0;
5249 }
5250 _ACEOF
5251 if ac_fn_c_try_run "$LINENO"; then :
5252
5253 else
5254 ac_cv_header_stdc=no
5255 fi
5256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5257 conftest.$ac_objext conftest.beam conftest.$ac_ext
5258 fi
5259
5260 fi
5261 fi
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5263 $as_echo "$ac_cv_header_stdc" >&6; }
5264 if test $ac_cv_header_stdc = yes; then
5265
5266 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5267
5268 fi
5269
5270 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5271 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5272 inttypes.h stdint.h unistd.h
5273 do :
5274 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5275 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5276 "
5277 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5278 cat >>confdefs.h <<_ACEOF
5279 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5280 _ACEOF
5281
5282 fi
5283
5284 done
5285
5286
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5288 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5289 if ${ac_cv_c_bigendian+:} false; then :
5290 $as_echo_n "(cached) " >&6
5291 else
5292 ac_cv_c_bigendian=unknown
5293 # See if we're dealing with a universal compiler.
5294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295 /* end confdefs.h. */
5296 #ifndef __APPLE_CC__
5297 not a universal capable compiler
5298 #endif
5299 typedef int dummy;
5300
5301 _ACEOF
5302 if ac_fn_c_try_compile "$LINENO"; then :
5303
5304 # Check for potential -arch flags. It is not universal unless
5305 # there are at least two -arch flags with different values.
5306 ac_arch=
5307 ac_prev=
5308 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5309 if test -n "$ac_prev"; then
5310 case $ac_word in
5311 i?86 | x86_64 | ppc | ppc64)
5312 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5313 ac_arch=$ac_word
5314 else
5315 ac_cv_c_bigendian=universal
5316 break
5317 fi
5318 ;;
5319 esac
5320 ac_prev=
5321 elif test "x$ac_word" = "x-arch"; then
5322 ac_prev=arch
5323 fi
5324 done
5325 fi
5326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5327 if test $ac_cv_c_bigendian = unknown; then
5328 # See if sys/param.h defines the BYTE_ORDER macro.
5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330 /* end confdefs.h. */
5331 #include <sys/types.h>
5332 #include <sys/param.h>
5333
5334 int
5335 main ()
5336 {
5337 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5338 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5339 && LITTLE_ENDIAN)
5340 bogus endian macros
5341 #endif
5342
5343 ;
5344 return 0;
5345 }
5346 _ACEOF
5347 if ac_fn_c_try_compile "$LINENO"; then :
5348 # It does; now see whether it defined to BIG_ENDIAN or not.
5349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5350 /* end confdefs.h. */
5351 #include <sys/types.h>
5352 #include <sys/param.h>
5353
5354 int
5355 main ()
5356 {
5357 #if BYTE_ORDER != BIG_ENDIAN
5358 not big endian
5359 #endif
5360
5361 ;
5362 return 0;
5363 }
5364 _ACEOF
5365 if ac_fn_c_try_compile "$LINENO"; then :
5366 ac_cv_c_bigendian=yes
5367 else
5368 ac_cv_c_bigendian=no
5369 fi
5370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5371 fi
5372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5373 fi
5374 if test $ac_cv_c_bigendian = unknown; then
5375 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377 /* end confdefs.h. */
5378 #include <limits.h>
5379
5380 int
5381 main ()
5382 {
5383 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5384 bogus endian macros
5385 #endif
5386
5387 ;
5388 return 0;
5389 }
5390 _ACEOF
5391 if ac_fn_c_try_compile "$LINENO"; then :
5392 # It does; now see whether it defined to _BIG_ENDIAN or not.
5393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394 /* end confdefs.h. */
5395 #include <limits.h>
5396
5397 int
5398 main ()
5399 {
5400 #ifndef _BIG_ENDIAN
5401 not big endian
5402 #endif
5403
5404 ;
5405 return 0;
5406 }
5407 _ACEOF
5408 if ac_fn_c_try_compile "$LINENO"; then :
5409 ac_cv_c_bigendian=yes
5410 else
5411 ac_cv_c_bigendian=no
5412 fi
5413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5414 fi
5415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5416 fi
5417 if test $ac_cv_c_bigendian = unknown; then
5418 # Compile a test program.
5419 if test "$cross_compiling" = yes; then :
5420 # Try to guess by grepping values from an object file.
5421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5422 /* end confdefs.h. */
5423 short int ascii_mm[] =
5424 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5425 short int ascii_ii[] =
5426 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5427 int use_ascii (int i) {
5428 return ascii_mm[i] + ascii_ii[i];
5429 }
5430 short int ebcdic_ii[] =
5431 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5432 short int ebcdic_mm[] =
5433 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5434 int use_ebcdic (int i) {
5435 return ebcdic_mm[i] + ebcdic_ii[i];
5436 }
5437 extern int foo;
5438
5439 int
5440 main ()
5441 {
5442 return use_ascii (foo) == use_ebcdic (foo);
5443 ;
5444 return 0;
5445 }
5446 _ACEOF
5447 if ac_fn_c_try_compile "$LINENO"; then :
5448 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5449 ac_cv_c_bigendian=yes
5450 fi
5451 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5452 if test "$ac_cv_c_bigendian" = unknown; then
5453 ac_cv_c_bigendian=no
5454 else
5455 # finding both strings is unlikely to happen, but who knows?
5456 ac_cv_c_bigendian=unknown
5457 fi
5458 fi
5459 fi
5460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5461 else
5462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5463 /* end confdefs.h. */
5464 $ac_includes_default
5465 int
5466 main ()
5467 {
5468
5469 /* Are we little or big endian? From Harbison&Steele. */
5470 union
5471 {
5472 long int l;
5473 char c[sizeof (long int)];
5474 } u;
5475 u.l = 1;
5476 return u.c[sizeof (long int) - 1] == 1;
5477
5478 ;
5479 return 0;
5480 }
5481 _ACEOF
5482 if ac_fn_c_try_run "$LINENO"; then :
5483 ac_cv_c_bigendian=no
5484 else
5485 ac_cv_c_bigendian=yes
5486 fi
5487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5488 conftest.$ac_objext conftest.beam conftest.$ac_ext
5489 fi
5490
5491 fi
5492 fi
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5494 $as_echo "$ac_cv_c_bigendian" >&6; }
5495 case $ac_cv_c_bigendian in #(
5496 yes)
5497 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5498 ;; #(
5499 no)
5500 ;; #(
5501 universal)
5502
5503 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5504
5505 ;; #(
5506 *)
5507 as_fn_error $? "unknown endianness
5508 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5509 esac
5510
5511
5512 # Extract the first word of "wx-config", so it can be a program name with args.
5513 set dummy wx-config; ac_word=$2
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5515 $as_echo_n "checking for $ac_word... " >&6; }
5516 if ${ac_cv_path_wxconfig+:} false; then :
5517 $as_echo_n "(cached) " >&6
5518 else
5519 case $wxconfig in
5520 [\\/]* | ?:[\\/]*)
5521 ac_cv_path_wxconfig="$wxconfig" # Let the user override the test with a path.
5522 ;;
5523 *)
5524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525 for as_dir in $PATH
5526 do
5527 IFS=$as_save_IFS
5528 test -z "$as_dir" && as_dir=.
5529 for ac_exec_ext in '' $ac_executable_extensions; do
5530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5531 ac_cv_path_wxconfig="$as_dir/$ac_word$ac_exec_ext"
5532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5533 break 2
5534 fi
5535 done
5536 done
5537 IFS=$as_save_IFS
5538
5539 ;;
5540 esac
5541 fi
5542 wxconfig=$ac_cv_path_wxconfig
5543 if test -n "$wxconfig"; then
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wxconfig" >&5
5545 $as_echo "$wxconfig" >&6; }
5546 else
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548 $as_echo "no" >&6; }
5549 fi
5550
5551
5552
5553
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5555 $as_echo_n "checking for inline... " >&6; }
5556 if ${ac_cv_c_inline+:} false; then :
5557 $as_echo_n "(cached) " >&6
5558 else
5559 ac_cv_c_inline=no
5560 for ac_kw in inline __inline__ __inline; do
5561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5562 /* end confdefs.h. */
5563 #ifndef __cplusplus
5564 typedef int foo_t;
5565 static $ac_kw foo_t static_foo () {return 0; }
5566 $ac_kw foo_t foo () {return 0; }
5567 #endif
5568
5569 _ACEOF
5570 if ac_fn_c_try_compile "$LINENO"; then :
5571 ac_cv_c_inline=$ac_kw
5572 fi
5573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5574 test "$ac_cv_c_inline" != no && break
5575 done
5576
5577 fi
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5579 $as_echo "$ac_cv_c_inline" >&6; }
5580
5581 case $ac_cv_c_inline in
5582 inline | yes) ;;
5583 *)
5584 case $ac_cv_c_inline in
5585 no) ac_val=;;
5586 *) ac_val=$ac_cv_c_inline;;
5587 esac
5588 cat >>confdefs.h <<_ACEOF
5589 #ifndef __cplusplus
5590 #define inline $ac_val
5591 #endif
5592 _ACEOF
5593 ;;
5594 esac
5595
5596 # The cast to long int works around a bug in the HP C Compiler
5597 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5598 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5599 # This bug is HP SR number 8606223364.
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5601 $as_echo_n "checking size of short... " >&6; }
5602 if ${ac_cv_sizeof_short+:} false; then :
5603 $as_echo_n "(cached) " >&6
5604 else
5605 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5606
5607 else
5608 if test "$ac_cv_type_short" = yes; then
5609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5611 as_fn_error 77 "cannot compute sizeof (short)
5612 See \`config.log' for more details" "$LINENO" 5; }
5613 else
5614 ac_cv_sizeof_short=0
5615 fi
5616 fi
5617
5618 fi
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5620 $as_echo "$ac_cv_sizeof_short" >&6; }
5621
5622
5623
5624 cat >>confdefs.h <<_ACEOF
5625 #define SIZEOF_SHORT $ac_cv_sizeof_short
5626 _ACEOF
5627
5628
5629 # The cast to long int works around a bug in the HP C Compiler
5630 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5631 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5632 # This bug is HP SR number 8606223364.
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5634 $as_echo_n "checking size of int... " >&6; }
5635 if ${ac_cv_sizeof_int+:} false; then :
5636 $as_echo_n "(cached) " >&6
5637 else
5638 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5639
5640 else
5641 if test "$ac_cv_type_int" = yes; then
5642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5644 as_fn_error 77 "cannot compute sizeof (int)
5645 See \`config.log' for more details" "$LINENO" 5; }
5646 else
5647 ac_cv_sizeof_int=0
5648 fi
5649 fi
5650
5651 fi
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5653 $as_echo "$ac_cv_sizeof_int" >&6; }
5654
5655
5656
5657 cat >>confdefs.h <<_ACEOF
5658 #define SIZEOF_INT $ac_cv_sizeof_int
5659 _ACEOF
5660
5661
5662 # The cast to long int works around a bug in the HP C Compiler
5663 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5664 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5665 # This bug is HP SR number 8606223364.
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5667 $as_echo_n "checking size of long... " >&6; }
5668 if ${ac_cv_sizeof_long+:} false; then :
5669 $as_echo_n "(cached) " >&6
5670 else
5671 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5672
5673 else
5674 if test "$ac_cv_type_long" = yes; then
5675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5677 as_fn_error 77 "cannot compute sizeof (long)
5678 See \`config.log' for more details" "$LINENO" 5; }
5679 else
5680 ac_cv_sizeof_long=0
5681 fi
5682 fi
5683
5684 fi
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5686 $as_echo "$ac_cv_sizeof_long" >&6; }
5687
5688
5689
5690 cat >>confdefs.h <<_ACEOF
5691 #define SIZEOF_LONG $ac_cv_sizeof_long
5692 _ACEOF
5693
5694
5695 # The cast to long int works around a bug in the HP C Compiler
5696 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5697 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5698 # This bug is HP SR number 8606223364.
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
5700 $as_echo_n "checking size of float... " >&6; }
5701 if ${ac_cv_sizeof_float+:} false; then :
5702 $as_echo_n "(cached) " >&6
5703 else
5704 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
5705
5706 else
5707 if test "$ac_cv_type_float" = yes; then
5708 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5710 as_fn_error 77 "cannot compute sizeof (float)
5711 See \`config.log' for more details" "$LINENO" 5; }
5712 else
5713 ac_cv_sizeof_float=0
5714 fi
5715 fi
5716
5717 fi
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
5719 $as_echo "$ac_cv_sizeof_float" >&6; }
5720
5721
5722
5723 cat >>confdefs.h <<_ACEOF
5724 #define SIZEOF_FLOAT $ac_cv_sizeof_float
5725 _ACEOF
5726
5727
5728 # The cast to long int works around a bug in the HP C Compiler
5729 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5730 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5731 # This bug is HP SR number 8606223364.
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
5733 $as_echo_n "checking size of double... " >&6; }
5734 if ${ac_cv_sizeof_double+:} false; then :
5735 $as_echo_n "(cached) " >&6
5736 else
5737 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
5738
5739 else
5740 if test "$ac_cv_type_double" = yes; then
5741 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5743 as_fn_error 77 "cannot compute sizeof (double)
5744 See \`config.log' for more details" "$LINENO" 5; }
5745 else
5746 ac_cv_sizeof_double=0
5747 fi
5748 fi
5749
5750 fi
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
5752 $as_echo "$ac_cv_sizeof_double" >&6; }
5753
5754
5755
5756 cat >>confdefs.h <<_ACEOF
5757 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
5758 _ACEOF
5759
5760
5761
5762
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
5764 $as_echo_n "checking for deflate in -lz... " >&6; }
5765 if ${ac_cv_lib_z_deflate+:} false; then :
5766 $as_echo_n "(cached) " >&6
5767 else
5768 ac_check_lib_save_LIBS=$LIBS
5769 LIBS="-lz $LIBS"
5770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5771 /* end confdefs.h. */
5772
5773 /* Override any GCC internal prototype to avoid an error.
5774 Use char because int might match the return type of a GCC
5775 builtin and then its argument prototype would still apply. */
5776 #ifdef __cplusplus
5777 extern "C"
5778 #endif
5779 char deflate ();
5780 int
5781 main ()
5782 {
5783 return deflate ();
5784 ;
5785 return 0;
5786 }
5787 _ACEOF
5788 if ac_fn_c_try_link "$LINENO"; then :
5789 ac_cv_lib_z_deflate=yes
5790 else
5791 ac_cv_lib_z_deflate=no
5792 fi
5793 rm -f core conftest.err conftest.$ac_objext \
5794 conftest$ac_exeext conftest.$ac_ext
5795 LIBS=$ac_check_lib_save_LIBS
5796 fi
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
5798 $as_echo "$ac_cv_lib_z_deflate" >&6; }
5799 if test "x$ac_cv_lib_z_deflate" = xyes; then :
5800 zlib="true"
5801 else
5802 zlib="false" ; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib missing. Will need zlib for PNG support" >&5
5803 $as_echo "$as_me: WARNING: zlib missing. Will need zlib for PNG support" >&2;}
5804 fi
5805
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
5807 $as_echo_n "checking for sin in -lm... " >&6; }
5808 if ${ac_cv_lib_m_sin+:} false; then :
5809 $as_echo_n "(cached) " >&6
5810 else
5811 ac_check_lib_save_LIBS=$LIBS
5812 LIBS="-lm $LIBS"
5813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814 /* end confdefs.h. */
5815
5816 /* Override any GCC internal prototype to avoid an error.
5817 Use char because int might match the return type of a GCC
5818 builtin and then its argument prototype would still apply. */
5819 #ifdef __cplusplus
5820 extern "C"
5821 #endif
5822 char sin ();
5823 int
5824 main ()
5825 {
5826 return sin ();
5827 ;
5828 return 0;
5829 }
5830 _ACEOF
5831 if ac_fn_c_try_link "$LINENO"; then :
5832 ac_cv_lib_m_sin=yes
5833 else
5834 ac_cv_lib_m_sin=no
5835 fi
5836 rm -f core conftest.err conftest.$ac_objext \
5837 conftest$ac_exeext conftest.$ac_ext
5838 LIBS=$ac_check_lib_save_LIBS
5839 fi
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
5841 $as_echo "$ac_cv_lib_m_sin" >&6; }
5842 if test "x$ac_cv_lib_m_sin" = xyes; then :
5843 cat >>confdefs.h <<_ACEOF
5844 #define HAVE_LIBM 1
5845 _ACEOF
5846
5847 LIBS="-lm $LIBS"
5848
5849 fi
5850
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcurses" >&5
5852 $as_echo_n "checking for main in -lcurses... " >&6; }
5853 if ${ac_cv_lib_curses_main+:} false; then :
5854 $as_echo_n "(cached) " >&6
5855 else
5856 ac_check_lib_save_LIBS=$LIBS
5857 LIBS="-lcurses $LIBS"
5858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859 /* end confdefs.h. */
5860
5861
5862 int
5863 main ()
5864 {
5865 return main ();
5866 ;
5867 return 0;
5868 }
5869 _ACEOF
5870 if ac_fn_c_try_link "$LINENO"; then :
5871 ac_cv_lib_curses_main=yes
5872 else
5873 ac_cv_lib_curses_main=no
5874 fi
5875 rm -f core conftest.err conftest.$ac_objext \
5876 conftest$ac_exeext conftest.$ac_ext
5877 LIBS=$ac_check_lib_save_LIBS
5878 fi
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_main" >&5
5880 $as_echo "$ac_cv_lib_curses_main" >&6; }
5881 if test "x$ac_cv_lib_curses_main" = xyes; then :
5882 curses=true
5883 else
5884 curses=false
5885 fi
5886
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lncurses" >&5
5888 $as_echo_n "checking for main in -lncurses... " >&6; }
5889 if ${ac_cv_lib_ncurses_main+:} false; then :
5890 $as_echo_n "(cached) " >&6
5891 else
5892 ac_check_lib_save_LIBS=$LIBS
5893 LIBS="-lncurses $LIBS"
5894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5895 /* end confdefs.h. */
5896
5897
5898 int
5899 main ()
5900 {
5901 return main ();
5902 ;
5903 return 0;
5904 }
5905 _ACEOF
5906 if ac_fn_c_try_link "$LINENO"; then :
5907 ac_cv_lib_ncurses_main=yes
5908 else
5909 ac_cv_lib_ncurses_main=no
5910 fi
5911 rm -f core conftest.err conftest.$ac_objext \
5912 conftest$ac_exeext conftest.$ac_ext
5913 LIBS=$ac_check_lib_save_LIBS
5914 fi
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_main" >&5
5916 $as_echo "$ac_cv_lib_ncurses_main" >&6; }
5917 if test "x$ac_cv_lib_ncurses_main" = xyes; then :
5918 ncurses=true
5919 else
5920 ncurses=false
5921 fi
5922
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lreadline" >&5
5924 $as_echo_n "checking for main in -lreadline... " >&6; }
5925 if ${ac_cv_lib_readline_main+:} false; then :
5926 $as_echo_n "(cached) " >&6
5927 else
5928 ac_check_lib_save_LIBS=$LIBS
5929 LIBS="-lreadline -lcurses $LIBS"
5930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931 /* end confdefs.h. */
5932
5933
5934 int
5935 main ()
5936 {
5937 return main ();
5938 ;
5939 return 0;
5940 }
5941 _ACEOF
5942 if ac_fn_c_try_link "$LINENO"; then :
5943 ac_cv_lib_readline_main=yes
5944 else
5945 ac_cv_lib_readline_main=no
5946 fi
5947 rm -f core conftest.err conftest.$ac_objext \
5948 conftest$ac_exeext conftest.$ac_ext
5949 LIBS=$ac_check_lib_save_LIBS
5950 fi
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_main" >&5
5952 $as_echo "$ac_cv_lib_readline_main" >&6; }
5953 if test "x$ac_cv_lib_readline_main" = xyes; then :
5954 readline=true;
5955
5956 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
5957
5958 else
5959 readline=false
5960 fi
5961
5962 wxwin=false
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgtk-x11-2.0" >&5
5964 $as_echo_n "checking for main in -lgtk-x11-2.0... " >&6; }
5965 if ${ac_cv_lib_gtk_x11_2_0_main+:} false; then :
5966 $as_echo_n "(cached) " >&6
5967 else
5968 ac_check_lib_save_LIBS=$LIBS
5969 LIBS="-lgtk-x11-2.0 $LIBS"
5970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971 /* end confdefs.h. */
5972
5973
5974 int
5975 main ()
5976 {
5977 return main ();
5978 ;
5979 return 0;
5980 }
5981 _ACEOF
5982 if ac_fn_c_try_link "$LINENO"; then :
5983 ac_cv_lib_gtk_x11_2_0_main=yes
5984 else
5985 ac_cv_lib_gtk_x11_2_0_main=no
5986 fi
5987 rm -f core conftest.err conftest.$ac_objext \
5988 conftest$ac_exeext conftest.$ac_ext
5989 LIBS=$ac_check_lib_save_LIBS
5990 fi
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gtk_x11_2_0_main" >&5
5992 $as_echo "$ac_cv_lib_gtk_x11_2_0_main" >&6; }
5993 if test "x$ac_cv_lib_gtk_x11_2_0_main" = xyes; then :
5994 hasx11gtk2=true
5995 fi
5996
5997 if test "x$hasx11gtk2" = "x" ; then
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: Does not have X11 GTK2" >&5
5999 $as_echo "$as_me: Does not have X11 GTK2" >&6;}
6000
6001
6002 fi
6003 if test "$hasx11gtk2" = "true" ; then
6004
6005
6006 CFLAGS="${CFLAGS} ${g76GTK_CFLAGS} ${GLIB_CFLAGS}"
6007 fi
6008
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwx_gtk2u_core-3.0" >&5
6010 $as_echo_n "checking for main in -lwx_gtk2u_core-3.0... " >&6; }
6011 if ${ac_cv_lib_wx_gtk2u_core_3_0_main+:} false; then :
6012 $as_echo_n "(cached) " >&6
6013 else
6014 ac_check_lib_save_LIBS=$LIBS
6015 LIBS="-lwx_gtk2u_core-3.0 -L/usr/lib64 -L/usr/lib ${GTK_LIBS} ${GLIB_LIBS} $LIBS"
6016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6017 /* end confdefs.h. */
6018
6019
6020 int
6021 main ()
6022 {
6023 return main ();
6024 ;
6025 return 0;
6026 }
6027 _ACEOF
6028 if ac_fn_c_try_link "$LINENO"; then :
6029 ac_cv_lib_wx_gtk2u_core_3_0_main=yes
6030 else
6031 ac_cv_lib_wx_gtk2u_core_3_0_main=no
6032 fi
6033 rm -f core conftest.err conftest.$ac_objext \
6034 conftest$ac_exeext conftest.$ac_ext
6035 LIBS=$ac_check_lib_save_LIBS
6036 fi
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wx_gtk2u_core_3_0_main" >&5
6038 $as_echo "$ac_cv_lib_wx_gtk2u_core_3_0_main" >&6; }
6039 if test "x$ac_cv_lib_wx_gtk2u_core_3_0_main" = xyes; then :
6040 wxwin=true; wx_gtk=true;
6041 $as_echo "#define HAVE_WXWINDOWS 1" >>confdefs.h
6042
6043 fi
6044
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lwx_mac_core-3.0" >&5
6046 $as_echo_n "checking for main in -lwx_mac_core-3.0... " >&6; }
6047 if ${ac_cv_lib_wx_mac_core_3_0_main+:} false; then :
6048 $as_echo_n "(cached) " >&6
6049 else
6050 ac_check_lib_save_LIBS=$LIBS
6051 LIBS="-lwx_mac_core-3.0 $LIBS"
6052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6053 /* end confdefs.h. */
6054
6055
6056 int
6057 main ()
6058 {
6059 return main ();
6060 ;
6061 return 0;
6062 }
6063 _ACEOF
6064 if ac_fn_c_try_link "$LINENO"; then :
6065 ac_cv_lib_wx_mac_core_3_0_main=yes
6066 else
6067 ac_cv_lib_wx_mac_core_3_0_main=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_wx_mac_core_3_0_main" >&5
6074 $as_echo "$ac_cv_lib_wx_mac_core_3_0_main" >&6; }
6075 if test "x$ac_cv_lib_wx_mac_core_3_0_main" = xyes; then :
6076 wxwin=true; wx_mac=true;
6077 $as_echo "#define HAVE_WXWINDOWS 1" >>confdefs.h
6078
6079 fi
6080
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_malloc in -lfftw3" >&5
6082 $as_echo_n "checking for fftw_malloc in -lfftw3... " >&6; }
6083 if ${ac_cv_lib_fftw3_fftw_malloc+:} false; then :
6084 $as_echo_n "(cached) " >&6
6085 else
6086 ac_check_lib_save_LIBS=$LIBS
6087 LIBS="-lfftw3 -L/usr/lib64 -L/usr/lib $LIBS"
6088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6089 /* end confdefs.h. */
6090
6091 /* Override any GCC internal prototype to avoid an error.
6092 Use char because int might match the return type of a GCC
6093 builtin and then its argument prototype would still apply. */
6094 #ifdef __cplusplus
6095 extern "C"
6096 #endif
6097 char fftw_malloc ();
6098 int
6099 main ()
6100 {
6101 return fftw_malloc ();
6102 ;
6103 return 0;
6104 }
6105 _ACEOF
6106 if ac_fn_c_try_link "$LINENO"; then :
6107 ac_cv_lib_fftw3_fftw_malloc=yes
6108 else
6109 ac_cv_lib_fftw3_fftw_malloc=no
6110 fi
6111 rm -f core conftest.err conftest.$ac_objext \
6112 conftest$ac_exeext conftest.$ac_ext
6113 LIBS=$ac_check_lib_save_LIBS
6114 fi
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_malloc" >&5
6116 $as_echo "$ac_cv_lib_fftw3_fftw_malloc" >&6; }
6117 if test "x$ac_cv_lib_fftw3_fftw_malloc" = xyes; then :
6118 fftw=true;
6119 $as_echo "#define HAVE_FFTW 1" >>confdefs.h
6120
6121 else
6122 fftw=false
6123 fi
6124
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lGL" >&5
6126 $as_echo_n "checking for main in -lGL... " >&6; }
6127 if ${ac_cv_lib_GL_main+:} false; then :
6128 $as_echo_n "(cached) " >&6
6129 else
6130 ac_check_lib_save_LIBS=$LIBS
6131 LIBS="-lGL -L/usr/X11R6/lib -L/usr/X11R6/lib64 $LIBS"
6132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6133 /* end confdefs.h. */
6134
6135
6136 int
6137 main ()
6138 {
6139 return main ();
6140 ;
6141 return 0;
6142 }
6143 _ACEOF
6144 if ac_fn_c_try_link "$LINENO"; then :
6145 ac_cv_lib_GL_main=yes
6146 else
6147 ac_cv_lib_GL_main=no
6148 fi
6149 rm -f core conftest.err conftest.$ac_objext \
6150 conftest$ac_exeext conftest.$ac_ext
6151 LIBS=$ac_check_lib_save_LIBS
6152 fi
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_main" >&5
6154 $as_echo "$ac_cv_lib_GL_main" >&6; }
6155 if test "x$ac_cv_lib_GL_main" = xyes; then :
6156 libgl=true
6157 else
6158 libgl=false
6159 fi
6160
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
6162 $as_echo_n "checking for main in -lpthread... " >&6; }
6163 if ${ac_cv_lib_pthread_main+:} false; then :
6164 $as_echo_n "(cached) " >&6
6165 else
6166 ac_check_lib_save_LIBS=$LIBS
6167 LIBS="-lpthread $LIBS"
6168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6169 /* end confdefs.h. */
6170
6171
6172 int
6173 main ()
6174 {
6175 return main ();
6176 ;
6177 return 0;
6178 }
6179 _ACEOF
6180 if ac_fn_c_try_link "$LINENO"; then :
6181 ac_cv_lib_pthread_main=yes
6182 else
6183 ac_cv_lib_pthread_main=no
6184 fi
6185 rm -f core conftest.err conftest.$ac_objext \
6186 conftest$ac_exeext conftest.$ac_ext
6187 LIBS=$ac_check_lib_save_LIBS
6188 fi
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
6190 $as_echo "$ac_cv_lib_pthread_main" >&6; }
6191 if test "x$ac_cv_lib_pthread_main" = xyes; then :
6192 pthread=true
6193 else
6194 pthread=false
6195 fi
6196
6197
6198 if test "$zlib" = "true" ; then
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpng" >&5
6200 $as_echo_n "checking for main in -lpng... " >&6; }
6201 if ${ac_cv_lib_png_main+:} false; then :
6202 $as_echo_n "(cached) " >&6
6203 else
6204 ac_check_lib_save_LIBS=$LIBS
6205 LIBS="-lpng -L/opt/local/lib -lz -lm $LIBS"
6206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6207 /* end confdefs.h. */
6208
6209
6210 int
6211 main ()
6212 {
6213 return main ();
6214 ;
6215 return 0;
6216 }
6217 _ACEOF
6218 if ac_fn_c_try_link "$LINENO"; then :
6219 ac_cv_lib_png_main=yes
6220 else
6221 ac_cv_lib_png_main=no
6222 fi
6223 rm -f core conftest.err conftest.$ac_objext \
6224 conftest$ac_exeext conftest.$ac_ext
6225 LIBS=$ac_check_lib_save_LIBS
6226 fi
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_main" >&5
6228 $as_echo "$ac_cv_lib_png_main" >&6; }
6229 if test "x$ac_cv_lib_png_main" = xyes; then :
6230 png=true ;
6231 $as_echo "#define HAVE_PNG 1" >>confdefs.h
6232
6233 else
6234 png=false
6235 fi
6236
6237 fi
6238
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6240 $as_echo_n "checking for ANSI C header files... " >&6; }
6241 if ${ac_cv_header_stdc+:} false; then :
6242 $as_echo_n "(cached) " >&6
6243 else
6244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6245 /* end confdefs.h. */
6246 #include <stdlib.h>
6247 #include <stdarg.h>
6248 #include <string.h>
6249 #include <float.h>
6250
6251 int
6252 main ()
6253 {
6254
6255 ;
6256 return 0;
6257 }
6258 _ACEOF
6259 if ac_fn_c_try_compile "$LINENO"; then :
6260 ac_cv_header_stdc=yes
6261 else
6262 ac_cv_header_stdc=no
6263 fi
6264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6265
6266 if test $ac_cv_header_stdc = yes; then
6267 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6269 /* end confdefs.h. */
6270 #include <string.h>
6271
6272 _ACEOF
6273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6274 $EGREP "memchr" >/dev/null 2>&1; then :
6275
6276 else
6277 ac_cv_header_stdc=no
6278 fi
6279 rm -f conftest*
6280
6281 fi
6282
6283 if test $ac_cv_header_stdc = yes; then
6284 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6286 /* end confdefs.h. */
6287 #include <stdlib.h>
6288
6289 _ACEOF
6290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6291 $EGREP "free" >/dev/null 2>&1; then :
6292
6293 else
6294 ac_cv_header_stdc=no
6295 fi
6296 rm -f conftest*
6297
6298 fi
6299
6300 if test $ac_cv_header_stdc = yes; then
6301 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6302 if test "$cross_compiling" = yes; then :
6303 :
6304 else
6305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6306 /* end confdefs.h. */
6307 #include <ctype.h>
6308 #include <stdlib.h>
6309 #if ((' ' & 0x0FF) == 0x020)
6310 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6311 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6312 #else
6313 # define ISLOWER(c) \
6314 (('a' <= (c) && (c) <= 'i') \
6315 || ('j' <= (c) && (c) <= 'r') \
6316 || ('s' <= (c) && (c) <= 'z'))
6317 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6318 #endif
6319
6320 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6321 int
6322 main ()
6323 {
6324 int i;
6325 for (i = 0; i < 256; i++)
6326 if (XOR (islower (i), ISLOWER (i))
6327 || toupper (i) != TOUPPER (i))
6328 return 2;
6329 return 0;
6330 }
6331 _ACEOF
6332 if ac_fn_c_try_run "$LINENO"; then :
6333
6334 else
6335 ac_cv_header_stdc=no
6336 fi
6337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6338 conftest.$ac_objext conftest.beam conftest.$ac_ext
6339 fi
6340
6341 fi
6342 fi
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6344 $as_echo "$ac_cv_header_stdc" >&6; }
6345 if test $ac_cv_header_stdc = yes; then
6346
6347 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6348
6349 fi
6350
6351 for ac_header in fcntl.h unistd.h getopt.h sys/fcntl.h setjmp.h stdarg.h stddef.h sys/types.h sys/stat.h string.h ctype.h math.h stdio.h netinet/in.h inttypes.h sys/param.h stdint.h stdlib.h assert.h sys/time.h sys/resource.h sys/time.h readline.h readline/readline.h
6352 do :
6353 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6354 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6355 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6356 cat >>confdefs.h <<_ACEOF
6357 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6358 _ACEOF
6359
6360 fi
6361
6362 done
6363
6364
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6366 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6367 if ${ac_cv_c_const+:} false; then :
6368 $as_echo_n "(cached) " >&6
6369 else
6370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6371 /* end confdefs.h. */
6372
6373 int
6374 main ()
6375 {
6376
6377 #ifndef __cplusplus
6378 /* Ultrix mips cc rejects this sort of thing. */
6379 typedef int charset[2];
6380 const charset cs = { 0, 0 };
6381 /* SunOS 4.1.1 cc rejects this. */
6382 char const *const *pcpcc;
6383 char **ppc;
6384 /* NEC SVR4.0.2 mips cc rejects this. */
6385 struct point {int x, y;};
6386 static struct point const zero = {0,0};
6387 /* AIX XL C 1.02.0.0 rejects this.
6388 It does not let you subtract one const X* pointer from another in
6389 an arm of an if-expression whose if-part is not a constant
6390 expression */
6391 const char *g = "string";
6392 pcpcc = &g + (g ? g-g : 0);
6393 /* HPUX 7.0 cc rejects these. */
6394 ++pcpcc;
6395 ppc = (char**) pcpcc;
6396 pcpcc = (char const *const *) ppc;
6397 { /* SCO 3.2v4 cc rejects this sort of thing. */
6398 char tx;
6399 char *t = &tx;
6400 char const *s = 0 ? (char *) 0 : (char const *) 0;
6401
6402 *t++ = 0;
6403 if (s) return 0;
6404 }
6405 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6406 int x[] = {25, 17};
6407 const int *foo = &x[0];
6408 ++foo;
6409 }
6410 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6411 typedef const int *iptr;
6412 iptr p = 0;
6413 ++p;
6414 }
6415 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6416 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6417 struct s { int j; const int *ap[3]; } bx;
6418 struct s *b = &bx; b->j = 5;
6419 }
6420 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6421 const int foo = 10;
6422 if (!foo) return 0;
6423 }
6424 return !cs[0] && !zero.x;
6425 #endif
6426
6427 ;
6428 return 0;
6429 }
6430 _ACEOF
6431 if ac_fn_c_try_compile "$LINENO"; then :
6432 ac_cv_c_const=yes
6433 else
6434 ac_cv_c_const=no
6435 fi
6436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6437 fi
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6439 $as_echo "$ac_cv_c_const" >&6; }
6440 if test $ac_cv_c_const = no; then
6441
6442 $as_echo "#define const /**/" >>confdefs.h
6443
6444 fi
6445
6446 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6447 if test "x$ac_cv_type_off_t" = xyes; then :
6448
6449 else
6450
6451 cat >>confdefs.h <<_ACEOF
6452 #define off_t long int
6453 _ACEOF
6454
6455 fi
6456
6457 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6458 if test "x$ac_cv_type_size_t" = xyes; then :
6459
6460 else
6461
6462 cat >>confdefs.h <<_ACEOF
6463 #define size_t unsigned int
6464 _ACEOF
6465
6466 fi
6467
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6469 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6470 if ${ac_cv_struct_tm+:} false; then :
6471 $as_echo_n "(cached) " >&6
6472 else
6473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6474 /* end confdefs.h. */
6475 #include <sys/types.h>
6476 #include <time.h>
6477
6478 int
6479 main ()
6480 {
6481 struct tm tm;
6482 int *p = &tm.tm_sec;
6483 return !p;
6484 ;
6485 return 0;
6486 }
6487 _ACEOF
6488 if ac_fn_c_try_compile "$LINENO"; then :
6489 ac_cv_struct_tm=time.h
6490 else
6491 ac_cv_struct_tm=sys/time.h
6492 fi
6493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6494 fi
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6496 $as_echo "$ac_cv_struct_tm" >&6; }
6497 if test $ac_cv_struct_tm = sys/time.h; then
6498
6499 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6500
6501 fi
6502
6503
6504 for ac_func in vprintf
6505 do :
6506 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
6507 if test "x$ac_cv_func_vprintf" = xyes; then :
6508 cat >>confdefs.h <<_ACEOF
6509 #define HAVE_VPRINTF 1
6510 _ACEOF
6511
6512 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6513 if test "x$ac_cv_func__doprnt" = xyes; then :
6514
6515 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
6516
6517 fi
6518
6519 fi
6520 done
6521
6522
6523 for ac_func in strtod strtol snprintf htonl usleep vsprintf vsnprintf basename setjmp setpriority time gettimeofday getenv
6524 do :
6525 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6526 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6527 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6528 cat >>confdefs.h <<_ACEOF
6529 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6530 _ACEOF
6531
6532 fi
6533 done
6534
6535 ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
6536 if test "x$ac_cv_func_basename" = xyes; then :
6537
6538 fi
6539
6540 ac_fn_c_check_func "$LINENO" "setjmp" "ac_cv_func_setjmp"
6541 if test "x$ac_cv_func_setjmp" = xyes; then :
6542
6543 fi
6544
6545 ac_fn_c_check_func "$LINENO" "setpriority" "ac_cv_func_setpriority"
6546 if test "x$ac_cv_func_setpriority" = xyes; then :
6547
6548 fi
6549
6550 ac_fn_c_check_func "$LINENO" "time" "ac_cv_func_time"
6551 if test "x$ac_cv_func_time" = xyes; then :
6552
6553 fi
6554
6555 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
6556 if test "x$ac_cv_func_gettimeofday" = xyes; then :
6557
6558 fi
6559
6560 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
6561 if test "x$ac_cv_func_getopt" = xyes; then :
6562 getopt=true
6563 else
6564 getopt=false
6565 fi
6566
6567
6568 if test "${OSTYPE}" = "cygwin" ; then
6569 getopt_long=false
6570 else
6571 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
6572 if test "x$ac_cv_func_getopt_long" = xyes; then :
6573 getopt_long=true
6574 else
6575 getopt_long=false
6576 fi
6577
6578 fi
6579
6580 if test "${getopt_long}" = "false" ; then
6581 my_includes="$my_includes -I../getopt"
6582
6583 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
6584
6585 ctlibs_base="$ctlibs_base -lgetopt"
6586 LDFLAGS="$LDFLAGS -L../getopt"
6587 GETOPTLONG=1
6588 fi
6589 if test "$GETOPTLONG"="1"; then
6590 INCLUDED_GETOPT_LONG_TRUE=
6591 INCLUDED_GETOPT_LONG_FALSE='#'
6592 else
6593 INCLUDED_GETOPT_LONG_TRUE='#'
6594 INCLUDED_GETOPT_LONG_FALSE=
6595 fi
6596
6597
6598 ARCH_OPTION=""
6599 case $target_cpu in
6600 i386|i486|i586|i686|x86|x86_64)
6601
6602 ac_ext=c
6603 ac_cpp='$CPP $CPPFLAGS'
6604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6607
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid output" >&5
6609 $as_echo_n "checking for x86 cpuid output... " >&6; }
6610 if ${ax_cv_gcc_x86_cpuid_+:} false; then :
6611 $as_echo_n "(cached) " >&6
6612 else
6613 if test "$cross_compiling" = yes; then :
6614 ax_cv_gcc_x86_cpuid_=unknown
6615 else
6616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6617 /* end confdefs.h. */
6618 #include <stdio.h>
6619 int
6620 main ()
6621 {
6622
6623 int op = , level = 0, eax, ebx, ecx, edx;
6624 FILE *f;
6625 __asm__ __volatile__ ("xchg %%ebx, %1\n"
6626 "cpuid\n"
6627 "xchg %%ebx, %1\n"
6628 : "=a" (eax), "=r" (ebx), "=c" (ecx), "=d" (edx)
6629 : "a" (op), "2" (level));
6630
6631 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
6632 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
6633 fclose(f);
6634 return 0;
6635
6636 ;
6637 return 0;
6638 }
6639 _ACEOF
6640 if ac_fn_c_try_run "$LINENO"; then :
6641 ax_cv_gcc_x86_cpuid_=`cat conftest_cpuid`; rm -f conftest_cpuid
6642 else
6643 ax_cv_gcc_x86_cpuid_=unknown; rm -f conftest_cpuid
6644 fi
6645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6646 conftest.$ac_objext conftest.beam conftest.$ac_ext
6647 fi
6648
6649 fi
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_" >&5
6651 $as_echo "$ax_cv_gcc_x86_cpuid_" >&6; }
6652 ac_ext=c
6653 ac_cpp='$CPP $CPPFLAGS'
6654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6657
6658
6659
6660
6661 ac_ext=c
6662 ac_cpp='$CPP $CPPFLAGS'
6663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6666
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86-AVX xgetbv output" >&5
6668 $as_echo_n "checking for x86-AVX xgetbv output... " >&6; }
6669 if ${ax_cv_gcc_x86_avx_xgetbv_+:} false; then :
6670 $as_echo_n "(cached) " >&6
6671 else
6672 if test "$cross_compiling" = yes; then :
6673 ax_cv_gcc_x86_avx_xgetbv_=unknown
6674 else
6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6676 /* end confdefs.h. */
6677 #include <stdio.h>
6678 int
6679 main ()
6680 {
6681
6682 int op = , eax, edx;
6683 FILE *f;
6684 /* Opcodes for xgetbv */
6685 __asm__ __volatile__ (".byte 0x0f, 0x01, 0xd0"
6686 : "=a" (eax), "=d" (edx)
6687 : "c" (op));
6688 f = fopen("conftest_xgetbv", "w"); if (!f) return 1;
6689 fprintf(f, "%x:%x\n", eax, edx);
6690 fclose(f);
6691 return 0;
6692
6693 ;
6694 return 0;
6695 }
6696 _ACEOF
6697 if ac_fn_c_try_run "$LINENO"; then :
6698 ax_cv_gcc_x86_avx_xgetbv_=`cat conftest_xgetbv`; rm -f conftest_xgetbv
6699 else
6700 ax_cv_gcc_x86_avx_xgetbv_=unknown; rm -f conftest_xgetbv
6701 fi
6702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6703 conftest.$ac_objext conftest.beam conftest.$ac_ext
6704 fi
6705
6706 fi
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_avx_xgetbv_" >&5
6708 $as_echo "$ax_cv_gcc_x86_avx_xgetbv_" >&6; }
6709 ac_ext=c
6710 ac_cpp='$CPP $CPPFLAGS'
6711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6714
6715
6716
6717
6718
6719
6720 CPUEXT_FLAGS=""
6721 SIMD_FLAGS=""
6722
6723 case $host_cpu in
6724 powerpc*)
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether altivec is supported for old distros" >&5
6726 $as_echo_n "checking whether altivec is supported for old distros... " >&6; }
6727 if ${ax_cv_have_altivec_old_ext+:} false; then :
6728 $as_echo_n "(cached) " >&6
6729 else
6730
6731 if test `/usr/sbin/sysctl -a 2>/dev/null| grep -c hw.optional.altivec` != 0; then
6732 if test `/usr/sbin/sysctl -n hw.optional.altivec` = 1; then
6733 ax_cv_have_altivec_old_ext=yes
6734 fi
6735 fi
6736
6737 fi
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_altivec_old_ext" >&5
6739 $as_echo "$ax_cv_have_altivec_old_ext" >&6; }
6740
6741 if test "$ax_cv_have_altivec_old_ext" = yes; then
6742
6743 $as_echo "#define HAVE_ALTIVEC /**/" >>confdefs.h
6744
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -faltivec" >&5
6746 $as_echo_n "checking whether C compiler accepts -faltivec... " >&6; }
6747 if ${ax_cv_check_cflags___faltivec+:} false; then :
6748 $as_echo_n "(cached) " >&6
6749 else
6750
6751 ax_check_save_flags=$CFLAGS
6752 CFLAGS="$CFLAGS -faltivec"
6753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754 /* end confdefs.h. */
6755
6756 int
6757 main ()
6758 {
6759
6760 ;
6761 return 0;
6762 }
6763 _ACEOF
6764 if ac_fn_c_try_compile "$LINENO"; then :
6765 ax_cv_check_cflags___faltivec=yes
6766 else
6767 ax_cv_check_cflags___faltivec=no
6768 fi
6769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6770 CFLAGS=$ax_check_save_flags
6771 fi
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___faltivec" >&5
6773 $as_echo "$ax_cv_check_cflags___faltivec" >&6; }
6774 if test "x$ax_cv_check_cflags___faltivec" = xyes; then :
6775 SIMD_FLAGS="$SIMD_FLAGS -faltivec"
6776 else
6777 :
6778 fi
6779
6780 fi
6781
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether altivec is supported" >&5
6783 $as_echo_n "checking whether altivec is supported... " >&6; }
6784 if ${ax_cv_have_altivec_ext+:} false; then :
6785 $as_echo_n "(cached) " >&6
6786 else
6787
6788 if test `LD_SHOW_AUXV=1 /bin/true 2>/dev/null|grep -c altivec` != 0; then
6789 ax_cv_have_altivec_ext=yes
6790 fi
6791
6792 fi
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_altivec_ext" >&5
6794 $as_echo "$ax_cv_have_altivec_ext" >&6; }
6795
6796 if test "$ax_cv_have_altivec_ext" = yes; then
6797
6798 $as_echo "#define HAVE_ALTIVEC /**/" >>confdefs.h
6799
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -maltivec" >&5
6801 $as_echo_n "checking whether C compiler accepts -maltivec... " >&6; }
6802 if ${ax_cv_check_cflags___maltivec+:} false; then :
6803 $as_echo_n "(cached) " >&6
6804 else
6805
6806 ax_check_save_flags=$CFLAGS
6807 CFLAGS="$CFLAGS -maltivec"
6808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6809 /* end confdefs.h. */
6810
6811 int
6812 main ()
6813 {
6814
6815 ;
6816 return 0;
6817 }
6818 _ACEOF
6819 if ac_fn_c_try_compile "$LINENO"; then :
6820 ax_cv_check_cflags___maltivec=yes
6821 else
6822 ax_cv_check_cflags___maltivec=no
6823 fi
6824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6825 CFLAGS=$ax_check_save_flags
6826 fi
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___maltivec" >&5
6828 $as_echo "$ax_cv_check_cflags___maltivec" >&6; }
6829 if test "x$ax_cv_check_cflags___maltivec" = xyes; then :
6830 SIMD_FLAGS="$SIMD_FLAGS -maltivec"
6831 else
6832 :
6833 fi
6834
6835 fi
6836
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsx is supported" >&5
6838 $as_echo_n "checking whether vsx is supported... " >&6; }
6839 if ${ax_cv_have_vsx_ext+:} false; then :
6840 $as_echo_n "(cached) " >&6
6841 else
6842
6843 if test `LD_SHOW_AUXV=1 /bin/true 2>/dev/null|grep -c vsx` != 0; then
6844 ax_cv_have_vsx_ext=yes
6845 fi
6846
6847 fi
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_vsx_ext" >&5
6849 $as_echo "$ax_cv_have_vsx_ext" >&6; }
6850
6851 if test "$ax_cv_have_vsx_ext" = yes; then
6852
6853 $as_echo "#define HAVE_VSX /**/" >>confdefs.h
6854
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mvsx" >&5
6856 $as_echo_n "checking whether C compiler accepts -mvsx... " >&6; }
6857 if ${ax_cv_check_cflags___mvsx+:} false; then :
6858 $as_echo_n "(cached) " >&6
6859 else
6860
6861 ax_check_save_flags=$CFLAGS
6862 CFLAGS="$CFLAGS -mvsx"
6863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6864 /* end confdefs.h. */
6865
6866 int
6867 main ()
6868 {
6869
6870 ;
6871 return 0;
6872 }
6873 _ACEOF
6874 if ac_fn_c_try_compile "$LINENO"; then :
6875 ax_cv_check_cflags___mvsx=yes
6876 else
6877 ax_cv_check_cflags___mvsx=no
6878 fi
6879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6880 CFLAGS=$ax_check_save_flags
6881 fi
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mvsx" >&5
6883 $as_echo "$ax_cv_check_cflags___mvsx" >&6; }
6884 if test "x$ax_cv_check_cflags___mvsx" = xyes; then :
6885 SIMD_FLAGS="$SIMD_FLAGS -mvsx"
6886 else
6887 :
6888 fi
6889
6890 fi
6891 ;;
6892
6893 i[3456]86*|x86_64*|amd64*)
6894
6895
6896
6897
6898
6899 eax_cpuid0=0
6900
6901 ac_ext=c
6902 ac_cpp='$CPP $CPPFLAGS'
6903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6906
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x00000000 output" >&5
6908 $as_echo_n "checking for x86 cpuid 0x00000000 output... " >&6; }
6909 if ${ax_cv_gcc_x86_cpuid_0x00000000+:} false; then :
6910 $as_echo_n "(cached) " >&6
6911 else
6912 if test "$cross_compiling" = yes; then :
6913 ax_cv_gcc_x86_cpuid_0x00000000=unknown
6914 else
6915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6916 /* end confdefs.h. */
6917 #include <stdio.h>
6918 int
6919 main ()
6920 {
6921
6922 int op = 0x00000000, level = 0, eax, ebx, ecx, edx;
6923 FILE *f;
6924 __asm__ __volatile__ ("xchg %%ebx, %1\n"
6925 "cpuid\n"
6926 "xchg %%ebx, %1\n"
6927 : "=a" (eax), "=r" (ebx), "=c" (ecx), "=d" (edx)
6928 : "a" (op), "2" (level));
6929
6930 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
6931 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
6932 fclose(f);
6933 return 0;
6934
6935 ;
6936 return 0;
6937 }
6938 _ACEOF
6939 if ac_fn_c_try_run "$LINENO"; then :
6940 ax_cv_gcc_x86_cpuid_0x00000000=`cat conftest_cpuid`; rm -f conftest_cpuid
6941 else
6942 ax_cv_gcc_x86_cpuid_0x00000000=unknown; rm -f conftest_cpuid
6943 fi
6944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6945 conftest.$ac_objext conftest.beam conftest.$ac_ext
6946 fi
6947
6948 fi
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x00000000" >&5
6950 $as_echo "$ax_cv_gcc_x86_cpuid_0x00000000" >&6; }
6951 ac_ext=c
6952 ac_cpp='$CPP $CPPFLAGS'
6953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6956
6957
6958
6959 if test "$ax_cv_gcc_x86_cpuid_0x00000000" != "unknown";
6960 then
6961 eax_cpuid0=`echo $ax_cv_gcc_x86_cpuid_0x00000000 | cut -d ":" -f 1`
6962 fi
6963
6964 eax_cpuid80000000=0
6965
6966 ac_ext=c
6967 ac_cpp='$CPP $CPPFLAGS'
6968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6971
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000000 output" >&5
6973 $as_echo_n "checking for x86 cpuid 0x80000000 output... " >&6; }
6974 if ${ax_cv_gcc_x86_cpuid_0x80000000+:} false; then :
6975 $as_echo_n "(cached) " >&6
6976 else
6977 if test "$cross_compiling" = yes; then :
6978 ax_cv_gcc_x86_cpuid_0x80000000=unknown
6979 else
6980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6981 /* end confdefs.h. */
6982 #include <stdio.h>
6983 int
6984 main ()
6985 {
6986
6987 int op = 0x80000000, level = 0, eax, ebx, ecx, edx;
6988 FILE *f;
6989 __asm__ __volatile__ ("xchg %%ebx, %1\n"
6990 "cpuid\n"
6991 "xchg %%ebx, %1\n"
6992 : "=a" (eax), "=r" (ebx), "=c" (ecx), "=d" (edx)
6993 : "a" (op), "2" (level));
6994
6995 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
6996 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
6997 fclose(f);
6998 return 0;
6999
7000 ;
7001 return 0;
7002 }
7003 _ACEOF
7004 if ac_fn_c_try_run "$LINENO"; then :
7005 ax_cv_gcc_x86_cpuid_0x80000000=`cat conftest_cpuid`; rm -f conftest_cpuid
7006 else
7007 ax_cv_gcc_x86_cpuid_0x80000000=unknown; rm -f conftest_cpuid
7008 fi
7009 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7010 conftest.$ac_objext conftest.beam conftest.$ac_ext
7011 fi
7012
7013 fi
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000000" >&5
7015 $as_echo "$ax_cv_gcc_x86_cpuid_0x80000000" >&6; }
7016 ac_ext=c
7017 ac_cpp='$CPP $CPPFLAGS'
7018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7021
7022
7023
7024 if test "$ax_cv_gcc_x86_cpuid_0x80000000" != "unknown";
7025 then
7026 eax_cpuid80000000=`echo $ax_cv_gcc_x86_cpuid_0x80000000 | cut -d ":" -f 1`
7027 fi
7028
7029 ecx_cpuid1=0
7030 edx_cpuid1=0
7031 if test "$((0x$eax_cpuid0))" -ge 1 ; then
7032
7033 ac_ext=c
7034 ac_cpp='$CPP $CPPFLAGS'
7035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7038
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x00000001 output" >&5
7040 $as_echo_n "checking for x86 cpuid 0x00000001 output... " >&6; }
7041 if ${ax_cv_gcc_x86_cpuid_0x00000001+:} false; then :
7042 $as_echo_n "(cached) " >&6
7043 else
7044 if test "$cross_compiling" = yes; then :
7045 ax_cv_gcc_x86_cpuid_0x00000001=unknown
7046 else
7047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7048 /* end confdefs.h. */
7049 #include <stdio.h>
7050 int
7051 main ()
7052 {
7053
7054 int op = 0x00000001, level = 0, eax, ebx, ecx, edx;
7055 FILE *f;
7056 __asm__ __volatile__ ("xchg %%ebx, %1\n"
7057 "cpuid\n"
7058 "xchg %%ebx, %1\n"
7059 : "=a" (eax), "=r" (ebx), "=c" (ecx), "=d" (edx)
7060 : "a" (op), "2" (level));
7061
7062 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
7063 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
7064 fclose(f);
7065 return 0;
7066
7067 ;
7068 return 0;
7069 }
7070 _ACEOF
7071 if ac_fn_c_try_run "$LINENO"; then :
7072 ax_cv_gcc_x86_cpuid_0x00000001=`cat conftest_cpuid`; rm -f conftest_cpuid
7073 else
7074 ax_cv_gcc_x86_cpuid_0x00000001=unknown; rm -f conftest_cpuid
7075 fi
7076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7077 conftest.$ac_objext conftest.beam conftest.$ac_ext
7078 fi
7079
7080 fi
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x00000001" >&5
7082 $as_echo "$ax_cv_gcc_x86_cpuid_0x00000001" >&6; }
7083 ac_ext=c
7084 ac_cpp='$CPP $CPPFLAGS'
7085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7088
7089
7090
7091 if test "$ax_cv_gcc_x86_cpuid_0x00000001" != "unknown";
7092 then
7093 ecx_cpuid1=`echo $ax_cv_gcc_x86_cpuid_0x00000001 | cut -d ":" -f 3`
7094 edx_cpuid1=`echo $ax_cv_gcc_x86_cpuid_0x00000001 | cut -d ":" -f 4`
7095 fi
7096 fi
7097
7098 ebx_cpuid7=0
7099 ecx_cpuid7=0
7100 if test "$((0x$eax_cpuid0))" -ge 7 ; then
7101
7102 ac_ext=c
7103 ac_cpp='$CPP $CPPFLAGS'
7104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7107
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x00000007 output" >&5
7109 $as_echo_n "checking for x86 cpuid 0x00000007 output... " >&6; }
7110 if ${ax_cv_gcc_x86_cpuid_0x00000007+:} false; then :
7111 $as_echo_n "(cached) " >&6
7112 else
7113 if test "$cross_compiling" = yes; then :
7114 ax_cv_gcc_x86_cpuid_0x00000007=unknown
7115 else
7116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7117 /* end confdefs.h. */
7118 #include <stdio.h>
7119 int
7120 main ()
7121 {
7122
7123 int op = 0x00000007, level = 0x00, eax, ebx, ecx, edx;
7124 FILE *f;
7125 __asm__ __volatile__ ("xchg %%ebx, %1\n"
7126 "cpuid\n"
7127 "xchg %%ebx, %1\n"
7128 : "=a" (eax), "=r" (ebx), "=c" (ecx), "=d" (edx)
7129 : "a" (op), "2" (level));
7130
7131 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
7132 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
7133 fclose(f);
7134 return 0;
7135
7136 ;
7137 return 0;
7138 }
7139 _ACEOF
7140 if ac_fn_c_try_run "$LINENO"; then :
7141 ax_cv_gcc_x86_cpuid_0x00000007=`cat conftest_cpuid`; rm -f conftest_cpuid
7142 else
7143 ax_cv_gcc_x86_cpuid_0x00000007=unknown; rm -f conftest_cpuid
7144 fi
7145 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7146 conftest.$ac_objext conftest.beam conftest.$ac_ext
7147 fi
7148
7149 fi
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x00000007" >&5
7151 $as_echo "$ax_cv_gcc_x86_cpuid_0x00000007" >&6; }
7152 ac_ext=c
7153 ac_cpp='$CPP $CPPFLAGS'
7154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7157
7158
7159 if test "$ax_cv_gcc_x86_cpuid_0x00000007" != "unknown";
7160 then
7161 ebx_cpuid7=`echo $ax_cv_gcc_x86_cpuid_0x00000007 | cut -d ":" -f 2`
7162 ecx_cpuid7=`echo $ax_cv_gcc_x86_cpuid_0x00000007 | cut -d ":" -f 3`
7163 fi
7164 fi
7165
7166 ecx_cpuid80000001=0
7167 edx_cpuid80000001=0
7168 if test "$((0x$eax_cpuid80000000))" -ge "$((0x80000001))" ; then
7169
7170 ac_ext=c
7171 ac_cpp='$CPP $CPPFLAGS'
7172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7175
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000001 output" >&5
7177 $as_echo_n "checking for x86 cpuid 0x80000001 output... " >&6; }
7178 if ${ax_cv_gcc_x86_cpuid_0x80000001+:} false; then :
7179 $as_echo_n "(cached) " >&6
7180 else
7181 if test "$cross_compiling" = yes; then :
7182 ax_cv_gcc_x86_cpuid_0x80000001=unknown
7183 else
7184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7185 /* end confdefs.h. */
7186 #include <stdio.h>
7187 int
7188 main ()
7189 {
7190
7191 int op = 0x80000001, level = 0, eax, ebx, ecx, edx;
7192 FILE *f;
7193 __asm__ __volatile__ ("xchg %%ebx, %1\n"
7194 "cpuid\n"
7195 "xchg %%ebx, %1\n"
7196 : "=a" (eax), "=r" (ebx), "=c" (ecx), "=d" (edx)
7197 : "a" (op), "2" (level));
7198
7199 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
7200 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
7201 fclose(f);
7202 return 0;
7203
7204 ;
7205 return 0;
7206 }
7207 _ACEOF
7208 if ac_fn_c_try_run "$LINENO"; then :
7209 ax_cv_gcc_x86_cpuid_0x80000001=`cat conftest_cpuid`; rm -f conftest_cpuid
7210 else
7211 ax_cv_gcc_x86_cpuid_0x80000001=unknown; rm -f conftest_cpuid
7212 fi
7213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7214 conftest.$ac_objext conftest.beam conftest.$ac_ext
7215 fi
7216
7217 fi
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000001" >&5
7219 $as_echo "$ax_cv_gcc_x86_cpuid_0x80000001" >&6; }
7220 ac_ext=c
7221 ac_cpp='$CPP $CPPFLAGS'
7222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7225
7226
7227
7228 if test "$ax_cv_gcc_x86_cpuid_0x80000001" != "unknown";
7229 then
7230 ecx_cpuid80000001=`echo $ax_cv_gcc_x86_cpuid_0x80000001 | cut -d ":" -f 3`
7231 edx_cpuid80000001=`echo $ax_cv_gcc_x86_cpuid_0x80000001 | cut -d ":" -f 4`
7232 fi
7233 fi
7234
7235 if ${ax_cv_have_mmx_os_support_ext+:} false; then :
7236 $as_echo_n "(cached) " >&6
7237 else
7238
7239 ax_cv_have_mmx_os_support_ext=yes
7240
7241 fi
7242
7243
7244 ax_cv_have_none_os_support_ext=yes
7245
7246 if ${ax_cv_have_sse_os_support_ext+:} false; then :
7247 $as_echo_n "(cached) " >&6
7248 else
7249
7250 ax_cv_have_sse_os_support_ext=no,
7251 if test "$((0x$edx_cpuid1>>25&0x01))" = 1; then
7252 ac_ext=c
7253 ac_cpp='$CPP $CPPFLAGS'
7254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7257
7258 if test "$cross_compiling" = yes; then :
7259 ax_cv_have_sse_os_support_ext=no
7260 else
7261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7262 /* end confdefs.h. */
7263
7264 #include <signal.h>
7265 #include <stdlib.h>
7266 /* No way at ring1 to ring3 in protected mode to check the CR0 and CR4
7267 control registers directly. Execute an SSE instruction.
7268 If it raises SIGILL then OS doesn't support SSE based instructions */
7269 void sig_handler(int signum){ exit(1); }
7270 int main(){
7271 signal(SIGILL, sig_handler);
7272 /* SSE instruction xorps %xmm0,%xmm0 */
7273 __asm__ __volatile__ (".byte 0x0f, 0x57, 0xc0");
7274 return 0;
7275 }
7276 _ACEOF
7277 if ac_fn_c_try_run "$LINENO"; then :
7278 ax_cv_have_sse_os_support_ext=yes
7279 else
7280 ax_cv_have_sse_os_support_ext=no
7281 fi
7282 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7283 conftest.$ac_objext conftest.beam conftest.$ac_ext
7284 fi
7285
7286 ac_ext=c
7287 ac_cpp='$CPP $CPPFLAGS'
7288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7291
7292 fi
7293
7294 fi
7295
7296
7297 xgetbv_eax=0
7298 if test "$((0x$ecx_cpuid1>>28&0x01))" = 1; then
7299
7300 ac_ext=c
7301 ac_cpp='$CPP $CPPFLAGS'
7302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7305
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86-AVX xgetbv 0x00000000 output" >&5
7307 $as_echo_n "checking for x86-AVX xgetbv 0x00000000 output... " >&6; }
7308 if ${ax_cv_gcc_x86_avx_xgetbv_0x00000000+:} false; then :
7309 $as_echo_n "(cached) " >&6
7310 else
7311 if test "$cross_compiling" = yes; then :
7312 ax_cv_gcc_x86_avx_xgetbv_0x00000000=unknown
7313 else
7314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7315 /* end confdefs.h. */
7316 #include <stdio.h>
7317 int
7318 main ()
7319 {
7320
7321 int op = 0x00000000, eax, edx;
7322 FILE *f;
7323 /* Opcodes for xgetbv */
7324 __asm__ __volatile__ (".byte 0x0f, 0x01, 0xd0"
7325 : "=a" (eax), "=d" (edx)
7326 : "c" (op));
7327 f = fopen("conftest_xgetbv", "w"); if (!f) return 1;
7328 fprintf(f, "%x:%x\n", eax, edx);
7329 fclose(f);
7330 return 0;
7331
7332 ;
7333 return 0;
7334 }
7335 _ACEOF
7336 if ac_fn_c_try_run "$LINENO"; then :
7337 ax_cv_gcc_x86_avx_xgetbv_0x00000000=`cat conftest_xgetbv`; rm -f conftest_xgetbv
7338 else
7339 ax_cv_gcc_x86_avx_xgetbv_0x00000000=unknown; rm -f conftest_xgetbv
7340 fi
7341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7342 conftest.$ac_objext conftest.beam conftest.$ac_ext
7343 fi
7344
7345 fi
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_avx_xgetbv_0x00000000" >&5
7347 $as_echo "$ax_cv_gcc_x86_avx_xgetbv_0x00000000" >&6; }
7348 ac_ext=c
7349 ac_cpp='$CPP $CPPFLAGS'
7350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7353
7354
7355
7356 if test x"$ax_cv_gcc_x86_avx_xgetbv_0x00000000" != x"unknown"; then
7357 xgetbv_eax=`echo $ax_cv_gcc_x86_avx_xgetbv_0x00000000 | cut -d ":" -f 1`
7358 fi
7359
7360 if ${ax_cv_have_avx_os_support_ext+:} false; then :
7361 $as_echo_n "(cached) " >&6
7362 else
7363
7364 ax_cv_have_avx_os_support_ext=no
7365 if test "$((0x$ecx_cpuid1>>27&0x01))" = 1; then
7366 if test "$((0x$xgetbv_eax&0x6))" = 6; then
7367 ax_cv_have_avx_os_support_ext=yes
7368 fi
7369 fi
7370
7371 fi
7372
7373 fi
7374
7375 if ${ax_cv_have_avx512_os_support_ext+:} false; then :
7376 $as_echo_n "(cached) " >&6
7377 else
7378
7379 ax_cv_have_avx512_os_support_ext=no
7380 if test "$ax_cv_have_avx_os_support_ext" = yes; then
7381 if test "$((0x$xgetbv_eax&0xe6))" = "$((0xe6))"; then
7382 ax_cv_have_avx512_os_support_ext=yes
7383 fi
7384 fi
7385
7386 fi
7387
7388
7389 for ac_instr_info in "none;rdrnd;RDRND;ecx_cpuid1,30;-mrdrnd;HAVE_RDRND;CPUEXT_FLAGS" "none;bmi1;BMI1;ebx_cpuid7,3;-mbmi;HAVE_BMI1;CPUEXT_FLAGS" "none;bmi2;BMI2;ebx_cpuid7,8;-mbmi2;HAVE_BMI2;CPUEXT_FLAGS" "none;adx;ADX;ebx_cpuid7,19;-madx;HAVE_ADX;CPUEXT_FLAGS" "none;mpx;MPX;ebx_cpuid7,14;-mmpx;HAVE_MPX;CPUEXT_FLAGS" "none;prefetchwt1;PREFETCHWT1;ecx_cpuid7,0;-mprefetchwt1;HAVE_PREFETCHWT1;CPUEXT_FLAGS" "none;abm;ABM;ecx_cpuid80000001,5;-mabm;HAVE_ABM;CPUEXT_FLAGS" "mmx;mmx;MMX;edx_cpuid1,23;-mmmx;HAVE_MMX;SIMD_FLAGS" "sse;sse;SSE;edx_cpuid1,25;-msse;HAVE_SSE;SIMD_FLAGS" "sse;sse2;SSE2;edx_cpuid1,26;-msse2;HAVE_SSE2;SIMD_FLAGS" "sse;sse3;SSE3;ecx_cpuid1,1;-msse3;HAVE_SSE3;SIMD_FLAGS" "sse;ssse3;SSSE3;ecx_cpuid1,9;-mssse3;HAVE_SSSE3;SIMD_FLAGS" "sse;sse41;SSE4.1;ecx_cpuid1,19;-msse4.1;HAVE_SSE4_1;SIMD_FLAGS" "sse;sse42;SSE4.2;ecx_cpuid1,20;-msse4.2;HAVE_SSE4_2;SIMD_FLAGS" "sse;sse4a;SSE4a;ecx_cpuid80000001,6;-msse4a;HAVE_SSE4a;SIMD_FLAGS" "sse;sha;SHA;ebx_cpuid7,29;-msha;HAVE_SHA;SIMD_FLAGS" "sse;aes;AES;ecx_cpuid1,25;-maes;HAVE_AES;SIMD_FLAGS" "avx;avx;AVX;ecx_cpuid1,28;-mavx;HAVE_AVX;SIMD_FLAGS" "avx;fma3;FMA3;ecx_cpuid1,12;-mfma;HAVE_FMA3;SIMD_FLAGS" "avx;fma4;FMA4;ecx_cpuid80000001,16;-mfma4;HAVE_FMA4;SIMD_FLAGS" "avx;xop;XOP;ecx_cpuid80000001,11;-mxop;HAVE_XOP;SIMD_FLAGS" "avx;avx2;AVX2;ebx_cpuid7,5;-mavx2;HAVE_AVX2;SIMD_FLAGS" "avx512;avx512f;AVX512-F;ebx_cpuid7,16;-mavx512f;HAVE_AVX512_F;SIMD_FLAGS" "avx512;avx512cd;AVX512-CD;ebx_cpuid7,28;-mavx512cd;HAVE_AVX512_CD;SIMD_FLAGS" "avx512;avx512pf;AVX512-PF;ebx_cpuid7,26;-mavx512pf;HAVE_AVX512_PF;SIMD_FLAGS" "avx512;avx512er;AVX512-ER;ebx_cpuid7,27;-mavx512er;HAVE_AVX512_ER;SIMD_FLAGS" "avx512;avx512vl;AVX512-VL;ebx_cpuid7,31;-mavx512vl;HAVE_AVX512_VL;SIMD_FLAGS" "avx512;avx512bw;AVX512-BW;ebx_cpuid7,30;-mavx512bw;HAVE_AVX512_BW;SIMD_FLAGS" "avx512;avx512dq;AVX512-DQ;ebx_cpuid7,17;-mavx512dq;HAVE_AVX512_DQ;SIMD_FLAGS" "avx512;avx512ifma;AVX512-IFMA;ebx_cpuid7,21;-mavx512ifma;HAVE_AVX512_IFMA;SIMD_FLAGS" "avx512;avx512vbmi;AVX512-VBMI;ecx_cpuid7,1;-mavx512vbmi;HAVE_AVX512_VBMI;SIMD_FLAGS" #
7390 do ac_instr_os_support=$(eval echo \$ax_cv_have_$(echo $ac_instr_info | cut -d ";" -f 1)_os_support_ext)
7391 ac_instr_acvar=$(echo $ac_instr_info | cut -d ";" -f 2)
7392 ac_instr_shortname=$(echo $ac_instr_info | cut -d ";" -f 3)
7393 ac_instr_chk_loc=$(echo $ac_instr_info | cut -d ";" -f 4)
7394 ac_instr_chk_reg=0x$(eval echo \$$(echo $ac_instr_chk_loc | cut -d "," -f 1))
7395 ac_instr_chk_bit=$(echo $ac_instr_chk_loc | cut -d "," -f 2)
7396 ac_instr_compiler_flags=$(echo $ac_instr_info | cut -d ";" -f 5)
7397 ac_instr_have_define=$(echo $ac_instr_info | cut -d ";" -f 6)
7398 ac_instr_flag_type=$(echo $ac_instr_info | cut -d ";" -f 7)
7399
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${ac_instr_shortname} is supported by the processor" >&5
7401 $as_echo_n "checking whether ${ac_instr_shortname} is supported by the processor... " >&6; }
7402 if eval \${ax_cv_have_${ac_instr_acvar}_cpu_ext+:} false; then :
7403 $as_echo_n "(cached) " >&6
7404 else
7405
7406 eval ax_cv_have_${ac_instr_acvar}_cpu_ext=no
7407 if test "$((${ac_instr_chk_reg}>>${ac_instr_chk_bit}&0x01))" = 1 ; then
7408 eval ax_cv_have_${ac_instr_acvar}_cpu_ext=yes
7409 fi
7410
7411 fi
7412 eval ac_res=\$ax_cv_have_${ac_instr_acvar}_cpu_ext
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7414 $as_echo "$ac_res" >&6; }
7415
7416 if test x"$(eval echo \$ax_cv_have_${ac_instr_acvar}_cpu_ext)" = x"yes"; then
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${ac_instr_shortname} is supported by the processor and OS" >&5
7418 $as_echo_n "checking whether ${ac_instr_shortname} is supported by the processor and OS... " >&6; }
7419 if eval \${ax_cv_have_${ac_instr_acvar}_ext+:} false; then :
7420 $as_echo_n "(cached) " >&6
7421 else
7422
7423 eval ax_cv_have_${ac_instr_acvar}_ext=no
7424 if test x"${ac_instr_os_support}" = x"yes"; then
7425 eval ax_cv_have_${ac_instr_acvar}_ext=yes
7426 fi
7427
7428 fi
7429 eval ac_res=\$ax_cv_have_${ac_instr_acvar}_ext
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7431 $as_echo "$ac_res" >&6; }
7432
7433 if test "$(eval echo \$ax_cv_have_${ac_instr_acvar}_ext)" = yes; then
7434 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__${ac_instr_compiler_flags}" | $as_tr_sh`
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts ${ac_instr_compiler_flags}" >&5
7436 $as_echo_n "checking whether C compiler accepts ${ac_instr_compiler_flags}... " >&6; }
7437 if eval \${$as_CACHEVAR+:} false; then :
7438 $as_echo_n "(cached) " >&6
7439 else
7440
7441 ax_check_save_flags=$CFLAGS
7442 CFLAGS="$CFLAGS ${ac_instr_compiler_flags}"
7443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7444 /* end confdefs.h. */
7445
7446 int
7447 main ()
7448 {
7449
7450 ;
7451 return 0;
7452 }
7453 _ACEOF
7454 if ac_fn_c_try_compile "$LINENO"; then :
7455 eval "$as_CACHEVAR=yes"
7456 else
7457 eval "$as_CACHEVAR=no"
7458 fi
7459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7460 CFLAGS=$ax_check_save_flags
7461 fi
7462 eval ac_res=\$$as_CACHEVAR
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7464 $as_echo "$ac_res" >&6; }
7465 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
7466 eval ax_cv_support_${ac_instr_acvar}_ext=yes
7467 else
7468 eval ax_cv_support_${ac_instr_acvar}_ext=no
7469 fi
7470
7471 if test x"$(eval echo \$ax_cv_support_${ac_instr_acvar}_ext)" = x"yes"; then
7472 eval ${ac_instr_flag_type}=\"\$${ac_instr_flag_type} ${ac_instr_compiler_flags}\"
7473 cat >>confdefs.h <<_ACEOF
7474 #define ${ac_instr_have_define} 1
7475 _ACEOF
7476
7477 else
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your processor and OS supports ${ac_instr_shortname} instructions but not your compiler, can you try another compiler?" >&5
7479 $as_echo "$as_me: WARNING: Your processor and OS supports ${ac_instr_shortname} instructions but not your compiler, can you try another compiler?" >&2;}
7480 fi
7481 else
7482 if test x"${ac_instr_os_support}" = x"no"; then
7483 if eval \${ax_cv_support_${ac_instr_acvar}_ext+:} false; then :
7484 $as_echo_n "(cached) " >&6
7485 else
7486 eval ax_cv_support_${ac_instr_acvar}_ext=no
7487 fi
7488
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your processor supports ${ac_instr_shortname}, but your OS doesn't" >&5
7490 $as_echo "$as_me: WARNING: Your processor supports ${ac_instr_shortname}, but your OS doesn't" >&2;}
7491 fi
7492 fi
7493 else
7494 if eval \${ax_cv_have_${ac_instr_acvar}_ext+:} false; then :
7495 $as_echo_n "(cached) " >&6
7496 else
7497 eval ax_cv_have_${ac_instr_acvar}_ext=no
7498 fi
7499
7500 if eval \${ax_cv_support_${ac_instr_acvar}_ext+:} false; then :
7501 $as_echo_n "(cached) " >&6
7502 else
7503 eval ax_cv_support_${ac_instr_acvar}_ext=no
7504 fi
7505
7506 fi
7507 done
7508 ;;
7509 esac
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545 CFLAGS="$CFLAGS $CPUEXT_FLAGS $SIMD_FLAGS"
7546 CXXFLAGS="$CXXFLAGS $CPUEXT_FLAGS $SIMD_FLAGS"
7547 ;;
7548 powerpc*)
7549 ARCH_OPTION="-fno-common -faltivec";;
7550 armv1*|armv2*|armv3*|armv4*|armv5*|armv6*)
7551 ARCH_OPTION="-ffast-math";;
7552 armv7*|armv8*)
7553 ARCH_OPTION="-ffast-math -mcpu=cortex-a7 -mfloat-abi=hard -mfpu=neon-vfpv4";;
7554 *)
7555 # unknown architecture : use portable C version
7556 ARCH_OPTION="";;
7557 esac
7558 CPPFLAGS="$CPPFLAGS $ARCH_OPTION"
7559 CXXFLAGS="$CPPFLAGS $ARCH_OPTION"
7560
7561 if test "${readline}" = "true" ; then
7562 ctlibs_base="$ctlibs_base -lreadline"
7563 if test "${ncurses}" = "true"; then
7564 ctlibs_base="$ctlibs_base -lncurses"
7565 elif test "${curses}" = "true"; then
7566 ctlibs_base="$ctlibs_base -lcurses"
7567 fi
7568 fi
7569
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking debug" >&5
7571 $as_echo_n "checking debug... " >&6; }
7572 # Check whether --enable-debug was given.
7573 if test "${enable_debug+set}" = set; then :
7574 enableval=$enable_debug; case "${enableval}" in
7575 yes) debug="true"
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7577 $as_echo "yes" >&6; }
7578 ;;
7579 no) debug="false"
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7581 $as_echo "no" >&6; }
7582 ;;
7583 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad value ${enableval} for --enable-debug" >&5
7584 $as_echo "bad value ${enableval} for --enable-debug" >&6; }
7585 ;;
7586 esac
7587 else
7588 debug=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7589 $as_echo "no" >&6; }
7590 fi
7591
7592 if test "$debug" = "true"; then
7593 DEBUG_TRUE=
7594 DEBUG_FALSE='#'
7595 else
7596 DEBUG_TRUE='#'
7597 DEBUG_FALSE=
7598 fi
7599
7600
7601 if test "$datadir" != "" ; then
7602 CPPFLAGS="$CPPFLAGS -DDATADIR=\"\\\"$datadir\\\"\""
7603 fi
7604
7605 if test "$debug" = "true" ; then
7606 CFLAGS="$CFLAGS -g -O0 -DDEBUG"
7607
7608 $as_echo "#define DEBUG 1" >>confdefs.h
7609
7610 else
7611 CFLAGS="$CFLAGS -g -O4 -DNDEBUG -fomit-frame-pointer"
7612
7613 $as_echo "#define NDEBUG 1" >>confdefs.h
7614
7615 fi
7616
7617 if test "${pthread}" = "true" ; then
7618
7619 $as_echo "#define HAVE_WXTHREADS 1" >>confdefs.h
7620
7621 fi
7622
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sstream" >&5
7624 $as_echo_n "checking sstream... " >&6; }
7625 if test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
7626 test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ||
7627 test -f /usr/include/gcc/darwin/3.1/g++-v3/sstream ; then
7628
7629 $as_echo "#define HAVE_SSTREAM 1" >>confdefs.h
7630
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7632 $as_echo "yes" >&6; }
7633 else
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7635 $as_echo "no" >&6; }
7636 fi
7637
7638
7639 CFLAGS="$CFLAGS -Wall"
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose warnings" >&5
7641 $as_echo_n "checking whether to enable verbose warnings... " >&6; }
7642 # Check whether --enable-verbose-warnings was given.
7643 if test "${enable_verbose_warnings+set}" = set; then :
7644 enableval=$enable_verbose_warnings; case "$enableval" in
7645 yes)
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7647 $as_echo "yes" >&6; }
7648 CFLAGS="$CFLAGS -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wredundant-decls"
7649 ;;
7650 *)
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7652 $as_echo "no" >&6; }
7653 ;;
7654 esac
7655 else
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7657 $as_echo "no" >&6; }
7658
7659 fi
7660
7661
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking static executables" >&5
7663 $as_echo_n "checking static executables... " >&6; }
7664 # Check whether --enable-static was given.
7665 if test "${enable_static+set}" = set; then :
7666 enableval=$enable_static; case "$enableval" in
7667 yes)
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7669 $as_echo "yes" >&6; }
7670 CFLAGS="$CFLAGS --static"
7671 ;;
7672 *)
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7674 $as_echo "no" >&6; }
7675 ;;
7676 esac
7677 else
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7679 $as_echo "no" >&6; }
7680
7681 fi
7682
7683
7684 # Check whether --enable-openmp was given.
7685 if test "${enable_openmp+set}" = set; then :
7686 enableval=$enable_openmp;
7687 fi
7688
7689 if test "x$enable_openmp" != "xno"; then :
7690
7691
7692
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenMP flag of C compiler" >&5
7694 $as_echo_n "checking for OpenMP flag of C compiler... " >&6; }
7695 if ${ax_cv_c_openmp+:} false; then :
7696 $as_echo_n "(cached) " >&6
7697 else
7698 saveCFLAGS=$CFLAGS
7699 ax_cv_c_openmp=unknown
7700 # Flags to try: -fopenmp (gcc), -mp (SGI & PGI),
7701 # -qopenmp (icc>=15), -openmp (icc),
7702 # -xopenmp (Sun), -omp (Tru64),
7703 # -qsmp=omp (AIX),
7704 # none
7705 ax_openmp_flags="-fopenmp -openmp -qopenmp -mp -xopenmp -omp -qsmp=omp none"
7706 if test "x$OPENMP_CFLAGS" != x; then
7707 ax_openmp_flags="$OPENMP_CFLAGS $ax_openmp_flags"
7708 fi
7709 for ax_openmp_flag in $ax_openmp_flags; do
7710 case $ax_openmp_flag in
7711 none) CFLAGS=$saveC ;;
7712 *) CFLAGS="$saveCFLAGS $ax_openmp_flag" ;;
7713 esac
7714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7715 /* end confdefs.h. */
7716
7717 #include <omp.h>
7718
7719 static void
7720 parallel_fill(int * data, int n)
7721 {
7722 int i;
7723 #pragma omp parallel for
7724 for (i = 0; i < n; ++i)
7725 data[i] = i;
7726 }
7727
7728 int
7729 main()
7730 {
7731 int arr[100000];
7732 omp_set_num_threads(2);
7733 parallel_fill(arr, 100000);
7734 return 0;
7735 }
7736
7737 _ACEOF
7738 if ac_fn_c_try_link "$LINENO"; then :
7739 ax_cv_c_openmp=$ax_openmp_flag; break
7740 fi
7741 rm -f core conftest.err conftest.$ac_objext \
7742 conftest$ac_exeext conftest.$ac_ext
7743 done
7744 CFLAGS=$saveCFLAGS
7745
7746 fi
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_openmp" >&5
7748 $as_echo "$ax_cv_c_openmp" >&6; }
7749 if test "x$ax_cv_c_openmp" = "xunknown"; then
7750 :
7751 else
7752 if test "x$ax_cv_c_openmp" != "xnone"; then
7753 OPENMP_CFLAGS=$ax_cv_c_openmp
7754 fi
7755
7756 $as_echo "#define HAVE_OPENMP 1" >>confdefs.h
7757
7758 fi
7759
7760 CFLAGS="$CFLAGS $OPENMP_CFLAGS"
7761 CXXFLAGS="$CXXFLAGS $OPENMP_CXXFLAGS"
7762
7763 fi
7764
7765
7766 # Check whether --with-lam was given.
7767 if test "${with_lam+set}" = set; then :
7768 withval=$with_lam; if test "$withval" != "no" ; then
7769 trylamdir=$withval
7770 fi
7771
7772 fi
7773
7774
7775 if test "$withval" != "no" ; then
7776 if test "$prefix" != "NONE" ; then
7777 trylamdir="$trylamdir $prefix"
7778 fi
7779
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LAM MPI installation" >&5
7781 $as_echo_n "checking for LAM MPI installation... " >&6; }
7782 for testlamdir in "." $trylamdir /usr/local /usr/local/lam /usr /usr/lam /opt /opt/lam ; do
7783 if test -x "$testlamdir/bin/hcp" ; then
7784 if test "$testlamdir" != "/usr"; then
7785 LDFLAGS="$LDFLAGS -L$testlamdir/lib"
7786 CFLAGS="$CFLAGS -I$testlamdir/include"
7787 fi
7788 CFLAGS="$CFLAGS -I$testlamdir/include/mpi2c++"
7789 lamdir="$testlamdir"
7790
7791 mpienable="true"
7792
7793 break
7794 fi
7795 done
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lamdir" >&5
7797 $as_echo "$lamdir" >&6; }
7798 else
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7800 $as_echo "no" >&6; }
7801 fi
7802
7803
7804
7805 # Check whether --with-ctn was given.
7806 if test "${with_ctn+set}" = set; then :
7807 withval=$with_ctn; if test "$withval" != "no" ; then
7808 tryctndir=$withval
7809 fi
7810
7811 fi
7812
7813
7814 if test "$withval" = "no" -o "$withval" = "NONE" ; then
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CTN DICOM installation" >&5
7816 $as_echo_n "checking for CTN DICOM installation... " >&6; }
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7818 $as_echo "disabled" >&6; }
7819 else
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CTN DICOM installation" >&5
7821 $as_echo_n "checking for CTN DICOM installation... " >&6; }
7822 for testctndir in $tryctndir/lib /usr/local/lib /usr/local/ctn/lib /usr/lib /usr/ctn/lib /usr/lib/ctn /opt/ctn/lib ; do
7823 if test -f "$testctndir/libctn.a" ; then
7824 LDFLAGS="$LDFLAGS -L$testctndir"
7825 ctnlib="true"
7826 break
7827 fi
7828 done
7829 for testctndir in $tryctndir/include /usr/local/include /usr/local/ctn/include /usr/include /usr/include/ctn /usr/ctn/include /opt/ctn/include ; do
7830 if test -f "$testctndir/ctn_os.h" ; then
7831 CFLAGS="$CFLAGS -I$testctndir"
7832 ctninclude="true"
7833 break
7834 fi
7835 done
7836 if test "$ctnlib" = "true" -a "$ctninclude" = "true" ; then
7837 ctn="true"
7838
7839 $as_echo "#define HAVE_CTN_DICOM 1" >>confdefs.h
7840
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7842 $as_echo "yes" >&6; }
7843 else
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7845 $as_echo "no" >&6; }
7846 fi
7847 fi
7848
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPU specification" >&5
7850 $as_echo_n "checking for CPU specification... " >&6; }
7851
7852 # Check whether --with-mcpu was given.
7853 if test "${with_mcpu+set}" = set; then :
7854 withval=$with_mcpu;
7855 fi
7856
7857
7858 if test "$withval" = "no" -o "$withval" = "yes" -o "$withval" = ""; then
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7860 $as_echo "no" >&6; }
7861 else
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
7863 $as_echo "$withval" >&6; }
7864 CFLAGS="$CFLAGS -mcpu=$withval"
7865 fi
7866
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for web access" >&5
7868 $as_echo_n "checking for web access... " >&6; }
7869
7870 # Check whether --with-cgibin-dir was given.
7871 if test "${with_cgibin_dir+set}" = set; then :
7872 withval=$with_cgibin_dir; cgibindir=$withval ;
7873 fi
7874
7875
7876
7877 # Check whether --with-cgibin-url was given.
7878 if test "${with_cgibin_url+set}" = set; then :
7879 withval=$with_cgibin_url; cgibinurl=$withval ;
7880 fi
7881
7882
7883
7884 # Check whether --with-webdata-dir was given.
7885 if test "${with_webdata_dir+set}" = set; then :
7886 withval=$with_webdata_dir; webdatadir=$withval ;
7887 fi
7888
7889
7890
7891 # Check whether --with-webdata-url was given.
7892 if test "${with_webdata_url+set}" = set; then :
7893 withval=$with_webdata_url; webdataurl=$withval ;
7894 fi
7895
7896
7897
7898 # Check whether --with-html-dir was given.
7899 if test "${with_html_dir+set}" = set; then :
7900 withval=$with_html_dir; html_%dir=$withval ;
7901 fi
7902
7903
7904 if test "x$cgibindir" != "x" -o "x$cgibinurl" != "x" ; then
7905 cgiprograms="ctsim.cgi ctsim.conf"
7906
7907 fi
7908
7909 if test "x$html_dir" = "x" ; then
7910 htmldata=simulate.html
7911
7912 fi
7913 if test "x$html_dir" = "x"; then
7914 USE_HTML_TRUE=
7915 USE_HTML_FALSE='#'
7916 else
7917 USE_HTML_TRUE='#'
7918 USE_HTML_FALSE=
7919 fi
7920
7921
7922 if test "x$cgibindir" != "x" -o "x$cgibinurl" != "x" -o "x$webdatadir" != "x" -o "x$webdataurl" != "x" -o "x$html_dir" != "x" ; then
7923 webenabled=true
7924
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7926 $as_echo "yes" >&6; }
7927 if test "x$cgibindir" = "x" ; then
7928 as_fn_error $? "--with-cgibin-dir not set for web access" "$LINENO" 5
7929 elif test "x$cgibinurl" = "x" ; then
7930 as_fn_error $? "--with-cgibin-url not set for web access" "$LINENO" 5
7931 elif test "x$webdatadir" = "x" ; then
7932 as_fn_error $? "--with-webdata-dir not set for web access" "$LINENO" 5
7933 elif test "x$webdataurl" = "x" ; then
7934 as_fn_error $? "--with-webdata-url not set for web access" "$LINENO" 5
7935 elif test "x$html_dir" = "x" ; then
7936 as_fn_error $? "--with-html-dir not set for web access" "$LINENO" 5
7937 fi
7938 else
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7940 $as_echo "no" >&6; }
7941 fi
7942
7943 if test "x$lamdir" != "x"; then
7944 USE_LAM_TRUE=
7945 USE_LAM_FALSE='#'
7946 else
7947 USE_LAM_TRUE='#'
7948 USE_LAM_FALSE=
7949 fi
7950
7951
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7953 $as_echo_n "checking for X... " >&6; }
7954
7955
7956 # Check whether --with-x was given.
7957 if test "${with_x+set}" = set; then :
7958 withval=$with_x;
7959 fi
7960
7961 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7962 if test "x$with_x" = xno; then
7963 # The user explicitly disabled X.
7964 have_x=disabled
7965 else
7966 case $x_includes,$x_libraries in #(
7967 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7968 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7969 $as_echo_n "(cached) " >&6
7970 else
7971 # One or both of the vars are not set, and there is no cached value.
7972 ac_x_includes=no ac_x_libraries=no
7973 rm -f -r conftest.dir
7974 if mkdir conftest.dir; then
7975 cd conftest.dir
7976 cat >Imakefile <<'_ACEOF'
7977 incroot:
7978 @echo incroot='${INCROOT}'
7979 usrlibdir:
7980 @echo usrlibdir='${USRLIBDIR}'
7981 libdir:
7982 @echo libdir='${LIBDIR}'
7983 _ACEOF
7984 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7985 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7986 for ac_var in incroot usrlibdir libdir; do
7987 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7988 done
7989 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7990 for ac_extension in a so sl dylib la dll; do
7991 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7992 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7993 ac_im_usrlibdir=$ac_im_libdir; break
7994 fi
7995 done
7996 # Screen out bogus values from the imake configuration. They are
7997 # bogus both because they are the default anyway, and because
7998 # using them would break gcc on systems where it needs fixed includes.
7999 case $ac_im_incroot in
8000 /usr/include) ac_x_includes= ;;
8001 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8002 esac
8003 case $ac_im_usrlibdir in
8004 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8005 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8006 esac
8007 fi
8008 cd ..
8009 rm -f -r conftest.dir
8010 fi
8011
8012 # Standard set of common directories for X headers.
8013 # Check X11 before X11Rn because it is often a symlink to the current release.
8014 ac_x_header_dirs='
8015 /usr/X11/include
8016 /usr/X11R7/include
8017 /usr/X11R6/include
8018 /usr/X11R5/include
8019 /usr/X11R4/include
8020
8021 /usr/include/X11
8022 /usr/include/X11R7
8023 /usr/include/X11R6
8024 /usr/include/X11R5
8025 /usr/include/X11R4
8026
8027 /usr/local/X11/include
8028 /usr/local/X11R7/include
8029 /usr/local/X11R6/include
8030 /usr/local/X11R5/include
8031 /usr/local/X11R4/include
8032
8033 /usr/local/include/X11
8034 /usr/local/include/X11R7
8035 /usr/local/include/X11R6
8036 /usr/local/include/X11R5
8037 /usr/local/include/X11R4
8038
8039 /usr/X386/include
8040 /usr/x386/include
8041 /usr/XFree86/include/X11
8042
8043 /usr/include
8044 /usr/local/include
8045 /usr/unsupported/include
8046 /usr/athena/include
8047 /usr/local/x11r5/include
8048 /usr/lpp/Xamples/include
8049
8050 /usr/openwin/include
8051 /usr/openwin/share/include'
8052
8053 if test "$ac_x_includes" = no; then
8054 # Guess where to find include files, by looking for Xlib.h.
8055 # First, try using that file with no special directory specified.
8056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8057 /* end confdefs.h. */
8058 #include <X11/Xlib.h>
8059 _ACEOF
8060 if ac_fn_c_try_cpp "$LINENO"; then :
8061 # We can compile using X headers with no special include directory.
8062 ac_x_includes=
8063 else
8064 for ac_dir in $ac_x_header_dirs; do
8065 if test -r "$ac_dir/X11/Xlib.h"; then
8066 ac_x_includes=$ac_dir
8067 break
8068 fi
8069 done
8070 fi
8071 rm -f conftest.err conftest.i conftest.$ac_ext
8072 fi # $ac_x_includes = no
8073
8074 if test "$ac_x_libraries" = no; then
8075 # Check for the libraries.
8076 # See if we find them without any special options.
8077 # Don't add to $LIBS permanently.
8078 ac_save_LIBS=$LIBS
8079 LIBS="-lX11 $LIBS"
8080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8081 /* end confdefs.h. */
8082 #include <X11/Xlib.h>
8083 int
8084 main ()
8085 {
8086 XrmInitialize ()
8087 ;
8088 return 0;
8089 }
8090 _ACEOF
8091 if ac_fn_c_try_link "$LINENO"; then :
8092 LIBS=$ac_save_LIBS
8093 # We can link X programs with no special library path.
8094 ac_x_libraries=
8095 else
8096 LIBS=$ac_save_LIBS
8097 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8098 do
8099 # Don't even attempt the hair of trying to link an X program!
8100 for ac_extension in a so sl dylib la dll; do
8101 if test -r "$ac_dir/libX11.$ac_extension"; then
8102 ac_x_libraries=$ac_dir
8103 break 2
8104 fi
8105 done
8106 done
8107 fi
8108 rm -f core conftest.err conftest.$ac_objext \
8109 conftest$ac_exeext conftest.$ac_ext
8110 fi # $ac_x_libraries = no
8111
8112 case $ac_x_includes,$ac_x_libraries in #(
8113 no,* | *,no | *\'*)
8114 # Didn't find X, or a directory has "'" in its name.
8115 ac_cv_have_x="have_x=no";; #(
8116 *)
8117 # Record where we found X for the cache.
8118 ac_cv_have_x="have_x=yes\
8119 ac_x_includes='$ac_x_includes'\
8120 ac_x_libraries='$ac_x_libraries'"
8121 esac
8122 fi
8123 ;; #(
8124 *) have_x=yes;;
8125 esac
8126 eval "$ac_cv_have_x"
8127 fi # $with_x != no
8128
8129 if test "$have_x" != yes; then
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8131 $as_echo "$have_x" >&6; }
8132 no_x=yes
8133 else
8134 # If each of the values was on the command line, it overrides each guess.
8135 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8136 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8137 # Update the cache value to reflect the command line values.
8138 ac_cv_have_x="have_x=yes\
8139 ac_x_includes='$x_includes'\
8140 ac_x_libraries='$x_libraries'"
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8142 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8143 fi
8144
8145 if test "$no_x" = yes; then
8146 # Not all programs may use this symbol, but it does not hurt to define it.
8147
8148 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
8149
8150 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8151 else
8152 if test -n "$x_includes"; then
8153 X_CFLAGS="$X_CFLAGS -I$x_includes"
8154 fi
8155
8156 # It would also be nice to do this for all -L options, not just this one.
8157 if test -n "$x_libraries"; then
8158 X_LIBS="$X_LIBS -L$x_libraries"
8159 # For Solaris; some versions of Sun CC require a space after -R and
8160 # others require no space. Words are not sufficient . . . .
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
8162 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
8163 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8164 ac_xsave_c_werror_flag=$ac_c_werror_flag
8165 ac_c_werror_flag=yes
8166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8167 /* end confdefs.h. */
8168
8169 int
8170 main ()
8171 {
8172
8173 ;
8174 return 0;
8175 }
8176 _ACEOF
8177 if ac_fn_c_try_link "$LINENO"; then :
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8179 $as_echo "no" >&6; }
8180 X_LIBS="$X_LIBS -R$x_libraries"
8181 else
8182 LIBS="$ac_xsave_LIBS -R $x_libraries"
8183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8184 /* end confdefs.h. */
8185
8186 int
8187 main ()
8188 {
8189
8190 ;
8191 return 0;
8192 }
8193 _ACEOF
8194 if ac_fn_c_try_link "$LINENO"; then :
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8196 $as_echo "yes" >&6; }
8197 X_LIBS="$X_LIBS -R $x_libraries"
8198 else
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
8200 $as_echo "neither works" >&6; }
8201 fi
8202 rm -f core conftest.err conftest.$ac_objext \
8203 conftest$ac_exeext conftest.$ac_ext
8204 fi
8205 rm -f core conftest.err conftest.$ac_objext \
8206 conftest$ac_exeext conftest.$ac_ext
8207 ac_c_werror_flag=$ac_xsave_c_werror_flag
8208 LIBS=$ac_xsave_LIBS
8209 fi
8210
8211 # Check for system-dependent libraries X programs must link with.
8212 # Do this before checking for the system-independent R6 libraries
8213 # (-lICE), since we may need -lsocket or whatever for X linking.
8214
8215 if test "$ISC" = yes; then
8216 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8217 else
8218 # Martyn Johnson says this is needed for Ultrix, if the X
8219 # libraries were built with DECnet support. And Karl Berry says
8220 # the Alpha needs dnet_stub (dnet does not exist).
8221 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8223 /* end confdefs.h. */
8224
8225 /* Override any GCC internal prototype to avoid an error.
8226 Use char because int might match the return type of a GCC
8227 builtin and then its argument prototype would still apply. */
8228 #ifdef __cplusplus
8229 extern "C"
8230 #endif
8231 char XOpenDisplay ();
8232 int
8233 main ()
8234 {
8235 return XOpenDisplay ();
8236 ;
8237 return 0;
8238 }
8239 _ACEOF
8240 if ac_fn_c_try_link "$LINENO"; then :
8241
8242 else
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8244 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8245 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
8246 $as_echo_n "(cached) " >&6
8247 else
8248 ac_check_lib_save_LIBS=$LIBS
8249 LIBS="-ldnet $LIBS"
8250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8251 /* end confdefs.h. */
8252
8253 /* Override any GCC internal prototype to avoid an error.
8254 Use char because int might match the return type of a GCC
8255 builtin and then its argument prototype would still apply. */
8256 #ifdef __cplusplus
8257 extern "C"
8258 #endif
8259 char dnet_ntoa ();
8260 int
8261 main ()
8262 {
8263 return dnet_ntoa ();
8264 ;
8265 return 0;
8266 }
8267 _ACEOF
8268 if ac_fn_c_try_link "$LINENO"; then :
8269 ac_cv_lib_dnet_dnet_ntoa=yes
8270 else
8271 ac_cv_lib_dnet_dnet_ntoa=no
8272 fi
8273 rm -f core conftest.err conftest.$ac_objext \
8274 conftest$ac_exeext conftest.$ac_ext
8275 LIBS=$ac_check_lib_save_LIBS
8276 fi
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8278 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8279 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
8280 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8281 fi
8282
8283 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
8285 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
8286 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
8287 $as_echo_n "(cached) " >&6
8288 else
8289 ac_check_lib_save_LIBS=$LIBS
8290 LIBS="-ldnet_stub $LIBS"
8291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8292 /* end confdefs.h. */
8293
8294 /* Override any GCC internal prototype to avoid an error.
8295 Use char because int might match the return type of a GCC
8296 builtin and then its argument prototype would still apply. */
8297 #ifdef __cplusplus
8298 extern "C"
8299 #endif
8300 char dnet_ntoa ();
8301 int
8302 main ()
8303 {
8304 return dnet_ntoa ();
8305 ;
8306 return 0;
8307 }
8308 _ACEOF
8309 if ac_fn_c_try_link "$LINENO"; then :
8310 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8311 else
8312 ac_cv_lib_dnet_stub_dnet_ntoa=no
8313 fi
8314 rm -f core conftest.err conftest.$ac_objext \
8315 conftest$ac_exeext conftest.$ac_ext
8316 LIBS=$ac_check_lib_save_LIBS
8317 fi
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8319 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
8320 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
8321 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8322 fi
8323
8324 fi
8325 fi
8326 rm -f core conftest.err conftest.$ac_objext \
8327 conftest$ac_exeext conftest.$ac_ext
8328 LIBS="$ac_xsave_LIBS"
8329
8330 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
8331 # to get the SysV transport functions.
8332 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8333 # needs -lnsl.
8334 # The nsl library prevents programs from opening the X display
8335 # on Irix 5.2, according to T.E. Dickey.
8336 # The functions gethostbyname, getservbyname, and inet_addr are
8337 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8338 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8339 if test "x$ac_cv_func_gethostbyname" = xyes; then :
8340
8341 fi
8342
8343 if test $ac_cv_func_gethostbyname = no; then
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
8345 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
8346 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
8347 $as_echo_n "(cached) " >&6
8348 else
8349 ac_check_lib_save_LIBS=$LIBS
8350 LIBS="-lnsl $LIBS"
8351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8352 /* end confdefs.h. */
8353
8354 /* Override any GCC internal prototype to avoid an error.
8355 Use char because int might match the return type of a GCC
8356 builtin and then its argument prototype would still apply. */
8357 #ifdef __cplusplus
8358 extern "C"
8359 #endif
8360 char gethostbyname ();
8361 int
8362 main ()
8363 {
8364 return gethostbyname ();
8365 ;
8366 return 0;
8367 }
8368 _ACEOF
8369 if ac_fn_c_try_link "$LINENO"; then :
8370 ac_cv_lib_nsl_gethostbyname=yes
8371 else
8372 ac_cv_lib_nsl_gethostbyname=no
8373 fi
8374 rm -f core conftest.err conftest.$ac_objext \
8375 conftest$ac_exeext conftest.$ac_ext
8376 LIBS=$ac_check_lib_save_LIBS
8377 fi
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
8379 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
8380 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
8381 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8382 fi
8383
8384 if test $ac_cv_lib_nsl_gethostbyname = no; then
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
8386 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
8387 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
8388 $as_echo_n "(cached) " >&6
8389 else
8390 ac_check_lib_save_LIBS=$LIBS
8391 LIBS="-lbsd $LIBS"
8392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8393 /* end confdefs.h. */
8394
8395 /* Override any GCC internal prototype to avoid an error.
8396 Use char because int might match the return type of a GCC
8397 builtin and then its argument prototype would still apply. */
8398 #ifdef __cplusplus
8399 extern "C"
8400 #endif
8401 char gethostbyname ();
8402 int
8403 main ()
8404 {
8405 return gethostbyname ();
8406 ;
8407 return 0;
8408 }
8409 _ACEOF
8410 if ac_fn_c_try_link "$LINENO"; then :
8411 ac_cv_lib_bsd_gethostbyname=yes
8412 else
8413 ac_cv_lib_bsd_gethostbyname=no
8414 fi
8415 rm -f core conftest.err conftest.$ac_objext \
8416 conftest$ac_exeext conftest.$ac_ext
8417 LIBS=$ac_check_lib_save_LIBS
8418 fi
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
8420 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
8421 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
8422 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8423 fi
8424
8425 fi
8426 fi
8427
8428 # [email protected] says without -lsocket,
8429 # socket/setsockopt and other routines are undefined under SCO ODT
8430 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8431 # on later versions), says Simon Leinen: it contains gethostby*
8432 # variants that don't use the name server (or something). -lsocket
8433 # must be given before -lnsl if both are needed. We assume that
8434 # if connect needs -lnsl, so does gethostbyname.
8435 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
8436 if test "x$ac_cv_func_connect" = xyes; then :
8437
8438 fi
8439
8440 if test $ac_cv_func_connect = no; then
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
8442 $as_echo_n "checking for connect in -lsocket... " >&6; }
8443 if ${ac_cv_lib_socket_connect+:} false; then :
8444 $as_echo_n "(cached) " >&6
8445 else
8446 ac_check_lib_save_LIBS=$LIBS
8447 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8449 /* end confdefs.h. */
8450
8451 /* Override any GCC internal prototype to avoid an error.
8452 Use char because int might match the return type of a GCC
8453 builtin and then its argument prototype would still apply. */
8454 #ifdef __cplusplus
8455 extern "C"
8456 #endif
8457 char connect ();
8458 int
8459 main ()
8460 {
8461 return connect ();
8462 ;
8463 return 0;
8464 }
8465 _ACEOF
8466 if ac_fn_c_try_link "$LINENO"; then :
8467 ac_cv_lib_socket_connect=yes
8468 else
8469 ac_cv_lib_socket_connect=no
8470 fi
8471 rm -f core conftest.err conftest.$ac_objext \
8472 conftest$ac_exeext conftest.$ac_ext
8473 LIBS=$ac_check_lib_save_LIBS
8474 fi
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
8476 $as_echo "$ac_cv_lib_socket_connect" >&6; }
8477 if test "x$ac_cv_lib_socket_connect" = xyes; then :
8478 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8479 fi
8480
8481 fi
8482
8483 # Guillermo Gomez says -lposix is necessary on A/UX.
8484 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
8485 if test "x$ac_cv_func_remove" = xyes; then :
8486
8487 fi
8488
8489 if test $ac_cv_func_remove = no; then
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
8491 $as_echo_n "checking for remove in -lposix... " >&6; }
8492 if ${ac_cv_lib_posix_remove+:} false; then :
8493 $as_echo_n "(cached) " >&6
8494 else
8495 ac_check_lib_save_LIBS=$LIBS
8496 LIBS="-lposix $LIBS"
8497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8498 /* end confdefs.h. */
8499
8500 /* Override any GCC internal prototype to avoid an error.
8501 Use char because int might match the return type of a GCC
8502 builtin and then its argument prototype would still apply. */
8503 #ifdef __cplusplus
8504 extern "C"
8505 #endif
8506 char remove ();
8507 int
8508 main ()
8509 {
8510 return remove ();
8511 ;
8512 return 0;
8513 }
8514 _ACEOF
8515 if ac_fn_c_try_link "$LINENO"; then :
8516 ac_cv_lib_posix_remove=yes
8517 else
8518 ac_cv_lib_posix_remove=no
8519 fi
8520 rm -f core conftest.err conftest.$ac_objext \
8521 conftest$ac_exeext conftest.$ac_ext
8522 LIBS=$ac_check_lib_save_LIBS
8523 fi
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
8525 $as_echo "$ac_cv_lib_posix_remove" >&6; }
8526 if test "x$ac_cv_lib_posix_remove" = xyes; then :
8527 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8528 fi
8529
8530 fi
8531
8532 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8533 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
8534 if test "x$ac_cv_func_shmat" = xyes; then :
8535
8536 fi
8537
8538 if test $ac_cv_func_shmat = no; then
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
8540 $as_echo_n "checking for shmat in -lipc... " >&6; }
8541 if ${ac_cv_lib_ipc_shmat+:} false; then :
8542 $as_echo_n "(cached) " >&6
8543 else
8544 ac_check_lib_save_LIBS=$LIBS
8545 LIBS="-lipc $LIBS"
8546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8547 /* end confdefs.h. */
8548
8549 /* Override any GCC internal prototype to avoid an error.
8550 Use char because int might match the return type of a GCC
8551 builtin and then its argument prototype would still apply. */
8552 #ifdef __cplusplus
8553 extern "C"
8554 #endif
8555 char shmat ();
8556 int
8557 main ()
8558 {
8559 return shmat ();
8560 ;
8561 return 0;
8562 }
8563 _ACEOF
8564 if ac_fn_c_try_link "$LINENO"; then :
8565 ac_cv_lib_ipc_shmat=yes
8566 else
8567 ac_cv_lib_ipc_shmat=no
8568 fi
8569 rm -f core conftest.err conftest.$ac_objext \
8570 conftest$ac_exeext conftest.$ac_ext
8571 LIBS=$ac_check_lib_save_LIBS
8572 fi
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
8574 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
8575 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
8576 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8577 fi
8578
8579 fi
8580 fi
8581
8582 # Check for libraries that X11R6 Xt/Xaw programs need.
8583 ac_save_LDFLAGS=$LDFLAGS
8584 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8585 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8586 # check for ICE first), but we must link in the order -lSM -lICE or
8587 # we get undefined symbols. So assume we have SM if we have ICE.
8588 # These have to be linked with before -lX11, unlike the other
8589 # libraries we check for below, so use a different variable.
8590 # John Interrante, Karl Berry
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
8592 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
8593 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
8594 $as_echo_n "(cached) " >&6
8595 else
8596 ac_check_lib_save_LIBS=$LIBS
8597 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8599 /* end confdefs.h. */
8600
8601 /* Override any GCC internal prototype to avoid an error.
8602 Use char because int might match the return type of a GCC
8603 builtin and then its argument prototype would still apply. */
8604 #ifdef __cplusplus
8605 extern "C"
8606 #endif
8607 char IceConnectionNumber ();
8608 int
8609 main ()
8610 {
8611 return IceConnectionNumber ();
8612 ;
8613 return 0;
8614 }
8615 _ACEOF
8616 if ac_fn_c_try_link "$LINENO"; then :
8617 ac_cv_lib_ICE_IceConnectionNumber=yes
8618 else
8619 ac_cv_lib_ICE_IceConnectionNumber=no
8620 fi
8621 rm -f core conftest.err conftest.$ac_objext \
8622 conftest$ac_exeext conftest.$ac_ext
8623 LIBS=$ac_check_lib_save_LIBS
8624 fi
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8626 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
8627 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
8628 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8629 fi
8630
8631 LDFLAGS=$ac_save_LDFLAGS
8632
8633 fi
8634
8635
8636
8637
8638
8639
8640
8641
8642 if test "x$with_x" = "xno"; then
8643 NO_X_TRUE=
8644 NO_X_FALSE='#'
8645 else
8646 NO_X_TRUE='#'
8647 NO_X_FALSE=
8648 fi
8649
8650
8651 my_includes="$my_includes -I../include -I.. -I/usr/local/include"
8652
8653 LDFLAGS="$LDFLAGS -L/usr/local/lib"
8654
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8656 $as_echo_n "checking for X... " >&6; }
8657 if test "$with_x" != "no" && test "$wxwin" = "true"; then
8658
8659 $as_echo "#define HAVE_X11 1" >>confdefs.h
8660
8661 LDFLAGS="$LDFLAGS -L../libctgraphics -L/usr/X11R6/lib -L/usr/X11R6/lib64"
8662 my_includes="$my_includes -I/usr/X11R6/include -I/usr/include/X11"
8663 ctlib_graphics="$ctlibs_base -lctgraphics"
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8665 $as_echo "yes" >&6; }
8666 ctlib_graphics="$ctlib_graphics $X_BASIC_LIBS $X_TOOLKIT_LIBS"
8667 wx_cppflags="`$wxconfig --cppflags`"
8668 if test "$libgl" = "true" ; then
8669 ctlib_graphics="$ctlib_graphics -lGL -lGLU"
8670 if test "$wxwin" = "true" ; then
8671 wxdebug=""
8672 if test "$debug" = "true"; then
8673 wxdebug="--debug"
8674 fi
8675 if test "x$wx_gtk" != "x" ; then
8676 ctlib_graphics="$ctlib_graphics `$wxconfig $wxdebug --version=3.0 --libs std,gl` ${GTK_LIBS} ${GLIB_LIBS}"
8677
8678 elif test "x$wx_mac" != "x" ; then
8679 ctlib_graphics="$ctlib_graphics `$wxconfig $wxdebug --version=3.0 --libs std,gl`"
8680 fi
8681 fi
8682 fi
8683 if test "$wxwin" = "true" ; then
8684
8685 $as_echo "#define HAVE_SGP 1" >>confdefs.h
8686
8687 fi
8688 else
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8690 $as_echo "no" >&6; }
8691 fi
8692
8693 if test "$wxwin" = "true"; then
8694 HAVE_SGP_TRUE=
8695 HAVE_SGP_FALSE='#'
8696 else
8697 HAVE_SGP_TRUE='#'
8698 HAVE_SGP_FALSE=
8699 fi
8700
8701
8702 if test "$png" = "true" ; then
8703 ctlibs_tools="$ctlibs_tools -lpng"
8704 fi
8705 if test "$zlib" = "true" ; then
8706 ctlibs_tools="$ctlibs_tools -lz"
8707 fi
8708 if test "$fftw" = "true" ; then
8709 ctlibs_tools="$ctlibs_tools -lfftw3"
8710 fi
8711 if test "$ctn" = "true"; then
8712 ctlibs_tools="$ctlibs_tools -lctn"
8713 fi
8714
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldmallocxx" >&5
8716 $as_echo_n "checking for main in -ldmallocxx... " >&6; }
8717 if ${ac_cv_lib_dmallocxx_main+:} false; then :
8718 $as_echo_n "(cached) " >&6
8719 else
8720 ac_check_lib_save_LIBS=$LIBS
8721 LIBS="-ldmallocxx $LIBS"
8722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8723 /* end confdefs.h. */
8724
8725
8726 int
8727 main ()
8728 {
8729 return main ();
8730 ;
8731 return 0;
8732 }
8733 _ACEOF
8734 if ac_fn_c_try_link "$LINENO"; then :
8735 ac_cv_lib_dmallocxx_main=yes
8736 else
8737 ac_cv_lib_dmallocxx_main=no
8738 fi
8739 rm -f core conftest.err conftest.$ac_objext \
8740 conftest$ac_exeext conftest.$ac_ext
8741 LIBS=$ac_check_lib_save_LIBS
8742 fi
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmallocxx_main" >&5
8744 $as_echo "$ac_cv_lib_dmallocxx_main" >&6; }
8745 if test "x$ac_cv_lib_dmallocxx_main" = xyes; then :
8746 dmallocxx=true
8747 else
8748 dmallocxx=false
8749 fi
8750
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enable-dmalloc" >&5
8752 $as_echo_n "checking for enable-dmalloc... " >&6; }
8753 # Check whether --enable-dmalloc was given.
8754 if test "${enable_dmalloc+set}" = set; then :
8755 enableval=$enable_dmalloc; case "${enableval}" in
8756 yes) usedmalloc=true
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8758 $as_echo "yes" >&6; }
8759 ;;
8760 no) usedmalloc=false
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8762 $as_echo "no" >&6; }
8763 ;;
8764 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad value ${enableval} for --enable-dmalloc" >&5
8765 $as_echo "bad value ${enableval} for --enable-dmalloc" >&6; }
8766 ;;
8767 esac
8768 else
8769 usedmalloc=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8770 $as_echo "no" >&6; }
8771 fi
8772
8773
8774 if test "$dmallocxx" = "true" -a "$usedmalloc" = "true" ; then
8775 ctlibs_tools="$ctlibs_tools -ldmallocxx"
8776
8777 $as_echo "#define HAVE_DMALLOC 1" >>confdefs.h
8778
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using dmalloc" >&5
8780 $as_echo "Using dmalloc" >&6; }
8781 fi
8782
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lefence" >&5
8784 $as_echo_n "checking for main in -lefence... " >&6; }
8785 if ${ac_cv_lib_efence_main+:} false; then :
8786 $as_echo_n "(cached) " >&6
8787 else
8788 ac_check_lib_save_LIBS=$LIBS
8789 LIBS="-lefence $LIBS"
8790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8791 /* end confdefs.h. */
8792
8793
8794 int
8795 main ()
8796 {
8797 return main ();
8798 ;
8799 return 0;
8800 }
8801 _ACEOF
8802 if ac_fn_c_try_link "$LINENO"; then :
8803 ac_cv_lib_efence_main=yes
8804 else
8805 ac_cv_lib_efence_main=no
8806 fi
8807 rm -f core conftest.err conftest.$ac_objext \
8808 conftest$ac_exeext conftest.$ac_ext
8809 LIBS=$ac_check_lib_save_LIBS
8810 fi
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_main" >&5
8812 $as_echo "$ac_cv_lib_efence_main" >&6; }
8813 if test "x$ac_cv_lib_efence_main" = xyes; then :
8814 efence=true
8815 else
8816 efence=false
8817 fi
8818
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enable-efence" >&5
8820 $as_echo_n "checking for enable-efence... " >&6; }
8821 # Check whether --enable-efence was given.
8822 if test "${enable_efence+set}" = set; then :
8823 enableval=$enable_efence; Use ElectricFence memory allocation
8824 else
8825 case "${enableval}" in
8826 yes) useefence=true
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8828 $as_echo "yes" >&6; }
8829 ;;
8830 no) useefence=false
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8832 $as_echo "no" >&6; }
8833 ;;
8834 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: bad value ${enableval} for --enable-efence" >&5
8835 $as_echo "bad value ${enableval} for --enable-efence" >&6; }
8836 ;;
8837 esac
8838 fi
8839
8840
8841 if test "$efence" = "true" -a "$useefence" = "true" ; then
8842 ctlibs_tools="$ctlibs_tools -lefence"
8843
8844 $as_echo "#define HAVE_EFENCE 1" >>confdefs.h
8845
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using efence" >&5
8847 $as_echo "Using efence" >&6; }
8848 fi
8849
8850 if test "$wxwin" = "true" ; then
8851 if test "$wx_gtk" = "true" -o "$wx_mac" = "true" ; then
8852 wxcflags=`$wxconfig $wxdebug --cxxflags --version=3.0`
8853 #wxlibs=`$wxconfig --libs`
8854 else
8855 wxcflags="-D__WXMSW__ -D__WIN32__ -D__GNUWIN32__"
8856 wxlibs="-lwx -lglui -ljpeg -lxpm -lzlib -ltiff"
8857 fi
8858 CFLAGS="$CFLAGS -I../include $wxcflags"
8859 ctlib_graphics="$ctlib_graphics $wxlibs"
8860 fi
8861
8862
8863 if test "$wxwin"="true"; then
8864 HAVE_WXWINDOWS_TRUE=
8865 HAVE_WXWINDOWS_FALSE='#'
8866 else
8867 HAVE_WXWINDOWS_TRUE='#'
8868 HAVE_WXWINDOWS_FALSE=
8869 fi
8870
8871
8872 LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"
8873 ctlibs="$ctlibs_base -lctsim $ctlib_graphics -lctsupport $ctlibs_tools"
8874
8875
8876 if test "x$lamdir" != "x" ; then
8877 lamprograms="ctsimtext-lam"
8878
8879 lamdefs="$CFLAGS"
8880
8881 fi
8882
8883 CXXFLAGS="$CFLAGS"
8884
8885
8886
8887
8888 ac_config_files="$ac_config_files Makefile libctgraphics/Makefile libctsupport/Makefile libctsim/Makefile man/Makefile cgi-bin/ctsim.cgi cgi-bin/Makefile html/simulate.html html/Makefile include/Makefile getopt/Makefile tools/sample-ctsim.sh cgi-bin/ctsim.conf tools/Makefile src/Makefile helical/Makefile helical/sample-helical.sh"
8889
8890
8891 cat >confcache <<\_ACEOF
8892 # This file is a shell script that caches the results of configure
8893 # tests run on this system so they can be shared between configure
8894 # scripts and configure runs, see configure's option --config-cache.
8895 # It is not useful on other systems. If it contains results you don't
8896 # want to keep, you may remove or edit it.
8897 #
8898 # config.status only pays attention to the cache file if you give it
8899 # the --recheck option to rerun configure.
8900 #
8901 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8902 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8903 # following values.
8904
8905 _ACEOF
8906
8907 # The following way of writing the cache mishandles newlines in values,
8908 # but we know of no workaround that is simple, portable, and efficient.
8909 # So, we kill variables containing newlines.
8910 # Ultrix sh set writes to stderr and can't be redirected directly,
8911 # and sets the high bit in the cache file unless we assign to the vars.
8912 (
8913 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8914 eval ac_val=\$$ac_var
8915 case $ac_val in #(
8916 *${as_nl}*)
8917 case $ac_var in #(
8918 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8919 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8920 esac
8921 case $ac_var in #(
8922 _ | IFS | as_nl) ;; #(
8923 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8924 *) { eval $ac_var=; unset $ac_var;} ;;
8925 esac ;;
8926 esac
8927 done
8928
8929 (set) 2>&1 |
8930 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8931 *${as_nl}ac_space=\ *)
8932 # `set' does not quote correctly, so add quotes: double-quote
8933 # substitution turns \\\\ into \\, and sed turns \\ into \.
8934 sed -n \
8935 "s/'/'\\\\''/g;
8936 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8937 ;; #(
8938 *)
8939 # `set' quotes correctly as required by POSIX, so do not add quotes.
8940 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8941 ;;
8942 esac |
8943 sort
8944 ) |
8945 sed '
8946 /^ac_cv_env_/b end
8947 t clear
8948 :clear
8949 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8950 t end
8951 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8952 :end' >>confcache
8953 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8954 if test -w "$cache_file"; then
8955 if test "x$cache_file" != "x/dev/null"; then
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8957 $as_echo "$as_me: updating cache $cache_file" >&6;}
8958 if test ! -f "$cache_file" || test -h "$cache_file"; then
8959 cat confcache >"$cache_file"
8960 else
8961 case $cache_file in #(
8962 */* | ?:*)
8963 mv -f confcache "$cache_file"$$ &&
8964 mv -f "$cache_file"$$ "$cache_file" ;; #(
8965 *)
8966 mv -f confcache "$cache_file" ;;
8967 esac
8968 fi
8969 fi
8970 else
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8972 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8973 fi
8974 fi
8975 rm -f confcache
8976
8977 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8978 # Let make expand exec_prefix.
8979 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8980
8981 DEFS=-DHAVE_CONFIG_H
8982
8983 ac_libobjs=
8984 ac_ltlibobjs=
8985 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8986 # 1. Remove the extension, and $U if already installed.
8987 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8988 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8989 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8990 # will be set to the directory where LIBOBJS objects are built.
8991 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8992 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8993 done
8994 LIBOBJS=$ac_libobjs
8995
8996 LTLIBOBJS=$ac_ltlibobjs
8997
8998
8999 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9000 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
9001 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9002 fi
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
9004 $as_echo_n "checking that generated files are newer than configure... " >&6; }
9005 if test -n "$am_sleep_pid"; then
9006 # Hide warnings about reused PIDs.
9007 wait $am_sleep_pid 2>/dev/null
9008 fi
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
9010 $as_echo "done" >&6; }
9011 if test -n "$EXEEXT"; then
9012 am__EXEEXT_TRUE=
9013 am__EXEEXT_FALSE='#'
9014 else
9015 am__EXEEXT_TRUE='#'
9016 am__EXEEXT_FALSE=
9017 fi
9018
9019 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9020 as_fn_error $? "conditional \"AMDEP\" was never defined.
9021 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9022 fi
9023 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9024 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
9025 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9026 fi
9027 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9028 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
9029 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9030 fi
9031
9032 if test -z "${INCLUDED_GETOPT_LONG_TRUE}" && test -z "${INCLUDED_GETOPT_LONG_FALSE}"; then
9033 as_fn_error $? "conditional \"INCLUDED_GETOPT_LONG\" was never defined.
9034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9035 fi
9036 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
9037 as_fn_error $? "conditional \"DEBUG\" was never defined.
9038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9039 fi
9040 if test -z "${USE_HTML_TRUE}" && test -z "${USE_HTML_FALSE}"; then
9041 as_fn_error $? "conditional \"USE_HTML\" was never defined.
9042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9043 fi
9044 if test -z "${USE_LAM_TRUE}" && test -z "${USE_LAM_FALSE}"; then
9045 as_fn_error $? "conditional \"USE_LAM\" was never defined.
9046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9047 fi
9048 if test -z "${NO_X_TRUE}" && test -z "${NO_X_FALSE}"; then
9049 as_fn_error $? "conditional \"NO_X\" was never defined.
9050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9051 fi
9052 if test -z "${HAVE_SGP_TRUE}" && test -z "${HAVE_SGP_FALSE}"; then
9053 as_fn_error $? "conditional \"HAVE_SGP\" was never defined.
9054 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9055 fi
9056 if test -z "${HAVE_WXWINDOWS_TRUE}" && test -z "${HAVE_WXWINDOWS_FALSE}"; then
9057 as_fn_error $? "conditional \"HAVE_WXWINDOWS\" was never defined.
9058 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9059 fi
9060
9061 : "${CONFIG_STATUS=./config.status}"
9062 ac_write_fail=0
9063 ac_clean_files_save=$ac_clean_files
9064 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9066 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9067 as_write_fail=0
9068 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9069 #! $SHELL
9070 # Generated by $as_me.
9071 # Run this file to recreate the current configuration.
9072 # Compiler output produced by configure, useful for debugging
9073 # configure, is in config.log if it exists.
9074
9075 debug=false
9076 ac_cs_recheck=false
9077 ac_cs_silent=false
9078
9079 SHELL=\${CONFIG_SHELL-$SHELL}
9080 export SHELL
9081 _ASEOF
9082 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9083 ## -------------------- ##
9084 ## M4sh Initialization. ##
9085 ## -------------------- ##
9086
9087 # Be more Bourne compatible
9088 DUALCASE=1; export DUALCASE # for MKS sh
9089 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9090 emulate sh
9091 NULLCMD=:
9092 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9093 # is contrary to our usage. Disable this feature.
9094 alias -g '${1+"$@"}'='"$@"'
9095 setopt NO_GLOB_SUBST
9096 else
9097 case `(set -o) 2>/dev/null` in #(
9098 *posix*) :
9099 set -o posix ;; #(
9100 *) :
9101 ;;
9102 esac
9103 fi
9104
9105
9106 as_nl='
9107 '
9108 export as_nl
9109 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9110 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9111 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9112 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9113 # Prefer a ksh shell builtin over an external printf program on Solaris,
9114 # but without wasting forks for bash or zsh.
9115 if test -z "$BASH_VERSION$ZSH_VERSION" \
9116 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9117 as_echo='print -r --'
9118 as_echo_n='print -rn --'
9119 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9120 as_echo='printf %s\n'
9121 as_echo_n='printf %s'
9122 else
9123 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9124 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9125 as_echo_n='/usr/ucb/echo -n'
9126 else
9127 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9128 as_echo_n_body='eval
9129 arg=$1;
9130 case $arg in #(
9131 *"$as_nl"*)
9132 expr "X$arg" : "X\\(.*\\)$as_nl";
9133 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9134 esac;
9135 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9136 '
9137 export as_echo_n_body
9138 as_echo_n='sh -c $as_echo_n_body as_echo'
9139 fi
9140 export as_echo_body
9141 as_echo='sh -c $as_echo_body as_echo'
9142 fi
9143
9144 # The user is always right.
9145 if test "${PATH_SEPARATOR+set}" != set; then
9146 PATH_SEPARATOR=:
9147 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9148 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9149 PATH_SEPARATOR=';'
9150 }
9151 fi
9152
9153
9154 # IFS
9155 # We need space, tab and new line, in precisely that order. Quoting is
9156 # there to prevent editors from complaining about space-tab.
9157 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9158 # splitting by setting IFS to empty value.)
9159 IFS=" "" $as_nl"
9160
9161 # Find who we are. Look in the path if we contain no directory separator.
9162 as_myself=
9163 case $0 in #((
9164 *[\\/]* ) as_myself=$0 ;;
9165 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9166 for as_dir in $PATH
9167 do
9168 IFS=$as_save_IFS
9169 test -z "$as_dir" && as_dir=.
9170 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9171 done
9172 IFS=$as_save_IFS
9173
9174 ;;
9175 esac
9176 # We did not find ourselves, most probably we were run as `sh COMMAND'
9177 # in which case we are not to be found in the path.
9178 if test "x$as_myself" = x; then
9179 as_myself=$0
9180 fi
9181 if test ! -f "$as_myself"; then
9182 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9183 exit 1
9184 fi
9185
9186 # Unset variables that we do not need and which cause bugs (e.g. in
9187 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9188 # suppresses any "Segmentation fault" message there. '((' could
9189 # trigger a bug in pdksh 5.2.14.
9190 for as_var in BASH_ENV ENV MAIL MAILPATH
9191 do eval test x\${$as_var+set} = xset \
9192 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9193 done
9194 PS1='$ '
9195 PS2='> '
9196 PS4='+ '
9197
9198 # NLS nuisances.
9199 LC_ALL=C
9200 export LC_ALL
9201 LANGUAGE=C
9202 export LANGUAGE
9203
9204 # CDPATH.
9205 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9206
9207
9208 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9209 # ----------------------------------------
9210 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9211 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9212 # script with STATUS, using 1 if that was 0.
9213 as_fn_error ()
9214 {
9215 as_status=$1; test $as_status -eq 0 && as_status=1
9216 if test "$4"; then
9217 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9218 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9219 fi
9220 $as_echo "$as_me: error: $2" >&2
9221 as_fn_exit $as_status
9222 } # as_fn_error
9223
9224
9225 # as_fn_set_status STATUS
9226 # -----------------------
9227 # Set $? to STATUS, without forking.
9228 as_fn_set_status ()
9229 {
9230 return $1
9231 } # as_fn_set_status
9232
9233 # as_fn_exit STATUS
9234 # -----------------
9235 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9236 as_fn_exit ()
9237 {
9238 set +e
9239 as_fn_set_status $1
9240 exit $1
9241 } # as_fn_exit
9242
9243 # as_fn_unset VAR
9244 # ---------------
9245 # Portably unset VAR.
9246 as_fn_unset ()
9247 {
9248 { eval $1=; unset $1;}
9249 }
9250 as_unset=as_fn_unset
9251 # as_fn_append VAR VALUE
9252 # ----------------------
9253 # Append the text in VALUE to the end of the definition contained in VAR. Take
9254 # advantage of any shell optimizations that allow amortized linear growth over
9255 # repeated appends, instead of the typical quadratic growth present in naive
9256 # implementations.
9257 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9258 eval 'as_fn_append ()
9259 {
9260 eval $1+=\$2
9261 }'
9262 else
9263 as_fn_append ()
9264 {
9265 eval $1=\$$1\$2
9266 }
9267 fi # as_fn_append
9268
9269 # as_fn_arith ARG...
9270 # ------------------
9271 # Perform arithmetic evaluation on the ARGs, and store the result in the
9272 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9273 # must be portable across $(()) and expr.
9274 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9275 eval 'as_fn_arith ()
9276 {
9277 as_val=$(( $* ))
9278 }'
9279 else
9280 as_fn_arith ()
9281 {
9282 as_val=`expr "$@" || test $? -eq 1`
9283 }
9284 fi # as_fn_arith
9285
9286
9287 if expr a : '\(a\)' >/dev/null 2>&1 &&
9288 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9289 as_expr=expr
9290 else
9291 as_expr=false
9292 fi
9293
9294 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9295 as_basename=basename
9296 else
9297 as_basename=false
9298 fi
9299
9300 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9301 as_dirname=dirname
9302 else
9303 as_dirname=false
9304 fi
9305
9306 as_me=`$as_basename -- "$0" ||
9307 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9308 X"$0" : 'X\(//\)$' \| \
9309 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9310 $as_echo X/"$0" |
9311 sed '/^.*\/\([^/][^/]*\)\/*$/{
9312 s//\1/
9313 q
9314 }
9315 /^X\/\(\/\/\)$/{
9316 s//\1/
9317 q
9318 }
9319 /^X\/\(\/\).*/{
9320 s//\1/
9321 q
9322 }
9323 s/.*/./; q'`
9324
9325 # Avoid depending upon Character Ranges.
9326 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9327 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9328 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9329 as_cr_digits='0123456789'
9330 as_cr_alnum=$as_cr_Letters$as_cr_digits
9331
9332 ECHO_C= ECHO_N= ECHO_T=
9333 case `echo -n x` in #(((((
9334 -n*)
9335 case `echo 'xy\c'` in
9336 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9337 xy) ECHO_C='\c';;
9338 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9339 ECHO_T=' ';;
9340 esac;;
9341 *)
9342 ECHO_N='-n';;
9343 esac
9344
9345 rm -f conf$$ conf$$.exe conf$$.file
9346 if test -d conf$$.dir; then
9347 rm -f conf$$.dir/conf$$.file
9348 else
9349 rm -f conf$$.dir
9350 mkdir conf$$.dir 2>/dev/null
9351 fi
9352 if (echo >conf$$.file) 2>/dev/null; then
9353 if ln -s conf$$.file conf$$ 2>/dev/null; then
9354 as_ln_s='ln -s'
9355 # ... but there are two gotchas:
9356 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9357 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9358 # In both cases, we have to default to `cp -pR'.
9359 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9360 as_ln_s='cp -pR'
9361 elif ln conf$$.file conf$$ 2>/dev/null; then
9362 as_ln_s=ln
9363 else
9364 as_ln_s='cp -pR'
9365 fi
9366 else
9367 as_ln_s='cp -pR'
9368 fi
9369 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9370 rmdir conf$$.dir 2>/dev/null
9371
9372
9373 # as_fn_mkdir_p
9374 # -------------
9375 # Create "$as_dir" as a directory, including parents if necessary.
9376 as_fn_mkdir_p ()
9377 {
9378
9379 case $as_dir in #(
9380 -*) as_dir=./$as_dir;;
9381 esac
9382 test -d "$as_dir" || eval $as_mkdir_p || {
9383 as_dirs=
9384 while :; do
9385 case $as_dir in #(
9386 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9387 *) as_qdir=$as_dir;;
9388 esac
9389 as_dirs="'$as_qdir' $as_dirs"
9390 as_dir=`$as_dirname -- "$as_dir" ||
9391 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9392 X"$as_dir" : 'X\(//\)[^/]' \| \
9393 X"$as_dir" : 'X\(//\)$' \| \
9394 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9395 $as_echo X"$as_dir" |
9396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9397 s//\1/
9398 q
9399 }
9400 /^X\(\/\/\)[^/].*/{
9401 s//\1/
9402 q
9403 }
9404 /^X\(\/\/\)$/{
9405 s//\1/
9406 q
9407 }
9408 /^X\(\/\).*/{
9409 s//\1/
9410 q
9411 }
9412 s/.*/./; q'`
9413 test -d "$as_dir" && break
9414 done
9415 test -z "$as_dirs" || eval "mkdir $as_dirs"
9416 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9417
9418
9419 } # as_fn_mkdir_p
9420 if mkdir -p . 2>/dev/null; then
9421 as_mkdir_p='mkdir -p "$as_dir"'
9422 else
9423 test -d ./-p && rmdir ./-p
9424 as_mkdir_p=false
9425 fi
9426
9427
9428 # as_fn_executable_p FILE
9429 # -----------------------
9430 # Test if FILE is an executable regular file.
9431 as_fn_executable_p ()
9432 {
9433 test -f "$1" && test -x "$1"
9434 } # as_fn_executable_p
9435 as_test_x='test -x'
9436 as_executable_p=as_fn_executable_p
9437
9438 # Sed expression to map a string onto a valid CPP name.
9439 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9440
9441 # Sed expression to map a string onto a valid variable name.
9442 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9443
9444
9445 exec 6>&1
9446 ## ----------------------------------- ##
9447 ## Main body of $CONFIG_STATUS script. ##
9448 ## ----------------------------------- ##
9449 _ASEOF
9450 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9451
9452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9453 # Save the log message, to keep $0 and so on meaningful, and to
9454 # report actual input values of CONFIG_FILES etc. instead of their
9455 # values after options handling.
9456 ac_log="
9457 This file was extended by CTSim $as_me 6.0.0, which was
9458 generated by GNU Autoconf 2.69. Invocation command line was
9459
9460 CONFIG_FILES = $CONFIG_FILES
9461 CONFIG_HEADERS = $CONFIG_HEADERS
9462 CONFIG_LINKS = $CONFIG_LINKS
9463 CONFIG_COMMANDS = $CONFIG_COMMANDS
9464 $ $0 $@
9465
9466 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9467 "
9468
9469 _ACEOF
9470
9471 case $ac_config_files in *"
9472 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9473 esac
9474
9475 case $ac_config_headers in *"
9476 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9477 esac
9478
9479
9480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9481 # Files that config.status was made for.
9482 config_files="$ac_config_files"
9483 config_headers="$ac_config_headers"
9484 config_commands="$ac_config_commands"
9485
9486 _ACEOF
9487
9488 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9489 ac_cs_usage="\
9490 \`$as_me' instantiates files and other configuration actions
9491 from templates according to the current configuration. Unless the files
9492 and actions are specified as TAGs, all are instantiated by default.
9493
9494 Usage: $0 [OPTION]... [TAG]...
9495
9496 -h, --help print this help, then exit
9497 -V, --version print version number and configuration settings, then exit
9498 --config print configuration, then exit
9499 -q, --quiet, --silent
9500 do not print progress messages
9501 -d, --debug don't remove temporary files
9502 --recheck update $as_me by reconfiguring in the same conditions
9503 --file=FILE[:TEMPLATE]
9504 instantiate the configuration file FILE
9505 --header=FILE[:TEMPLATE]
9506 instantiate the configuration header FILE
9507
9508 Configuration files:
9509 $config_files
9510
9511 Configuration headers:
9512 $config_headers
9513
9514 Configuration commands:
9515 $config_commands
9516
9517 Report bugs to <[email protected]>.
9518 CTSim home page: <http://www.ctsim.org/>."
9519
9520 _ACEOF
9521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9522 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9523 ac_cs_version="\\
9524 CTSim config.status 6.0.0
9525 configured by $0, generated by GNU Autoconf 2.69,
9526 with options \\"\$ac_cs_config\\"
9527
9528 Copyright (C) 2012 Free Software Foundation, Inc.
9529 This config.status script is free software; the Free Software Foundation
9530 gives unlimited permission to copy, distribute and modify it."
9531
9532 ac_pwd='$ac_pwd'
9533 srcdir='$srcdir'
9534 INSTALL='$INSTALL'
9535 MKDIR_P='$MKDIR_P'
9536 AWK='$AWK'
9537 test -n "\$AWK" || AWK=awk
9538 _ACEOF
9539
9540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9541 # The default lists apply if the user does not specify any file.
9542 ac_need_defaults=:
9543 while test $# != 0
9544 do
9545 case $1 in
9546 --*=?*)
9547 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9548 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9549 ac_shift=:
9550 ;;
9551 --*=)
9552 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9553 ac_optarg=
9554 ac_shift=:
9555 ;;
9556 *)
9557 ac_option=$1
9558 ac_optarg=$2
9559 ac_shift=shift
9560 ;;
9561 esac
9562
9563 case $ac_option in
9564 # Handling of the options.
9565 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9566 ac_cs_recheck=: ;;
9567 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9568 $as_echo "$ac_cs_version"; exit ;;
9569 --config | --confi | --conf | --con | --co | --c )
9570 $as_echo "$ac_cs_config"; exit ;;
9571 --debug | --debu | --deb | --de | --d | -d )
9572 debug=: ;;
9573 --file | --fil | --fi | --f )
9574 $ac_shift
9575 case $ac_optarg in
9576 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9577 '') as_fn_error $? "missing file argument" ;;
9578 esac
9579 as_fn_append CONFIG_FILES " '$ac_optarg'"
9580 ac_need_defaults=false;;
9581 --header | --heade | --head | --hea )
9582 $ac_shift
9583 case $ac_optarg in
9584 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9585 esac
9586 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9587 ac_need_defaults=false;;
9588 --he | --h)
9589 # Conflict between --help and --header
9590 as_fn_error $? "ambiguous option: \`$1'
9591 Try \`$0 --help' for more information.";;
9592 --help | --hel | -h )
9593 $as_echo "$ac_cs_usage"; exit ;;
9594 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9595 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9596 ac_cs_silent=: ;;
9597
9598 # This is an error.
9599 -*) as_fn_error $? "unrecognized option: \`$1'
9600 Try \`$0 --help' for more information." ;;
9601
9602 *) as_fn_append ac_config_targets " $1"
9603 ac_need_defaults=false ;;
9604
9605 esac
9606 shift
9607 done
9608
9609 ac_configure_extra_args=
9610
9611 if $ac_cs_silent; then
9612 exec 6>/dev/null
9613 ac_configure_extra_args="$ac_configure_extra_args --silent"
9614 fi
9615
9616 _ACEOF
9617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9618 if \$ac_cs_recheck; then
9619 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9620 shift
9621 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9622 CONFIG_SHELL='$SHELL'
9623 export CONFIG_SHELL
9624 exec "\$@"
9625 fi
9626
9627 _ACEOF
9628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9629 exec 5>>config.log
9630 {
9631 echo
9632 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9633 ## Running $as_me. ##
9634 _ASBOX
9635 $as_echo "$ac_log"
9636 } >&5
9637
9638 _ACEOF
9639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9640 #
9641 # INIT-COMMANDS
9642 #
9643 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9644
9645 _ACEOF
9646
9647 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9648
9649 # Handling of arguments.
9650 for ac_config_target in $ac_config_targets
9651 do
9652 case $ac_config_target in
9653 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9654 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9655 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9656 "libctgraphics/Makefile") CONFIG_FILES="$CONFIG_FILES libctgraphics/Makefile" ;;
9657 "libctsupport/Makefile") CONFIG_FILES="$CONFIG_FILES libctsupport/Makefile" ;;
9658 "libctsim/Makefile") CONFIG_FILES="$CONFIG_FILES libctsim/Makefile" ;;
9659 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
9660 "cgi-bin/ctsim.cgi") CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.cgi" ;;
9661 "cgi-bin/Makefile") CONFIG_FILES="$CONFIG_FILES cgi-bin/Makefile" ;;
9662 "html/simulate.html") CONFIG_FILES="$CONFIG_FILES html/simulate.html" ;;
9663 "html/Makefile") CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
9664 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
9665 "getopt/Makefile") CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
9666 "tools/sample-ctsim.sh") CONFIG_FILES="$CONFIG_FILES tools/sample-ctsim.sh" ;;
9667 "cgi-bin/ctsim.conf") CONFIG_FILES="$CONFIG_FILES cgi-bin/ctsim.conf" ;;
9668 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
9669 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9670 "helical/Makefile") CONFIG_FILES="$CONFIG_FILES helical/Makefile" ;;
9671 "helical/sample-helical.sh") CONFIG_FILES="$CONFIG_FILES helical/sample-helical.sh" ;;
9672
9673 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9674 esac
9675 done
9676
9677
9678 # If the user did not use the arguments to specify the items to instantiate,
9679 # then the envvar interface is used. Set only those that are not.
9680 # We use the long form for the default assignment because of an extremely
9681 # bizarre bug on SunOS 4.1.3.
9682 if $ac_need_defaults; then
9683 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9684 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9685 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9686 fi
9687
9688 # Have a temporary directory for convenience. Make it in the build tree
9689 # simply because there is no reason against having it here, and in addition,
9690 # creating and moving files from /tmp can sometimes cause problems.
9691 # Hook for its removal unless debugging.
9692 # Note that there is a small window in which the directory will not be cleaned:
9693 # after its creation but before its name has been assigned to `$tmp'.
9694 $debug ||
9695 {
9696 tmp= ac_tmp=
9697 trap 'exit_status=$?
9698 : "${ac_tmp:=$tmp}"
9699 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9700 ' 0
9701 trap 'as_fn_exit 1' 1 2 13 15
9702 }
9703 # Create a (secure) tmp directory for tmp files.
9704
9705 {
9706 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9707 test -d "$tmp"
9708 } ||
9709 {
9710 tmp=./conf$$-$RANDOM
9711 (umask 077 && mkdir "$tmp")
9712 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9713 ac_tmp=$tmp
9714
9715 # Set up the scripts for CONFIG_FILES section.
9716 # No need to generate them if there are no CONFIG_FILES.
9717 # This happens for instance with `./config.status config.h'.
9718 if test -n "$CONFIG_FILES"; then
9719
9720
9721 ac_cr=`echo X | tr X '\015'`
9722 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9723 # But we know of no other shell where ac_cr would be empty at this
9724 # point, so we can use a bashism as a fallback.
9725 if test "x$ac_cr" = x; then
9726 eval ac_cr=\$\'\\r\'
9727 fi
9728 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9729 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9730 ac_cs_awk_cr='\\r'
9731 else
9732 ac_cs_awk_cr=$ac_cr
9733 fi
9734
9735 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9736 _ACEOF
9737
9738
9739 {
9740 echo "cat >conf$$subs.awk <<_ACEOF" &&
9741 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9742 echo "_ACEOF"
9743 } >conf$$subs.sh ||
9744 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9745 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9746 ac_delim='%!_!# '
9747 for ac_last_try in false false false false false :; do
9748 . ./conf$$subs.sh ||
9749 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9750
9751 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9752 if test $ac_delim_n = $ac_delim_num; then
9753 break
9754 elif $ac_last_try; then
9755 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9756 else
9757 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9758 fi
9759 done
9760 rm -f conf$$subs.sh
9761
9762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9763 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9764 _ACEOF
9765 sed -n '
9766 h
9767 s/^/S["/; s/!.*/"]=/
9768 p
9769 g
9770 s/^[^!]*!//
9771 :repl
9772 t repl
9773 s/'"$ac_delim"'$//
9774 t delim
9775 :nl
9776 h
9777 s/\(.\{148\}\)..*/\1/
9778 t more1
9779 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9780 p
9781 n
9782 b repl
9783 :more1
9784 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9785 p
9786 g
9787 s/.\{148\}//
9788 t nl
9789 :delim
9790 h
9791 s/\(.\{148\}\)..*/\1/
9792 t more2
9793 s/["\\]/\\&/g; s/^/"/; s/$/"/
9794 p
9795 b
9796 :more2
9797 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9798 p
9799 g
9800 s/.\{148\}//
9801 t delim
9802 ' <conf$$subs.awk | sed '
9803 /^[^""]/{
9804 N
9805 s/\n//
9806 }
9807 ' >>$CONFIG_STATUS || ac_write_fail=1
9808 rm -f conf$$subs.awk
9809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9810 _ACAWK
9811 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9812 for (key in S) S_is_set[key] = 1
9813 FS = ""
9814
9815 }
9816 {
9817 line = $ 0
9818 nfields = split(line, field, "@")
9819 substed = 0
9820 len = length(field[1])
9821 for (i = 2; i < nfields; i++) {
9822 key = field[i]
9823 keylen = length(key)
9824 if (S_is_set[key]) {
9825 value = S[key]
9826 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9827 len += length(value) + length(field[++i])
9828 substed = 1
9829 } else
9830 len += 1 + keylen
9831 }
9832
9833 print line
9834 }
9835
9836 _ACAWK
9837 _ACEOF
9838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9839 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9840 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9841 else
9842 cat
9843 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9844 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9845 _ACEOF
9846
9847 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9848 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9849 # trailing colons and then remove the whole line if VPATH becomes empty
9850 # (actually we leave an empty line to preserve line numbers).
9851 if test "x$srcdir" = x.; then
9852 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9853 h
9854 s///
9855 s/^/:/
9856 s/[ ]*$/:/
9857 s/:\$(srcdir):/:/g
9858 s/:\${srcdir}:/:/g
9859 s/:@srcdir@:/:/g
9860 s/^:*//
9861 s/:*$//
9862 x
9863 s/\(=[ ]*\).*/\1/
9864 G
9865 s/\n//
9866 s/^[^=]*=[ ]*$//
9867 }'
9868 fi
9869
9870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9871 fi # test -n "$CONFIG_FILES"
9872
9873 # Set up the scripts for CONFIG_HEADERS section.
9874 # No need to generate them if there are no CONFIG_HEADERS.
9875 # This happens for instance with `./config.status Makefile'.
9876 if test -n "$CONFIG_HEADERS"; then
9877 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9878 BEGIN {
9879 _ACEOF
9880
9881 # Transform confdefs.h into an awk script `defines.awk', embedded as
9882 # here-document in config.status, that substitutes the proper values into
9883 # config.h.in to produce config.h.
9884
9885 # Create a delimiter string that does not exist in confdefs.h, to ease
9886 # handling of long lines.
9887 ac_delim='%!_!# '
9888 for ac_last_try in false false :; do
9889 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9890 if test -z "$ac_tt"; then
9891 break
9892 elif $ac_last_try; then
9893 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9894 else
9895 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9896 fi
9897 done
9898
9899 # For the awk script, D is an array of macro values keyed by name,
9900 # likewise P contains macro parameters if any. Preserve backslash
9901 # newline sequences.
9902
9903 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9904 sed -n '
9905 s/.\{148\}/&'"$ac_delim"'/g
9906 t rset
9907 :rset
9908 s/^[ ]*#[ ]*define[ ][ ]*/ /
9909 t def
9910 d
9911 :def
9912 s/\\$//
9913 t bsnl
9914 s/["\\]/\\&/g
9915 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9916 D["\1"]=" \3"/p
9917 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9918 d
9919 :bsnl
9920 s/["\\]/\\&/g
9921 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9922 D["\1"]=" \3\\\\\\n"\\/p
9923 t cont
9924 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9925 t cont
9926 d
9927 :cont
9928 n
9929 s/.\{148\}/&'"$ac_delim"'/g
9930 t clear
9931 :clear
9932 s/\\$//
9933 t bsnlc
9934 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9935 d
9936 :bsnlc
9937 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9938 b cont
9939 ' <confdefs.h | sed '
9940 s/'"$ac_delim"'/"\\\
9941 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9942
9943 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9944 for (key in D) D_is_set[key] = 1
9945 FS = ""
9946 }
9947 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9948 line = \$ 0
9949 split(line, arg, " ")
9950 if (arg[1] == "#") {
9951 defundef = arg[2]
9952 mac1 = arg[3]
9953 } else {
9954 defundef = substr(arg[1], 2)
9955 mac1 = arg[2]
9956 }
9957 split(mac1, mac2, "(") #)
9958 macro = mac2[1]
9959 prefix = substr(line, 1, index(line, defundef) - 1)
9960 if (D_is_set[macro]) {
9961 # Preserve the white space surrounding the "#".
9962 print prefix "define", macro P[macro] D[macro]
9963 next
9964 } else {
9965 # Replace #undef with comments. This is necessary, for example,
9966 # in the case of _POSIX_SOURCE, which is predefined and required
9967 # on some systems where configure will not decide to define it.
9968 if (defundef == "undef") {
9969 print "/*", prefix defundef, macro, "*/"
9970 next
9971 }
9972 }
9973 }
9974 { print }
9975 _ACAWK
9976 _ACEOF
9977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9978 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9979 fi # test -n "$CONFIG_HEADERS"
9980
9981
9982 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9983 shift
9984 for ac_tag
9985 do
9986 case $ac_tag in
9987 :[FHLC]) ac_mode=$ac_tag; continue;;
9988 esac
9989 case $ac_mode$ac_tag in
9990 :[FHL]*:*);;
9991 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9992 :[FH]-) ac_tag=-:-;;
9993 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9994 esac
9995 ac_save_IFS=$IFS
9996 IFS=:
9997 set x $ac_tag
9998 IFS=$ac_save_IFS
9999 shift
10000 ac_file=$1
10001 shift
10002
10003 case $ac_mode in
10004 :L) ac_source=$1;;
10005 :[FH])
10006 ac_file_inputs=
10007 for ac_f
10008 do
10009 case $ac_f in
10010 -) ac_f="$ac_tmp/stdin";;
10011 *) # Look for the file first in the build tree, then in the source tree
10012 # (if the path is not absolute). The absolute path cannot be DOS-style,
10013 # because $ac_f cannot contain `:'.
10014 test -f "$ac_f" ||
10015 case $ac_f in
10016 [\\/$]*) false;;
10017 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10018 esac ||
10019 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10020 esac
10021 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10022 as_fn_append ac_file_inputs " '$ac_f'"
10023 done
10024
10025 # Let's still pretend it is `configure' which instantiates (i.e., don't
10026 # use $as_me), people would be surprised to read:
10027 # /* config.h. Generated by config.status. */
10028 configure_input='Generated from '`
10029 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10030 `' by configure.'
10031 if test x"$ac_file" != x-; then
10032 configure_input="$ac_file. $configure_input"
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10034 $as_echo "$as_me: creating $ac_file" >&6;}
10035 fi
10036 # Neutralize special characters interpreted by sed in replacement strings.
10037 case $configure_input in #(
10038 *\&* | *\|* | *\\* )
10039 ac_sed_conf_input=`$as_echo "$configure_input" |
10040 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10041 *) ac_sed_conf_input=$configure_input;;
10042 esac
10043
10044 case $ac_tag in
10045 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10046 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10047 esac
10048 ;;
10049 esac
10050
10051 ac_dir=`$as_dirname -- "$ac_file" ||
10052 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10053 X"$ac_file" : 'X\(//\)[^/]' \| \
10054 X"$ac_file" : 'X\(//\)$' \| \
10055 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10056 $as_echo X"$ac_file" |
10057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10058 s//\1/
10059 q
10060 }
10061 /^X\(\/\/\)[^/].*/{
10062 s//\1/
10063 q
10064 }
10065 /^X\(\/\/\)$/{
10066 s//\1/
10067 q
10068 }
10069 /^X\(\/\).*/{
10070 s//\1/
10071 q
10072 }
10073 s/.*/./; q'`
10074 as_dir="$ac_dir"; as_fn_mkdir_p
10075 ac_builddir=.
10076
10077 case "$ac_dir" in
10078 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10079 *)
10080 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10081 # A ".." for each directory in $ac_dir_suffix.
10082 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10083 case $ac_top_builddir_sub in
10084 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10085 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10086 esac ;;
10087 esac
10088 ac_abs_top_builddir=$ac_pwd
10089 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10090 # for backward compatibility:
10091 ac_top_builddir=$ac_top_build_prefix
10092
10093 case $srcdir in
10094 .) # We are building in place.
10095 ac_srcdir=.
10096 ac_top_srcdir=$ac_top_builddir_sub
10097 ac_abs_top_srcdir=$ac_pwd ;;
10098 [\\/]* | ?:[\\/]* ) # Absolute name.
10099 ac_srcdir=$srcdir$ac_dir_suffix;
10100 ac_top_srcdir=$srcdir
10101 ac_abs_top_srcdir=$srcdir ;;
10102 *) # Relative name.
10103 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10104 ac_top_srcdir=$ac_top_build_prefix$srcdir
10105 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10106 esac
10107 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10108
10109
10110 case $ac_mode in
10111 :F)
10112 #
10113 # CONFIG_FILE
10114 #
10115
10116 case $INSTALL in
10117 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10118 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10119 esac
10120 ac_MKDIR_P=$MKDIR_P
10121 case $MKDIR_P in
10122 [\\/$]* | ?:[\\/]* ) ;;
10123 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10124 esac
10125 _ACEOF
10126
10127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10128 # If the template does not know about datarootdir, expand it.
10129 # FIXME: This hack should be removed a few years after 2.60.
10130 ac_datarootdir_hack=; ac_datarootdir_seen=
10131 ac_sed_dataroot='
10132 /datarootdir/ {
10133 p
10134 q
10135 }
10136 /@datadir@/p
10137 /@docdir@/p
10138 /@infodir@/p
10139 /@localedir@/p
10140 /@mandir@/p'
10141 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10142 *datarootdir*) ac_datarootdir_seen=yes;;
10143 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10145 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10146 _ACEOF
10147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10148 ac_datarootdir_hack='
10149 s&@datadir@&$datadir&g
10150 s&@docdir@&$docdir&g
10151 s&@infodir@&$infodir&g
10152 s&@localedir@&$localedir&g
10153 s&@mandir@&$mandir&g
10154 s&\\\${datarootdir}&$datarootdir&g' ;;
10155 esac
10156 _ACEOF
10157
10158 # Neutralize VPATH when `$srcdir' = `.'.
10159 # Shell code in configure.ac might set extrasub.
10160 # FIXME: do we really want to maintain this feature?
10161 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10162 ac_sed_extra="$ac_vpsub
10163 $extrasub
10164 _ACEOF
10165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10166 :t
10167 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10168 s|@configure_input@|$ac_sed_conf_input|;t t
10169 s&@top_builddir@&$ac_top_builddir_sub&;t t
10170 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10171 s&@srcdir@&$ac_srcdir&;t t
10172 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10173 s&@top_srcdir@&$ac_top_srcdir&;t t
10174 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10175 s&@builddir@&$ac_builddir&;t t
10176 s&@abs_builddir@&$ac_abs_builddir&;t t
10177 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10178 s&@INSTALL@&$ac_INSTALL&;t t
10179 s&@MKDIR_P@&$ac_MKDIR_P&;t t
10180 $ac_datarootdir_hack
10181 "
10182 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10183 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10184
10185 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10186 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10187 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10188 "$ac_tmp/out"`; test -z "$ac_out"; } &&
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10190 which seems to be undefined. Please make sure it is defined" >&5
10191 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10192 which seems to be undefined. Please make sure it is defined" >&2;}
10193
10194 rm -f "$ac_tmp/stdin"
10195 case $ac_file in
10196 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10197 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10198 esac \
10199 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10200 ;;
10201 :H)
10202 #
10203 # CONFIG_HEADER
10204 #
10205 if test x"$ac_file" != x-; then
10206 {
10207 $as_echo "/* $configure_input */" \
10208 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10209 } >"$ac_tmp/config.h" \
10210 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10211 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10213 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10214 else
10215 rm -f "$ac_file"
10216 mv "$ac_tmp/config.h" "$ac_file" \
10217 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10218 fi
10219 else
10220 $as_echo "/* $configure_input */" \
10221 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10222 || as_fn_error $? "could not create -" "$LINENO" 5
10223 fi
10224 # Compute "$ac_file"'s index in $config_headers.
10225 _am_arg="$ac_file"
10226 _am_stamp_count=1
10227 for _am_header in $config_headers :; do
10228 case $_am_header in
10229 $_am_arg | $_am_arg:* )
10230 break ;;
10231 * )
10232 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10233 esac
10234 done
10235 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10236 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10237 X"$_am_arg" : 'X\(//\)[^/]' \| \
10238 X"$_am_arg" : 'X\(//\)$' \| \
10239 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10240 $as_echo X"$_am_arg" |
10241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10242 s//\1/
10243 q
10244 }
10245 /^X\(\/\/\)[^/].*/{
10246 s//\1/
10247 q
10248 }
10249 /^X\(\/\/\)$/{
10250 s//\1/
10251 q
10252 }
10253 /^X\(\/\).*/{
10254 s//\1/
10255 q
10256 }
10257 s/.*/./; q'`/stamp-h$_am_stamp_count
10258 ;;
10259
10260 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10261 $as_echo "$as_me: executing $ac_file commands" >&6;}
10262 ;;
10263 esac
10264
10265
10266 case $ac_file$ac_mode in
10267 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10268 # Older Autoconf quotes --file arguments for eval, but not when files
10269 # are listed without --file. Let's play safe and only enable the eval
10270 # if we detect the quoting.
10271 case $CONFIG_FILES in
10272 *\'*) eval set x "$CONFIG_FILES" ;;
10273 *) set x $CONFIG_FILES ;;
10274 esac
10275 shift
10276 for mf
10277 do
10278 # Strip MF so we end up with the name of the file.
10279 mf=`echo "$mf" | sed -e 's/:.*$//'`
10280 # Check whether this is an Automake generated Makefile or not.
10281 # We used to match only the files named 'Makefile.in', but
10282 # some people rename them; so instead we look at the file content.
10283 # Grep'ing the first line is not enough: some people post-process
10284 # each Makefile.in and add a new line on top of each file to say so.
10285 # Grep'ing the whole file is not good either: AIX grep has a line
10286 # limit of 2048, but all sed's we know have understand at least 4000.
10287 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10288 dirpart=`$as_dirname -- "$mf" ||
10289 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10290 X"$mf" : 'X\(//\)[^/]' \| \
10291 X"$mf" : 'X\(//\)$' \| \
10292 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10293 $as_echo X"$mf" |
10294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10295 s//\1/
10296 q
10297 }
10298 /^X\(\/\/\)[^/].*/{
10299 s//\1/
10300 q
10301 }
10302 /^X\(\/\/\)$/{
10303 s//\1/
10304 q
10305 }
10306 /^X\(\/\).*/{
10307 s//\1/
10308 q
10309 }
10310 s/.*/./; q'`
10311 else
10312 continue
10313 fi
10314 # Extract the definition of DEPDIR, am__include, and am__quote
10315 # from the Makefile without running 'make'.
10316 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10317 test -z "$DEPDIR" && continue
10318 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10319 test -z "$am__include" && continue
10320 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10321 # Find all dependency output files, they are included files with
10322 # $(DEPDIR) in their names. We invoke sed twice because it is the
10323 # simplest approach to changing $(DEPDIR) to its actual value in the
10324 # expansion.
10325 for file in `sed -n "
10326 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10327 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
10328 # Make sure the directory exists.
10329 test -f "$dirpart/$file" && continue
10330 fdir=`$as_dirname -- "$file" ||
10331 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10332 X"$file" : 'X\(//\)[^/]' \| \
10333 X"$file" : 'X\(//\)$' \| \
10334 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10335 $as_echo X"$file" |
10336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10337 s//\1/
10338 q
10339 }
10340 /^X\(\/\/\)[^/].*/{
10341 s//\1/
10342 q
10343 }
10344 /^X\(\/\/\)$/{
10345 s//\1/
10346 q
10347 }
10348 /^X\(\/\).*/{
10349 s//\1/
10350 q
10351 }
10352 s/.*/./; q'`
10353 as_dir=$dirpart/$fdir; as_fn_mkdir_p
10354 # echo "creating $dirpart/$file"
10355 echo '# dummy' > "$dirpart/$file"
10356 done
10357 done
10358 }
10359 ;;
10360
10361 esac
10362 done # for ac_tag
10363
10364
10365 as_fn_exit 0
10366 _ACEOF
10367 ac_clean_files=$ac_clean_files_save
10368
10369 test $ac_write_fail = 0 ||
10370 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10371
10372
10373 # configure is writing to config.log, and then calls config.status.
10374 # config.status does its own redirection, appending to config.log.
10375 # Unfortunately, on DOS this fails, as config.log is still kept open
10376 # by configure, so config.status won't be able to write to it; its
10377 # output is simply discarded. So we exec the FD to /dev/null,
10378 # effectively closing config.log, so it can be properly (re)opened and
10379 # appended to by config.status. When coming back to configure, we
10380 # need to make the FD available again.
10381 if test "$no_create" != yes; then
10382 ac_cs_success=:
10383 ac_config_status_args=
10384 test "$silent" = yes &&
10385 ac_config_status_args="$ac_config_status_args --quiet"
10386 exec 5>/dev/null
10387 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10388 exec 5>>config.log
10389 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10390 # would make configure fail if this is the last instruction.
10391 $ac_cs_success || as_fn_exit 1
10392 fi
10393 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10395 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10396 fi
10397