show git hash (if available) when invoking -v key
[gpivtools.git] / configure
blobfa6202436b7842d80bc61e423be287170c3edb24
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
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 ## -------------------- ##
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 *) :
32 esac
36 as_nl='
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"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
236 exit 1
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
254 { eval $1=; unset $1;}
256 as_unset=as_fn_unset
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
263 return $1
264 } # as_fn_set_status
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
307 /^X\(\/\/\)$/{
308 s//\1/
311 /^X\(\/\).*/{
312 s//\1/
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
332 eval $1+=\$2
334 else
335 as_fn_append ()
337 eval $1=\$$1\$2
339 fi # as_fn_append
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
349 as_val=$(( $* ))
351 else
352 as_fn_arith ()
354 as_val=`expr "$@" || test $? -eq 1`
356 fi # as_fn_arith
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
403 /^X\/\(\/\/\)$/{
404 s//\1/
407 /^X\/\(\/\).*/{
408 s//\1/
411 s/.*/./; q'`
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
434 :lineno
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
462 ECHO_N='-n';;
463 esac
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
486 else
487 as_ln_s='cp -p'
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538 # Initializations.
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
549 # Identity of this package.
550 PACKAGE_NAME=
551 PACKAGE_TARNAME=
552 PACKAGE_VERSION=
553 PACKAGE_STRING=
554 PACKAGE_BUGREPORT=
555 PACKAGE_URL=
557 ac_unique_file="src/evaluate/rr.c"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
594 ac_subst_vars='am__EXEEXT_FALSE
595 am__EXEEXT_TRUE
596 LTLIBOBJS
597 LIBOBJS
598 ALLOCA
599 BUILD_MPI_FALSE
600 BUILD_MPI_TRUE
601 HAVE_MPIPYTHON_FALSE
602 HAVE_MPIPYTHON_TRUE
603 K_TOPDIR
604 RTA_TOPDIR
605 HAVE_CONTROL_FALSE
606 HAVE_CONTROL_TRUE
607 CONTROL
608 ENABLE_TRIG
609 ENABLE_CAM
610 MPIPYTHON
611 MPILIBS
612 MPICC
613 ENABLE_MPI
614 HAVE_PLOTMTV_FALSE
615 HAVE_PLOTMTV_TRUE
616 PLOTMTV
617 HAVE_CONVERT_FALSE
618 HAVE_CONVERT_TRUE
619 CONVERT
620 HAVE_PYTHON_FALSE
621 HAVE_PYTHON_TRUE
622 PYTHON
623 HAVE_PERL_FALSE
624 HAVE_PERL_TRUE
625 PERL
626 GLIB_LIBS
627 GLIB_CFLAGS
628 PKG_CONFIG
629 HAVE_GNUPLOT_FALSE
630 HAVE_GNUPLOT_TRUE
631 GNUPLOT
632 RANLIB
633 MAINT
634 MAINTAINER_MODE_FALSE
635 MAINTAINER_MODE_TRUE
636 EGREP
637 GREP
639 am__fastdepCC_FALSE
640 am__fastdepCC_TRUE
641 CCDEPMODE
642 AMDEPBACKSLASH
643 AMDEP_FALSE
644 AMDEP_TRUE
645 am__quote
646 am__include
647 DEPDIR
648 OBJEXT
649 EXEEXT
650 ac_ct_CC
651 CPPFLAGS
652 LDFLAGS
653 CFLAGS
655 am__untar
656 am__tar
657 AMTAR
658 am__leading_dot
659 SET_MAKE
661 mkdir_p
662 MKDIR_P
663 INSTALL_STRIP_PROGRAM
664 STRIP
665 install_sh
666 MAKEINFO
667 AUTOHEADER
668 AUTOMAKE
669 AUTOCONF
670 ACLOCAL
671 VERSION
672 PACKAGE
673 CYGPATH_W
674 am__isrc
675 INSTALL_DATA
676 INSTALL_SCRIPT
677 INSTALL_PROGRAM
678 target_alias
679 host_alias
680 build_alias
681 LIBS
682 ECHO_T
683 ECHO_N
684 ECHO_C
685 DEFS
686 mandir
687 localedir
688 libdir
689 psdir
690 pdfdir
691 dvidir
692 htmldir
693 infodir
694 docdir
695 oldincludedir
696 includedir
697 localstatedir
698 sharedstatedir
699 sysconfdir
700 datadir
701 datarootdir
702 libexecdir
703 sbindir
704 bindir
705 program_transform_name
706 prefix
707 exec_prefix
708 PACKAGE_URL
709 PACKAGE_BUGREPORT
710 PACKAGE_STRING
711 PACKAGE_VERSION
712 PACKAGE_TARNAME
713 PACKAGE_NAME
714 PATH_SEPARATOR
715 SHELL'
716 ac_subst_files=''
717 ac_user_opts='
718 enable_option_checking
719 enable_dependency_tracking
720 enable_maintainer_mode
721 enable_mpi
722 enable_cam
723 enable_trig
724 enable_rta
725 enable_k
726 enable_omp
728 ac_precious_vars='build_alias
729 host_alias
730 target_alias
732 CFLAGS
733 LDFLAGS
734 LIBS
735 CPPFLAGS
737 PKG_CONFIG
738 GLIB_CFLAGS
739 GLIB_LIBS
740 MPICC'
743 # Initialize some variables set by options.
744 ac_init_help=
745 ac_init_version=false
746 ac_unrecognized_opts=
747 ac_unrecognized_sep=
748 # The variables have the same names as the options, with
749 # dashes changed to underlines.
750 cache_file=/dev/null
751 exec_prefix=NONE
752 no_create=
753 no_recursion=
754 prefix=NONE
755 program_prefix=NONE
756 program_suffix=NONE
757 program_transform_name=s,x,x,
758 silent=
759 site=
760 srcdir=
761 verbose=
762 x_includes=NONE
763 x_libraries=NONE
765 # Installation directory options.
766 # These are left unexpanded so users can "make install exec_prefix=/foo"
767 # and all the variables that are supposed to be based on exec_prefix
768 # by default will actually change.
769 # Use braces instead of parens because sh, perl, etc. also accept them.
770 # (The list follows the same order as the GNU Coding Standards.)
771 bindir='${exec_prefix}/bin'
772 sbindir='${exec_prefix}/sbin'
773 libexecdir='${exec_prefix}/libexec'
774 datarootdir='${prefix}/share'
775 datadir='${datarootdir}'
776 sysconfdir='${prefix}/etc'
777 sharedstatedir='${prefix}/com'
778 localstatedir='${prefix}/var'
779 includedir='${prefix}/include'
780 oldincludedir='/usr/include'
781 docdir='${datarootdir}/doc/${PACKAGE}'
782 infodir='${datarootdir}/info'
783 htmldir='${docdir}'
784 dvidir='${docdir}'
785 pdfdir='${docdir}'
786 psdir='${docdir}'
787 libdir='${exec_prefix}/lib'
788 localedir='${datarootdir}/locale'
789 mandir='${datarootdir}/man'
791 ac_prev=
792 ac_dashdash=
793 for ac_option
795 # If the previous option needs an argument, assign it.
796 if test -n "$ac_prev"; then
797 eval $ac_prev=\$ac_option
798 ac_prev=
799 continue
802 case $ac_option in
803 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
804 *) ac_optarg=yes ;;
805 esac
807 # Accept the important Cygnus configure options, so we can diagnose typos.
809 case $ac_dashdash$ac_option in
811 ac_dashdash=yes ;;
813 -bindir | --bindir | --bindi | --bind | --bin | --bi)
814 ac_prev=bindir ;;
815 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
816 bindir=$ac_optarg ;;
818 -build | --build | --buil | --bui | --bu)
819 ac_prev=build_alias ;;
820 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
821 build_alias=$ac_optarg ;;
823 -cache-file | --cache-file | --cache-fil | --cache-fi \
824 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
825 ac_prev=cache_file ;;
826 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
827 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
828 cache_file=$ac_optarg ;;
830 --config-cache | -C)
831 cache_file=config.cache ;;
833 -datadir | --datadir | --datadi | --datad)
834 ac_prev=datadir ;;
835 -datadir=* | --datadir=* | --datadi=* | --datad=*)
836 datadir=$ac_optarg ;;
838 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
839 | --dataroo | --dataro | --datar)
840 ac_prev=datarootdir ;;
841 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
842 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
843 datarootdir=$ac_optarg ;;
845 -disable-* | --disable-*)
846 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
847 # Reject names that are not valid shell variable names.
848 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
849 as_fn_error "invalid feature name: $ac_useropt"
850 ac_useropt_orig=$ac_useropt
851 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
852 case $ac_user_opts in
854 "enable_$ac_useropt"
855 "*) ;;
856 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
857 ac_unrecognized_sep=', ';;
858 esac
859 eval enable_$ac_useropt=no ;;
861 -docdir | --docdir | --docdi | --doc | --do)
862 ac_prev=docdir ;;
863 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
864 docdir=$ac_optarg ;;
866 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
867 ac_prev=dvidir ;;
868 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
869 dvidir=$ac_optarg ;;
871 -enable-* | --enable-*)
872 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
873 # Reject names that are not valid shell variable names.
874 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
875 as_fn_error "invalid feature name: $ac_useropt"
876 ac_useropt_orig=$ac_useropt
877 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
878 case $ac_user_opts in
880 "enable_$ac_useropt"
881 "*) ;;
882 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
883 ac_unrecognized_sep=', ';;
884 esac
885 eval enable_$ac_useropt=\$ac_optarg ;;
887 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
888 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
889 | --exec | --exe | --ex)
890 ac_prev=exec_prefix ;;
891 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
892 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
893 | --exec=* | --exe=* | --ex=*)
894 exec_prefix=$ac_optarg ;;
896 -gas | --gas | --ga | --g)
897 # Obsolete; use --with-gas.
898 with_gas=yes ;;
900 -help | --help | --hel | --he | -h)
901 ac_init_help=long ;;
902 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
903 ac_init_help=recursive ;;
904 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
905 ac_init_help=short ;;
907 -host | --host | --hos | --ho)
908 ac_prev=host_alias ;;
909 -host=* | --host=* | --hos=* | --ho=*)
910 host_alias=$ac_optarg ;;
912 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
913 ac_prev=htmldir ;;
914 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
915 | --ht=*)
916 htmldir=$ac_optarg ;;
918 -includedir | --includedir | --includedi | --included | --include \
919 | --includ | --inclu | --incl | --inc)
920 ac_prev=includedir ;;
921 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
922 | --includ=* | --inclu=* | --incl=* | --inc=*)
923 includedir=$ac_optarg ;;
925 -infodir | --infodir | --infodi | --infod | --info | --inf)
926 ac_prev=infodir ;;
927 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
928 infodir=$ac_optarg ;;
930 -libdir | --libdir | --libdi | --libd)
931 ac_prev=libdir ;;
932 -libdir=* | --libdir=* | --libdi=* | --libd=*)
933 libdir=$ac_optarg ;;
935 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
936 | --libexe | --libex | --libe)
937 ac_prev=libexecdir ;;
938 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
939 | --libexe=* | --libex=* | --libe=*)
940 libexecdir=$ac_optarg ;;
942 -localedir | --localedir | --localedi | --localed | --locale)
943 ac_prev=localedir ;;
944 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
945 localedir=$ac_optarg ;;
947 -localstatedir | --localstatedir | --localstatedi | --localstated \
948 | --localstate | --localstat | --localsta | --localst | --locals)
949 ac_prev=localstatedir ;;
950 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
951 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
952 localstatedir=$ac_optarg ;;
954 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
955 ac_prev=mandir ;;
956 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
957 mandir=$ac_optarg ;;
959 -nfp | --nfp | --nf)
960 # Obsolete; use --without-fp.
961 with_fp=no ;;
963 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
964 | --no-cr | --no-c | -n)
965 no_create=yes ;;
967 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
968 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
969 no_recursion=yes ;;
971 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
972 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
973 | --oldin | --oldi | --old | --ol | --o)
974 ac_prev=oldincludedir ;;
975 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
976 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
977 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
978 oldincludedir=$ac_optarg ;;
980 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
981 ac_prev=prefix ;;
982 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
983 prefix=$ac_optarg ;;
985 -program-prefix | --program-prefix | --program-prefi | --program-pref \
986 | --program-pre | --program-pr | --program-p)
987 ac_prev=program_prefix ;;
988 -program-prefix=* | --program-prefix=* | --program-prefi=* \
989 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
990 program_prefix=$ac_optarg ;;
992 -program-suffix | --program-suffix | --program-suffi | --program-suff \
993 | --program-suf | --program-su | --program-s)
994 ac_prev=program_suffix ;;
995 -program-suffix=* | --program-suffix=* | --program-suffi=* \
996 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
997 program_suffix=$ac_optarg ;;
999 -program-transform-name | --program-transform-name \
1000 | --program-transform-nam | --program-transform-na \
1001 | --program-transform-n | --program-transform- \
1002 | --program-transform | --program-transfor \
1003 | --program-transfo | --program-transf \
1004 | --program-trans | --program-tran \
1005 | --progr-tra | --program-tr | --program-t)
1006 ac_prev=program_transform_name ;;
1007 -program-transform-name=* | --program-transform-name=* \
1008 | --program-transform-nam=* | --program-transform-na=* \
1009 | --program-transform-n=* | --program-transform-=* \
1010 | --program-transform=* | --program-transfor=* \
1011 | --program-transfo=* | --program-transf=* \
1012 | --program-trans=* | --program-tran=* \
1013 | --progr-tra=* | --program-tr=* | --program-t=*)
1014 program_transform_name=$ac_optarg ;;
1016 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1017 ac_prev=pdfdir ;;
1018 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1019 pdfdir=$ac_optarg ;;
1021 -psdir | --psdir | --psdi | --psd | --ps)
1022 ac_prev=psdir ;;
1023 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1024 psdir=$ac_optarg ;;
1026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1027 | -silent | --silent | --silen | --sile | --sil)
1028 silent=yes ;;
1030 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1031 ac_prev=sbindir ;;
1032 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1033 | --sbi=* | --sb=*)
1034 sbindir=$ac_optarg ;;
1036 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1037 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1038 | --sharedst | --shareds | --shared | --share | --shar \
1039 | --sha | --sh)
1040 ac_prev=sharedstatedir ;;
1041 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1042 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1043 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1044 | --sha=* | --sh=*)
1045 sharedstatedir=$ac_optarg ;;
1047 -site | --site | --sit)
1048 ac_prev=site ;;
1049 -site=* | --site=* | --sit=*)
1050 site=$ac_optarg ;;
1052 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1053 ac_prev=srcdir ;;
1054 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1055 srcdir=$ac_optarg ;;
1057 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1058 | --syscon | --sysco | --sysc | --sys | --sy)
1059 ac_prev=sysconfdir ;;
1060 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1061 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1062 sysconfdir=$ac_optarg ;;
1064 -target | --target | --targe | --targ | --tar | --ta | --t)
1065 ac_prev=target_alias ;;
1066 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1067 target_alias=$ac_optarg ;;
1069 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1070 verbose=yes ;;
1072 -version | --version | --versio | --versi | --vers | -V)
1073 ac_init_version=: ;;
1075 -with-* | --with-*)
1076 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079 as_fn_error "invalid package name: $ac_useropt"
1080 ac_useropt_orig=$ac_useropt
1081 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082 case $ac_user_opts in
1084 "with_$ac_useropt"
1085 "*) ;;
1086 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1087 ac_unrecognized_sep=', ';;
1088 esac
1089 eval with_$ac_useropt=\$ac_optarg ;;
1091 -without-* | --without-*)
1092 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095 as_fn_error "invalid package name: $ac_useropt"
1096 ac_useropt_orig=$ac_useropt
1097 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098 case $ac_user_opts in
1100 "with_$ac_useropt"
1101 "*) ;;
1102 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1103 ac_unrecognized_sep=', ';;
1104 esac
1105 eval with_$ac_useropt=no ;;
1107 --x)
1108 # Obsolete; use --with-x.
1109 with_x=yes ;;
1111 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1112 | --x-incl | --x-inc | --x-in | --x-i)
1113 ac_prev=x_includes ;;
1114 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1115 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1116 x_includes=$ac_optarg ;;
1118 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1119 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1120 ac_prev=x_libraries ;;
1121 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1122 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1123 x_libraries=$ac_optarg ;;
1125 -*) as_fn_error "unrecognized option: \`$ac_option'
1126 Try \`$0 --help' for more information."
1129 *=*)
1130 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1131 # Reject names that are not valid shell variable names.
1132 case $ac_envvar in #(
1133 '' | [0-9]* | *[!_$as_cr_alnum]* )
1134 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1135 esac
1136 eval $ac_envvar=\$ac_optarg
1137 export $ac_envvar ;;
1140 # FIXME: should be removed in autoconf 3.0.
1141 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1142 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1143 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1144 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1147 esac
1148 done
1150 if test -n "$ac_prev"; then
1151 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1152 as_fn_error "missing argument to $ac_option"
1155 if test -n "$ac_unrecognized_opts"; then
1156 case $enable_option_checking in
1157 no) ;;
1158 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1159 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1160 esac
1163 # Check all directory arguments for consistency.
1164 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1165 datadir sysconfdir sharedstatedir localstatedir includedir \
1166 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1167 libdir localedir mandir
1169 eval ac_val=\$$ac_var
1170 # Remove trailing slashes.
1171 case $ac_val in
1172 */ )
1173 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1174 eval $ac_var=\$ac_val;;
1175 esac
1176 # Be sure to have absolute directory names.
1177 case $ac_val in
1178 [\\/$]* | ?:[\\/]* ) continue;;
1179 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1180 esac
1181 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1182 done
1184 # There might be people who depend on the old broken behavior: `$host'
1185 # used to hold the argument of --host etc.
1186 # FIXME: To remove some day.
1187 build=$build_alias
1188 host=$host_alias
1189 target=$target_alias
1191 # FIXME: To remove some day.
1192 if test "x$host_alias" != x; then
1193 if test "x$build_alias" = x; then
1194 cross_compiling=maybe
1195 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1196 If a cross compiler is detected then cross compile mode will be used." >&2
1197 elif test "x$build_alias" != "x$host_alias"; then
1198 cross_compiling=yes
1202 ac_tool_prefix=
1203 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1205 test "$silent" = yes && exec 6>/dev/null
1208 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1209 ac_ls_di=`ls -di .` &&
1210 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1211 as_fn_error "working directory cannot be determined"
1212 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1213 as_fn_error "pwd does not report name of working directory"
1216 # Find the source files, if location was not specified.
1217 if test -z "$srcdir"; then
1218 ac_srcdir_defaulted=yes
1219 # Try the directory containing this script, then the parent directory.
1220 ac_confdir=`$as_dirname -- "$as_myself" ||
1221 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1222 X"$as_myself" : 'X\(//\)[^/]' \| \
1223 X"$as_myself" : 'X\(//\)$' \| \
1224 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1225 $as_echo X"$as_myself" |
1226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1227 s//\1/
1230 /^X\(\/\/\)[^/].*/{
1231 s//\1/
1234 /^X\(\/\/\)$/{
1235 s//\1/
1238 /^X\(\/\).*/{
1239 s//\1/
1242 s/.*/./; q'`
1243 srcdir=$ac_confdir
1244 if test ! -r "$srcdir/$ac_unique_file"; then
1245 srcdir=..
1247 else
1248 ac_srcdir_defaulted=no
1250 if test ! -r "$srcdir/$ac_unique_file"; then
1251 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1252 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1254 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1255 ac_abs_confdir=`(
1256 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1257 pwd)`
1258 # When building in place, set srcdir=.
1259 if test "$ac_abs_confdir" = "$ac_pwd"; then
1260 srcdir=.
1262 # Remove unnecessary trailing slashes from srcdir.
1263 # Double slashes in file names in object file debugging info
1264 # mess up M-x gdb in Emacs.
1265 case $srcdir in
1266 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1267 esac
1268 for ac_var in $ac_precious_vars; do
1269 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1270 eval ac_env_${ac_var}_value=\$${ac_var}
1271 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1272 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1273 done
1276 # Report the --help message.
1278 if test "$ac_init_help" = "long"; then
1279 # Omit some internal or obsolete options to make the list less imposing.
1280 # This message is too long to be a string in the A/UX 3.1 sh.
1281 cat <<_ACEOF
1282 \`configure' configures this package to adapt to many kinds of systems.
1284 Usage: $0 [OPTION]... [VAR=VALUE]...
1286 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1287 VAR=VALUE. See below for descriptions of some of the useful variables.
1289 Defaults for the options are specified in brackets.
1291 Configuration:
1292 -h, --help display this help and exit
1293 --help=short display options specific to this package
1294 --help=recursive display the short help of all the included packages
1295 -V, --version display version information and exit
1296 -q, --quiet, --silent do not print \`checking...' messages
1297 --cache-file=FILE cache test results in FILE [disabled]
1298 -C, --config-cache alias for \`--cache-file=config.cache'
1299 -n, --no-create do not create output files
1300 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1302 Installation directories:
1303 --prefix=PREFIX install architecture-independent files in PREFIX
1304 [$ac_default_prefix]
1305 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1306 [PREFIX]
1308 By default, \`make install' will install all the files in
1309 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1310 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1311 for instance \`--prefix=\$HOME'.
1313 For better control, use the options below.
1315 Fine tuning of the installation directories:
1316 --bindir=DIR user executables [EPREFIX/bin]
1317 --sbindir=DIR system admin executables [EPREFIX/sbin]
1318 --libexecdir=DIR program executables [EPREFIX/libexec]
1319 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1320 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1321 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1322 --libdir=DIR object code libraries [EPREFIX/lib]
1323 --includedir=DIR C header files [PREFIX/include]
1324 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1325 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1326 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1327 --infodir=DIR info documentation [DATAROOTDIR/info]
1328 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1329 --mandir=DIR man documentation [DATAROOTDIR/man]
1330 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1331 --htmldir=DIR html documentation [DOCDIR]
1332 --dvidir=DIR dvi documentation [DOCDIR]
1333 --pdfdir=DIR pdf documentation [DOCDIR]
1334 --psdir=DIR ps documentation [DOCDIR]
1335 _ACEOF
1337 cat <<\_ACEOF
1339 Program names:
1340 --program-prefix=PREFIX prepend PREFIX to installed program names
1341 --program-suffix=SUFFIX append SUFFIX to installed program names
1342 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1343 _ACEOF
1346 if test -n "$ac_init_help"; then
1348 cat <<\_ACEOF
1350 Optional Features:
1351 --disable-option-checking ignore unrecognized --enable/--with options
1352 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1353 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1354 --disable-dependency-tracking speeds up one-time build
1355 --enable-dependency-tracking do not reject slow dependency extractors
1356 --enable-maintainer-mode enable make rules and dependencies not useful
1357 (and sometimes confusing) to the casual installer
1358 --enable-mpi enable Message Protocol Interface (MPI)
1359 --enable-cam enable (IEEE-1394) camera
1360 --enable-trig enable (realtime) triggering
1361 --disable-rta=RTATOPDIR place where the RTAI code \
1362 resides (default /usr/lib/realtime)
1363 --enable-k=KTOPDIR place where the installed kernel \
1364 headers resides (default /usr/src/kernel-headers-2.4.27-adeos)
1365 --enable-omp enable Open Multi-Processing (OMP)
1367 Some influential environment variables:
1368 CC C compiler command
1369 CFLAGS C compiler flags
1370 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1371 nonstandard directory <lib dir>
1372 LIBS libraries to pass to the linker, e.g. -l<library>
1373 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1374 you have headers in a nonstandard directory <include dir>
1375 CPP C preprocessor
1376 PKG_CONFIG path to pkg-config utility
1377 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1378 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1379 MPICC MPI C compiler command
1381 Use these variables to override the choices made by `configure' or to help
1382 it to find libraries and programs with nonstandard names/locations.
1384 Report bugs to the package provider.
1385 _ACEOF
1386 ac_status=$?
1389 if test "$ac_init_help" = "recursive"; then
1390 # If there are subdirs, report their specific --help.
1391 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1392 test -d "$ac_dir" ||
1393 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1394 continue
1395 ac_builddir=.
1397 case "$ac_dir" in
1398 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1400 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1401 # A ".." for each directory in $ac_dir_suffix.
1402 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1403 case $ac_top_builddir_sub in
1404 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1405 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1406 esac ;;
1407 esac
1408 ac_abs_top_builddir=$ac_pwd
1409 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1410 # for backward compatibility:
1411 ac_top_builddir=$ac_top_build_prefix
1413 case $srcdir in
1414 .) # We are building in place.
1415 ac_srcdir=.
1416 ac_top_srcdir=$ac_top_builddir_sub
1417 ac_abs_top_srcdir=$ac_pwd ;;
1418 [\\/]* | ?:[\\/]* ) # Absolute name.
1419 ac_srcdir=$srcdir$ac_dir_suffix;
1420 ac_top_srcdir=$srcdir
1421 ac_abs_top_srcdir=$srcdir ;;
1422 *) # Relative name.
1423 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1424 ac_top_srcdir=$ac_top_build_prefix$srcdir
1425 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1426 esac
1427 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1429 cd "$ac_dir" || { ac_status=$?; continue; }
1430 # Check for guested configure.
1431 if test -f "$ac_srcdir/configure.gnu"; then
1432 echo &&
1433 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1434 elif test -f "$ac_srcdir/configure"; then
1435 echo &&
1436 $SHELL "$ac_srcdir/configure" --help=recursive
1437 else
1438 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1439 fi || ac_status=$?
1440 cd "$ac_pwd" || { ac_status=$?; break; }
1441 done
1444 test -n "$ac_init_help" && exit $ac_status
1445 if $ac_init_version; then
1446 cat <<\_ACEOF
1447 configure
1448 generated by GNU Autoconf 2.65
1450 Copyright (C) 2009 Free Software Foundation, Inc.
1451 This configure script is free software; the Free Software Foundation
1452 gives unlimited permission to copy, distribute and modify it.
1453 _ACEOF
1454 exit
1457 ## ------------------------ ##
1458 ## Autoconf initialization. ##
1459 ## ------------------------ ##
1461 # ac_fn_c_try_compile LINENO
1462 # --------------------------
1463 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1464 ac_fn_c_try_compile ()
1466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1467 rm -f conftest.$ac_objext
1468 if { { ac_try="$ac_compile"
1469 case "(($ac_try" in
1470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1471 *) ac_try_echo=$ac_try;;
1472 esac
1473 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1474 $as_echo "$ac_try_echo"; } >&5
1475 (eval "$ac_compile") 2>conftest.err
1476 ac_status=$?
1477 if test -s conftest.err; then
1478 grep -v '^ *+' conftest.err >conftest.er1
1479 cat conftest.er1 >&5
1480 mv -f conftest.er1 conftest.err
1482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1483 test $ac_status = 0; } && {
1484 test -z "$ac_c_werror_flag" ||
1485 test ! -s conftest.err
1486 } && test -s conftest.$ac_objext; then :
1487 ac_retval=0
1488 else
1489 $as_echo "$as_me: failed program was:" >&5
1490 sed 's/^/| /' conftest.$ac_ext >&5
1492 ac_retval=1
1494 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1495 as_fn_set_status $ac_retval
1497 } # ac_fn_c_try_compile
1499 # ac_fn_c_try_link LINENO
1500 # -----------------------
1501 # Try to link conftest.$ac_ext, and return whether this succeeded.
1502 ac_fn_c_try_link ()
1504 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1505 rm -f conftest.$ac_objext conftest$ac_exeext
1506 if { { ac_try="$ac_link"
1507 case "(($ac_try" in
1508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1509 *) ac_try_echo=$ac_try;;
1510 esac
1511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1512 $as_echo "$ac_try_echo"; } >&5
1513 (eval "$ac_link") 2>conftest.err
1514 ac_status=$?
1515 if test -s conftest.err; then
1516 grep -v '^ *+' conftest.err >conftest.er1
1517 cat conftest.er1 >&5
1518 mv -f conftest.er1 conftest.err
1520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1521 test $ac_status = 0; } && {
1522 test -z "$ac_c_werror_flag" ||
1523 test ! -s conftest.err
1524 } && test -s conftest$ac_exeext && {
1525 test "$cross_compiling" = yes ||
1526 $as_test_x conftest$ac_exeext
1527 }; then :
1528 ac_retval=0
1529 else
1530 $as_echo "$as_me: failed program was:" >&5
1531 sed 's/^/| /' conftest.$ac_ext >&5
1533 ac_retval=1
1535 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1536 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1537 # interfere with the next link command; also delete a directory that is
1538 # left behind by Apple's compiler. We do this before executing the actions.
1539 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1540 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1541 as_fn_set_status $ac_retval
1543 } # ac_fn_c_try_link
1545 # ac_fn_c_try_cpp LINENO
1546 # ----------------------
1547 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1548 ac_fn_c_try_cpp ()
1550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551 if { { ac_try="$ac_cpp conftest.$ac_ext"
1552 case "(($ac_try" in
1553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1554 *) ac_try_echo=$ac_try;;
1555 esac
1556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1557 $as_echo "$ac_try_echo"; } >&5
1558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1559 ac_status=$?
1560 if test -s conftest.err; then
1561 grep -v '^ *+' conftest.err >conftest.er1
1562 cat conftest.er1 >&5
1563 mv -f conftest.er1 conftest.err
1565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566 test $ac_status = 0; } >/dev/null && {
1567 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1568 test ! -s conftest.err
1569 }; then :
1570 ac_retval=0
1571 else
1572 $as_echo "$as_me: failed program was:" >&5
1573 sed 's/^/| /' conftest.$ac_ext >&5
1575 ac_retval=1
1577 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1578 as_fn_set_status $ac_retval
1580 } # ac_fn_c_try_cpp
1582 # ac_fn_c_try_run LINENO
1583 # ----------------------
1584 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1585 # that executables *can* be run.
1586 ac_fn_c_try_run ()
1588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589 if { { ac_try="$ac_link"
1590 case "(($ac_try" in
1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592 *) ac_try_echo=$ac_try;;
1593 esac
1594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595 $as_echo "$ac_try_echo"; } >&5
1596 (eval "$ac_link") 2>&5
1597 ac_status=$?
1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1600 { { case "(($ac_try" in
1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602 *) ac_try_echo=$ac_try;;
1603 esac
1604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605 $as_echo "$ac_try_echo"; } >&5
1606 (eval "$ac_try") 2>&5
1607 ac_status=$?
1608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609 test $ac_status = 0; }; }; then :
1610 ac_retval=0
1611 else
1612 $as_echo "$as_me: program exited with status $ac_status" >&5
1613 $as_echo "$as_me: failed program was:" >&5
1614 sed 's/^/| /' conftest.$ac_ext >&5
1616 ac_retval=$ac_status
1618 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1619 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1620 as_fn_set_status $ac_retval
1622 } # ac_fn_c_try_run
1624 # ac_fn_c_check_func LINENO FUNC VAR
1625 # ----------------------------------
1626 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1627 ac_fn_c_check_func ()
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1631 $as_echo_n "checking for $2... " >&6; }
1632 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1633 $as_echo_n "(cached) " >&6
1634 else
1635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1636 /* end confdefs.h. */
1637 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1639 #define $2 innocuous_$2
1641 /* System header to define __stub macros and hopefully few prototypes,
1642 which can conflict with char $2 (); below.
1643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1644 <limits.h> exists even on freestanding compilers. */
1646 #ifdef __STDC__
1647 # include <limits.h>
1648 #else
1649 # include <assert.h>
1650 #endif
1652 #undef $2
1654 /* Override any GCC internal prototype to avoid an error.
1655 Use char because int might match the return type of a GCC
1656 builtin and then its argument prototype would still apply. */
1657 #ifdef __cplusplus
1658 extern "C"
1659 #endif
1660 char $2 ();
1661 /* The GNU C library defines this for functions which it implements
1662 to always fail with ENOSYS. Some functions are actually named
1663 something starting with __ and the normal name is an alias. */
1664 #if defined __stub_$2 || defined __stub___$2
1665 choke me
1666 #endif
1669 main ()
1671 return $2 ();
1673 return 0;
1675 _ACEOF
1676 if ac_fn_c_try_link "$LINENO"; then :
1677 eval "$3=yes"
1678 else
1679 eval "$3=no"
1681 rm -f core conftest.err conftest.$ac_objext \
1682 conftest$ac_exeext conftest.$ac_ext
1684 eval ac_res=\$$3
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1686 $as_echo "$ac_res" >&6; }
1687 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1689 } # ac_fn_c_check_func
1691 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1692 # -------------------------------------------
1693 # Tests whether TYPE exists after having included INCLUDES, setting cache
1694 # variable VAR accordingly.
1695 ac_fn_c_check_type ()
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1699 $as_echo_n "checking for $2... " >&6; }
1700 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1701 $as_echo_n "(cached) " >&6
1702 else
1703 eval "$3=no"
1704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1705 /* end confdefs.h. */
1708 main ()
1710 if (sizeof ($2))
1711 return 0;
1713 return 0;
1715 _ACEOF
1716 if ac_fn_c_try_compile "$LINENO"; then :
1717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718 /* end confdefs.h. */
1721 main ()
1723 if (sizeof (($2)))
1724 return 0;
1726 return 0;
1728 _ACEOF
1729 if ac_fn_c_try_compile "$LINENO"; then :
1731 else
1732 eval "$3=yes"
1734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1738 eval ac_res=\$$3
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740 $as_echo "$ac_res" >&6; }
1741 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1743 } # ac_fn_c_check_type
1745 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1746 # -------------------------------------------------------
1747 # Tests whether HEADER exists and can be compiled using the include files in
1748 # INCLUDES, setting the cache variable VAR accordingly.
1749 ac_fn_c_check_header_compile ()
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753 $as_echo_n "checking for $2... " >&6; }
1754 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1755 $as_echo_n "(cached) " >&6
1756 else
1757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758 /* end confdefs.h. */
1760 #include <$2>
1761 _ACEOF
1762 if ac_fn_c_try_compile "$LINENO"; then :
1763 eval "$3=yes"
1764 else
1765 eval "$3=no"
1767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1769 eval ac_res=\$$3
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1771 $as_echo "$ac_res" >&6; }
1772 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1774 } # ac_fn_c_check_header_compile
1776 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1777 # -------------------------------------------------------
1778 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1779 # the include files in INCLUDES and setting the cache variable VAR
1780 # accordingly.
1781 ac_fn_c_check_header_mongrel ()
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1786 $as_echo_n "checking for $2... " >&6; }
1787 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1788 $as_echo_n "(cached) " >&6
1790 eval ac_res=\$$3
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 $as_echo "$ac_res" >&6; }
1793 else
1794 # Is the header compilable?
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1796 $as_echo_n "checking $2 usability... " >&6; }
1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798 /* end confdefs.h. */
1800 #include <$2>
1801 _ACEOF
1802 if ac_fn_c_try_compile "$LINENO"; then :
1803 ac_header_compiler=yes
1804 else
1805 ac_header_compiler=no
1807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1809 $as_echo "$ac_header_compiler" >&6; }
1811 # Is the header present?
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1813 $as_echo_n "checking $2 presence... " >&6; }
1814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815 /* end confdefs.h. */
1816 #include <$2>
1817 _ACEOF
1818 if ac_fn_c_try_cpp "$LINENO"; then :
1819 ac_header_preproc=yes
1820 else
1821 ac_header_preproc=no
1823 rm -f conftest.err conftest.$ac_ext
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1825 $as_echo "$ac_header_preproc" >&6; }
1827 # So? What about this header?
1828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1829 yes:no: )
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1831 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1833 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1835 no:yes:* )
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1837 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1839 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1841 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1843 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1845 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1847 esac
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1849 $as_echo_n "checking for $2... " >&6; }
1850 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1851 $as_echo_n "(cached) " >&6
1852 else
1853 eval "$3=\$ac_header_compiler"
1855 eval ac_res=\$$3
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857 $as_echo "$ac_res" >&6; }
1859 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1861 } # ac_fn_c_check_header_mongrel
1862 cat >config.log <<_ACEOF
1863 This file contains any messages produced by compilers while
1864 running configure, to aid debugging if configure makes a mistake.
1866 It was created by $as_me, which was
1867 generated by GNU Autoconf 2.65. Invocation command line was
1869 $ $0 $@
1871 _ACEOF
1872 exec 5>>config.log
1874 cat <<_ASUNAME
1875 ## --------- ##
1876 ## Platform. ##
1877 ## --------- ##
1879 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1880 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1881 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1882 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1883 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1885 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1886 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1888 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1889 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1890 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1891 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1892 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1893 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1894 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1896 _ASUNAME
1898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1899 for as_dir in $PATH
1901 IFS=$as_save_IFS
1902 test -z "$as_dir" && as_dir=.
1903 $as_echo "PATH: $as_dir"
1904 done
1905 IFS=$as_save_IFS
1907 } >&5
1909 cat >&5 <<_ACEOF
1912 ## ----------- ##
1913 ## Core tests. ##
1914 ## ----------- ##
1916 _ACEOF
1919 # Keep a trace of the command line.
1920 # Strip out --no-create and --no-recursion so they do not pile up.
1921 # Strip out --silent because we don't want to record it for future runs.
1922 # Also quote any args containing shell meta-characters.
1923 # Make two passes to allow for proper duplicate-argument suppression.
1924 ac_configure_args=
1925 ac_configure_args0=
1926 ac_configure_args1=
1927 ac_must_keep_next=false
1928 for ac_pass in 1 2
1930 for ac_arg
1932 case $ac_arg in
1933 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1934 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1935 | -silent | --silent | --silen | --sile | --sil)
1936 continue ;;
1937 *\'*)
1938 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1939 esac
1940 case $ac_pass in
1941 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1943 as_fn_append ac_configure_args1 " '$ac_arg'"
1944 if test $ac_must_keep_next = true; then
1945 ac_must_keep_next=false # Got value, back to normal.
1946 else
1947 case $ac_arg in
1948 *=* | --config-cache | -C | -disable-* | --disable-* \
1949 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1950 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1951 | -with-* | --with-* | -without-* | --without-* | --x)
1952 case "$ac_configure_args0 " in
1953 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1954 esac
1956 -* ) ac_must_keep_next=true ;;
1957 esac
1959 as_fn_append ac_configure_args " '$ac_arg'"
1961 esac
1962 done
1963 done
1964 { ac_configure_args0=; unset ac_configure_args0;}
1965 { ac_configure_args1=; unset ac_configure_args1;}
1967 # When interrupted or exit'd, cleanup temporary files, and complete
1968 # config.log. We remove comments because anyway the quotes in there
1969 # would cause problems or look ugly.
1970 # WARNING: Use '\'' to represent an apostrophe within the trap.
1971 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1972 trap 'exit_status=$?
1973 # Save into config.log some information that might help in debugging.
1975 echo
1977 cat <<\_ASBOX
1978 ## ---------------- ##
1979 ## Cache variables. ##
1980 ## ---------------- ##
1981 _ASBOX
1982 echo
1983 # The following way of writing the cache mishandles newlines in values,
1985 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1986 eval ac_val=\$$ac_var
1987 case $ac_val in #(
1988 *${as_nl}*)
1989 case $ac_var in #(
1990 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1991 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1992 esac
1993 case $ac_var in #(
1994 _ | IFS | as_nl) ;; #(
1995 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1996 *) { eval $ac_var=; unset $ac_var;} ;;
1997 esac ;;
1998 esac
1999 done
2000 (set) 2>&1 |
2001 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2002 *${as_nl}ac_space=\ *)
2003 sed -n \
2004 "s/'\''/'\''\\\\'\'''\''/g;
2005 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2006 ;; #(
2008 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2010 esac |
2011 sort
2013 echo
2015 cat <<\_ASBOX
2016 ## ----------------- ##
2017 ## Output variables. ##
2018 ## ----------------- ##
2019 _ASBOX
2020 echo
2021 for ac_var in $ac_subst_vars
2023 eval ac_val=\$$ac_var
2024 case $ac_val in
2025 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2026 esac
2027 $as_echo "$ac_var='\''$ac_val'\''"
2028 done | sort
2029 echo
2031 if test -n "$ac_subst_files"; then
2032 cat <<\_ASBOX
2033 ## ------------------- ##
2034 ## File substitutions. ##
2035 ## ------------------- ##
2036 _ASBOX
2037 echo
2038 for ac_var in $ac_subst_files
2040 eval ac_val=\$$ac_var
2041 case $ac_val in
2042 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2043 esac
2044 $as_echo "$ac_var='\''$ac_val'\''"
2045 done | sort
2046 echo
2049 if test -s confdefs.h; then
2050 cat <<\_ASBOX
2051 ## ----------- ##
2052 ## confdefs.h. ##
2053 ## ----------- ##
2054 _ASBOX
2055 echo
2056 cat confdefs.h
2057 echo
2059 test "$ac_signal" != 0 &&
2060 $as_echo "$as_me: caught signal $ac_signal"
2061 $as_echo "$as_me: exit $exit_status"
2062 } >&5
2063 rm -f core *.core core.conftest.* &&
2064 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2065 exit $exit_status
2067 for ac_signal in 1 2 13 15; do
2068 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2069 done
2070 ac_signal=0
2072 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2073 rm -f -r conftest* confdefs.h
2075 $as_echo "/* confdefs.h */" > confdefs.h
2077 # Predefined preprocessor variables.
2079 cat >>confdefs.h <<_ACEOF
2080 #define PACKAGE_NAME "$PACKAGE_NAME"
2081 _ACEOF
2083 cat >>confdefs.h <<_ACEOF
2084 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2085 _ACEOF
2087 cat >>confdefs.h <<_ACEOF
2088 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2089 _ACEOF
2091 cat >>confdefs.h <<_ACEOF
2092 #define PACKAGE_STRING "$PACKAGE_STRING"
2093 _ACEOF
2095 cat >>confdefs.h <<_ACEOF
2096 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2097 _ACEOF
2099 cat >>confdefs.h <<_ACEOF
2100 #define PACKAGE_URL "$PACKAGE_URL"
2101 _ACEOF
2104 # Let the site file select an alternate cache file if it wants to.
2105 # Prefer an explicitly selected file to automatically selected ones.
2106 ac_site_file1=NONE
2107 ac_site_file2=NONE
2108 if test -n "$CONFIG_SITE"; then
2109 ac_site_file1=$CONFIG_SITE
2110 elif test "x$prefix" != xNONE; then
2111 ac_site_file1=$prefix/share/config.site
2112 ac_site_file2=$prefix/etc/config.site
2113 else
2114 ac_site_file1=$ac_default_prefix/share/config.site
2115 ac_site_file2=$ac_default_prefix/etc/config.site
2117 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2119 test "x$ac_site_file" = xNONE && continue
2120 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2122 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2123 sed 's/^/| /' "$ac_site_file" >&5
2124 . "$ac_site_file"
2126 done
2128 if test -r "$cache_file"; then
2129 # Some versions of bash will fail to source /dev/null (special files
2130 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2131 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2133 $as_echo "$as_me: loading cache $cache_file" >&6;}
2134 case $cache_file in
2135 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2136 *) . "./$cache_file";;
2137 esac
2139 else
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2141 $as_echo "$as_me: creating cache $cache_file" >&6;}
2142 >$cache_file
2145 # Check that the precious variables saved in the cache have kept the same
2146 # value.
2147 ac_cache_corrupted=false
2148 for ac_var in $ac_precious_vars; do
2149 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2150 eval ac_new_set=\$ac_env_${ac_var}_set
2151 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2152 eval ac_new_val=\$ac_env_${ac_var}_value
2153 case $ac_old_set,$ac_new_set in
2154 set,)
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2156 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2157 ac_cache_corrupted=: ;;
2158 ,set)
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2160 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2161 ac_cache_corrupted=: ;;
2162 ,);;
2164 if test "x$ac_old_val" != "x$ac_new_val"; then
2165 # differences in whitespace do not lead to failure.
2166 ac_old_val_w=`echo x $ac_old_val`
2167 ac_new_val_w=`echo x $ac_new_val`
2168 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2170 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2171 ac_cache_corrupted=:
2172 else
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2174 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2175 eval $ac_var=\$ac_old_val
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2178 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2180 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2181 fi;;
2182 esac
2183 # Pass precious variables to config.status.
2184 if test "$ac_new_set" = set; then
2185 case $ac_new_val in
2186 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2187 *) ac_arg=$ac_var=$ac_new_val ;;
2188 esac
2189 case " $ac_configure_args " in
2190 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2191 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2192 esac
2194 done
2195 if $ac_cache_corrupted; then
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2199 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2200 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2202 ## -------------------- ##
2203 ## Main body of script. ##
2204 ## -------------------- ##
2206 ac_ext=c
2207 ac_cpp='$CPP $CPPFLAGS'
2208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2213 am__api_version='1.11'
2215 ac_aux_dir=
2216 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2217 for ac_t in install-sh install.sh shtool; do
2218 if test -f "$ac_dir/$ac_t"; then
2219 ac_aux_dir=$ac_dir
2220 ac_install_sh="$ac_aux_dir/$ac_t -c"
2221 break 2
2223 done
2224 done
2225 if test -z "$ac_aux_dir"; then
2226 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2229 # These three variables are undocumented and unsupported,
2230 # and are intended to be withdrawn in a future Autoconf release.
2231 # They can cause serious problems if a builder's source tree is in a directory
2232 # whose full name contains unusual characters.
2233 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2234 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2235 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2238 # Find a good install program. We prefer a C program (faster),
2239 # so one script is as good as another. But avoid the broken or
2240 # incompatible versions:
2241 # SysV /etc/install, /usr/sbin/install
2242 # SunOS /usr/etc/install
2243 # IRIX /sbin/install
2244 # AIX /bin/install
2245 # AmigaOS /C/install, which installs bootblocks on floppy discs
2246 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2247 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2248 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2249 # OS/2's system install, which has a completely different semantic
2250 # ./install, which can be erroneously created by make from ./install.sh.
2251 # Reject install programs that cannot install multiple files.
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2253 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2254 if test -z "$INSTALL"; then
2255 if test "${ac_cv_path_install+set}" = set; then :
2256 $as_echo_n "(cached) " >&6
2257 else
2258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2259 for as_dir in $PATH
2261 IFS=$as_save_IFS
2262 test -z "$as_dir" && as_dir=.
2263 # Account for people who put trailing slashes in PATH elements.
2264 case $as_dir/ in #((
2265 ./ | .// | /[cC]/* | \
2266 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2267 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2268 /usr/ucb/* ) ;;
2270 # OSF1 and SCO ODT 3.0 have their own names for install.
2271 # Don't use installbsd from OSF since it installs stuff as root
2272 # by default.
2273 for ac_prog in ginstall scoinst install; do
2274 for ac_exec_ext in '' $ac_executable_extensions; do
2275 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2276 if test $ac_prog = install &&
2277 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2278 # AIX install. It has an incompatible calling convention.
2280 elif test $ac_prog = install &&
2281 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2282 # program-specific install script used by HP pwplus--don't use.
2284 else
2285 rm -rf conftest.one conftest.two conftest.dir
2286 echo one > conftest.one
2287 echo two > conftest.two
2288 mkdir conftest.dir
2289 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2290 test -s conftest.one && test -s conftest.two &&
2291 test -s conftest.dir/conftest.one &&
2292 test -s conftest.dir/conftest.two
2293 then
2294 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2295 break 3
2299 done
2300 done
2302 esac
2304 done
2305 IFS=$as_save_IFS
2307 rm -rf conftest.one conftest.two conftest.dir
2310 if test "${ac_cv_path_install+set}" = set; then
2311 INSTALL=$ac_cv_path_install
2312 else
2313 # As a last resort, use the slow shell script. Don't cache a
2314 # value for INSTALL within a source directory, because that will
2315 # break other packages using the cache if that directory is
2316 # removed, or if the value is a relative name.
2317 INSTALL=$ac_install_sh
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2321 $as_echo "$INSTALL" >&6; }
2323 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2324 # It thinks the first close brace ends the variable substitution.
2325 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2327 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2329 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2332 $as_echo_n "checking whether build environment is sane... " >&6; }
2333 # Just in case
2334 sleep 1
2335 echo timestamp > conftest.file
2336 # Reject unsafe characters in $srcdir or the absolute working directory
2337 # name. Accept space and tab only in the latter.
2338 am_lf='
2340 case `pwd` in
2341 *[\\\"\#\$\&\'\`$am_lf]*)
2342 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2343 esac
2344 case $srcdir in
2345 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2346 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2347 esac
2349 # Do `set' in a subshell so we don't clobber the current shell's
2350 # arguments. Must try -L first in case configure is actually a
2351 # symlink; some systems play weird games with the mod time of symlinks
2352 # (eg FreeBSD returns the mod time of the symlink's containing
2353 # directory).
2354 if (
2355 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2356 if test "$*" = "X"; then
2357 # -L didn't work.
2358 set X `ls -t "$srcdir/configure" conftest.file`
2360 rm -f conftest.file
2361 if test "$*" != "X $srcdir/configure conftest.file" \
2362 && test "$*" != "X conftest.file $srcdir/configure"; then
2364 # If neither matched, then we have a broken ls. This can happen
2365 # if, for instance, CONFIG_SHELL is bash and it inherits a
2366 # broken ls alias from the environment. This has actually
2367 # happened. Such a system could not be considered "sane".
2368 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2369 alias in your environment" "$LINENO" 5
2372 test "$2" = conftest.file
2374 then
2375 # Ok.
2377 else
2378 as_fn_error "newly created file is older than distributed files!
2379 Check your system clock" "$LINENO" 5
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2382 $as_echo "yes" >&6; }
2383 test "$program_prefix" != NONE &&
2384 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2385 # Use a double $ so make ignores it.
2386 test "$program_suffix" != NONE &&
2387 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2388 # Double any \ or $.
2389 # By default was `s,x,x', remove it if useless.
2390 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2391 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2393 # expand $ac_aux_dir to an absolute path
2394 am_aux_dir=`cd $ac_aux_dir && pwd`
2396 if test x"${MISSING+set}" != xset; then
2397 case $am_aux_dir in
2398 *\ * | *\ *)
2399 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2401 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2402 esac
2404 # Use eval to expand $SHELL
2405 if eval "$MISSING --run true"; then
2406 am_missing_run="$MISSING --run "
2407 else
2408 am_missing_run=
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2410 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2413 if test x"${install_sh}" != xset; then
2414 case $am_aux_dir in
2415 *\ * | *\ *)
2416 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2418 install_sh="\${SHELL} $am_aux_dir/install-sh"
2419 esac
2422 # Installed binaries are usually stripped using `strip' when the user
2423 # run `make install-strip'. However `strip' might not be the right
2424 # tool to use in cross-compilation environments, therefore Automake
2425 # will honor the `STRIP' environment variable to overrule this program.
2426 if test "$cross_compiling" != no; then
2427 if test -n "$ac_tool_prefix"; then
2428 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2429 set dummy ${ac_tool_prefix}strip; ac_word=$2
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2431 $as_echo_n "checking for $ac_word... " >&6; }
2432 if test "${ac_cv_prog_STRIP+set}" = set; then :
2433 $as_echo_n "(cached) " >&6
2434 else
2435 if test -n "$STRIP"; then
2436 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2437 else
2438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439 for as_dir in $PATH
2441 IFS=$as_save_IFS
2442 test -z "$as_dir" && as_dir=.
2443 for ac_exec_ext in '' $ac_executable_extensions; do
2444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2445 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2447 break 2
2449 done
2450 done
2451 IFS=$as_save_IFS
2455 STRIP=$ac_cv_prog_STRIP
2456 if test -n "$STRIP"; then
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2458 $as_echo "$STRIP" >&6; }
2459 else
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2461 $as_echo "no" >&6; }
2466 if test -z "$ac_cv_prog_STRIP"; then
2467 ac_ct_STRIP=$STRIP
2468 # Extract the first word of "strip", so it can be a program name with args.
2469 set dummy strip; ac_word=$2
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2471 $as_echo_n "checking for $ac_word... " >&6; }
2472 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2473 $as_echo_n "(cached) " >&6
2474 else
2475 if test -n "$ac_ct_STRIP"; then
2476 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2477 else
2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479 for as_dir in $PATH
2481 IFS=$as_save_IFS
2482 test -z "$as_dir" && as_dir=.
2483 for ac_exec_ext in '' $ac_executable_extensions; do
2484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2485 ac_cv_prog_ac_ct_STRIP="strip"
2486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2487 break 2
2489 done
2490 done
2491 IFS=$as_save_IFS
2495 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2496 if test -n "$ac_ct_STRIP"; then
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2498 $as_echo "$ac_ct_STRIP" >&6; }
2499 else
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2501 $as_echo "no" >&6; }
2504 if test "x$ac_ct_STRIP" = x; then
2505 STRIP=":"
2506 else
2507 case $cross_compiling:$ac_tool_warned in
2508 yes:)
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2511 ac_tool_warned=yes ;;
2512 esac
2513 STRIP=$ac_ct_STRIP
2515 else
2516 STRIP="$ac_cv_prog_STRIP"
2520 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2523 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2524 if test -z "$MKDIR_P"; then
2525 if test "${ac_cv_path_mkdir+set}" = set; then :
2526 $as_echo_n "(cached) " >&6
2527 else
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2531 IFS=$as_save_IFS
2532 test -z "$as_dir" && as_dir=.
2533 for ac_prog in mkdir gmkdir; do
2534 for ac_exec_ext in '' $ac_executable_extensions; do
2535 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2536 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2537 'mkdir (GNU coreutils) '* | \
2538 'mkdir (coreutils) '* | \
2539 'mkdir (fileutils) '4.1*)
2540 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2541 break 3;;
2542 esac
2543 done
2544 done
2545 done
2546 IFS=$as_save_IFS
2550 test -d ./--version && rmdir ./--version
2551 if test "${ac_cv_path_mkdir+set}" = set; then
2552 MKDIR_P="$ac_cv_path_mkdir -p"
2553 else
2554 # As a last resort, use the slow shell script. Don't cache a
2555 # value for MKDIR_P within a source directory, because that will
2556 # break other packages using the cache if that directory is
2557 # removed, or if the value is a relative name.
2558 MKDIR_P="$ac_install_sh -d"
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2562 $as_echo "$MKDIR_P" >&6; }
2564 mkdir_p="$MKDIR_P"
2565 case $mkdir_p in
2566 [\\/$]* | ?:[\\/]*) ;;
2567 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2568 esac
2570 for ac_prog in gawk mawk nawk awk
2572 # Extract the first word of "$ac_prog", so it can be a program name with args.
2573 set dummy $ac_prog; ac_word=$2
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2575 $as_echo_n "checking for $ac_word... " >&6; }
2576 if test "${ac_cv_prog_AWK+set}" = set; then :
2577 $as_echo_n "(cached) " >&6
2578 else
2579 if test -n "$AWK"; then
2580 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2581 else
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 for as_dir in $PATH
2585 IFS=$as_save_IFS
2586 test -z "$as_dir" && as_dir=.
2587 for ac_exec_ext in '' $ac_executable_extensions; do
2588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2589 ac_cv_prog_AWK="$ac_prog"
2590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2591 break 2
2593 done
2594 done
2595 IFS=$as_save_IFS
2599 AWK=$ac_cv_prog_AWK
2600 if test -n "$AWK"; then
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2602 $as_echo "$AWK" >&6; }
2603 else
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2605 $as_echo "no" >&6; }
2609 test -n "$AWK" && break
2610 done
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2613 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2614 set x ${MAKE-make}
2615 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2616 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2617 $as_echo_n "(cached) " >&6
2618 else
2619 cat >conftest.make <<\_ACEOF
2620 SHELL = /bin/sh
2621 all:
2622 @echo '@@@%%%=$(MAKE)=@@@%%%'
2623 _ACEOF
2624 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2625 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2626 *@@@%%%=?*=@@@%%%*)
2627 eval ac_cv_prog_make_${ac_make}_set=yes;;
2629 eval ac_cv_prog_make_${ac_make}_set=no;;
2630 esac
2631 rm -f conftest.make
2633 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2635 $as_echo "yes" >&6; }
2636 SET_MAKE=
2637 else
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2639 $as_echo "no" >&6; }
2640 SET_MAKE="MAKE=${MAKE-make}"
2643 rm -rf .tst 2>/dev/null
2644 mkdir .tst 2>/dev/null
2645 if test -d .tst; then
2646 am__leading_dot=.
2647 else
2648 am__leading_dot=_
2650 rmdir .tst 2>/dev/null
2652 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2653 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2654 # is not polluted with repeated "-I."
2655 am__isrc=' -I$(srcdir)'
2656 # test to see if srcdir already configured
2657 if test -f $srcdir/config.status; then
2658 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2662 # test whether we have cygpath
2663 if test -z "$CYGPATH_W"; then
2664 if (cygpath --version) >/dev/null 2>/dev/null; then
2665 CYGPATH_W='cygpath -w'
2666 else
2667 CYGPATH_W=echo
2672 # Define the identity of the package.
2673 PACKAGE=gpivtools
2674 VERSION=0.6.0
2677 cat >>confdefs.h <<_ACEOF
2678 #define PACKAGE "$PACKAGE"
2679 _ACEOF
2682 cat >>confdefs.h <<_ACEOF
2683 #define VERSION "$VERSION"
2684 _ACEOF
2686 # Some tools Automake needs.
2688 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2691 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2694 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2697 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2700 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2702 # We need awk for the "check" target. The system "awk" is bad on
2703 # some platforms.
2704 # Always define AMTAR for backward compatibility.
2706 AMTAR=${AMTAR-"${am_missing_run}tar"}
2708 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2714 ac_config_headers="$ac_config_headers config.h"
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2718 $as_echo_n "checking whether build environment is sane... " >&6; }
2719 # Just in case
2720 sleep 1
2721 echo timestamp > conftest.file
2722 # Reject unsafe characters in $srcdir or the absolute working directory
2723 # name. Accept space and tab only in the latter.
2724 am_lf='
2726 case `pwd` in
2727 *[\\\"\#\$\&\'\`$am_lf]*)
2728 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2729 esac
2730 case $srcdir in
2731 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2732 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2733 esac
2735 # Do `set' in a subshell so we don't clobber the current shell's
2736 # arguments. Must try -L first in case configure is actually a
2737 # symlink; some systems play weird games with the mod time of symlinks
2738 # (eg FreeBSD returns the mod time of the symlink's containing
2739 # directory).
2740 if (
2741 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2742 if test "$*" = "X"; then
2743 # -L didn't work.
2744 set X `ls -t "$srcdir/configure" conftest.file`
2746 rm -f conftest.file
2747 if test "$*" != "X $srcdir/configure conftest.file" \
2748 && test "$*" != "X conftest.file $srcdir/configure"; then
2750 # If neither matched, then we have a broken ls. This can happen
2751 # if, for instance, CONFIG_SHELL is bash and it inherits a
2752 # broken ls alias from the environment. This has actually
2753 # happened. Such a system could not be considered "sane".
2754 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2755 alias in your environment" "$LINENO" 5
2758 test "$2" = conftest.file
2760 then
2761 # Ok.
2763 else
2764 as_fn_error "newly created file is older than distributed files!
2765 Check your system clock" "$LINENO" 5
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2768 $as_echo "yes" >&6; }
2769 DEPDIR="${am__leading_dot}deps"
2771 ac_config_commands="$ac_config_commands depfiles"
2774 am_make=${MAKE-make}
2775 cat > confinc << 'END'
2776 am__doit:
2777 @echo this is the am__doit target
2778 .PHONY: am__doit
2780 # If we don't find an include directive, just comment out the code.
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2782 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2783 am__include="#"
2784 am__quote=
2785 _am_result=none
2786 # First try GNU make style include.
2787 echo "include confinc" > confmf
2788 # Ignore all kinds of additional output from `make'.
2789 case `$am_make -s -f confmf 2> /dev/null` in #(
2790 *the\ am__doit\ target*)
2791 am__include=include
2792 am__quote=
2793 _am_result=GNU
2795 esac
2796 # Now try BSD make style include.
2797 if test "$am__include" = "#"; then
2798 echo '.include "confinc"' > confmf
2799 case `$am_make -s -f confmf 2> /dev/null` in #(
2800 *the\ am__doit\ target*)
2801 am__include=.include
2802 am__quote="\""
2803 _am_result=BSD
2805 esac
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2810 $as_echo "$_am_result" >&6; }
2811 rm -f confinc confmf
2813 # Check whether --enable-dependency-tracking was given.
2814 if test "${enable_dependency_tracking+set}" = set; then :
2815 enableval=$enable_dependency_tracking;
2818 if test "x$enable_dependency_tracking" != xno; then
2819 am_depcomp="$ac_aux_dir/depcomp"
2820 AMDEPBACKSLASH='\'
2822 if test "x$enable_dependency_tracking" != xno; then
2823 AMDEP_TRUE=
2824 AMDEP_FALSE='#'
2825 else
2826 AMDEP_TRUE='#'
2827 AMDEP_FALSE=
2831 ac_ext=c
2832 ac_cpp='$CPP $CPPFLAGS'
2833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2836 if test -n "$ac_tool_prefix"; then
2837 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2838 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2840 $as_echo_n "checking for $ac_word... " >&6; }
2841 if test "${ac_cv_prog_CC+set}" = set; then :
2842 $as_echo_n "(cached) " >&6
2843 else
2844 if test -n "$CC"; then
2845 ac_cv_prog_CC="$CC" # Let the user override the test.
2846 else
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 for as_dir in $PATH
2850 IFS=$as_save_IFS
2851 test -z "$as_dir" && as_dir=.
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2854 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 break 2
2858 done
2859 done
2860 IFS=$as_save_IFS
2864 CC=$ac_cv_prog_CC
2865 if test -n "$CC"; then
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2867 $as_echo "$CC" >&6; }
2868 else
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2870 $as_echo "no" >&6; }
2875 if test -z "$ac_cv_prog_CC"; then
2876 ac_ct_CC=$CC
2877 # Extract the first word of "gcc", so it can be a program name with args.
2878 set dummy gcc; ac_word=$2
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2880 $as_echo_n "checking for $ac_word... " >&6; }
2881 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2882 $as_echo_n "(cached) " >&6
2883 else
2884 if test -n "$ac_ct_CC"; then
2885 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2886 else
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 for as_dir in $PATH
2890 IFS=$as_save_IFS
2891 test -z "$as_dir" && as_dir=.
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2894 ac_cv_prog_ac_ct_CC="gcc"
2895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2896 break 2
2898 done
2899 done
2900 IFS=$as_save_IFS
2904 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2905 if test -n "$ac_ct_CC"; then
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2907 $as_echo "$ac_ct_CC" >&6; }
2908 else
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2910 $as_echo "no" >&6; }
2913 if test "x$ac_ct_CC" = x; then
2914 CC=""
2915 else
2916 case $cross_compiling:$ac_tool_warned in
2917 yes:)
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2920 ac_tool_warned=yes ;;
2921 esac
2922 CC=$ac_ct_CC
2924 else
2925 CC="$ac_cv_prog_CC"
2928 if test -z "$CC"; then
2929 if test -n "$ac_tool_prefix"; then
2930 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2931 set dummy ${ac_tool_prefix}cc; ac_word=$2
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2933 $as_echo_n "checking for $ac_word... " >&6; }
2934 if test "${ac_cv_prog_CC+set}" = set; then :
2935 $as_echo_n "(cached) " >&6
2936 else
2937 if test -n "$CC"; then
2938 ac_cv_prog_CC="$CC" # Let the user override the test.
2939 else
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 for as_dir in $PATH
2943 IFS=$as_save_IFS
2944 test -z "$as_dir" && as_dir=.
2945 for ac_exec_ext in '' $ac_executable_extensions; do
2946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2947 ac_cv_prog_CC="${ac_tool_prefix}cc"
2948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2949 break 2
2951 done
2952 done
2953 IFS=$as_save_IFS
2957 CC=$ac_cv_prog_CC
2958 if test -n "$CC"; then
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2960 $as_echo "$CC" >&6; }
2961 else
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 $as_echo "no" >&6; }
2969 if test -z "$CC"; then
2970 # Extract the first word of "cc", so it can be a program name with args.
2971 set dummy cc; ac_word=$2
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2973 $as_echo_n "checking for $ac_word... " >&6; }
2974 if test "${ac_cv_prog_CC+set}" = set; then :
2975 $as_echo_n "(cached) " >&6
2976 else
2977 if test -n "$CC"; then
2978 ac_cv_prog_CC="$CC" # Let the user override the test.
2979 else
2980 ac_prog_rejected=no
2981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982 for as_dir in $PATH
2984 IFS=$as_save_IFS
2985 test -z "$as_dir" && as_dir=.
2986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2988 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2989 ac_prog_rejected=yes
2990 continue
2992 ac_cv_prog_CC="cc"
2993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 break 2
2996 done
2997 done
2998 IFS=$as_save_IFS
3000 if test $ac_prog_rejected = yes; then
3001 # We found a bogon in the path, so make sure we never use it.
3002 set dummy $ac_cv_prog_CC
3003 shift
3004 if test $# != 0; then
3005 # We chose a different compiler from the bogus one.
3006 # However, it has the same basename, so the bogon will be chosen
3007 # first if we set CC to just the basename; use the full file name.
3008 shift
3009 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3014 CC=$ac_cv_prog_CC
3015 if test -n "$CC"; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3017 $as_echo "$CC" >&6; }
3018 else
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020 $as_echo "no" >&6; }
3025 if test -z "$CC"; then
3026 if test -n "$ac_tool_prefix"; then
3027 for ac_prog in cl.exe
3029 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3030 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3032 $as_echo_n "checking for $ac_word... " >&6; }
3033 if test "${ac_cv_prog_CC+set}" = set; then :
3034 $as_echo_n "(cached) " >&6
3035 else
3036 if test -n "$CC"; then
3037 ac_cv_prog_CC="$CC" # Let the user override the test.
3038 else
3039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040 for as_dir in $PATH
3042 IFS=$as_save_IFS
3043 test -z "$as_dir" && as_dir=.
3044 for ac_exec_ext in '' $ac_executable_extensions; do
3045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3046 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3048 break 2
3050 done
3051 done
3052 IFS=$as_save_IFS
3056 CC=$ac_cv_prog_CC
3057 if test -n "$CC"; then
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3059 $as_echo "$CC" >&6; }
3060 else
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062 $as_echo "no" >&6; }
3066 test -n "$CC" && break
3067 done
3069 if test -z "$CC"; then
3070 ac_ct_CC=$CC
3071 for ac_prog in cl.exe
3073 # Extract the first word of "$ac_prog", so it can be a program name with args.
3074 set dummy $ac_prog; ac_word=$2
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076 $as_echo_n "checking for $ac_word... " >&6; }
3077 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3078 $as_echo_n "(cached) " >&6
3079 else
3080 if test -n "$ac_ct_CC"; then
3081 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3082 else
3083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084 for as_dir in $PATH
3086 IFS=$as_save_IFS
3087 test -z "$as_dir" && as_dir=.
3088 for ac_exec_ext in '' $ac_executable_extensions; do
3089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3090 ac_cv_prog_ac_ct_CC="$ac_prog"
3091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3092 break 2
3094 done
3095 done
3096 IFS=$as_save_IFS
3100 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3101 if test -n "$ac_ct_CC"; then
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3103 $as_echo "$ac_ct_CC" >&6; }
3104 else
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3106 $as_echo "no" >&6; }
3110 test -n "$ac_ct_CC" && break
3111 done
3113 if test "x$ac_ct_CC" = x; then
3114 CC=""
3115 else
3116 case $cross_compiling:$ac_tool_warned in
3117 yes:)
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3120 ac_tool_warned=yes ;;
3121 esac
3122 CC=$ac_ct_CC
3129 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3130 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3131 as_fn_error "no acceptable C compiler found in \$PATH
3132 See \`config.log' for more details." "$LINENO" 5; }
3134 # Provide some information about the compiler.
3135 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3136 set X $ac_compile
3137 ac_compiler=$2
3138 for ac_option in --version -v -V -qversion; do
3139 { { ac_try="$ac_compiler $ac_option >&5"
3140 case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143 esac
3144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3145 $as_echo "$ac_try_echo"; } >&5
3146 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3147 ac_status=$?
3148 if test -s conftest.err; then
3149 sed '10a\
3150 ... rest of stderr output deleted ...
3151 10q' conftest.err >conftest.er1
3152 cat conftest.er1 >&5
3154 rm -f conftest.er1 conftest.err
3155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3156 test $ac_status = 0; }
3157 done
3159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3160 /* end confdefs.h. */
3163 main ()
3167 return 0;
3169 _ACEOF
3170 ac_clean_files_save=$ac_clean_files
3171 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3172 # Try to create an executable without -o first, disregard a.out.
3173 # It will help us diagnose broken compilers, and finding out an intuition
3174 # of exeext.
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3176 $as_echo_n "checking whether the C compiler works... " >&6; }
3177 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3179 # The possible output files:
3180 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3182 ac_rmfiles=
3183 for ac_file in $ac_files
3185 case $ac_file in
3186 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3187 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3188 esac
3189 done
3190 rm -f $ac_rmfiles
3192 if { { ac_try="$ac_link_default"
3193 case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3196 esac
3197 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3198 $as_echo "$ac_try_echo"; } >&5
3199 (eval "$ac_link_default") 2>&5
3200 ac_status=$?
3201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3202 test $ac_status = 0; }; then :
3203 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3204 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3205 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3206 # so that the user can short-circuit this test for compilers unknown to
3207 # Autoconf.
3208 for ac_file in $ac_files ''
3210 test -f "$ac_file" || continue
3211 case $ac_file in
3212 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3214 [ab].out )
3215 # We found the default executable, but exeext='' is most
3216 # certainly right.
3217 break;;
3218 *.* )
3219 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3220 then :; else
3221 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3223 # We set ac_cv_exeext here because the later test for it is not
3224 # safe: cross compilers may not add the suffix if given an `-o'
3225 # argument, so we may need to know it at that point already.
3226 # Even if this section looks crufty: it has the advantage of
3227 # actually working.
3228 break;;
3230 break;;
3231 esac
3232 done
3233 test "$ac_cv_exeext" = no && ac_cv_exeext=
3235 else
3236 ac_file=''
3238 if test -z "$ac_file"; then :
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240 $as_echo "no" >&6; }
3241 $as_echo "$as_me: failed program was:" >&5
3242 sed 's/^/| /' conftest.$ac_ext >&5
3244 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3246 { as_fn_set_status 77
3247 as_fn_error "C compiler cannot create executables
3248 See \`config.log' for more details." "$LINENO" 5; }; }
3249 else
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3251 $as_echo "yes" >&6; }
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3254 $as_echo_n "checking for C compiler default output file name... " >&6; }
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3256 $as_echo "$ac_file" >&6; }
3257 ac_exeext=$ac_cv_exeext
3259 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3260 ac_clean_files=$ac_clean_files_save
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3262 $as_echo_n "checking for suffix of executables... " >&6; }
3263 if { { ac_try="$ac_link"
3264 case "(($ac_try" in
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3267 esac
3268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3269 $as_echo "$ac_try_echo"; } >&5
3270 (eval "$ac_link") 2>&5
3271 ac_status=$?
3272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3273 test $ac_status = 0; }; then :
3274 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3275 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3276 # work properly (i.e., refer to `conftest.exe'), while it won't with
3277 # `rm'.
3278 for ac_file in conftest.exe conftest conftest.*; do
3279 test -f "$ac_file" || continue
3280 case $ac_file in
3281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3282 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3283 break;;
3284 * ) break;;
3285 esac
3286 done
3287 else
3288 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3290 as_fn_error "cannot compute suffix of executables: cannot compile and link
3291 See \`config.log' for more details." "$LINENO" 5; }
3293 rm -f conftest conftest$ac_cv_exeext
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3295 $as_echo "$ac_cv_exeext" >&6; }
3297 rm -f conftest.$ac_ext
3298 EXEEXT=$ac_cv_exeext
3299 ac_exeext=$EXEEXT
3300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3301 /* end confdefs.h. */
3302 #include <stdio.h>
3304 main ()
3306 FILE *f = fopen ("conftest.out", "w");
3307 return ferror (f) || fclose (f) != 0;
3310 return 0;
3312 _ACEOF
3313 ac_clean_files="$ac_clean_files conftest.out"
3314 # Check that the compiler produces executables we can run. If not, either
3315 # the compiler is broken, or we cross compile.
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3317 $as_echo_n "checking whether we are cross compiling... " >&6; }
3318 if test "$cross_compiling" != yes; then
3319 { { ac_try="$ac_link"
3320 case "(($ac_try" in
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3323 esac
3324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3325 $as_echo "$ac_try_echo"; } >&5
3326 (eval "$ac_link") 2>&5
3327 ac_status=$?
3328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3329 test $ac_status = 0; }
3330 if { ac_try='./conftest$ac_cv_exeext'
3331 { { case "(($ac_try" in
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3334 esac
3335 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3336 $as_echo "$ac_try_echo"; } >&5
3337 (eval "$ac_try") 2>&5
3338 ac_status=$?
3339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3340 test $ac_status = 0; }; }; then
3341 cross_compiling=no
3342 else
3343 if test "$cross_compiling" = maybe; then
3344 cross_compiling=yes
3345 else
3346 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3348 as_fn_error "cannot run C compiled programs.
3349 If you meant to cross compile, use \`--host'.
3350 See \`config.log' for more details." "$LINENO" 5; }
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3355 $as_echo "$cross_compiling" >&6; }
3357 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3358 ac_clean_files=$ac_clean_files_save
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3360 $as_echo_n "checking for suffix of object files... " >&6; }
3361 if test "${ac_cv_objext+set}" = set; then :
3362 $as_echo_n "(cached) " >&6
3363 else
3364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365 /* end confdefs.h. */
3368 main ()
3372 return 0;
3374 _ACEOF
3375 rm -f conftest.o conftest.obj
3376 if { { ac_try="$ac_compile"
3377 case "(($ac_try" in
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3380 esac
3381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3382 $as_echo "$ac_try_echo"; } >&5
3383 (eval "$ac_compile") 2>&5
3384 ac_status=$?
3385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3386 test $ac_status = 0; }; then :
3387 for ac_file in conftest.o conftest.obj conftest.*; do
3388 test -f "$ac_file" || continue;
3389 case $ac_file in
3390 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3391 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3392 break;;
3393 esac
3394 done
3395 else
3396 $as_echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3401 as_fn_error "cannot compute suffix of object files: cannot compile
3402 See \`config.log' for more details." "$LINENO" 5; }
3404 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3407 $as_echo "$ac_cv_objext" >&6; }
3408 OBJEXT=$ac_cv_objext
3409 ac_objext=$OBJEXT
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3411 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3412 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3413 $as_echo_n "(cached) " >&6
3414 else
3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416 /* end confdefs.h. */
3419 main ()
3421 #ifndef __GNUC__
3422 choke me
3423 #endif
3426 return 0;
3428 _ACEOF
3429 if ac_fn_c_try_compile "$LINENO"; then :
3430 ac_compiler_gnu=yes
3431 else
3432 ac_compiler_gnu=no
3434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3435 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3439 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3440 if test $ac_compiler_gnu = yes; then
3441 GCC=yes
3442 else
3443 GCC=
3445 ac_test_CFLAGS=${CFLAGS+set}
3446 ac_save_CFLAGS=$CFLAGS
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3448 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3449 if test "${ac_cv_prog_cc_g+set}" = set; then :
3450 $as_echo_n "(cached) " >&6
3451 else
3452 ac_save_c_werror_flag=$ac_c_werror_flag
3453 ac_c_werror_flag=yes
3454 ac_cv_prog_cc_g=no
3455 CFLAGS="-g"
3456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457 /* end confdefs.h. */
3460 main ()
3464 return 0;
3466 _ACEOF
3467 if ac_fn_c_try_compile "$LINENO"; then :
3468 ac_cv_prog_cc_g=yes
3469 else
3470 CFLAGS=""
3471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472 /* end confdefs.h. */
3475 main ()
3479 return 0;
3481 _ACEOF
3482 if ac_fn_c_try_compile "$LINENO"; then :
3484 else
3485 ac_c_werror_flag=$ac_save_c_werror_flag
3486 CFLAGS="-g"
3487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488 /* end confdefs.h. */
3491 main ()
3495 return 0;
3497 _ACEOF
3498 if ac_fn_c_try_compile "$LINENO"; then :
3499 ac_cv_prog_cc_g=yes
3501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3506 ac_c_werror_flag=$ac_save_c_werror_flag
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3509 $as_echo "$ac_cv_prog_cc_g" >&6; }
3510 if test "$ac_test_CFLAGS" = set; then
3511 CFLAGS=$ac_save_CFLAGS
3512 elif test $ac_cv_prog_cc_g = yes; then
3513 if test "$GCC" = yes; then
3514 CFLAGS="-g -O2"
3515 else
3516 CFLAGS="-g"
3518 else
3519 if test "$GCC" = yes; then
3520 CFLAGS="-O2"
3521 else
3522 CFLAGS=
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3526 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3527 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3528 $as_echo_n "(cached) " >&6
3529 else
3530 ac_cv_prog_cc_c89=no
3531 ac_save_CC=$CC
3532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3533 /* end confdefs.h. */
3534 #include <stdarg.h>
3535 #include <stdio.h>
3536 #include <sys/types.h>
3537 #include <sys/stat.h>
3538 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3539 struct buf { int x; };
3540 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3541 static char *e (p, i)
3542 char **p;
3543 int i;
3545 return p[i];
3547 static char *f (char * (*g) (char **, int), char **p, ...)
3549 char *s;
3550 va_list v;
3551 va_start (v,p);
3552 s = g (p, va_arg (v,int));
3553 va_end (v);
3554 return s;
3557 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3558 function prototypes and stuff, but not '\xHH' hex character constants.
3559 These don't provoke an error unfortunately, instead are silently treated
3560 as 'x'. The following induces an error, until -std is added to get
3561 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3562 array size at least. It's necessary to write '\x00'==0 to get something
3563 that's true only with -std. */
3564 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3566 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3567 inside strings and character constants. */
3568 #define FOO(x) 'x'
3569 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3571 int test (int i, double x);
3572 struct s1 {int (*f) (int a);};
3573 struct s2 {int (*f) (double a);};
3574 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3575 int argc;
3576 char **argv;
3578 main ()
3580 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3582 return 0;
3584 _ACEOF
3585 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3586 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3588 CC="$ac_save_CC $ac_arg"
3589 if ac_fn_c_try_compile "$LINENO"; then :
3590 ac_cv_prog_cc_c89=$ac_arg
3592 rm -f core conftest.err conftest.$ac_objext
3593 test "x$ac_cv_prog_cc_c89" != "xno" && break
3594 done
3595 rm -f conftest.$ac_ext
3596 CC=$ac_save_CC
3599 # AC_CACHE_VAL
3600 case "x$ac_cv_prog_cc_c89" in
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3603 $as_echo "none needed" >&6; } ;;
3604 xno)
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3606 $as_echo "unsupported" >&6; } ;;
3608 CC="$CC $ac_cv_prog_cc_c89"
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3610 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3611 esac
3612 if test "x$ac_cv_prog_cc_c89" != xno; then :
3616 ac_ext=c
3617 ac_cpp='$CPP $CPPFLAGS'
3618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3622 depcc="$CC" am_compiler_list=
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3625 $as_echo_n "checking dependency style of $depcc... " >&6; }
3626 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3627 $as_echo_n "(cached) " >&6
3628 else
3629 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3630 # We make a subdir and do the tests there. Otherwise we can end up
3631 # making bogus files that we don't know about and never remove. For
3632 # instance it was reported that on HP-UX the gcc test will end up
3633 # making a dummy file named `D' -- because `-MD' means `put the output
3634 # in D'.
3635 mkdir conftest.dir
3636 # Copy depcomp to subdir because otherwise we won't find it if we're
3637 # using a relative directory.
3638 cp "$am_depcomp" conftest.dir
3639 cd conftest.dir
3640 # We will build objects and dependencies in a subdirectory because
3641 # it helps to detect inapplicable dependency modes. For instance
3642 # both Tru64's cc and ICC support -MD to output dependencies as a
3643 # side effect of compilation, but ICC will put the dependencies in
3644 # the current directory while Tru64 will put them in the object
3645 # directory.
3646 mkdir sub
3648 am_cv_CC_dependencies_compiler_type=none
3649 if test "$am_compiler_list" = ""; then
3650 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3652 am__universal=false
3653 case " $depcc " in #(
3654 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3655 esac
3657 for depmode in $am_compiler_list; do
3658 # Setup a source with many dependencies, because some compilers
3659 # like to wrap large dependency lists on column 80 (with \), and
3660 # we should not choose a depcomp mode which is confused by this.
3662 # We need to recreate these files for each test, as the compiler may
3663 # overwrite some of them when testing with obscure command lines.
3664 # This happens at least with the AIX C compiler.
3665 : > sub/conftest.c
3666 for i in 1 2 3 4 5 6; do
3667 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3668 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3669 # Solaris 8's {/usr,}/bin/sh.
3670 touch sub/conftst$i.h
3671 done
3672 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3674 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3675 # mode. It turns out that the SunPro C++ compiler does not properly
3676 # handle `-M -o', and we need to detect this. Also, some Intel
3677 # versions had trouble with output in subdirs
3678 am__obj=sub/conftest.${OBJEXT-o}
3679 am__minus_obj="-o $am__obj"
3680 case $depmode in
3681 gcc)
3682 # This depmode causes a compiler race in universal mode.
3683 test "$am__universal" = false || continue
3685 nosideeffect)
3686 # after this tag, mechanisms are not by side-effect, so they'll
3687 # only be used when explicitly requested
3688 if test "x$enable_dependency_tracking" = xyes; then
3689 continue
3690 else
3691 break
3694 msvisualcpp | msvcmsys)
3695 # This compiler won't grok `-c -o', but also, the minuso test has
3696 # not run yet. These depmodes are late enough in the game, and
3697 # so weak that their functioning should not be impacted.
3698 am__obj=conftest.${OBJEXT-o}
3699 am__minus_obj=
3701 none) break ;;
3702 esac
3703 if depmode=$depmode \
3704 source=sub/conftest.c object=$am__obj \
3705 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3706 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3707 >/dev/null 2>conftest.err &&
3708 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3709 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3710 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3711 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3712 # icc doesn't choke on unknown options, it will just issue warnings
3713 # or remarks (even with -Werror). So we grep stderr for any message
3714 # that says an option was ignored or not supported.
3715 # When given -MP, icc 7.0 and 7.1 complain thusly:
3716 # icc: Command line warning: ignoring option '-M'; no argument required
3717 # The diagnosis changed in icc 8.0:
3718 # icc: Command line remark: option '-MP' not supported
3719 if (grep 'ignoring option' conftest.err ||
3720 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3721 am_cv_CC_dependencies_compiler_type=$depmode
3722 break
3725 done
3727 cd ..
3728 rm -rf conftest.dir
3729 else
3730 am_cv_CC_dependencies_compiler_type=none
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3735 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3736 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3739 test "x$enable_dependency_tracking" != xno \
3740 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3741 am__fastdepCC_TRUE=
3742 am__fastdepCC_FALSE='#'
3743 else
3744 am__fastdepCC_TRUE='#'
3745 am__fastdepCC_FALSE=
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3751 $as_echo_n "checking for library containing strerror... " >&6; }
3752 if test "${ac_cv_search_strerror+set}" = set; then :
3753 $as_echo_n "(cached) " >&6
3754 else
3755 ac_func_search_save_LIBS=$LIBS
3756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757 /* end confdefs.h. */
3759 /* Override any GCC internal prototype to avoid an error.
3760 Use char because int might match the return type of a GCC
3761 builtin and then its argument prototype would still apply. */
3762 #ifdef __cplusplus
3763 extern "C"
3764 #endif
3765 char strerror ();
3767 main ()
3769 return strerror ();
3771 return 0;
3773 _ACEOF
3774 for ac_lib in '' cposix; do
3775 if test -z "$ac_lib"; then
3776 ac_res="none required"
3777 else
3778 ac_res=-l$ac_lib
3779 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3781 if ac_fn_c_try_link "$LINENO"; then :
3782 ac_cv_search_strerror=$ac_res
3784 rm -f core conftest.err conftest.$ac_objext \
3785 conftest$ac_exeext
3786 if test "${ac_cv_search_strerror+set}" = set; then :
3787 break
3789 done
3790 if test "${ac_cv_search_strerror+set}" = set; then :
3792 else
3793 ac_cv_search_strerror=no
3795 rm conftest.$ac_ext
3796 LIBS=$ac_func_search_save_LIBS
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3799 $as_echo "$ac_cv_search_strerror" >&6; }
3800 ac_res=$ac_cv_search_strerror
3801 if test "$ac_res" != no; then :
3802 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3807 ac_ext=c
3808 ac_cpp='$CPP $CPPFLAGS'
3809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3812 if test -n "$ac_tool_prefix"; then
3813 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3814 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3816 $as_echo_n "checking for $ac_word... " >&6; }
3817 if test "${ac_cv_prog_CC+set}" = set; then :
3818 $as_echo_n "(cached) " >&6
3819 else
3820 if test -n "$CC"; then
3821 ac_cv_prog_CC="$CC" # Let the user override the test.
3822 else
3823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824 for as_dir in $PATH
3826 IFS=$as_save_IFS
3827 test -z "$as_dir" && as_dir=.
3828 for ac_exec_ext in '' $ac_executable_extensions; do
3829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3830 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3832 break 2
3834 done
3835 done
3836 IFS=$as_save_IFS
3840 CC=$ac_cv_prog_CC
3841 if test -n "$CC"; then
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3843 $as_echo "$CC" >&6; }
3844 else
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3846 $as_echo "no" >&6; }
3851 if test -z "$ac_cv_prog_CC"; then
3852 ac_ct_CC=$CC
3853 # Extract the first word of "gcc", so it can be a program name with args.
3854 set dummy gcc; ac_word=$2
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3856 $as_echo_n "checking for $ac_word... " >&6; }
3857 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3858 $as_echo_n "(cached) " >&6
3859 else
3860 if test -n "$ac_ct_CC"; then
3861 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3862 else
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864 for as_dir in $PATH
3866 IFS=$as_save_IFS
3867 test -z "$as_dir" && as_dir=.
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3870 ac_cv_prog_ac_ct_CC="gcc"
3871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3872 break 2
3874 done
3875 done
3876 IFS=$as_save_IFS
3880 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3881 if test -n "$ac_ct_CC"; then
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3883 $as_echo "$ac_ct_CC" >&6; }
3884 else
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886 $as_echo "no" >&6; }
3889 if test "x$ac_ct_CC" = x; then
3890 CC=""
3891 else
3892 case $cross_compiling:$ac_tool_warned in
3893 yes:)
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3896 ac_tool_warned=yes ;;
3897 esac
3898 CC=$ac_ct_CC
3900 else
3901 CC="$ac_cv_prog_CC"
3904 if test -z "$CC"; then
3905 if test -n "$ac_tool_prefix"; then
3906 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3907 set dummy ${ac_tool_prefix}cc; ac_word=$2
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3909 $as_echo_n "checking for $ac_word... " >&6; }
3910 if test "${ac_cv_prog_CC+set}" = set; then :
3911 $as_echo_n "(cached) " >&6
3912 else
3913 if test -n "$CC"; then
3914 ac_cv_prog_CC="$CC" # Let the user override the test.
3915 else
3916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917 for as_dir in $PATH
3919 IFS=$as_save_IFS
3920 test -z "$as_dir" && as_dir=.
3921 for ac_exec_ext in '' $ac_executable_extensions; do
3922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3923 ac_cv_prog_CC="${ac_tool_prefix}cc"
3924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3925 break 2
3927 done
3928 done
3929 IFS=$as_save_IFS
3933 CC=$ac_cv_prog_CC
3934 if test -n "$CC"; then
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3936 $as_echo "$CC" >&6; }
3937 else
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3939 $as_echo "no" >&6; }
3945 if test -z "$CC"; then
3946 # Extract the first word of "cc", so it can be a program name with args.
3947 set dummy cc; ac_word=$2
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3949 $as_echo_n "checking for $ac_word... " >&6; }
3950 if test "${ac_cv_prog_CC+set}" = set; then :
3951 $as_echo_n "(cached) " >&6
3952 else
3953 if test -n "$CC"; then
3954 ac_cv_prog_CC="$CC" # Let the user override the test.
3955 else
3956 ac_prog_rejected=no
3957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958 for as_dir in $PATH
3960 IFS=$as_save_IFS
3961 test -z "$as_dir" && as_dir=.
3962 for ac_exec_ext in '' $ac_executable_extensions; do
3963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3964 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3965 ac_prog_rejected=yes
3966 continue
3968 ac_cv_prog_CC="cc"
3969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3970 break 2
3972 done
3973 done
3974 IFS=$as_save_IFS
3976 if test $ac_prog_rejected = yes; then
3977 # We found a bogon in the path, so make sure we never use it.
3978 set dummy $ac_cv_prog_CC
3979 shift
3980 if test $# != 0; then
3981 # We chose a different compiler from the bogus one.
3982 # However, it has the same basename, so the bogon will be chosen
3983 # first if we set CC to just the basename; use the full file name.
3984 shift
3985 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3990 CC=$ac_cv_prog_CC
3991 if test -n "$CC"; then
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3993 $as_echo "$CC" >&6; }
3994 else
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3996 $as_echo "no" >&6; }
4001 if test -z "$CC"; then
4002 if test -n "$ac_tool_prefix"; then
4003 for ac_prog in cl.exe
4005 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4006 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4008 $as_echo_n "checking for $ac_word... " >&6; }
4009 if test "${ac_cv_prog_CC+set}" = set; then :
4010 $as_echo_n "(cached) " >&6
4011 else
4012 if test -n "$CC"; then
4013 ac_cv_prog_CC="$CC" # Let the user override the test.
4014 else
4015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016 for as_dir in $PATH
4018 IFS=$as_save_IFS
4019 test -z "$as_dir" && as_dir=.
4020 for ac_exec_ext in '' $ac_executable_extensions; do
4021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4022 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4024 break 2
4026 done
4027 done
4028 IFS=$as_save_IFS
4032 CC=$ac_cv_prog_CC
4033 if test -n "$CC"; then
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4035 $as_echo "$CC" >&6; }
4036 else
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4038 $as_echo "no" >&6; }
4042 test -n "$CC" && break
4043 done
4045 if test -z "$CC"; then
4046 ac_ct_CC=$CC
4047 for ac_prog in cl.exe
4049 # Extract the first word of "$ac_prog", so it can be a program name with args.
4050 set dummy $ac_prog; ac_word=$2
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4052 $as_echo_n "checking for $ac_word... " >&6; }
4053 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4054 $as_echo_n "(cached) " >&6
4055 else
4056 if test -n "$ac_ct_CC"; then
4057 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4058 else
4059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060 for as_dir in $PATH
4062 IFS=$as_save_IFS
4063 test -z "$as_dir" && as_dir=.
4064 for ac_exec_ext in '' $ac_executable_extensions; do
4065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4066 ac_cv_prog_ac_ct_CC="$ac_prog"
4067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4068 break 2
4070 done
4071 done
4072 IFS=$as_save_IFS
4076 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4077 if test -n "$ac_ct_CC"; then
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4079 $as_echo "$ac_ct_CC" >&6; }
4080 else
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4082 $as_echo "no" >&6; }
4086 test -n "$ac_ct_CC" && break
4087 done
4089 if test "x$ac_ct_CC" = x; then
4090 CC=""
4091 else
4092 case $cross_compiling:$ac_tool_warned in
4093 yes:)
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4096 ac_tool_warned=yes ;;
4097 esac
4098 CC=$ac_ct_CC
4105 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4107 as_fn_error "no acceptable C compiler found in \$PATH
4108 See \`config.log' for more details." "$LINENO" 5; }
4110 # Provide some information about the compiler.
4111 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4112 set X $ac_compile
4113 ac_compiler=$2
4114 for ac_option in --version -v -V -qversion; do
4115 { { ac_try="$ac_compiler $ac_option >&5"
4116 case "(($ac_try" in
4117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4118 *) ac_try_echo=$ac_try;;
4119 esac
4120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4121 $as_echo "$ac_try_echo"; } >&5
4122 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4123 ac_status=$?
4124 if test -s conftest.err; then
4125 sed '10a\
4126 ... rest of stderr output deleted ...
4127 10q' conftest.err >conftest.er1
4128 cat conftest.er1 >&5
4130 rm -f conftest.er1 conftest.err
4131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4132 test $ac_status = 0; }
4133 done
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4136 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4137 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4138 $as_echo_n "(cached) " >&6
4139 else
4140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4141 /* end confdefs.h. */
4144 main ()
4146 #ifndef __GNUC__
4147 choke me
4148 #endif
4151 return 0;
4153 _ACEOF
4154 if ac_fn_c_try_compile "$LINENO"; then :
4155 ac_compiler_gnu=yes
4156 else
4157 ac_compiler_gnu=no
4159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4160 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4164 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4165 if test $ac_compiler_gnu = yes; then
4166 GCC=yes
4167 else
4168 GCC=
4170 ac_test_CFLAGS=${CFLAGS+set}
4171 ac_save_CFLAGS=$CFLAGS
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4173 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4174 if test "${ac_cv_prog_cc_g+set}" = set; then :
4175 $as_echo_n "(cached) " >&6
4176 else
4177 ac_save_c_werror_flag=$ac_c_werror_flag
4178 ac_c_werror_flag=yes
4179 ac_cv_prog_cc_g=no
4180 CFLAGS="-g"
4181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182 /* end confdefs.h. */
4185 main ()
4189 return 0;
4191 _ACEOF
4192 if ac_fn_c_try_compile "$LINENO"; then :
4193 ac_cv_prog_cc_g=yes
4194 else
4195 CFLAGS=""
4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h. */
4200 main ()
4204 return 0;
4206 _ACEOF
4207 if ac_fn_c_try_compile "$LINENO"; then :
4209 else
4210 ac_c_werror_flag=$ac_save_c_werror_flag
4211 CFLAGS="-g"
4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213 /* end confdefs.h. */
4216 main ()
4220 return 0;
4222 _ACEOF
4223 if ac_fn_c_try_compile "$LINENO"; then :
4224 ac_cv_prog_cc_g=yes
4226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4231 ac_c_werror_flag=$ac_save_c_werror_flag
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4234 $as_echo "$ac_cv_prog_cc_g" >&6; }
4235 if test "$ac_test_CFLAGS" = set; then
4236 CFLAGS=$ac_save_CFLAGS
4237 elif test $ac_cv_prog_cc_g = yes; then
4238 if test "$GCC" = yes; then
4239 CFLAGS="-g -O2"
4240 else
4241 CFLAGS="-g"
4243 else
4244 if test "$GCC" = yes; then
4245 CFLAGS="-O2"
4246 else
4247 CFLAGS=
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4251 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4252 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4253 $as_echo_n "(cached) " >&6
4254 else
4255 ac_cv_prog_cc_c89=no
4256 ac_save_CC=$CC
4257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258 /* end confdefs.h. */
4259 #include <stdarg.h>
4260 #include <stdio.h>
4261 #include <sys/types.h>
4262 #include <sys/stat.h>
4263 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4264 struct buf { int x; };
4265 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4266 static char *e (p, i)
4267 char **p;
4268 int i;
4270 return p[i];
4272 static char *f (char * (*g) (char **, int), char **p, ...)
4274 char *s;
4275 va_list v;
4276 va_start (v,p);
4277 s = g (p, va_arg (v,int));
4278 va_end (v);
4279 return s;
4282 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4283 function prototypes and stuff, but not '\xHH' hex character constants.
4284 These don't provoke an error unfortunately, instead are silently treated
4285 as 'x'. The following induces an error, until -std is added to get
4286 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4287 array size at least. It's necessary to write '\x00'==0 to get something
4288 that's true only with -std. */
4289 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4291 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4292 inside strings and character constants. */
4293 #define FOO(x) 'x'
4294 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4296 int test (int i, double x);
4297 struct s1 {int (*f) (int a);};
4298 struct s2 {int (*f) (double a);};
4299 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4300 int argc;
4301 char **argv;
4303 main ()
4305 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4307 return 0;
4309 _ACEOF
4310 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4311 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4313 CC="$ac_save_CC $ac_arg"
4314 if ac_fn_c_try_compile "$LINENO"; then :
4315 ac_cv_prog_cc_c89=$ac_arg
4317 rm -f core conftest.err conftest.$ac_objext
4318 test "x$ac_cv_prog_cc_c89" != "xno" && break
4319 done
4320 rm -f conftest.$ac_ext
4321 CC=$ac_save_CC
4324 # AC_CACHE_VAL
4325 case "x$ac_cv_prog_cc_c89" in
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4328 $as_echo "none needed" >&6; } ;;
4329 xno)
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4331 $as_echo "unsupported" >&6; } ;;
4333 CC="$CC $ac_cv_prog_cc_c89"
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4335 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4336 esac
4337 if test "x$ac_cv_prog_cc_c89" != xno; then :
4341 ac_ext=c
4342 ac_cpp='$CPP $CPPFLAGS'
4343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4347 depcc="$CC" am_compiler_list=
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4350 $as_echo_n "checking dependency style of $depcc... " >&6; }
4351 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4352 $as_echo_n "(cached) " >&6
4353 else
4354 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4355 # We make a subdir and do the tests there. Otherwise we can end up
4356 # making bogus files that we don't know about and never remove. For
4357 # instance it was reported that on HP-UX the gcc test will end up
4358 # making a dummy file named `D' -- because `-MD' means `put the output
4359 # in D'.
4360 mkdir conftest.dir
4361 # Copy depcomp to subdir because otherwise we won't find it if we're
4362 # using a relative directory.
4363 cp "$am_depcomp" conftest.dir
4364 cd conftest.dir
4365 # We will build objects and dependencies in a subdirectory because
4366 # it helps to detect inapplicable dependency modes. For instance
4367 # both Tru64's cc and ICC support -MD to output dependencies as a
4368 # side effect of compilation, but ICC will put the dependencies in
4369 # the current directory while Tru64 will put them in the object
4370 # directory.
4371 mkdir sub
4373 am_cv_CC_dependencies_compiler_type=none
4374 if test "$am_compiler_list" = ""; then
4375 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4377 am__universal=false
4378 case " $depcc " in #(
4379 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4380 esac
4382 for depmode in $am_compiler_list; do
4383 # Setup a source with many dependencies, because some compilers
4384 # like to wrap large dependency lists on column 80 (with \), and
4385 # we should not choose a depcomp mode which is confused by this.
4387 # We need to recreate these files for each test, as the compiler may
4388 # overwrite some of them when testing with obscure command lines.
4389 # This happens at least with the AIX C compiler.
4390 : > sub/conftest.c
4391 for i in 1 2 3 4 5 6; do
4392 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4393 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4394 # Solaris 8's {/usr,}/bin/sh.
4395 touch sub/conftst$i.h
4396 done
4397 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4399 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4400 # mode. It turns out that the SunPro C++ compiler does not properly
4401 # handle `-M -o', and we need to detect this. Also, some Intel
4402 # versions had trouble with output in subdirs
4403 am__obj=sub/conftest.${OBJEXT-o}
4404 am__minus_obj="-o $am__obj"
4405 case $depmode in
4406 gcc)
4407 # This depmode causes a compiler race in universal mode.
4408 test "$am__universal" = false || continue
4410 nosideeffect)
4411 # after this tag, mechanisms are not by side-effect, so they'll
4412 # only be used when explicitly requested
4413 if test "x$enable_dependency_tracking" = xyes; then
4414 continue
4415 else
4416 break
4419 msvisualcpp | msvcmsys)
4420 # This compiler won't grok `-c -o', but also, the minuso test has
4421 # not run yet. These depmodes are late enough in the game, and
4422 # so weak that their functioning should not be impacted.
4423 am__obj=conftest.${OBJEXT-o}
4424 am__minus_obj=
4426 none) break ;;
4427 esac
4428 if depmode=$depmode \
4429 source=sub/conftest.c object=$am__obj \
4430 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4431 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4432 >/dev/null 2>conftest.err &&
4433 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4434 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4435 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4436 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4437 # icc doesn't choke on unknown options, it will just issue warnings
4438 # or remarks (even with -Werror). So we grep stderr for any message
4439 # that says an option was ignored or not supported.
4440 # When given -MP, icc 7.0 and 7.1 complain thusly:
4441 # icc: Command line warning: ignoring option '-M'; no argument required
4442 # The diagnosis changed in icc 8.0:
4443 # icc: Command line remark: option '-MP' not supported
4444 if (grep 'ignoring option' conftest.err ||
4445 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4446 am_cv_CC_dependencies_compiler_type=$depmode
4447 break
4450 done
4452 cd ..
4453 rm -rf conftest.dir
4454 else
4455 am_cv_CC_dependencies_compiler_type=none
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4460 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4461 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4464 test "x$enable_dependency_tracking" != xno \
4465 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4466 am__fastdepCC_TRUE=
4467 am__fastdepCC_FALSE='#'
4468 else
4469 am__fastdepCC_TRUE='#'
4470 am__fastdepCC_FALSE=
4474 ac_ext=c
4475 ac_cpp='$CPP $CPPFLAGS'
4476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4479 if test -n "$ac_tool_prefix"; then
4480 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4481 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4483 $as_echo_n "checking for $ac_word... " >&6; }
4484 if test "${ac_cv_prog_CC+set}" = set; then :
4485 $as_echo_n "(cached) " >&6
4486 else
4487 if test -n "$CC"; then
4488 ac_cv_prog_CC="$CC" # Let the user override the test.
4489 else
4490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4491 for as_dir in $PATH
4493 IFS=$as_save_IFS
4494 test -z "$as_dir" && as_dir=.
4495 for ac_exec_ext in '' $ac_executable_extensions; do
4496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4497 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4499 break 2
4501 done
4502 done
4503 IFS=$as_save_IFS
4507 CC=$ac_cv_prog_CC
4508 if test -n "$CC"; then
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4510 $as_echo "$CC" >&6; }
4511 else
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4513 $as_echo "no" >&6; }
4518 if test -z "$ac_cv_prog_CC"; then
4519 ac_ct_CC=$CC
4520 # Extract the first word of "gcc", so it can be a program name with args.
4521 set dummy gcc; ac_word=$2
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4523 $as_echo_n "checking for $ac_word... " >&6; }
4524 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4525 $as_echo_n "(cached) " >&6
4526 else
4527 if test -n "$ac_ct_CC"; then
4528 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4529 else
4530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4531 for as_dir in $PATH
4533 IFS=$as_save_IFS
4534 test -z "$as_dir" && as_dir=.
4535 for ac_exec_ext in '' $ac_executable_extensions; do
4536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4537 ac_cv_prog_ac_ct_CC="gcc"
4538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4539 break 2
4541 done
4542 done
4543 IFS=$as_save_IFS
4547 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4548 if test -n "$ac_ct_CC"; then
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4550 $as_echo "$ac_ct_CC" >&6; }
4551 else
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4553 $as_echo "no" >&6; }
4556 if test "x$ac_ct_CC" = x; then
4557 CC=""
4558 else
4559 case $cross_compiling:$ac_tool_warned in
4560 yes:)
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4562 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4563 ac_tool_warned=yes ;;
4564 esac
4565 CC=$ac_ct_CC
4567 else
4568 CC="$ac_cv_prog_CC"
4571 if test -z "$CC"; then
4572 if test -n "$ac_tool_prefix"; then
4573 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4574 set dummy ${ac_tool_prefix}cc; ac_word=$2
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4576 $as_echo_n "checking for $ac_word... " >&6; }
4577 if test "${ac_cv_prog_CC+set}" = set; then :
4578 $as_echo_n "(cached) " >&6
4579 else
4580 if test -n "$CC"; then
4581 ac_cv_prog_CC="$CC" # Let the user override the test.
4582 else
4583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 for as_dir in $PATH
4586 IFS=$as_save_IFS
4587 test -z "$as_dir" && as_dir=.
4588 for ac_exec_ext in '' $ac_executable_extensions; do
4589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4590 ac_cv_prog_CC="${ac_tool_prefix}cc"
4591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4592 break 2
4594 done
4595 done
4596 IFS=$as_save_IFS
4600 CC=$ac_cv_prog_CC
4601 if test -n "$CC"; then
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4603 $as_echo "$CC" >&6; }
4604 else
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4606 $as_echo "no" >&6; }
4612 if test -z "$CC"; then
4613 # Extract the first word of "cc", so it can be a program name with args.
4614 set dummy cc; ac_word=$2
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4616 $as_echo_n "checking for $ac_word... " >&6; }
4617 if test "${ac_cv_prog_CC+set}" = set; then :
4618 $as_echo_n "(cached) " >&6
4619 else
4620 if test -n "$CC"; then
4621 ac_cv_prog_CC="$CC" # Let the user override the test.
4622 else
4623 ac_prog_rejected=no
4624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625 for as_dir in $PATH
4627 IFS=$as_save_IFS
4628 test -z "$as_dir" && as_dir=.
4629 for ac_exec_ext in '' $ac_executable_extensions; do
4630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4631 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4632 ac_prog_rejected=yes
4633 continue
4635 ac_cv_prog_CC="cc"
4636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4637 break 2
4639 done
4640 done
4641 IFS=$as_save_IFS
4643 if test $ac_prog_rejected = yes; then
4644 # We found a bogon in the path, so make sure we never use it.
4645 set dummy $ac_cv_prog_CC
4646 shift
4647 if test $# != 0; then
4648 # We chose a different compiler from the bogus one.
4649 # However, it has the same basename, so the bogon will be chosen
4650 # first if we set CC to just the basename; use the full file name.
4651 shift
4652 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4657 CC=$ac_cv_prog_CC
4658 if test -n "$CC"; then
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4660 $as_echo "$CC" >&6; }
4661 else
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4663 $as_echo "no" >&6; }
4668 if test -z "$CC"; then
4669 if test -n "$ac_tool_prefix"; then
4670 for ac_prog in cl.exe
4672 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4673 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4675 $as_echo_n "checking for $ac_word... " >&6; }
4676 if test "${ac_cv_prog_CC+set}" = set; then :
4677 $as_echo_n "(cached) " >&6
4678 else
4679 if test -n "$CC"; then
4680 ac_cv_prog_CC="$CC" # Let the user override the test.
4681 else
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in $PATH
4685 IFS=$as_save_IFS
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4689 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4691 break 2
4693 done
4694 done
4695 IFS=$as_save_IFS
4699 CC=$ac_cv_prog_CC
4700 if test -n "$CC"; then
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4702 $as_echo "$CC" >&6; }
4703 else
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4705 $as_echo "no" >&6; }
4709 test -n "$CC" && break
4710 done
4712 if test -z "$CC"; then
4713 ac_ct_CC=$CC
4714 for ac_prog in cl.exe
4716 # Extract the first word of "$ac_prog", so it can be a program name with args.
4717 set dummy $ac_prog; ac_word=$2
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4719 $as_echo_n "checking for $ac_word... " >&6; }
4720 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4721 $as_echo_n "(cached) " >&6
4722 else
4723 if test -n "$ac_ct_CC"; then
4724 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4725 else
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 for as_dir in $PATH
4729 IFS=$as_save_IFS
4730 test -z "$as_dir" && as_dir=.
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4733 ac_cv_prog_ac_ct_CC="$ac_prog"
4734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4735 break 2
4737 done
4738 done
4739 IFS=$as_save_IFS
4743 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4744 if test -n "$ac_ct_CC"; then
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4746 $as_echo "$ac_ct_CC" >&6; }
4747 else
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4749 $as_echo "no" >&6; }
4753 test -n "$ac_ct_CC" && break
4754 done
4756 if test "x$ac_ct_CC" = x; then
4757 CC=""
4758 else
4759 case $cross_compiling:$ac_tool_warned in
4760 yes:)
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4763 ac_tool_warned=yes ;;
4764 esac
4765 CC=$ac_ct_CC
4772 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4774 as_fn_error "no acceptable C compiler found in \$PATH
4775 See \`config.log' for more details." "$LINENO" 5; }
4777 # Provide some information about the compiler.
4778 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4779 set X $ac_compile
4780 ac_compiler=$2
4781 for ac_option in --version -v -V -qversion; do
4782 { { ac_try="$ac_compiler $ac_option >&5"
4783 case "(($ac_try" in
4784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4785 *) ac_try_echo=$ac_try;;
4786 esac
4787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4788 $as_echo "$ac_try_echo"; } >&5
4789 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4790 ac_status=$?
4791 if test -s conftest.err; then
4792 sed '10a\
4793 ... rest of stderr output deleted ...
4794 10q' conftest.err >conftest.er1
4795 cat conftest.er1 >&5
4797 rm -f conftest.er1 conftest.err
4798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4799 test $ac_status = 0; }
4800 done
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4803 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4804 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4805 $as_echo_n "(cached) " >&6
4806 else
4807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4808 /* end confdefs.h. */
4811 main ()
4813 #ifndef __GNUC__
4814 choke me
4815 #endif
4818 return 0;
4820 _ACEOF
4821 if ac_fn_c_try_compile "$LINENO"; then :
4822 ac_compiler_gnu=yes
4823 else
4824 ac_compiler_gnu=no
4826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4827 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4831 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4832 if test $ac_compiler_gnu = yes; then
4833 GCC=yes
4834 else
4835 GCC=
4837 ac_test_CFLAGS=${CFLAGS+set}
4838 ac_save_CFLAGS=$CFLAGS
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4840 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4841 if test "${ac_cv_prog_cc_g+set}" = set; then :
4842 $as_echo_n "(cached) " >&6
4843 else
4844 ac_save_c_werror_flag=$ac_c_werror_flag
4845 ac_c_werror_flag=yes
4846 ac_cv_prog_cc_g=no
4847 CFLAGS="-g"
4848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4849 /* end confdefs.h. */
4852 main ()
4856 return 0;
4858 _ACEOF
4859 if ac_fn_c_try_compile "$LINENO"; then :
4860 ac_cv_prog_cc_g=yes
4861 else
4862 CFLAGS=""
4863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4864 /* end confdefs.h. */
4867 main ()
4871 return 0;
4873 _ACEOF
4874 if ac_fn_c_try_compile "$LINENO"; then :
4876 else
4877 ac_c_werror_flag=$ac_save_c_werror_flag
4878 CFLAGS="-g"
4879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h. */
4883 main ()
4887 return 0;
4889 _ACEOF
4890 if ac_fn_c_try_compile "$LINENO"; then :
4891 ac_cv_prog_cc_g=yes
4893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4898 ac_c_werror_flag=$ac_save_c_werror_flag
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4901 $as_echo "$ac_cv_prog_cc_g" >&6; }
4902 if test "$ac_test_CFLAGS" = set; then
4903 CFLAGS=$ac_save_CFLAGS
4904 elif test $ac_cv_prog_cc_g = yes; then
4905 if test "$GCC" = yes; then
4906 CFLAGS="-g -O2"
4907 else
4908 CFLAGS="-g"
4910 else
4911 if test "$GCC" = yes; then
4912 CFLAGS="-O2"
4913 else
4914 CFLAGS=
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4918 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4919 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4920 $as_echo_n "(cached) " >&6
4921 else
4922 ac_cv_prog_cc_c89=no
4923 ac_save_CC=$CC
4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h. */
4926 #include <stdarg.h>
4927 #include <stdio.h>
4928 #include <sys/types.h>
4929 #include <sys/stat.h>
4930 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4931 struct buf { int x; };
4932 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4933 static char *e (p, i)
4934 char **p;
4935 int i;
4937 return p[i];
4939 static char *f (char * (*g) (char **, int), char **p, ...)
4941 char *s;
4942 va_list v;
4943 va_start (v,p);
4944 s = g (p, va_arg (v,int));
4945 va_end (v);
4946 return s;
4949 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4950 function prototypes and stuff, but not '\xHH' hex character constants.
4951 These don't provoke an error unfortunately, instead are silently treated
4952 as 'x'. The following induces an error, until -std is added to get
4953 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4954 array size at least. It's necessary to write '\x00'==0 to get something
4955 that's true only with -std. */
4956 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4958 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4959 inside strings and character constants. */
4960 #define FOO(x) 'x'
4961 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4963 int test (int i, double x);
4964 struct s1 {int (*f) (int a);};
4965 struct s2 {int (*f) (double a);};
4966 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4967 int argc;
4968 char **argv;
4970 main ()
4972 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4974 return 0;
4976 _ACEOF
4977 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4978 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4980 CC="$ac_save_CC $ac_arg"
4981 if ac_fn_c_try_compile "$LINENO"; then :
4982 ac_cv_prog_cc_c89=$ac_arg
4984 rm -f core conftest.err conftest.$ac_objext
4985 test "x$ac_cv_prog_cc_c89" != "xno" && break
4986 done
4987 rm -f conftest.$ac_ext
4988 CC=$ac_save_CC
4991 # AC_CACHE_VAL
4992 case "x$ac_cv_prog_cc_c89" in
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4995 $as_echo "none needed" >&6; } ;;
4996 xno)
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4998 $as_echo "unsupported" >&6; } ;;
5000 CC="$CC $ac_cv_prog_cc_c89"
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5002 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5003 esac
5004 if test "x$ac_cv_prog_cc_c89" != xno; then :
5008 ac_ext=c
5009 ac_cpp='$CPP $CPPFLAGS'
5010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5014 depcc="$CC" am_compiler_list=
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5017 $as_echo_n "checking dependency style of $depcc... " >&6; }
5018 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5019 $as_echo_n "(cached) " >&6
5020 else
5021 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5022 # We make a subdir and do the tests there. Otherwise we can end up
5023 # making bogus files that we don't know about and never remove. For
5024 # instance it was reported that on HP-UX the gcc test will end up
5025 # making a dummy file named `D' -- because `-MD' means `put the output
5026 # in D'.
5027 mkdir conftest.dir
5028 # Copy depcomp to subdir because otherwise we won't find it if we're
5029 # using a relative directory.
5030 cp "$am_depcomp" conftest.dir
5031 cd conftest.dir
5032 # We will build objects and dependencies in a subdirectory because
5033 # it helps to detect inapplicable dependency modes. For instance
5034 # both Tru64's cc and ICC support -MD to output dependencies as a
5035 # side effect of compilation, but ICC will put the dependencies in
5036 # the current directory while Tru64 will put them in the object
5037 # directory.
5038 mkdir sub
5040 am_cv_CC_dependencies_compiler_type=none
5041 if test "$am_compiler_list" = ""; then
5042 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5044 am__universal=false
5045 case " $depcc " in #(
5046 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5047 esac
5049 for depmode in $am_compiler_list; do
5050 # Setup a source with many dependencies, because some compilers
5051 # like to wrap large dependency lists on column 80 (with \), and
5052 # we should not choose a depcomp mode which is confused by this.
5054 # We need to recreate these files for each test, as the compiler may
5055 # overwrite some of them when testing with obscure command lines.
5056 # This happens at least with the AIX C compiler.
5057 : > sub/conftest.c
5058 for i in 1 2 3 4 5 6; do
5059 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5060 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5061 # Solaris 8's {/usr,}/bin/sh.
5062 touch sub/conftst$i.h
5063 done
5064 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5066 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5067 # mode. It turns out that the SunPro C++ compiler does not properly
5068 # handle `-M -o', and we need to detect this. Also, some Intel
5069 # versions had trouble with output in subdirs
5070 am__obj=sub/conftest.${OBJEXT-o}
5071 am__minus_obj="-o $am__obj"
5072 case $depmode in
5073 gcc)
5074 # This depmode causes a compiler race in universal mode.
5075 test "$am__universal" = false || continue
5077 nosideeffect)
5078 # after this tag, mechanisms are not by side-effect, so they'll
5079 # only be used when explicitly requested
5080 if test "x$enable_dependency_tracking" = xyes; then
5081 continue
5082 else
5083 break
5086 msvisualcpp | msvcmsys)
5087 # This compiler won't grok `-c -o', but also, the minuso test has
5088 # not run yet. These depmodes are late enough in the game, and
5089 # so weak that their functioning should not be impacted.
5090 am__obj=conftest.${OBJEXT-o}
5091 am__minus_obj=
5093 none) break ;;
5094 esac
5095 if depmode=$depmode \
5096 source=sub/conftest.c object=$am__obj \
5097 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5098 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5099 >/dev/null 2>conftest.err &&
5100 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5101 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5102 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5103 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5104 # icc doesn't choke on unknown options, it will just issue warnings
5105 # or remarks (even with -Werror). So we grep stderr for any message
5106 # that says an option was ignored or not supported.
5107 # When given -MP, icc 7.0 and 7.1 complain thusly:
5108 # icc: Command line warning: ignoring option '-M'; no argument required
5109 # The diagnosis changed in icc 8.0:
5110 # icc: Command line remark: option '-MP' not supported
5111 if (grep 'ignoring option' conftest.err ||
5112 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5113 am_cv_CC_dependencies_compiler_type=$depmode
5114 break
5117 done
5119 cd ..
5120 rm -rf conftest.dir
5121 else
5122 am_cv_CC_dependencies_compiler_type=none
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5127 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5128 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5131 test "x$enable_dependency_tracking" != xno \
5132 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5133 am__fastdepCC_TRUE=
5134 am__fastdepCC_FALSE='#'
5135 else
5136 am__fastdepCC_TRUE='#'
5137 am__fastdepCC_FALSE=
5142 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5144 ac_ext=c
5145 ac_cpp='$CPP $CPPFLAGS'
5146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5150 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5151 # On Suns, sometimes $CPP names a directory.
5152 if test -n "$CPP" && test -d "$CPP"; then
5153 CPP=
5155 if test -z "$CPP"; then
5156 if test "${ac_cv_prog_CPP+set}" = set; then :
5157 $as_echo_n "(cached) " >&6
5158 else
5159 # Double quotes because CPP needs to be expanded
5160 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5162 ac_preproc_ok=false
5163 for ac_c_preproc_warn_flag in '' yes
5165 # Use a header file that comes with gcc, so configuring glibc
5166 # with a fresh cross-compiler works.
5167 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5168 # <limits.h> exists even on freestanding compilers.
5169 # On the NeXT, cc -E runs the code through the compiler's parser,
5170 # not just through cpp. "Syntax error" is here to catch this case.
5171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5172 /* end confdefs.h. */
5173 #ifdef __STDC__
5174 # include <limits.h>
5175 #else
5176 # include <assert.h>
5177 #endif
5178 Syntax error
5179 _ACEOF
5180 if ac_fn_c_try_cpp "$LINENO"; then :
5182 else
5183 # Broken: fails on valid input.
5184 continue
5186 rm -f conftest.err conftest.$ac_ext
5188 # OK, works on sane cases. Now check whether nonexistent headers
5189 # can be detected and how.
5190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191 /* end confdefs.h. */
5192 #include <ac_nonexistent.h>
5193 _ACEOF
5194 if ac_fn_c_try_cpp "$LINENO"; then :
5195 # Broken: success on invalid input.
5196 continue
5197 else
5198 # Passes both tests.
5199 ac_preproc_ok=:
5200 break
5202 rm -f conftest.err conftest.$ac_ext
5204 done
5205 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5206 rm -f conftest.err conftest.$ac_ext
5207 if $ac_preproc_ok; then :
5208 break
5211 done
5212 ac_cv_prog_CPP=$CPP
5215 CPP=$ac_cv_prog_CPP
5216 else
5217 ac_cv_prog_CPP=$CPP
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5220 $as_echo "$CPP" >&6; }
5221 ac_preproc_ok=false
5222 for ac_c_preproc_warn_flag in '' yes
5224 # Use a header file that comes with gcc, so configuring glibc
5225 # with a fresh cross-compiler works.
5226 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5227 # <limits.h> exists even on freestanding compilers.
5228 # On the NeXT, cc -E runs the code through the compiler's parser,
5229 # not just through cpp. "Syntax error" is here to catch this case.
5230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5231 /* end confdefs.h. */
5232 #ifdef __STDC__
5233 # include <limits.h>
5234 #else
5235 # include <assert.h>
5236 #endif
5237 Syntax error
5238 _ACEOF
5239 if ac_fn_c_try_cpp "$LINENO"; then :
5241 else
5242 # Broken: fails on valid input.
5243 continue
5245 rm -f conftest.err conftest.$ac_ext
5247 # OK, works on sane cases. Now check whether nonexistent headers
5248 # can be detected and how.
5249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5250 /* end confdefs.h. */
5251 #include <ac_nonexistent.h>
5252 _ACEOF
5253 if ac_fn_c_try_cpp "$LINENO"; then :
5254 # Broken: success on invalid input.
5255 continue
5256 else
5257 # Passes both tests.
5258 ac_preproc_ok=:
5259 break
5261 rm -f conftest.err conftest.$ac_ext
5263 done
5264 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5265 rm -f conftest.err conftest.$ac_ext
5266 if $ac_preproc_ok; then :
5268 else
5269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5271 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5272 See \`config.log' for more details." "$LINENO" 5; }
5275 ac_ext=c
5276 ac_cpp='$CPP $CPPFLAGS'
5277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5283 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5284 if test "${ac_cv_path_GREP+set}" = set; then :
5285 $as_echo_n "(cached) " >&6
5286 else
5287 if test -z "$GREP"; then
5288 ac_path_GREP_found=false
5289 # Loop through the user's path and test for each of PROGNAME-LIST
5290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5293 IFS=$as_save_IFS
5294 test -z "$as_dir" && as_dir=.
5295 for ac_prog in grep ggrep; do
5296 for ac_exec_ext in '' $ac_executable_extensions; do
5297 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5298 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5299 # Check for GNU ac_path_GREP and select it if it is found.
5300 # Check for GNU $ac_path_GREP
5301 case `"$ac_path_GREP" --version 2>&1` in
5302 *GNU*)
5303 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5305 ac_count=0
5306 $as_echo_n 0123456789 >"conftest.in"
5307 while :
5309 cat "conftest.in" "conftest.in" >"conftest.tmp"
5310 mv "conftest.tmp" "conftest.in"
5311 cp "conftest.in" "conftest.nl"
5312 $as_echo 'GREP' >> "conftest.nl"
5313 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5314 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5315 as_fn_arith $ac_count + 1 && ac_count=$as_val
5316 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5317 # Best one so far, save it but keep looking for a better one
5318 ac_cv_path_GREP="$ac_path_GREP"
5319 ac_path_GREP_max=$ac_count
5321 # 10*(2^10) chars as input seems more than enough
5322 test $ac_count -gt 10 && break
5323 done
5324 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5325 esac
5327 $ac_path_GREP_found && break 3
5328 done
5329 done
5330 done
5331 IFS=$as_save_IFS
5332 if test -z "$ac_cv_path_GREP"; then
5333 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5335 else
5336 ac_cv_path_GREP=$GREP
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5341 $as_echo "$ac_cv_path_GREP" >&6; }
5342 GREP="$ac_cv_path_GREP"
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5346 $as_echo_n "checking for egrep... " >&6; }
5347 if test "${ac_cv_path_EGREP+set}" = set; then :
5348 $as_echo_n "(cached) " >&6
5349 else
5350 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5351 then ac_cv_path_EGREP="$GREP -E"
5352 else
5353 if test -z "$EGREP"; then
5354 ac_path_EGREP_found=false
5355 # Loop through the user's path and test for each of PROGNAME-LIST
5356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5359 IFS=$as_save_IFS
5360 test -z "$as_dir" && as_dir=.
5361 for ac_prog in egrep; do
5362 for ac_exec_ext in '' $ac_executable_extensions; do
5363 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5364 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5365 # Check for GNU ac_path_EGREP and select it if it is found.
5366 # Check for GNU $ac_path_EGREP
5367 case `"$ac_path_EGREP" --version 2>&1` in
5368 *GNU*)
5369 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5371 ac_count=0
5372 $as_echo_n 0123456789 >"conftest.in"
5373 while :
5375 cat "conftest.in" "conftest.in" >"conftest.tmp"
5376 mv "conftest.tmp" "conftest.in"
5377 cp "conftest.in" "conftest.nl"
5378 $as_echo 'EGREP' >> "conftest.nl"
5379 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5380 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5381 as_fn_arith $ac_count + 1 && ac_count=$as_val
5382 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5383 # Best one so far, save it but keep looking for a better one
5384 ac_cv_path_EGREP="$ac_path_EGREP"
5385 ac_path_EGREP_max=$ac_count
5387 # 10*(2^10) chars as input seems more than enough
5388 test $ac_count -gt 10 && break
5389 done
5390 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5391 esac
5393 $ac_path_EGREP_found && break 3
5394 done
5395 done
5396 done
5397 IFS=$as_save_IFS
5398 if test -z "$ac_cv_path_EGREP"; then
5399 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5401 else
5402 ac_cv_path_EGREP=$EGREP
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5408 $as_echo "$ac_cv_path_EGREP" >&6; }
5409 EGREP="$ac_cv_path_EGREP"
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5413 $as_echo_n "checking for ANSI C header files... " >&6; }
5414 if test "${ac_cv_header_stdc+set}" = set; then :
5415 $as_echo_n "(cached) " >&6
5416 else
5417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5418 /* end confdefs.h. */
5419 #include <stdlib.h>
5420 #include <stdarg.h>
5421 #include <string.h>
5422 #include <float.h>
5425 main ()
5429 return 0;
5431 _ACEOF
5432 if ac_fn_c_try_compile "$LINENO"; then :
5433 ac_cv_header_stdc=yes
5434 else
5435 ac_cv_header_stdc=no
5437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5439 if test $ac_cv_header_stdc = yes; then
5440 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442 /* end confdefs.h. */
5443 #include <string.h>
5445 _ACEOF
5446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5447 $EGREP "memchr" >/dev/null 2>&1; then :
5449 else
5450 ac_cv_header_stdc=no
5452 rm -f conftest*
5456 if test $ac_cv_header_stdc = yes; then
5457 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5459 /* end confdefs.h. */
5460 #include <stdlib.h>
5462 _ACEOF
5463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464 $EGREP "free" >/dev/null 2>&1; then :
5466 else
5467 ac_cv_header_stdc=no
5469 rm -f conftest*
5473 if test $ac_cv_header_stdc = yes; then
5474 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5475 if test "$cross_compiling" = yes; then :
5477 else
5478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479 /* end confdefs.h. */
5480 #include <ctype.h>
5481 #include <stdlib.h>
5482 #if ((' ' & 0x0FF) == 0x020)
5483 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5484 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5485 #else
5486 # define ISLOWER(c) \
5487 (('a' <= (c) && (c) <= 'i') \
5488 || ('j' <= (c) && (c) <= 'r') \
5489 || ('s' <= (c) && (c) <= 'z'))
5490 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5491 #endif
5493 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5495 main ()
5497 int i;
5498 for (i = 0; i < 256; i++)
5499 if (XOR (islower (i), ISLOWER (i))
5500 || toupper (i) != TOUPPER (i))
5501 return 2;
5502 return 0;
5504 _ACEOF
5505 if ac_fn_c_try_run "$LINENO"; then :
5507 else
5508 ac_cv_header_stdc=no
5510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5511 conftest.$ac_objext conftest.beam conftest.$ac_ext
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5517 $as_echo "$ac_cv_header_stdc" >&6; }
5518 if test $ac_cv_header_stdc = yes; then
5520 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5527 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5528 # Check whether --enable-maintainer-mode was given.
5529 if test "${enable_maintainer_mode+set}" = set; then :
5530 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5531 else
5532 USE_MAINTAINER_MODE=no
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5536 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5537 if test $USE_MAINTAINER_MODE = yes; then
5538 MAINTAINER_MODE_TRUE=
5539 MAINTAINER_MODE_FALSE='#'
5540 else
5541 MAINTAINER_MODE_TRUE='#'
5542 MAINTAINER_MODE_FALSE=
5545 MAINT=$MAINTAINER_MODE_TRUE
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5550 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5551 if test "${ac_cv_c_const+set}" = set; then :
5552 $as_echo_n "(cached) " >&6
5553 else
5554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5555 /* end confdefs.h. */
5558 main ()
5560 /* FIXME: Include the comments suggested by Paul. */
5561 #ifndef __cplusplus
5562 /* Ultrix mips cc rejects this. */
5563 typedef int charset[2];
5564 const charset cs;
5565 /* SunOS 4.1.1 cc rejects this. */
5566 char const *const *pcpcc;
5567 char **ppc;
5568 /* NEC SVR4.0.2 mips cc rejects this. */
5569 struct point {int x, y;};
5570 static struct point const zero = {0,0};
5571 /* AIX XL C 1.02.0.0 rejects this.
5572 It does not let you subtract one const X* pointer from another in
5573 an arm of an if-expression whose if-part is not a constant
5574 expression */
5575 const char *g = "string";
5576 pcpcc = &g + (g ? g-g : 0);
5577 /* HPUX 7.0 cc rejects these. */
5578 ++pcpcc;
5579 ppc = (char**) pcpcc;
5580 pcpcc = (char const *const *) ppc;
5581 { /* SCO 3.2v4 cc rejects this. */
5582 char *t;
5583 char const *s = 0 ? (char *) 0 : (char const *) 0;
5585 *t++ = 0;
5586 if (s) return 0;
5588 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5589 int x[] = {25, 17};
5590 const int *foo = &x[0];
5591 ++foo;
5593 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5594 typedef const int *iptr;
5595 iptr p = 0;
5596 ++p;
5598 { /* AIX XL C 1.02.0.0 rejects this saying
5599 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5600 struct s { int j; const int *ap[3]; };
5601 struct s *b; b->j = 5;
5603 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5604 const int foo = 10;
5605 if (!foo) return 0;
5607 return !cs[0] && !zero.x;
5608 #endif
5611 return 0;
5613 _ACEOF
5614 if ac_fn_c_try_compile "$LINENO"; then :
5615 ac_cv_c_const=yes
5616 else
5617 ac_cv_c_const=no
5619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5622 $as_echo "$ac_cv_c_const" >&6; }
5623 if test $ac_cv_c_const = no; then
5625 $as_echo "#define const /**/" >>confdefs.h
5629 for ac_func in vprintf
5630 do :
5631 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
5632 if test "x$ac_cv_func_vprintf" = x""yes; then :
5633 cat >>confdefs.h <<_ACEOF
5634 #define HAVE_VPRINTF 1
5635 _ACEOF
5637 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
5638 if test "x$ac_cv_func__doprnt" = x""yes; then :
5640 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
5645 done
5648 for ac_prog in gawk mawk nawk awk
5650 # Extract the first word of "$ac_prog", so it can be a program name with args.
5651 set dummy $ac_prog; ac_word=$2
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5653 $as_echo_n "checking for $ac_word... " >&6; }
5654 if test "${ac_cv_prog_AWK+set}" = set; then :
5655 $as_echo_n "(cached) " >&6
5656 else
5657 if test -n "$AWK"; then
5658 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5659 else
5660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661 for as_dir in $PATH
5663 IFS=$as_save_IFS
5664 test -z "$as_dir" && as_dir=.
5665 for ac_exec_ext in '' $ac_executable_extensions; do
5666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5667 ac_cv_prog_AWK="$ac_prog"
5668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5669 break 2
5671 done
5672 done
5673 IFS=$as_save_IFS
5677 AWK=$ac_cv_prog_AWK
5678 if test -n "$AWK"; then
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5680 $as_echo "$AWK" >&6; }
5681 else
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5683 $as_echo "no" >&6; }
5687 test -n "$AWK" && break
5688 done
5690 if test -n "$ac_tool_prefix"; then
5691 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5692 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5694 $as_echo_n "checking for $ac_word... " >&6; }
5695 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5696 $as_echo_n "(cached) " >&6
5697 else
5698 if test -n "$RANLIB"; then
5699 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5700 else
5701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702 for as_dir in $PATH
5704 IFS=$as_save_IFS
5705 test -z "$as_dir" && as_dir=.
5706 for ac_exec_ext in '' $ac_executable_extensions; do
5707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5708 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5710 break 2
5712 done
5713 done
5714 IFS=$as_save_IFS
5718 RANLIB=$ac_cv_prog_RANLIB
5719 if test -n "$RANLIB"; then
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5721 $as_echo "$RANLIB" >&6; }
5722 else
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5724 $as_echo "no" >&6; }
5729 if test -z "$ac_cv_prog_RANLIB"; then
5730 ac_ct_RANLIB=$RANLIB
5731 # Extract the first word of "ranlib", so it can be a program name with args.
5732 set dummy ranlib; ac_word=$2
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5734 $as_echo_n "checking for $ac_word... " >&6; }
5735 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5736 $as_echo_n "(cached) " >&6
5737 else
5738 if test -n "$ac_ct_RANLIB"; then
5739 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5740 else
5741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742 for as_dir in $PATH
5744 IFS=$as_save_IFS
5745 test -z "$as_dir" && as_dir=.
5746 for ac_exec_ext in '' $ac_executable_extensions; do
5747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5748 ac_cv_prog_ac_ct_RANLIB="ranlib"
5749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5750 break 2
5752 done
5753 done
5754 IFS=$as_save_IFS
5758 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5759 if test -n "$ac_ct_RANLIB"; then
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5761 $as_echo "$ac_ct_RANLIB" >&6; }
5762 else
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5764 $as_echo "no" >&6; }
5767 if test "x$ac_ct_RANLIB" = x; then
5768 RANLIB=":"
5769 else
5770 case $cross_compiling:$ac_tool_warned in
5771 yes:)
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5774 ac_tool_warned=yes ;;
5775 esac
5776 RANLIB=$ac_ct_RANLIB
5778 else
5779 RANLIB="$ac_cv_prog_RANLIB"
5782 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5783 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5784 inttypes.h stdint.h unistd.h
5785 do :
5786 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5787 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5789 eval as_val=\$$as_ac_Header
5790 if test "x$as_val" = x""yes; then :
5791 cat >>confdefs.h <<_ACEOF
5792 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5793 _ACEOF
5797 done
5800 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5801 if test "x$ac_cv_type_size_t" = x""yes; then :
5803 else
5805 cat >>confdefs.h <<_ACEOF
5806 #define size_t unsigned int
5807 _ACEOF
5813 # Extract the first word of "gnuplot", so it can be a program name with args.
5814 set dummy gnuplot; ac_word=$2
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5816 $as_echo_n "checking for $ac_word... " >&6; }
5817 if test "${ac_cv_prog_GNUPLOT+set}" = set; then :
5818 $as_echo_n "(cached) " >&6
5819 else
5820 if test -n "$GNUPLOT"; then
5821 ac_cv_prog_GNUPLOT="$GNUPLOT" # Let the user override the test.
5822 else
5823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824 for as_dir in $PATH
5826 IFS=$as_save_IFS
5827 test -z "$as_dir" && as_dir=.
5828 for ac_exec_ext in '' $ac_executable_extensions; do
5829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5830 ac_cv_prog_GNUPLOT="true"
5831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5832 break 2
5834 done
5835 done
5836 IFS=$as_save_IFS
5838 test -z "$ac_cv_prog_GNUPLOT" && ac_cv_prog_GNUPLOT="false"
5841 GNUPLOT=$ac_cv_prog_GNUPLOT
5842 if test -n "$GNUPLOT"; then
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUPLOT" >&5
5844 $as_echo "$GNUPLOT" >&6; }
5845 else
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5847 $as_echo "no" >&6; }
5851 if $GNUPLOT; then
5852 HAVE_GNUPLOT_TRUE=
5853 HAVE_GNUPLOT_FALSE='#'
5854 else
5855 HAVE_GNUPLOT_TRUE='#'
5856 HAVE_GNUPLOT_FALSE=
5863 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5864 if test -n "$ac_tool_prefix"; then
5865 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5866 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5868 $as_echo_n "checking for $ac_word... " >&6; }
5869 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5870 $as_echo_n "(cached) " >&6
5871 else
5872 case $PKG_CONFIG in
5873 [\\/]* | ?:[\\/]*)
5874 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878 for as_dir in $PATH
5880 IFS=$as_save_IFS
5881 test -z "$as_dir" && as_dir=.
5882 for ac_exec_ext in '' $ac_executable_extensions; do
5883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5884 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5886 break 2
5888 done
5889 done
5890 IFS=$as_save_IFS
5893 esac
5895 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5896 if test -n "$PKG_CONFIG"; then
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5898 $as_echo "$PKG_CONFIG" >&6; }
5899 else
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901 $as_echo "no" >&6; }
5906 if test -z "$ac_cv_path_PKG_CONFIG"; then
5907 ac_pt_PKG_CONFIG=$PKG_CONFIG
5908 # Extract the first word of "pkg-config", so it can be a program name with args.
5909 set dummy pkg-config; ac_word=$2
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5911 $as_echo_n "checking for $ac_word... " >&6; }
5912 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5913 $as_echo_n "(cached) " >&6
5914 else
5915 case $ac_pt_PKG_CONFIG in
5916 [\\/]* | ?:[\\/]*)
5917 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921 for as_dir in $PATH
5923 IFS=$as_save_IFS
5924 test -z "$as_dir" && as_dir=.
5925 for ac_exec_ext in '' $ac_executable_extensions; do
5926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5927 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5929 break 2
5931 done
5932 done
5933 IFS=$as_save_IFS
5936 esac
5938 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5939 if test -n "$ac_pt_PKG_CONFIG"; then
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5941 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5942 else
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5944 $as_echo "no" >&6; }
5947 if test "x$ac_pt_PKG_CONFIG" = x; then
5948 PKG_CONFIG=""
5949 else
5950 case $cross_compiling:$ac_tool_warned in
5951 yes:)
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5954 ac_tool_warned=yes ;;
5955 esac
5956 PKG_CONFIG=$ac_pt_PKG_CONFIG
5958 else
5959 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5963 if test -n "$PKG_CONFIG"; then
5964 _pkg_min_version=0.9.0
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5966 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5967 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5969 $as_echo "yes" >&6; }
5970 else
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5972 $as_echo "no" >&6; }
5973 PKG_CONFIG=""
5978 pkg_failed=no
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
5980 $as_echo_n "checking for GLIB... " >&6; }
5982 if test -n "$PKG_CONFIG"; then
5983 if test -n "$GLIB_CFLAGS"; then
5984 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
5985 else
5986 if test -n "$PKG_CONFIG" && \
5987 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.0.0\""; } >&5
5988 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.0.0") 2>&5
5989 ac_status=$?
5990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5991 test $ac_status = 0; }; then
5992 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.0.0" 2>/dev/null`
5993 else
5994 pkg_failed=yes
5997 else
5998 pkg_failed=untried
6000 if test -n "$PKG_CONFIG"; then
6001 if test -n "$GLIB_LIBS"; then
6002 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
6003 else
6004 if test -n "$PKG_CONFIG" && \
6005 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.0.0\""; } >&5
6006 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.0.0") 2>&5
6007 ac_status=$?
6008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6009 test $ac_status = 0; }; then
6010 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.0.0" 2>/dev/null`
6011 else
6012 pkg_failed=yes
6015 else
6016 pkg_failed=untried
6021 if test $pkg_failed = yes; then
6023 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6024 _pkg_short_errors_supported=yes
6025 else
6026 _pkg_short_errors_supported=no
6028 if test $_pkg_short_errors_supported = yes; then
6029 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= 2.0.0"`
6030 else
6031 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.0.0"`
6033 # Put the nasty error message in config.log where it belongs
6034 echo "$GLIB_PKG_ERRORS" >&5
6036 as_fn_error "Package requirements (glib-2.0 >= 2.0.0) were not met:
6038 $GLIB_PKG_ERRORS
6040 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6041 installed software in a non-standard prefix.
6043 Alternatively, you may set the environment variables GLIB_CFLAGS
6044 and GLIB_LIBS to avoid the need to call pkg-config.
6045 See the pkg-config man page for more details.
6046 " "$LINENO" 5
6047 elif test $pkg_failed = untried; then
6048 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6050 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
6051 is in your PATH or set the PKG_CONFIG environment variable to the full
6052 path to pkg-config.
6054 Alternatively, you may set the environment variables GLIB_CFLAGS
6055 and GLIB_LIBS to avoid the need to call pkg-config.
6056 See the pkg-config man page for more details.
6058 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6059 See \`config.log' for more details." "$LINENO" 5; }
6060 else
6061 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
6062 GLIB_LIBS=$pkg_cv_GLIB_LIBS
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6064 $as_echo "yes" >&6; }
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for g_malloc0 in -lglib-2.0" >&5
6071 $as_echo_n "checking for g_malloc0 in -lglib-2.0... " >&6; }
6072 if test "${ac_cv_lib_glib_2_0_g_malloc0+set}" = set; then :
6073 $as_echo_n "(cached) " >&6
6074 else
6075 ac_check_lib_save_LIBS=$LIBS
6076 LIBS="-lglib-2.0 $LIBS"
6077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6078 /* end confdefs.h. */
6080 /* Override any GCC internal prototype to avoid an error.
6081 Use char because int might match the return type of a GCC
6082 builtin and then its argument prototype would still apply. */
6083 #ifdef __cplusplus
6084 extern "C"
6085 #endif
6086 char g_malloc0 ();
6088 main ()
6090 return g_malloc0 ();
6092 return 0;
6094 _ACEOF
6095 if ac_fn_c_try_link "$LINENO"; then :
6096 ac_cv_lib_glib_2_0_g_malloc0=yes
6097 else
6098 ac_cv_lib_glib_2_0_g_malloc0=no
6100 rm -f core conftest.err conftest.$ac_objext \
6101 conftest$ac_exeext conftest.$ac_ext
6102 LIBS=$ac_check_lib_save_LIBS
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_glib_2_0_g_malloc0" >&5
6105 $as_echo "$ac_cv_lib_glib_2_0_g_malloc0" >&6; }
6106 if test "x$ac_cv_lib_glib_2_0_g_malloc0" = x""yes; then :
6107 cat >>confdefs.h <<_ACEOF
6108 #define HAVE_LIBGLIB_2_0 1
6109 _ACEOF
6111 LIBS="-lglib-2.0 $LIBS"
6113 else
6114 as_fn_error "\"libglib not installed\"" "$LINENO" 5
6118 # Extract the first word of "perl", so it can be a program name with args.
6119 set dummy perl; ac_word=$2
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6121 $as_echo_n "checking for $ac_word... " >&6; }
6122 if test "${ac_cv_prog_PERL+set}" = set; then :
6123 $as_echo_n "(cached) " >&6
6124 else
6125 if test -n "$PERL"; then
6126 ac_cv_prog_PERL="$PERL" # Let the user override the test.
6127 else
6128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129 for as_dir in $PATH
6131 IFS=$as_save_IFS
6132 test -z "$as_dir" && as_dir=.
6133 for ac_exec_ext in '' $ac_executable_extensions; do
6134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6135 ac_cv_prog_PERL="true"
6136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6137 break 2
6139 done
6140 done
6141 IFS=$as_save_IFS
6143 test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="false"
6146 PERL=$ac_cv_prog_PERL
6147 if test -n "$PERL"; then
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
6149 $as_echo "$PERL" >&6; }
6150 else
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6152 $as_echo "no" >&6; }
6156 if $PERL; then
6157 HAVE_PERL_TRUE=
6158 HAVE_PERL_FALSE='#'
6159 else
6160 HAVE_PERL_TRUE='#'
6161 HAVE_PERL_FALSE=
6164 # Extract the first word of "python", so it can be a program name with args.
6165 set dummy python; ac_word=$2
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6167 $as_echo_n "checking for $ac_word... " >&6; }
6168 if test "${ac_cv_prog_PYTHON+set}" = set; then :
6169 $as_echo_n "(cached) " >&6
6170 else
6171 if test -n "$PYTHON"; then
6172 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
6173 else
6174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175 for as_dir in $PATH
6177 IFS=$as_save_IFS
6178 test -z "$as_dir" && as_dir=.
6179 for ac_exec_ext in '' $ac_executable_extensions; do
6180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6181 ac_cv_prog_PYTHON="true"
6182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6183 break 2
6185 done
6186 done
6187 IFS=$as_save_IFS
6189 test -z "$ac_cv_prog_PYTHON" && ac_cv_prog_PYTHON="false"
6192 PYTHON=$ac_cv_prog_PYTHON
6193 if test -n "$PYTHON"; then
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
6195 $as_echo "$PYTHON" >&6; }
6196 else
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6198 $as_echo "no" >&6; }
6202 if $PYTHON; then
6203 HAVE_PYTHON_TRUE=
6204 HAVE_PYTHON_FALSE='#'
6205 else
6206 HAVE_PYTHON_TRUE='#'
6207 HAVE_PYTHON_FALSE=
6210 # Extract the first word of "convert", so it can be a program name with args.
6211 set dummy convert; ac_word=$2
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6213 $as_echo_n "checking for $ac_word... " >&6; }
6214 if test "${ac_cv_prog_CONVERT+set}" = set; then :
6215 $as_echo_n "(cached) " >&6
6216 else
6217 if test -n "$CONVERT"; then
6218 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
6219 else
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221 for as_dir in $PATH
6223 IFS=$as_save_IFS
6224 test -z "$as_dir" && as_dir=.
6225 for ac_exec_ext in '' $ac_executable_extensions; do
6226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6227 ac_cv_prog_CONVERT="true"
6228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6229 break 2
6231 done
6232 done
6233 IFS=$as_save_IFS
6235 test -z "$ac_cv_prog_CONVERT" && ac_cv_prog_CONVERT="false"
6238 CONVERT=$ac_cv_prog_CONVERT
6239 if test -n "$CONVERT"; then
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
6241 $as_echo "$CONVERT" >&6; }
6242 else
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6244 $as_echo "no" >&6; }
6248 if $CONVERT; then
6249 HAVE_CONVERT_TRUE=
6250 HAVE_CONVERT_FALSE='#'
6251 else
6252 HAVE_CONVERT_TRUE='#'
6253 HAVE_CONVERT_FALSE=
6256 # Extract the first word of "plotmtv", so it can be a program name with args.
6257 set dummy plotmtv; ac_word=$2
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6259 $as_echo_n "checking for $ac_word... " >&6; }
6260 if test "${ac_cv_prog_PLOTMTV+set}" = set; then :
6261 $as_echo_n "(cached) " >&6
6262 else
6263 if test -n "$PLOTMTV"; then
6264 ac_cv_prog_PLOTMTV="$PLOTMTV" # Let the user override the test.
6265 else
6266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6267 for as_dir in $PATH
6269 IFS=$as_save_IFS
6270 test -z "$as_dir" && as_dir=.
6271 for ac_exec_ext in '' $ac_executable_extensions; do
6272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6273 ac_cv_prog_PLOTMTV="true"
6274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6275 break 2
6277 done
6278 done
6279 IFS=$as_save_IFS
6281 test -z "$ac_cv_prog_PLOTMTV" && ac_cv_prog_PLOTMTV="false"
6284 PLOTMTV=$ac_cv_prog_PLOTMTV
6285 if test -n "$PLOTMTV"; then
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLOTMTV" >&5
6287 $as_echo "$PLOTMTV" >&6; }
6288 else
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6290 $as_echo "no" >&6; }
6294 if $PLOTMTV; then
6295 HAVE_PLOTMTV_TRUE=
6296 HAVE_PLOTMTV_FALSE='#'
6297 else
6298 HAVE_PLOTMTV_TRUE='#'
6299 HAVE_PLOTMTV_FALSE=
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_plan_dft_r2c_2d in -lfftw3" >&5
6304 $as_echo_n "checking for fftw_plan_dft_r2c_2d in -lfftw3... " >&6; }
6305 if test "${ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d+set}" = set; then :
6306 $as_echo_n "(cached) " >&6
6307 else
6308 ac_check_lib_save_LIBS=$LIBS
6309 LIBS="-lfftw3 $LIBS"
6310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6311 /* end confdefs.h. */
6313 /* Override any GCC internal prototype to avoid an error.
6314 Use char because int might match the return type of a GCC
6315 builtin and then its argument prototype would still apply. */
6316 #ifdef __cplusplus
6317 extern "C"
6318 #endif
6319 char fftw_plan_dft_r2c_2d ();
6321 main ()
6323 return fftw_plan_dft_r2c_2d ();
6325 return 0;
6327 _ACEOF
6328 if ac_fn_c_try_link "$LINENO"; then :
6329 ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d=yes
6330 else
6331 ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d=no
6333 rm -f core conftest.err conftest.$ac_objext \
6334 conftest$ac_exeext conftest.$ac_ext
6335 LIBS=$ac_check_lib_save_LIBS
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" >&5
6338 $as_echo "$ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" >&6; }
6339 if test "x$ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" = x""yes; then :
6340 cat >>confdefs.h <<_ACEOF
6341 #define HAVE_LIBFFTW3 1
6342 _ACEOF
6344 LIBS="-lfftw3 $LIBS"
6346 else
6347 as_fn_error "\"libfftw3 not installed\"" "$LINENO" 5
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgslcblas" >&5
6352 $as_echo_n "checking for main in -lgslcblas... " >&6; }
6353 if test "${ac_cv_lib_gslcblas_main+set}" = set; then :
6354 $as_echo_n "(cached) " >&6
6355 else
6356 ac_check_lib_save_LIBS=$LIBS
6357 LIBS="-lgslcblas $LIBS"
6358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6359 /* end confdefs.h. */
6363 main ()
6365 return main ();
6367 return 0;
6369 _ACEOF
6370 if ac_fn_c_try_link "$LINENO"; then :
6371 ac_cv_lib_gslcblas_main=yes
6372 else
6373 ac_cv_lib_gslcblas_main=no
6375 rm -f core conftest.err conftest.$ac_objext \
6376 conftest$ac_exeext conftest.$ac_ext
6377 LIBS=$ac_check_lib_save_LIBS
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gslcblas_main" >&5
6380 $as_echo "$ac_cv_lib_gslcblas_main" >&6; }
6381 if test "x$ac_cv_lib_gslcblas_main" = x""yes; then :
6382 cat >>confdefs.h <<_ACEOF
6383 #define HAVE_LIBGSLCBLAS 1
6384 _ACEOF
6386 LIBS="-lgslcblas $LIBS"
6388 else
6389 as_fn_error "\"libgslcblas not installed\"" "$LINENO" 5
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgsl" >&5
6394 $as_echo_n "checking for main in -lgsl... " >&6; }
6395 if test "${ac_cv_lib_gsl_main+set}" = set; then :
6396 $as_echo_n "(cached) " >&6
6397 else
6398 ac_check_lib_save_LIBS=$LIBS
6399 LIBS="-lgsl $LIBS"
6400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6401 /* end confdefs.h. */
6405 main ()
6407 return main ();
6409 return 0;
6411 _ACEOF
6412 if ac_fn_c_try_link "$LINENO"; then :
6413 ac_cv_lib_gsl_main=yes
6414 else
6415 ac_cv_lib_gsl_main=no
6417 rm -f core conftest.err conftest.$ac_objext \
6418 conftest$ac_exeext conftest.$ac_ext
6419 LIBS=$ac_check_lib_save_LIBS
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gsl_main" >&5
6422 $as_echo "$ac_cv_lib_gsl_main" >&6; }
6423 if test "x$ac_cv_lib_gsl_main" = x""yes; then :
6424 cat >>confdefs.h <<_ACEOF
6425 #define HAVE_LIBGSL 1
6426 _ACEOF
6428 LIBS="-lgsl $LIBS"
6430 else
6431 as_fn_error "\"libgsl not installed\"" "$LINENO" 5
6437 # Check whether --enable-mpi was given.
6438 if test "${enable_mpi+set}" = set; then :
6439 enableval=$enable_mpi; ENABLE_MPI="-DENABLE_MPI"
6446 if test "${ENABLE_MPI}" == '-DENABLE_MPI'; then
6452 for ac_prog in mpicc hcc mpcc mpcc_r mpxlc cmpicc
6454 # Extract the first word of "$ac_prog", so it can be a program name with args.
6455 set dummy $ac_prog; ac_word=$2
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457 $as_echo_n "checking for $ac_word... " >&6; }
6458 if test "${ac_cv_prog_MPICC+set}" = set; then :
6459 $as_echo_n "(cached) " >&6
6460 else
6461 if test -n "$MPICC"; then
6462 ac_cv_prog_MPICC="$MPICC" # Let the user override the test.
6463 else
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465 for as_dir in $PATH
6467 IFS=$as_save_IFS
6468 test -z "$as_dir" && as_dir=.
6469 for ac_exec_ext in '' $ac_executable_extensions; do
6470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6471 ac_cv_prog_MPICC="$ac_prog"
6472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6473 break 2
6475 done
6476 done
6477 IFS=$as_save_IFS
6481 MPICC=$ac_cv_prog_MPICC
6482 if test -n "$MPICC"; then
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5
6484 $as_echo "$MPICC" >&6; }
6485 else
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6487 $as_echo "no" >&6; }
6491 test -n "$MPICC" && break
6492 done
6493 test -n "$MPICC" || MPICC="$CC"
6495 acx_mpi_save_CC="$CC"
6496 CC="$MPICC"
6500 if test x = x"$MPILIBS"; then
6501 ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
6502 if test "x$ac_cv_func_MPI_Init" = x""yes; then :
6503 MPILIBS=" "
6507 if test x = x"$MPILIBS"; then
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
6509 $as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
6510 if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
6511 $as_echo_n "(cached) " >&6
6512 else
6513 ac_check_lib_save_LIBS=$LIBS
6514 LIBS="-lmpi $LIBS"
6515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6516 /* end confdefs.h. */
6518 /* Override any GCC internal prototype to avoid an error.
6519 Use char because int might match the return type of a GCC
6520 builtin and then its argument prototype would still apply. */
6521 #ifdef __cplusplus
6522 extern "C"
6523 #endif
6524 char MPI_Init ();
6526 main ()
6528 return MPI_Init ();
6530 return 0;
6532 _ACEOF
6533 if ac_fn_c_try_link "$LINENO"; then :
6534 ac_cv_lib_mpi_MPI_Init=yes
6535 else
6536 ac_cv_lib_mpi_MPI_Init=no
6538 rm -f core conftest.err conftest.$ac_objext \
6539 conftest$ac_exeext conftest.$ac_ext
6540 LIBS=$ac_check_lib_save_LIBS
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
6543 $as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
6544 if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
6545 MPILIBS="-lmpi"
6549 if test x = x"$MPILIBS"; then
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
6551 $as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
6552 if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then :
6553 $as_echo_n "(cached) " >&6
6554 else
6555 ac_check_lib_save_LIBS=$LIBS
6556 LIBS="-lmpich $LIBS"
6557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6558 /* end confdefs.h. */
6560 /* Override any GCC internal prototype to avoid an error.
6561 Use char because int might match the return type of a GCC
6562 builtin and then its argument prototype would still apply. */
6563 #ifdef __cplusplus
6564 extern "C"
6565 #endif
6566 char MPI_Init ();
6568 main ()
6570 return MPI_Init ();
6572 return 0;
6574 _ACEOF
6575 if ac_fn_c_try_link "$LINENO"; then :
6576 ac_cv_lib_mpich_MPI_Init=yes
6577 else
6578 ac_cv_lib_mpich_MPI_Init=no
6580 rm -f core conftest.err conftest.$ac_objext \
6581 conftest$ac_exeext conftest.$ac_ext
6582 LIBS=$ac_check_lib_save_LIBS
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
6585 $as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
6586 if test "x$ac_cv_lib_mpich_MPI_Init" = x""yes; then :
6587 MPILIBS="-lmpich"
6592 if test x != x"$MPILIBS"; then
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
6594 $as_echo_n "checking for mpi.h... " >&6; }
6595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6596 /* end confdefs.h. */
6597 #include <mpi.h>
6599 main ()
6603 return 0;
6605 _ACEOF
6606 if ac_fn_c_try_compile "$LINENO"; then :
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6608 $as_echo "yes" >&6; }
6609 else
6610 MPILIBS=""
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6612 $as_echo "no" >&6; }
6614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6617 CC="$acx_mpi_save_CC"
6621 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
6622 if test x = x"$MPILIBS"; then
6623 as_fn_error "\"libmpi IS NOT installed\"" "$LINENO" 5
6625 else
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"libmpi HAS BEEN installed\"" >&5
6627 $as_echo "$as_me: WARNING: \"libmpi HAS BEEN installed\"" >&2;}
6632 CC="$MPICC"
6633 LIBS="$MPILIBS $LIBS"
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmpi" >&5
6636 $as_echo_n "checking for main in -lmpi... " >&6; }
6637 if test "${ac_cv_lib_mpi_main+set}" = set; then :
6638 $as_echo_n "(cached) " >&6
6639 else
6640 ac_check_lib_save_LIBS=$LIBS
6641 LIBS="-lmpi $LIBS"
6642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643 /* end confdefs.h. */
6647 main ()
6649 return main ();
6651 return 0;
6653 _ACEOF
6654 if ac_fn_c_try_link "$LINENO"; then :
6655 ac_cv_lib_mpi_main=yes
6656 else
6657 ac_cv_lib_mpi_main=no
6659 rm -f core conftest.err conftest.$ac_objext \
6660 conftest$ac_exeext conftest.$ac_ext
6661 LIBS=$ac_check_lib_save_LIBS
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_main" >&5
6664 $as_echo "$ac_cv_lib_mpi_main" >&6; }
6665 if test "x$ac_cv_lib_mpi_main" = x""yes; then :
6666 cat >>confdefs.h <<_ACEOF
6667 #define HAVE_LIBMPI 1
6668 _ACEOF
6670 LIBS="-lmpi $LIBS"
6672 else
6673 as_fn_error "\"libmpi not installed\"" "$LINENO" 5
6676 ac_fn_c_check_header_mongrel "$LINENO" "mpi.h" "ac_cv_header_mpi_h" "$ac_includes_default"
6677 if test "x$ac_cv_header_mpi_h" = x""yes; then :
6679 else
6680 as_fn_error "\"missing mpi.h\"" "$LINENO" 5
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpiv_piv_mpi_bcast_pivpar in -lgpiv_mpi" >&5
6686 $as_echo_n "checking for gpiv_piv_mpi_bcast_pivpar in -lgpiv_mpi... " >&6; }
6687 if test "${ac_cv_lib_gpiv_mpi_gpiv_piv_mpi_bcast_pivpar+set}" = set; then :
6688 $as_echo_n "(cached) " >&6
6689 else
6690 ac_check_lib_save_LIBS=$LIBS
6691 LIBS="-lgpiv_mpi $LIBS"
6692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693 /* end confdefs.h. */
6695 /* Override any GCC internal prototype to avoid an error.
6696 Use char because int might match the return type of a GCC
6697 builtin and then its argument prototype would still apply. */
6698 #ifdef __cplusplus
6699 extern "C"
6700 #endif
6701 char gpiv_piv_mpi_bcast_pivpar ();
6703 main ()
6705 return gpiv_piv_mpi_bcast_pivpar ();
6707 return 0;
6709 _ACEOF
6710 if ac_fn_c_try_link "$LINENO"; then :
6711 ac_cv_lib_gpiv_mpi_gpiv_piv_mpi_bcast_pivpar=yes
6712 else
6713 ac_cv_lib_gpiv_mpi_gpiv_piv_mpi_bcast_pivpar=no
6715 rm -f core conftest.err conftest.$ac_objext \
6716 conftest$ac_exeext conftest.$ac_ext
6717 LIBS=$ac_check_lib_save_LIBS
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpiv_mpi_gpiv_piv_mpi_bcast_pivpar" >&5
6720 $as_echo "$ac_cv_lib_gpiv_mpi_gpiv_piv_mpi_bcast_pivpar" >&6; }
6721 if test "x$ac_cv_lib_gpiv_mpi_gpiv_piv_mpi_bcast_pivpar" = x""yes; then :
6722 cat >>confdefs.h <<_ACEOF
6723 #define HAVE_LIBGPIV_MPI 1
6724 _ACEOF
6726 LIBS="-lgpiv_mpi $LIBS"
6728 else
6729 as_fn_error "\"gpiv_piv_mpi_bcast_pivpar is not working in libgpiv_mpi. \
6730 Enable MPI in libgpiv or disable it here by leaving out --enable-mpi during ./configure\"" "$LINENO" 5
6734 # Extract the first word of "mpipython", so it can be a program name with args.
6735 set dummy mpipython; ac_word=$2
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6737 $as_echo_n "checking for $ac_word... " >&6; }
6738 if test "${ac_cv_prog_MPIPYTHON+set}" = set; then :
6739 $as_echo_n "(cached) " >&6
6740 else
6741 if test -n "$MPIPYTHON"; then
6742 ac_cv_prog_MPIPYTHON="$MPIPYTHON" # Let the user override the test.
6743 else
6744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6745 for as_dir in $PATH
6747 IFS=$as_save_IFS
6748 test -z "$as_dir" && as_dir=.
6749 for ac_exec_ext in '' $ac_executable_extensions; do
6750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6751 ac_cv_prog_MPIPYTHON="true"
6752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6753 break 2
6755 done
6756 done
6757 IFS=$as_save_IFS
6759 test -z "$ac_cv_prog_MPIPYTHON" && ac_cv_prog_MPIPYTHON="false"
6762 MPIPYTHON=$ac_cv_prog_MPIPYTHON
6763 if test -n "$MPIPYTHON"; then
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIPYTHON" >&5
6765 $as_echo "$MPIPYTHON" >&6; }
6766 else
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6768 $as_echo "no" >&6; }
6773 else
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpiv_warning in -lgpiv" >&5
6775 $as_echo_n "checking for gpiv_warning in -lgpiv... " >&6; }
6776 if test "${ac_cv_lib_gpiv_gpiv_warning+set}" = set; then :
6777 $as_echo_n "(cached) " >&6
6778 else
6779 ac_check_lib_save_LIBS=$LIBS
6780 LIBS="-lgpiv $LIBS"
6781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6782 /* end confdefs.h. */
6784 /* Override any GCC internal prototype to avoid an error.
6785 Use char because int might match the return type of a GCC
6786 builtin and then its argument prototype would still apply. */
6787 #ifdef __cplusplus
6788 extern "C"
6789 #endif
6790 char gpiv_warning ();
6792 main ()
6794 return gpiv_warning ();
6796 return 0;
6798 _ACEOF
6799 if ac_fn_c_try_link "$LINENO"; then :
6800 ac_cv_lib_gpiv_gpiv_warning=yes
6801 else
6802 ac_cv_lib_gpiv_gpiv_warning=no
6804 rm -f core conftest.err conftest.$ac_objext \
6805 conftest$ac_exeext conftest.$ac_ext
6806 LIBS=$ac_check_lib_save_LIBS
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpiv_gpiv_warning" >&5
6809 $as_echo "$ac_cv_lib_gpiv_gpiv_warning" >&6; }
6810 if test "x$ac_cv_lib_gpiv_gpiv_warning" = x""yes; then :
6811 cat >>confdefs.h <<_ACEOF
6812 #define HAVE_LIBGPIV 1
6813 _ACEOF
6815 LIBS="-lgpiv $LIBS"
6817 else
6818 as_fn_error "\"libgpiv has not been installed\"" "$LINENO" 5
6824 for ac_header in stdlib.h string.h unistd.h \
6825 fftw3.h \
6826 gpiv.h \
6828 do :
6829 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6830 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6831 eval as_val=\$$as_ac_Header
6832 if test "x$as_val" = x""yes; then :
6833 cat >>confdefs.h <<_ACEOF
6834 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6835 _ACEOF
6839 done
6845 # Check whether --enable-cam was given.
6846 if test "${enable_cam+set}" = set; then :
6847 enableval=$enable_cam; ENABLE_CAM="-DENABLE_CAM"
6854 # Check whether --enable-trig was given.
6855 if test "${enable_trig+set}" = set; then :
6856 enableval=$enable_trig; ENABLE_TRIG="-DENABLE_TRIG"
6863 if test "${ENABLE_CAM}" == '-DENABLE_CAM'; then
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpiv_cam_get_camvar in -lgpiv" >&5
6865 $as_echo_n "checking for gpiv_cam_get_camvar in -lgpiv... " >&6; }
6866 if test "${ac_cv_lib_gpiv_gpiv_cam_get_camvar+set}" = set; then :
6867 $as_echo_n "(cached) " >&6
6868 else
6869 ac_check_lib_save_LIBS=$LIBS
6870 LIBS="-lgpiv $LIBS"
6871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6872 /* end confdefs.h. */
6874 /* Override any GCC internal prototype to avoid an error.
6875 Use char because int might match the return type of a GCC
6876 builtin and then its argument prototype would still apply. */
6877 #ifdef __cplusplus
6878 extern "C"
6879 #endif
6880 char gpiv_cam_get_camvar ();
6882 main ()
6884 return gpiv_cam_get_camvar ();
6886 return 0;
6888 _ACEOF
6889 if ac_fn_c_try_link "$LINENO"; then :
6890 ac_cv_lib_gpiv_gpiv_cam_get_camvar=yes
6891 else
6892 ac_cv_lib_gpiv_gpiv_cam_get_camvar=no
6894 rm -f core conftest.err conftest.$ac_objext \
6895 conftest$ac_exeext conftest.$ac_ext
6896 LIBS=$ac_check_lib_save_LIBS
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpiv_gpiv_cam_get_camvar" >&5
6899 $as_echo "$ac_cv_lib_gpiv_gpiv_cam_get_camvar" >&6; }
6900 if test "x$ac_cv_lib_gpiv_gpiv_cam_get_camvar" = x""yes; then :
6901 cat >>confdefs.h <<_ACEOF
6902 #define HAVE_LIBGPIV 1
6903 _ACEOF
6905 LIBS="-lgpiv $LIBS"
6907 else
6908 as_fn_error "\"(IEEE-1394) camera is not working in libgpiv. \
6909 Enable (IEEE-1394) camera in libgpiv or disable it here by leaving out --enable-cam during ./configure\"" "$LINENO" 5
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for raw1394_destroy_handle in -lraw1394" >&5
6914 $as_echo_n "checking for raw1394_destroy_handle in -lraw1394... " >&6; }
6915 if test "${ac_cv_lib_raw1394_raw1394_destroy_handle+set}" = set; then :
6916 $as_echo_n "(cached) " >&6
6917 else
6918 ac_check_lib_save_LIBS=$LIBS
6919 LIBS="-lraw1394 $LIBS"
6920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6921 /* end confdefs.h. */
6923 /* Override any GCC internal prototype to avoid an error.
6924 Use char because int might match the return type of a GCC
6925 builtin and then its argument prototype would still apply. */
6926 #ifdef __cplusplus
6927 extern "C"
6928 #endif
6929 char raw1394_destroy_handle ();
6931 main ()
6933 return raw1394_destroy_handle ();
6935 return 0;
6937 _ACEOF
6938 if ac_fn_c_try_link "$LINENO"; then :
6939 ac_cv_lib_raw1394_raw1394_destroy_handle=yes
6940 else
6941 ac_cv_lib_raw1394_raw1394_destroy_handle=no
6943 rm -f core conftest.err conftest.$ac_objext \
6944 conftest$ac_exeext conftest.$ac_ext
6945 LIBS=$ac_check_lib_save_LIBS
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_raw1394_raw1394_destroy_handle" >&5
6948 $as_echo "$ac_cv_lib_raw1394_raw1394_destroy_handle" >&6; }
6949 if test "x$ac_cv_lib_raw1394_raw1394_destroy_handle" = x""yes; then :
6950 cat >>confdefs.h <<_ACEOF
6951 #define HAVE_LIBRAW1394 1
6952 _ACEOF
6954 LIBS="-lraw1394 $LIBS"
6956 else
6957 as_fn_error "\"libraw1394 not installed\"" "$LINENO" 5
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dc1394_create_handle in -ldc1394_control" >&5
6962 $as_echo_n "checking for dc1394_create_handle in -ldc1394_control... " >&6; }
6963 if test "${ac_cv_lib_dc1394_control_dc1394_create_handle+set}" = set; then :
6964 $as_echo_n "(cached) " >&6
6965 else
6966 ac_check_lib_save_LIBS=$LIBS
6967 LIBS="-ldc1394_control $LIBS"
6968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6969 /* end confdefs.h. */
6971 /* Override any GCC internal prototype to avoid an error.
6972 Use char because int might match the return type of a GCC
6973 builtin and then its argument prototype would still apply. */
6974 #ifdef __cplusplus
6975 extern "C"
6976 #endif
6977 char dc1394_create_handle ();
6979 main ()
6981 return dc1394_create_handle ();
6983 return 0;
6985 _ACEOF
6986 if ac_fn_c_try_link "$LINENO"; then :
6987 ac_cv_lib_dc1394_control_dc1394_create_handle=yes
6988 else
6989 ac_cv_lib_dc1394_control_dc1394_create_handle=no
6991 rm -f core conftest.err conftest.$ac_objext \
6992 conftest$ac_exeext conftest.$ac_ext
6993 LIBS=$ac_check_lib_save_LIBS
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dc1394_control_dc1394_create_handle" >&5
6996 $as_echo "$ac_cv_lib_dc1394_control_dc1394_create_handle" >&6; }
6997 if test "x$ac_cv_lib_dc1394_control_dc1394_create_handle" = x""yes; then :
6998 cat >>confdefs.h <<_ACEOF
6999 #define HAVE_LIBDC1394_CONTROL 1
7000 _ACEOF
7002 LIBS="-ldc1394_control $LIBS"
7004 else
7005 as_fn_error "\"libdc1394_control not installed\"" "$LINENO" 5
7009 ac_fn_c_check_header_mongrel "$LINENO" "libdc1394/dc1394_control.h" "ac_cv_header_libdc1394_dc1394_control_h" "$ac_includes_default"
7010 if test "x$ac_cv_header_libdc1394_dc1394_control_h" = x""yes; then :
7012 else
7013 as_fn_error "\"missing dc1394_control.h\"" "$LINENO" 5
7019 ac_fn_c_check_header_mongrel "$LINENO" "libraw1394/raw1394.h" "ac_cv_header_libraw1394_raw1394_h" "$ac_includes_default"
7020 if test "x$ac_cv_header_libraw1394_raw1394_h" = x""yes; then :
7022 else
7023 as_fn_error "\"missing raw1394.h\"" "$LINENO" 5
7030 if test "${ENABLE_TRIG}" == '-DENABLE_TRIG'; then
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpiv_trig_openrtfs in -lgpiv" >&5
7032 $as_echo_n "checking for gpiv_trig_openrtfs in -lgpiv... " >&6; }
7033 if test "${ac_cv_lib_gpiv_gpiv_trig_openrtfs+set}" = set; then :
7034 $as_echo_n "(cached) " >&6
7035 else
7036 ac_check_lib_save_LIBS=$LIBS
7037 LIBS="-lgpiv $LIBS"
7038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7039 /* end confdefs.h. */
7041 /* Override any GCC internal prototype to avoid an error.
7042 Use char because int might match the return type of a GCC
7043 builtin and then its argument prototype would still apply. */
7044 #ifdef __cplusplus
7045 extern "C"
7046 #endif
7047 char gpiv_trig_openrtfs ();
7049 main ()
7051 return gpiv_trig_openrtfs ();
7053 return 0;
7055 _ACEOF
7056 if ac_fn_c_try_link "$LINENO"; then :
7057 ac_cv_lib_gpiv_gpiv_trig_openrtfs=yes
7058 else
7059 ac_cv_lib_gpiv_gpiv_trig_openrtfs=no
7061 rm -f core conftest.err conftest.$ac_objext \
7062 conftest$ac_exeext conftest.$ac_ext
7063 LIBS=$ac_check_lib_save_LIBS
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpiv_gpiv_trig_openrtfs" >&5
7066 $as_echo "$ac_cv_lib_gpiv_gpiv_trig_openrtfs" >&6; }
7067 if test "x$ac_cv_lib_gpiv_gpiv_trig_openrtfs" = x""yes; then :
7068 cat >>confdefs.h <<_ACEOF
7069 #define HAVE_LIBGPIV 1
7070 _ACEOF
7072 LIBS="-lgpiv $LIBS"
7074 else
7075 as_fn_error "\"(Realtime) triggering is not working in libgpiv. \
7076 Enable (realtime) triggering in libgpiv or disable it here by leaving out --enable-trig during ./configure\"" "$LINENO" 5
7082 # Extract the first word of "gpiv_control", so it can be a program name with args.
7083 set dummy gpiv_control; ac_word=$2
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7085 $as_echo_n "checking for $ac_word... " >&6; }
7086 if test "${ac_cv_prog_CONTROL+set}" = set; then :
7087 $as_echo_n "(cached) " >&6
7088 else
7089 if test -n "$CONTROL"; then
7090 ac_cv_prog_CONTROL="$CONTROL" # Let the user override the test.
7091 else
7092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093 for as_dir in $PATH
7095 IFS=$as_save_IFS
7096 test -z "$as_dir" && as_dir=.
7097 for ac_exec_ext in '' $ac_executable_extensions; do
7098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7099 ac_cv_prog_CONTROL="true"
7100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7101 break 2
7103 done
7104 done
7105 IFS=$as_save_IFS
7107 test -z "$ac_cv_prog_CONTROL" && ac_cv_prog_CONTROL="false"
7110 CONTROL=$ac_cv_prog_CONTROL
7111 if test -n "$CONTROL"; then
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONTROL" >&5
7113 $as_echo "$CONTROL" >&6; }
7114 else
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7116 $as_echo "no" >&6; }
7120 if $CONTROL; then
7121 HAVE_CONTROL_TRUE=
7122 HAVE_CONTROL_FALSE='#'
7123 else
7124 HAVE_CONTROL_TRUE='#'
7125 HAVE_CONTROL_FALSE=
7131 # Check whether --enable-rta was given.
7132 if test "${enable_rta+set}" = set; then :
7133 enableval=$enable_rta; RTA_TOPDIR="$enableval"
7134 else
7135 RTA_TOPDIR="/usr/lib/realtime"
7141 # Check whether --enable-k was given.
7142 if test "${enable_k+set}" = set; then :
7143 enableval=$enable_k; K_TOPDIR="$enableval"
7144 else
7145 K_TOPDIR="/usr/src/kernel-headers-2.4.27-adeos"
7152 if $MPIPYTHON; then
7153 HAVE_MPIPYTHON_TRUE=
7154 HAVE_MPIPYTHON_FALSE='#'
7155 else
7156 HAVE_MPIPYTHON_TRUE='#'
7157 HAVE_MPIPYTHON_FALSE=
7160 if test "${ENABLE_MPI}" == '-DENABLE_MPI'; then
7161 BUILD_MPI_TRUE=
7162 BUILD_MPI_FALSE='#'
7163 else
7164 BUILD_MPI_TRUE='#'
7165 BUILD_MPI_FALSE=
7170 # Check whether --enable-omp was given.
7171 if test "${enable_omp+set}" = set; then :
7172 enableval=$enable_omp; ENABLE_OMP="ENABLE_OMP"
7177 if test "${ENABLE_OMP}" == 'ENABLE_OMP'; then
7178 CC="$CC -fopenmp"
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgomp" >&5
7181 $as_echo_n "checking for main in -lgomp... " >&6; }
7182 if test "${ac_cv_lib_gomp_main+set}" = set; then :
7183 $as_echo_n "(cached) " >&6
7184 else
7185 ac_check_lib_save_LIBS=$LIBS
7186 LIBS="-lgomp $LIBS"
7187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7188 /* end confdefs.h. */
7192 main ()
7194 return main ();
7196 return 0;
7198 _ACEOF
7199 if ac_fn_c_try_link "$LINENO"; then :
7200 ac_cv_lib_gomp_main=yes
7201 else
7202 ac_cv_lib_gomp_main=no
7204 rm -f core conftest.err conftest.$ac_objext \
7205 conftest$ac_exeext conftest.$ac_ext
7206 LIBS=$ac_check_lib_save_LIBS
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_main" >&5
7209 $as_echo "$ac_cv_lib_gomp_main" >&6; }
7210 if test "x$ac_cv_lib_gomp_main" = x""yes; then :
7211 cat >>confdefs.h <<_ACEOF
7212 #define HAVE_LIBGOMP 1
7213 _ACEOF
7215 LIBS="-lgomp $LIBS"
7217 else
7218 as_fn_error "\"libgomp not installed\"" "$LINENO" 5
7221 ac_fn_c_check_header_mongrel "$LINENO" "omp.h" "ac_cv_header_omp_h" "$ac_includes_default"
7222 if test "x$ac_cv_header_omp_h" = x""yes; then :
7224 else
7225 as_fn_error "\"missing omp.h\"" "$LINENO" 5
7233 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7234 # for constant arguments. Useless!
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7236 $as_echo_n "checking for working alloca.h... " >&6; }
7237 if test "${ac_cv_working_alloca_h+set}" = set; then :
7238 $as_echo_n "(cached) " >&6
7239 else
7240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7241 /* end confdefs.h. */
7242 #include <alloca.h>
7244 main ()
7246 char *p = (char *) alloca (2 * sizeof (int));
7247 if (p) return 0;
7249 return 0;
7251 _ACEOF
7252 if ac_fn_c_try_link "$LINENO"; then :
7253 ac_cv_working_alloca_h=yes
7254 else
7255 ac_cv_working_alloca_h=no
7257 rm -f core conftest.err conftest.$ac_objext \
7258 conftest$ac_exeext conftest.$ac_ext
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7261 $as_echo "$ac_cv_working_alloca_h" >&6; }
7262 if test $ac_cv_working_alloca_h = yes; then
7264 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7269 $as_echo_n "checking for alloca... " >&6; }
7270 if test "${ac_cv_func_alloca_works+set}" = set; then :
7271 $as_echo_n "(cached) " >&6
7272 else
7273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7274 /* end confdefs.h. */
7275 #ifdef __GNUC__
7276 # define alloca __builtin_alloca
7277 #else
7278 # ifdef _MSC_VER
7279 # include <malloc.h>
7280 # define alloca _alloca
7281 # else
7282 # ifdef HAVE_ALLOCA_H
7283 # include <alloca.h>
7284 # else
7285 # ifdef _AIX
7286 #pragma alloca
7287 # else
7288 # ifndef alloca /* predefined by HP cc +Olibcalls */
7289 char *alloca ();
7290 # endif
7291 # endif
7292 # endif
7293 # endif
7294 #endif
7297 main ()
7299 char *p = (char *) alloca (1);
7300 if (p) return 0;
7302 return 0;
7304 _ACEOF
7305 if ac_fn_c_try_link "$LINENO"; then :
7306 ac_cv_func_alloca_works=yes
7307 else
7308 ac_cv_func_alloca_works=no
7310 rm -f core conftest.err conftest.$ac_objext \
7311 conftest$ac_exeext conftest.$ac_ext
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7314 $as_echo "$ac_cv_func_alloca_works" >&6; }
7316 if test $ac_cv_func_alloca_works = yes; then
7318 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7320 else
7321 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7322 # that cause trouble. Some versions do not even contain alloca or
7323 # contain a buggy version. If you still want to use their alloca,
7324 # use ar to extract alloca.o from them instead of compiling alloca.c.
7326 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7328 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7332 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7333 if test "${ac_cv_os_cray+set}" = set; then :
7334 $as_echo_n "(cached) " >&6
7335 else
7336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7337 /* end confdefs.h. */
7338 #if defined CRAY && ! defined CRAY2
7339 webecray
7340 #else
7341 wenotbecray
7342 #endif
7344 _ACEOF
7345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7346 $EGREP "webecray" >/dev/null 2>&1; then :
7347 ac_cv_os_cray=yes
7348 else
7349 ac_cv_os_cray=no
7351 rm -f conftest*
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7355 $as_echo "$ac_cv_os_cray" >&6; }
7356 if test $ac_cv_os_cray = yes; then
7357 for ac_func in _getb67 GETB67 getb67; do
7358 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7359 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7360 eval as_val=\$$as_ac_var
7361 if test "x$as_val" = x""yes; then :
7363 cat >>confdefs.h <<_ACEOF
7364 #define CRAY_STACKSEG_END $ac_func
7365 _ACEOF
7367 break
7370 done
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7374 $as_echo_n "checking stack direction for C alloca... " >&6; }
7375 if test "${ac_cv_c_stack_direction+set}" = set; then :
7376 $as_echo_n "(cached) " >&6
7377 else
7378 if test "$cross_compiling" = yes; then :
7379 ac_cv_c_stack_direction=0
7380 else
7381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7382 /* end confdefs.h. */
7383 $ac_includes_default
7385 find_stack_direction ()
7387 static char *addr = 0;
7388 auto char dummy;
7389 if (addr == 0)
7391 addr = &dummy;
7392 return find_stack_direction ();
7394 else
7395 return (&dummy > addr) ? 1 : -1;
7399 main ()
7401 return find_stack_direction () < 0;
7403 _ACEOF
7404 if ac_fn_c_try_run "$LINENO"; then :
7405 ac_cv_c_stack_direction=1
7406 else
7407 ac_cv_c_stack_direction=-1
7409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7410 conftest.$ac_objext conftest.beam conftest.$ac_ext
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7415 $as_echo "$ac_cv_c_stack_direction" >&6; }
7416 cat >>confdefs.h <<_ACEOF
7417 #define STACK_DIRECTION $ac_cv_c_stack_direction
7418 _ACEOF
7423 ac_config_files="$ac_config_files Makefile src/Makefile src/dac/Makefile src/image/Makefile src/evaluate/Makefile src/validate/Makefile src/post/Makefile src/misc/Makefile man/Makefile"
7425 cat >confcache <<\_ACEOF
7426 # This file is a shell script that caches the results of configure
7427 # tests run on this system so they can be shared between configure
7428 # scripts and configure runs, see configure's option --config-cache.
7429 # It is not useful on other systems. If it contains results you don't
7430 # want to keep, you may remove or edit it.
7432 # config.status only pays attention to the cache file if you give it
7433 # the --recheck option to rerun configure.
7435 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7436 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7437 # following values.
7439 _ACEOF
7441 # The following way of writing the cache mishandles newlines in values,
7442 # but we know of no workaround that is simple, portable, and efficient.
7443 # So, we kill variables containing newlines.
7444 # Ultrix sh set writes to stderr and can't be redirected directly,
7445 # and sets the high bit in the cache file unless we assign to the vars.
7447 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7448 eval ac_val=\$$ac_var
7449 case $ac_val in #(
7450 *${as_nl}*)
7451 case $ac_var in #(
7452 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7453 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7454 esac
7455 case $ac_var in #(
7456 _ | IFS | as_nl) ;; #(
7457 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7458 *) { eval $ac_var=; unset $ac_var;} ;;
7459 esac ;;
7460 esac
7461 done
7463 (set) 2>&1 |
7464 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7465 *${as_nl}ac_space=\ *)
7466 # `set' does not quote correctly, so add quotes: double-quote
7467 # substitution turns \\\\ into \\, and sed turns \\ into \.
7468 sed -n \
7469 "s/'/'\\\\''/g;
7470 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7471 ;; #(
7473 # `set' quotes correctly as required by POSIX, so do not add quotes.
7474 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7476 esac |
7477 sort
7479 sed '
7480 /^ac_cv_env_/b end
7481 t clear
7482 :clear
7483 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7484 t end
7485 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7486 :end' >>confcache
7487 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7488 if test -w "$cache_file"; then
7489 test "x$cache_file" != "x/dev/null" &&
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7491 $as_echo "$as_me: updating cache $cache_file" >&6;}
7492 cat confcache >$cache_file
7493 else
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7495 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7498 rm -f confcache
7500 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7501 # Let make expand exec_prefix.
7502 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7504 DEFS=-DHAVE_CONFIG_H
7506 ac_libobjs=
7507 ac_ltlibobjs=
7508 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7509 # 1. Remove the extension, and $U if already installed.
7510 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7511 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7512 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7513 # will be set to the directory where LIBOBJS objects are built.
7514 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7515 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7516 done
7517 LIBOBJS=$ac_libobjs
7519 LTLIBOBJS=$ac_ltlibobjs
7522 if test -n "$EXEEXT"; then
7523 am__EXEEXT_TRUE=
7524 am__EXEEXT_FALSE='#'
7525 else
7526 am__EXEEXT_TRUE='#'
7527 am__EXEEXT_FALSE=
7530 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7531 as_fn_error "conditional \"AMDEP\" was never defined.
7532 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7534 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7535 as_fn_error "conditional \"am__fastdepCC\" was never defined.
7536 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7538 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7539 as_fn_error "conditional \"am__fastdepCC\" was never defined.
7540 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7542 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7543 as_fn_error "conditional \"am__fastdepCC\" was never defined.
7544 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7546 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7547 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
7548 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7550 if test -z "${HAVE_GNUPLOT_TRUE}" && test -z "${HAVE_GNUPLOT_FALSE}"; then
7551 as_fn_error "conditional \"HAVE_GNUPLOT\" was never defined.
7552 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7554 if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then
7555 as_fn_error "conditional \"HAVE_PERL\" was never defined.
7556 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7558 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
7559 as_fn_error "conditional \"HAVE_PYTHON\" was never defined.
7560 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7562 if test -z "${HAVE_CONVERT_TRUE}" && test -z "${HAVE_CONVERT_FALSE}"; then
7563 as_fn_error "conditional \"HAVE_CONVERT\" was never defined.
7564 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7566 if test -z "${HAVE_PLOTMTV_TRUE}" && test -z "${HAVE_PLOTMTV_FALSE}"; then
7567 as_fn_error "conditional \"HAVE_PLOTMTV\" was never defined.
7568 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7570 if test -z "${HAVE_CONTROL_TRUE}" && test -z "${HAVE_CONTROL_FALSE}"; then
7571 as_fn_error "conditional \"HAVE_CONTROL\" was never defined.
7572 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7574 if test -z "${HAVE_MPIPYTHON_TRUE}" && test -z "${HAVE_MPIPYTHON_FALSE}"; then
7575 as_fn_error "conditional \"HAVE_MPIPYTHON\" was never defined.
7576 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7578 if test -z "${BUILD_MPI_TRUE}" && test -z "${BUILD_MPI_FALSE}"; then
7579 as_fn_error "conditional \"BUILD_MPI\" was never defined.
7580 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7583 : ${CONFIG_STATUS=./config.status}
7584 ac_write_fail=0
7585 ac_clean_files_save=$ac_clean_files
7586 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7588 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7589 as_write_fail=0
7590 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7591 #! $SHELL
7592 # Generated by $as_me.
7593 # Run this file to recreate the current configuration.
7594 # Compiler output produced by configure, useful for debugging
7595 # configure, is in config.log if it exists.
7597 debug=false
7598 ac_cs_recheck=false
7599 ac_cs_silent=false
7601 SHELL=\${CONFIG_SHELL-$SHELL}
7602 export SHELL
7603 _ASEOF
7604 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7605 ## -------------------- ##
7606 ## M4sh Initialization. ##
7607 ## -------------------- ##
7609 # Be more Bourne compatible
7610 DUALCASE=1; export DUALCASE # for MKS sh
7611 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7612 emulate sh
7613 NULLCMD=:
7614 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7615 # is contrary to our usage. Disable this feature.
7616 alias -g '${1+"$@"}'='"$@"'
7617 setopt NO_GLOB_SUBST
7618 else
7619 case `(set -o) 2>/dev/null` in #(
7620 *posix*) :
7621 set -o posix ;; #(
7622 *) :
7624 esac
7628 as_nl='
7630 export as_nl
7631 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7632 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7633 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7634 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7635 # Prefer a ksh shell builtin over an external printf program on Solaris,
7636 # but without wasting forks for bash or zsh.
7637 if test -z "$BASH_VERSION$ZSH_VERSION" \
7638 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7639 as_echo='print -r --'
7640 as_echo_n='print -rn --'
7641 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7642 as_echo='printf %s\n'
7643 as_echo_n='printf %s'
7644 else
7645 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7646 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7647 as_echo_n='/usr/ucb/echo -n'
7648 else
7649 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7650 as_echo_n_body='eval
7651 arg=$1;
7652 case $arg in #(
7653 *"$as_nl"*)
7654 expr "X$arg" : "X\\(.*\\)$as_nl";
7655 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7656 esac;
7657 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7659 export as_echo_n_body
7660 as_echo_n='sh -c $as_echo_n_body as_echo'
7662 export as_echo_body
7663 as_echo='sh -c $as_echo_body as_echo'
7666 # The user is always right.
7667 if test "${PATH_SEPARATOR+set}" != set; then
7668 PATH_SEPARATOR=:
7669 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7670 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7671 PATH_SEPARATOR=';'
7676 # IFS
7677 # We need space, tab and new line, in precisely that order. Quoting is
7678 # there to prevent editors from complaining about space-tab.
7679 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7680 # splitting by setting IFS to empty value.)
7681 IFS=" "" $as_nl"
7683 # Find who we are. Look in the path if we contain no directory separator.
7684 case $0 in #((
7685 *[\\/]* ) as_myself=$0 ;;
7686 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7687 for as_dir in $PATH
7689 IFS=$as_save_IFS
7690 test -z "$as_dir" && as_dir=.
7691 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7692 done
7693 IFS=$as_save_IFS
7696 esac
7697 # We did not find ourselves, most probably we were run as `sh COMMAND'
7698 # in which case we are not to be found in the path.
7699 if test "x$as_myself" = x; then
7700 as_myself=$0
7702 if test ! -f "$as_myself"; then
7703 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7704 exit 1
7707 # Unset variables that we do not need and which cause bugs (e.g. in
7708 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7709 # suppresses any "Segmentation fault" message there. '((' could
7710 # trigger a bug in pdksh 5.2.14.
7711 for as_var in BASH_ENV ENV MAIL MAILPATH
7712 do eval test x\${$as_var+set} = xset \
7713 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7714 done
7715 PS1='$ '
7716 PS2='> '
7717 PS4='+ '
7719 # NLS nuisances.
7720 LC_ALL=C
7721 export LC_ALL
7722 LANGUAGE=C
7723 export LANGUAGE
7725 # CDPATH.
7726 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7729 # as_fn_error ERROR [LINENO LOG_FD]
7730 # ---------------------------------
7731 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7732 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7733 # script with status $?, using 1 if that was 0.
7734 as_fn_error ()
7736 as_status=$?; test $as_status -eq 0 && as_status=1
7737 if test "$3"; then
7738 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7739 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7741 $as_echo "$as_me: error: $1" >&2
7742 as_fn_exit $as_status
7743 } # as_fn_error
7746 # as_fn_set_status STATUS
7747 # -----------------------
7748 # Set $? to STATUS, without forking.
7749 as_fn_set_status ()
7751 return $1
7752 } # as_fn_set_status
7754 # as_fn_exit STATUS
7755 # -----------------
7756 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7757 as_fn_exit ()
7759 set +e
7760 as_fn_set_status $1
7761 exit $1
7762 } # as_fn_exit
7764 # as_fn_unset VAR
7765 # ---------------
7766 # Portably unset VAR.
7767 as_fn_unset ()
7769 { eval $1=; unset $1;}
7771 as_unset=as_fn_unset
7772 # as_fn_append VAR VALUE
7773 # ----------------------
7774 # Append the text in VALUE to the end of the definition contained in VAR. Take
7775 # advantage of any shell optimizations that allow amortized linear growth over
7776 # repeated appends, instead of the typical quadratic growth present in naive
7777 # implementations.
7778 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7779 eval 'as_fn_append ()
7781 eval $1+=\$2
7783 else
7784 as_fn_append ()
7786 eval $1=\$$1\$2
7788 fi # as_fn_append
7790 # as_fn_arith ARG...
7791 # ------------------
7792 # Perform arithmetic evaluation on the ARGs, and store the result in the
7793 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7794 # must be portable across $(()) and expr.
7795 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7796 eval 'as_fn_arith ()
7798 as_val=$(( $* ))
7800 else
7801 as_fn_arith ()
7803 as_val=`expr "$@" || test $? -eq 1`
7805 fi # as_fn_arith
7808 if expr a : '\(a\)' >/dev/null 2>&1 &&
7809 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7810 as_expr=expr
7811 else
7812 as_expr=false
7815 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7816 as_basename=basename
7817 else
7818 as_basename=false
7821 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7822 as_dirname=dirname
7823 else
7824 as_dirname=false
7827 as_me=`$as_basename -- "$0" ||
7828 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7829 X"$0" : 'X\(//\)$' \| \
7830 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7831 $as_echo X/"$0" |
7832 sed '/^.*\/\([^/][^/]*\)\/*$/{
7833 s//\1/
7836 /^X\/\(\/\/\)$/{
7837 s//\1/
7840 /^X\/\(\/\).*/{
7841 s//\1/
7844 s/.*/./; q'`
7846 # Avoid depending upon Character Ranges.
7847 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7848 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7849 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7850 as_cr_digits='0123456789'
7851 as_cr_alnum=$as_cr_Letters$as_cr_digits
7853 ECHO_C= ECHO_N= ECHO_T=
7854 case `echo -n x` in #(((((
7855 -n*)
7856 case `echo 'xy\c'` in
7857 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7858 xy) ECHO_C='\c';;
7859 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7860 ECHO_T=' ';;
7861 esac;;
7863 ECHO_N='-n';;
7864 esac
7866 rm -f conf$$ conf$$.exe conf$$.file
7867 if test -d conf$$.dir; then
7868 rm -f conf$$.dir/conf$$.file
7869 else
7870 rm -f conf$$.dir
7871 mkdir conf$$.dir 2>/dev/null
7873 if (echo >conf$$.file) 2>/dev/null; then
7874 if ln -s conf$$.file conf$$ 2>/dev/null; then
7875 as_ln_s='ln -s'
7876 # ... but there are two gotchas:
7877 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7878 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7879 # In both cases, we have to default to `cp -p'.
7880 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7881 as_ln_s='cp -p'
7882 elif ln conf$$.file conf$$ 2>/dev/null; then
7883 as_ln_s=ln
7884 else
7885 as_ln_s='cp -p'
7887 else
7888 as_ln_s='cp -p'
7890 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7891 rmdir conf$$.dir 2>/dev/null
7894 # as_fn_mkdir_p
7895 # -------------
7896 # Create "$as_dir" as a directory, including parents if necessary.
7897 as_fn_mkdir_p ()
7900 case $as_dir in #(
7901 -*) as_dir=./$as_dir;;
7902 esac
7903 test -d "$as_dir" || eval $as_mkdir_p || {
7904 as_dirs=
7905 while :; do
7906 case $as_dir in #(
7907 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7908 *) as_qdir=$as_dir;;
7909 esac
7910 as_dirs="'$as_qdir' $as_dirs"
7911 as_dir=`$as_dirname -- "$as_dir" ||
7912 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7913 X"$as_dir" : 'X\(//\)[^/]' \| \
7914 X"$as_dir" : 'X\(//\)$' \| \
7915 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7916 $as_echo X"$as_dir" |
7917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7918 s//\1/
7921 /^X\(\/\/\)[^/].*/{
7922 s//\1/
7925 /^X\(\/\/\)$/{
7926 s//\1/
7929 /^X\(\/\).*/{
7930 s//\1/
7933 s/.*/./; q'`
7934 test -d "$as_dir" && break
7935 done
7936 test -z "$as_dirs" || eval "mkdir $as_dirs"
7937 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
7940 } # as_fn_mkdir_p
7941 if mkdir -p . 2>/dev/null; then
7942 as_mkdir_p='mkdir -p "$as_dir"'
7943 else
7944 test -d ./-p && rmdir ./-p
7945 as_mkdir_p=false
7948 if test -x / >/dev/null 2>&1; then
7949 as_test_x='test -x'
7950 else
7951 if ls -dL / >/dev/null 2>&1; then
7952 as_ls_L_option=L
7953 else
7954 as_ls_L_option=
7956 as_test_x='
7957 eval sh -c '\''
7958 if test -d "$1"; then
7959 test -d "$1/.";
7960 else
7961 case $1 in #(
7962 -*)set "./$1";;
7963 esac;
7964 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7965 ???[sx]*):;;*)false;;esac;fi
7966 '\'' sh
7969 as_executable_p=$as_test_x
7971 # Sed expression to map a string onto a valid CPP name.
7972 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7974 # Sed expression to map a string onto a valid variable name.
7975 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7978 exec 6>&1
7979 ## ----------------------------------- ##
7980 ## Main body of $CONFIG_STATUS script. ##
7981 ## ----------------------------------- ##
7982 _ASEOF
7983 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7986 # Save the log message, to keep $0 and so on meaningful, and to
7987 # report actual input values of CONFIG_FILES etc. instead of their
7988 # values after options handling.
7989 ac_log="
7990 This file was extended by $as_me, which was
7991 generated by GNU Autoconf 2.65. Invocation command line was
7993 CONFIG_FILES = $CONFIG_FILES
7994 CONFIG_HEADERS = $CONFIG_HEADERS
7995 CONFIG_LINKS = $CONFIG_LINKS
7996 CONFIG_COMMANDS = $CONFIG_COMMANDS
7997 $ $0 $@
7999 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8002 _ACEOF
8004 case $ac_config_files in *"
8005 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8006 esac
8008 case $ac_config_headers in *"
8009 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8010 esac
8013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8014 # Files that config.status was made for.
8015 config_files="$ac_config_files"
8016 config_headers="$ac_config_headers"
8017 config_commands="$ac_config_commands"
8019 _ACEOF
8021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8022 ac_cs_usage="\
8023 \`$as_me' instantiates files and other configuration actions
8024 from templates according to the current configuration. Unless the files
8025 and actions are specified as TAGs, all are instantiated by default.
8027 Usage: $0 [OPTION]... [TAG]...
8029 -h, --help print this help, then exit
8030 -V, --version print version number and configuration settings, then exit
8031 --config print configuration, then exit
8032 -q, --quiet, --silent
8033 do not print progress messages
8034 -d, --debug don't remove temporary files
8035 --recheck update $as_me by reconfiguring in the same conditions
8036 --file=FILE[:TEMPLATE]
8037 instantiate the configuration file FILE
8038 --header=FILE[:TEMPLATE]
8039 instantiate the configuration header FILE
8041 Configuration files:
8042 $config_files
8044 Configuration headers:
8045 $config_headers
8047 Configuration commands:
8048 $config_commands
8050 Report bugs to the package provider."
8052 _ACEOF
8053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8054 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8055 ac_cs_version="\\
8056 config.status
8057 configured by $0, generated by GNU Autoconf 2.65,
8058 with options \\"\$ac_cs_config\\"
8060 Copyright (C) 2009 Free Software Foundation, Inc.
8061 This config.status script is free software; the Free Software Foundation
8062 gives unlimited permission to copy, distribute and modify it."
8064 ac_pwd='$ac_pwd'
8065 srcdir='$srcdir'
8066 INSTALL='$INSTALL'
8067 MKDIR_P='$MKDIR_P'
8068 AWK='$AWK'
8069 test -n "\$AWK" || AWK=awk
8070 _ACEOF
8072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8073 # The default lists apply if the user does not specify any file.
8074 ac_need_defaults=:
8075 while test $# != 0
8077 case $1 in
8078 --*=*)
8079 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8080 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8081 ac_shift=:
8084 ac_option=$1
8085 ac_optarg=$2
8086 ac_shift=shift
8088 esac
8090 case $ac_option in
8091 # Handling of the options.
8092 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8093 ac_cs_recheck=: ;;
8094 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8095 $as_echo "$ac_cs_version"; exit ;;
8096 --config | --confi | --conf | --con | --co | --c )
8097 $as_echo "$ac_cs_config"; exit ;;
8098 --debug | --debu | --deb | --de | --d | -d )
8099 debug=: ;;
8100 --file | --fil | --fi | --f )
8101 $ac_shift
8102 case $ac_optarg in
8103 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8104 esac
8105 as_fn_append CONFIG_FILES " '$ac_optarg'"
8106 ac_need_defaults=false;;
8107 --header | --heade | --head | --hea )
8108 $ac_shift
8109 case $ac_optarg in
8110 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8111 esac
8112 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8113 ac_need_defaults=false;;
8114 --he | --h)
8115 # Conflict between --help and --header
8116 as_fn_error "ambiguous option: \`$1'
8117 Try \`$0 --help' for more information.";;
8118 --help | --hel | -h )
8119 $as_echo "$ac_cs_usage"; exit ;;
8120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8121 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8122 ac_cs_silent=: ;;
8124 # This is an error.
8125 -*) as_fn_error "unrecognized option: \`$1'
8126 Try \`$0 --help' for more information." ;;
8128 *) as_fn_append ac_config_targets " $1"
8129 ac_need_defaults=false ;;
8131 esac
8132 shift
8133 done
8135 ac_configure_extra_args=
8137 if $ac_cs_silent; then
8138 exec 6>/dev/null
8139 ac_configure_extra_args="$ac_configure_extra_args --silent"
8142 _ACEOF
8143 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8144 if \$ac_cs_recheck; then
8145 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8146 shift
8147 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8148 CONFIG_SHELL='$SHELL'
8149 export CONFIG_SHELL
8150 exec "\$@"
8153 _ACEOF
8154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8155 exec 5>>config.log
8157 echo
8158 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8159 ## Running $as_me. ##
8160 _ASBOX
8161 $as_echo "$ac_log"
8162 } >&5
8164 _ACEOF
8165 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8167 # INIT-COMMANDS
8169 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8171 _ACEOF
8173 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8175 # Handling of arguments.
8176 for ac_config_target in $ac_config_targets
8178 case $ac_config_target in
8179 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8180 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8181 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8182 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8183 "src/dac/Makefile") CONFIG_FILES="$CONFIG_FILES src/dac/Makefile" ;;
8184 "src/image/Makefile") CONFIG_FILES="$CONFIG_FILES src/image/Makefile" ;;
8185 "src/evaluate/Makefile") CONFIG_FILES="$CONFIG_FILES src/evaluate/Makefile" ;;
8186 "src/validate/Makefile") CONFIG_FILES="$CONFIG_FILES src/validate/Makefile" ;;
8187 "src/post/Makefile") CONFIG_FILES="$CONFIG_FILES src/post/Makefile" ;;
8188 "src/misc/Makefile") CONFIG_FILES="$CONFIG_FILES src/misc/Makefile" ;;
8189 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
8191 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8192 esac
8193 done
8196 # If the user did not use the arguments to specify the items to instantiate,
8197 # then the envvar interface is used. Set only those that are not.
8198 # We use the long form for the default assignment because of an extremely
8199 # bizarre bug on SunOS 4.1.3.
8200 if $ac_need_defaults; then
8201 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8202 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8203 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8206 # Have a temporary directory for convenience. Make it in the build tree
8207 # simply because there is no reason against having it here, and in addition,
8208 # creating and moving files from /tmp can sometimes cause problems.
8209 # Hook for its removal unless debugging.
8210 # Note that there is a small window in which the directory will not be cleaned:
8211 # after its creation but before its name has been assigned to `$tmp'.
8212 $debug ||
8214 tmp=
8215 trap 'exit_status=$?
8216 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8218 trap 'as_fn_exit 1' 1 2 13 15
8220 # Create a (secure) tmp directory for tmp files.
8223 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8224 test -n "$tmp" && test -d "$tmp"
8225 } ||
8227 tmp=./conf$$-$RANDOM
8228 (umask 077 && mkdir "$tmp")
8229 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
8231 # Set up the scripts for CONFIG_FILES section.
8232 # No need to generate them if there are no CONFIG_FILES.
8233 # This happens for instance with `./config.status config.h'.
8234 if test -n "$CONFIG_FILES"; then
8237 ac_cr=`echo X | tr X '\015'`
8238 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8239 # But we know of no other shell where ac_cr would be empty at this
8240 # point, so we can use a bashism as a fallback.
8241 if test "x$ac_cr" = x; then
8242 eval ac_cr=\$\'\\r\'
8244 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8245 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8246 ac_cs_awk_cr='\r'
8247 else
8248 ac_cs_awk_cr=$ac_cr
8251 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8252 _ACEOF
8256 echo "cat >conf$$subs.awk <<_ACEOF" &&
8257 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8258 echo "_ACEOF"
8259 } >conf$$subs.sh ||
8260 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8261 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8262 ac_delim='%!_!# '
8263 for ac_last_try in false false false false false :; do
8264 . ./conf$$subs.sh ||
8265 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8267 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8268 if test $ac_delim_n = $ac_delim_num; then
8269 break
8270 elif $ac_last_try; then
8271 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8272 else
8273 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8275 done
8276 rm -f conf$$subs.sh
8278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8279 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8280 _ACEOF
8281 sed -n '
8283 s/^/S["/; s/!.*/"]=/
8286 s/^[^!]*!//
8287 :repl
8288 t repl
8289 s/'"$ac_delim"'$//
8290 t delim
8293 s/\(.\{148\}\)..*/\1/
8294 t more1
8295 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8298 b repl
8299 :more1
8300 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8303 s/.\{148\}//
8304 t nl
8305 :delim
8307 s/\(.\{148\}\)..*/\1/
8308 t more2
8309 s/["\\]/\\&/g; s/^/"/; s/$/"/
8312 :more2
8313 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8316 s/.\{148\}//
8317 t delim
8318 ' <conf$$subs.awk | sed '
8319 /^[^""]/{
8321 s/\n//
8323 ' >>$CONFIG_STATUS || ac_write_fail=1
8324 rm -f conf$$subs.awk
8325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8326 _ACAWK
8327 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8328 for (key in S) S_is_set[key] = 1
8329 FS = "\a"
8333 line = $ 0
8334 nfields = split(line, field, "@")
8335 substed = 0
8336 len = length(field[1])
8337 for (i = 2; i < nfields; i++) {
8338 key = field[i]
8339 keylen = length(key)
8340 if (S_is_set[key]) {
8341 value = S[key]
8342 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8343 len += length(value) + length(field[++i])
8344 substed = 1
8345 } else
8346 len += 1 + keylen
8349 print line
8352 _ACAWK
8353 _ACEOF
8354 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8355 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8356 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8357 else
8359 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8360 || as_fn_error "could not setup config files machinery" "$LINENO" 5
8361 _ACEOF
8363 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8364 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8365 # trailing colons and then remove the whole line if VPATH becomes empty
8366 # (actually we leave an empty line to preserve line numbers).
8367 if test "x$srcdir" = x.; then
8368 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8369 s/:*\$(srcdir):*/:/
8370 s/:*\${srcdir}:*/:/
8371 s/:*@srcdir@:*/:/
8372 s/^\([^=]*=[ ]*\):*/\1/
8373 s/:*$//
8374 s/^[^=]*=[ ]*$//
8378 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8379 fi # test -n "$CONFIG_FILES"
8381 # Set up the scripts for CONFIG_HEADERS section.
8382 # No need to generate them if there are no CONFIG_HEADERS.
8383 # This happens for instance with `./config.status Makefile'.
8384 if test -n "$CONFIG_HEADERS"; then
8385 cat >"$tmp/defines.awk" <<\_ACAWK ||
8386 BEGIN {
8387 _ACEOF
8389 # Transform confdefs.h into an awk script `defines.awk', embedded as
8390 # here-document in config.status, that substitutes the proper values into
8391 # config.h.in to produce config.h.
8393 # Create a delimiter string that does not exist in confdefs.h, to ease
8394 # handling of long lines.
8395 ac_delim='%!_!# '
8396 for ac_last_try in false false :; do
8397 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8398 if test -z "$ac_t"; then
8399 break
8400 elif $ac_last_try; then
8401 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8402 else
8403 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8405 done
8407 # For the awk script, D is an array of macro values keyed by name,
8408 # likewise P contains macro parameters if any. Preserve backslash
8409 # newline sequences.
8411 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8412 sed -n '
8413 s/.\{148\}/&'"$ac_delim"'/g
8414 t rset
8415 :rset
8416 s/^[ ]*#[ ]*define[ ][ ]*/ /
8417 t def
8419 :def
8420 s/\\$//
8421 t bsnl
8422 s/["\\]/\\&/g
8423 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8424 D["\1"]=" \3"/p
8425 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8427 :bsnl
8428 s/["\\]/\\&/g
8429 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8430 D["\1"]=" \3\\\\\\n"\\/p
8431 t cont
8432 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8433 t cont
8435 :cont
8437 s/.\{148\}/&'"$ac_delim"'/g
8438 t clear
8439 :clear
8440 s/\\$//
8441 t bsnlc
8442 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8444 :bsnlc
8445 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8446 b cont
8447 ' <confdefs.h | sed '
8448 s/'"$ac_delim"'/"\\\
8449 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8451 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8452 for (key in D) D_is_set[key] = 1
8453 FS = "\a"
8455 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8456 line = \$ 0
8457 split(line, arg, " ")
8458 if (arg[1] == "#") {
8459 defundef = arg[2]
8460 mac1 = arg[3]
8461 } else {
8462 defundef = substr(arg[1], 2)
8463 mac1 = arg[2]
8465 split(mac1, mac2, "(") #)
8466 macro = mac2[1]
8467 prefix = substr(line, 1, index(line, defundef) - 1)
8468 if (D_is_set[macro]) {
8469 # Preserve the white space surrounding the "#".
8470 print prefix "define", macro P[macro] D[macro]
8471 next
8472 } else {
8473 # Replace #undef with comments. This is necessary, for example,
8474 # in the case of _POSIX_SOURCE, which is predefined and required
8475 # on some systems where configure will not decide to define it.
8476 if (defundef == "undef") {
8477 print "/*", prefix defundef, macro, "*/"
8478 next
8482 { print }
8483 _ACAWK
8484 _ACEOF
8485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8486 as_fn_error "could not setup config headers machinery" "$LINENO" 5
8487 fi # test -n "$CONFIG_HEADERS"
8490 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8491 shift
8492 for ac_tag
8494 case $ac_tag in
8495 :[FHLC]) ac_mode=$ac_tag; continue;;
8496 esac
8497 case $ac_mode$ac_tag in
8498 :[FHL]*:*);;
8499 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
8500 :[FH]-) ac_tag=-:-;;
8501 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8502 esac
8503 ac_save_IFS=$IFS
8504 IFS=:
8505 set x $ac_tag
8506 IFS=$ac_save_IFS
8507 shift
8508 ac_file=$1
8509 shift
8511 case $ac_mode in
8512 :L) ac_source=$1;;
8513 :[FH])
8514 ac_file_inputs=
8515 for ac_f
8517 case $ac_f in
8518 -) ac_f="$tmp/stdin";;
8519 *) # Look for the file first in the build tree, then in the source tree
8520 # (if the path is not absolute). The absolute path cannot be DOS-style,
8521 # because $ac_f cannot contain `:'.
8522 test -f "$ac_f" ||
8523 case $ac_f in
8524 [\\/$]*) false;;
8525 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8526 esac ||
8527 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8528 esac
8529 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8530 as_fn_append ac_file_inputs " '$ac_f'"
8531 done
8533 # Let's still pretend it is `configure' which instantiates (i.e., don't
8534 # use $as_me), people would be surprised to read:
8535 # /* config.h. Generated by config.status. */
8536 configure_input='Generated from '`
8537 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8538 `' by configure.'
8539 if test x"$ac_file" != x-; then
8540 configure_input="$ac_file. $configure_input"
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8542 $as_echo "$as_me: creating $ac_file" >&6;}
8544 # Neutralize special characters interpreted by sed in replacement strings.
8545 case $configure_input in #(
8546 *\&* | *\|* | *\\* )
8547 ac_sed_conf_input=`$as_echo "$configure_input" |
8548 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8549 *) ac_sed_conf_input=$configure_input;;
8550 esac
8552 case $ac_tag in
8553 *:-:* | *:-) cat >"$tmp/stdin" \
8554 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8555 esac
8557 esac
8559 ac_dir=`$as_dirname -- "$ac_file" ||
8560 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8561 X"$ac_file" : 'X\(//\)[^/]' \| \
8562 X"$ac_file" : 'X\(//\)$' \| \
8563 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8564 $as_echo X"$ac_file" |
8565 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8566 s//\1/
8569 /^X\(\/\/\)[^/].*/{
8570 s//\1/
8573 /^X\(\/\/\)$/{
8574 s//\1/
8577 /^X\(\/\).*/{
8578 s//\1/
8581 s/.*/./; q'`
8582 as_dir="$ac_dir"; as_fn_mkdir_p
8583 ac_builddir=.
8585 case "$ac_dir" in
8586 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8588 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8589 # A ".." for each directory in $ac_dir_suffix.
8590 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8591 case $ac_top_builddir_sub in
8592 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8593 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8594 esac ;;
8595 esac
8596 ac_abs_top_builddir=$ac_pwd
8597 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8598 # for backward compatibility:
8599 ac_top_builddir=$ac_top_build_prefix
8601 case $srcdir in
8602 .) # We are building in place.
8603 ac_srcdir=.
8604 ac_top_srcdir=$ac_top_builddir_sub
8605 ac_abs_top_srcdir=$ac_pwd ;;
8606 [\\/]* | ?:[\\/]* ) # Absolute name.
8607 ac_srcdir=$srcdir$ac_dir_suffix;
8608 ac_top_srcdir=$srcdir
8609 ac_abs_top_srcdir=$srcdir ;;
8610 *) # Relative name.
8611 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8612 ac_top_srcdir=$ac_top_build_prefix$srcdir
8613 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8614 esac
8615 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8618 case $ac_mode in
8621 # CONFIG_FILE
8624 case $INSTALL in
8625 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8626 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8627 esac
8628 ac_MKDIR_P=$MKDIR_P
8629 case $MKDIR_P in
8630 [\\/$]* | ?:[\\/]* ) ;;
8631 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8632 esac
8633 _ACEOF
8635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8636 # If the template does not know about datarootdir, expand it.
8637 # FIXME: This hack should be removed a few years after 2.60.
8638 ac_datarootdir_hack=; ac_datarootdir_seen=
8639 ac_sed_dataroot='
8640 /datarootdir/ {
8644 /@datadir@/p
8645 /@docdir@/p
8646 /@infodir@/p
8647 /@localedir@/p
8648 /@mandir@/p'
8649 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8650 *datarootdir*) ac_datarootdir_seen=yes;;
8651 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8653 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8654 _ACEOF
8655 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8656 ac_datarootdir_hack='
8657 s&@datadir@&$datadir&g
8658 s&@docdir@&$docdir&g
8659 s&@infodir@&$infodir&g
8660 s&@localedir@&$localedir&g
8661 s&@mandir@&$mandir&g
8662 s&\\\${datarootdir}&$datarootdir&g' ;;
8663 esac
8664 _ACEOF
8666 # Neutralize VPATH when `$srcdir' = `.'.
8667 # Shell code in configure.ac might set extrasub.
8668 # FIXME: do we really want to maintain this feature?
8669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8670 ac_sed_extra="$ac_vpsub
8671 $extrasub
8672 _ACEOF
8673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8675 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8676 s|@configure_input@|$ac_sed_conf_input|;t t
8677 s&@top_builddir@&$ac_top_builddir_sub&;t t
8678 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8679 s&@srcdir@&$ac_srcdir&;t t
8680 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8681 s&@top_srcdir@&$ac_top_srcdir&;t t
8682 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8683 s&@builddir@&$ac_builddir&;t t
8684 s&@abs_builddir@&$ac_abs_builddir&;t t
8685 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8686 s&@INSTALL@&$ac_INSTALL&;t t
8687 s&@MKDIR_P@&$ac_MKDIR_P&;t t
8688 $ac_datarootdir_hack
8690 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8691 || as_fn_error "could not create $ac_file" "$LINENO" 5
8693 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8694 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8695 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8697 which seems to be undefined. Please make sure it is defined." >&5
8698 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8699 which seems to be undefined. Please make sure it is defined." >&2;}
8701 rm -f "$tmp/stdin"
8702 case $ac_file in
8703 -) cat "$tmp/out" && rm -f "$tmp/out";;
8704 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8705 esac \
8706 || as_fn_error "could not create $ac_file" "$LINENO" 5
8710 # CONFIG_HEADER
8712 if test x"$ac_file" != x-; then
8714 $as_echo "/* $configure_input */" \
8715 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8716 } >"$tmp/config.h" \
8717 || as_fn_error "could not create $ac_file" "$LINENO" 5
8718 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8720 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8721 else
8722 rm -f "$ac_file"
8723 mv "$tmp/config.h" "$ac_file" \
8724 || as_fn_error "could not create $ac_file" "$LINENO" 5
8726 else
8727 $as_echo "/* $configure_input */" \
8728 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8729 || as_fn_error "could not create -" "$LINENO" 5
8731 # Compute "$ac_file"'s index in $config_headers.
8732 _am_arg="$ac_file"
8733 _am_stamp_count=1
8734 for _am_header in $config_headers :; do
8735 case $_am_header in
8736 $_am_arg | $_am_arg:* )
8737 break ;;
8739 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8740 esac
8741 done
8742 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8743 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8744 X"$_am_arg" : 'X\(//\)[^/]' \| \
8745 X"$_am_arg" : 'X\(//\)$' \| \
8746 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8747 $as_echo X"$_am_arg" |
8748 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8749 s//\1/
8752 /^X\(\/\/\)[^/].*/{
8753 s//\1/
8756 /^X\(\/\/\)$/{
8757 s//\1/
8760 /^X\(\/\).*/{
8761 s//\1/
8764 s/.*/./; q'`/stamp-h$_am_stamp_count
8767 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8768 $as_echo "$as_me: executing $ac_file commands" >&6;}
8770 esac
8773 case $ac_file$ac_mode in
8774 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8775 # Autoconf 2.62 quotes --file arguments for eval, but not when files
8776 # are listed without --file. Let's play safe and only enable the eval
8777 # if we detect the quoting.
8778 case $CONFIG_FILES in
8779 *\'*) eval set x "$CONFIG_FILES" ;;
8780 *) set x $CONFIG_FILES ;;
8781 esac
8782 shift
8783 for mf
8785 # Strip MF so we end up with the name of the file.
8786 mf=`echo "$mf" | sed -e 's/:.*$//'`
8787 # Check whether this is an Automake generated Makefile or not.
8788 # We used to match only the files named `Makefile.in', but
8789 # some people rename them; so instead we look at the file content.
8790 # Grep'ing the first line is not enough: some people post-process
8791 # each Makefile.in and add a new line on top of each file to say so.
8792 # Grep'ing the whole file is not good either: AIX grep has a line
8793 # limit of 2048, but all sed's we know have understand at least 4000.
8794 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8795 dirpart=`$as_dirname -- "$mf" ||
8796 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8797 X"$mf" : 'X\(//\)[^/]' \| \
8798 X"$mf" : 'X\(//\)$' \| \
8799 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8800 $as_echo X"$mf" |
8801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8802 s//\1/
8805 /^X\(\/\/\)[^/].*/{
8806 s//\1/
8809 /^X\(\/\/\)$/{
8810 s//\1/
8813 /^X\(\/\).*/{
8814 s//\1/
8817 s/.*/./; q'`
8818 else
8819 continue
8821 # Extract the definition of DEPDIR, am__include, and am__quote
8822 # from the Makefile without running `make'.
8823 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8824 test -z "$DEPDIR" && continue
8825 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8826 test -z "am__include" && continue
8827 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8828 # When using ansi2knr, U may be empty or an underscore; expand it
8829 U=`sed -n 's/^U = //p' < "$mf"`
8830 # Find all dependency output files, they are included files with
8831 # $(DEPDIR) in their names. We invoke sed twice because it is the
8832 # simplest approach to changing $(DEPDIR) to its actual value in the
8833 # expansion.
8834 for file in `sed -n "
8835 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8836 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8837 # Make sure the directory exists.
8838 test -f "$dirpart/$file" && continue
8839 fdir=`$as_dirname -- "$file" ||
8840 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8841 X"$file" : 'X\(//\)[^/]' \| \
8842 X"$file" : 'X\(//\)$' \| \
8843 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8844 $as_echo X"$file" |
8845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8846 s//\1/
8849 /^X\(\/\/\)[^/].*/{
8850 s//\1/
8853 /^X\(\/\/\)$/{
8854 s//\1/
8857 /^X\(\/\).*/{
8858 s//\1/
8861 s/.*/./; q'`
8862 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8863 # echo "creating $dirpart/$file"
8864 echo '# dummy' > "$dirpart/$file"
8865 done
8866 done
8870 esac
8871 done # for ac_tag
8874 as_fn_exit 0
8875 _ACEOF
8876 ac_clean_files=$ac_clean_files_save
8878 test $ac_write_fail = 0 ||
8879 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8882 # configure is writing to config.log, and then calls config.status.
8883 # config.status does its own redirection, appending to config.log.
8884 # Unfortunately, on DOS this fails, as config.log is still kept open
8885 # by configure, so config.status won't be able to write to it; its
8886 # output is simply discarded. So we exec the FD to /dev/null,
8887 # effectively closing config.log, so it can be properly (re)opened and
8888 # appended to by config.status. When coming back to configure, we
8889 # need to make the FD available again.
8890 if test "$no_create" != yes; then
8891 ac_cs_success=:
8892 ac_config_status_args=
8893 test "$silent" = yes &&
8894 ac_config_status_args="$ac_config_status_args --quiet"
8895 exec 5>/dev/null
8896 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8897 exec 5>>config.log
8898 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8899 # would make configure fail if this is the last instruction.
8900 $ac_cs_success || as_fn_exit $?
8902 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8904 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8908 echo "===================================================================="
8909 if test x$PERL = xfalse ; then
8910 echo "Perl has not been found on this system."
8911 echo "Though, this is not provided for the building process"
8912 echo "Only some independant scripts will not work"
8913 echo ""
8916 if test x$CONVERT = xfalse ; then
8917 echo "Convert has not been found on this system."
8918 echo "Though, this is not provided for the building process"
8919 echo "Only some independant scripts will not work"
8920 echo ""
8923 if test x$PLOTMTV = xfalse ; then
8924 echo "Plotmtv has not been found on this system."
8925 echo "Though, this is not provided for the building process"
8926 echo "Only some independant scripts will not work"
8927 echo ""
8931 echo "Configuration succesfully finished"
8932 if test $ENABLE_CAM; then
8933 echo "with (IEEE-1394) camera enabled"
8936 if test $ENABLE_TRIG; then
8937 echo "with (realtime) triggering enabled."
8938 if test x$CONTROL = xfalse ; then
8939 echo "Gpiv_control has not been found on this system, and probably gpivtrig-rtl isn't"
8940 echo "resident as well. This script eases to install and uninstall the gpivtrig-rtl"
8941 echo "and RTAI kernel modules that are needed for the triggering of camera and lasers."
8942 echo ""
8946 if test $ENABLE_MPI; then
8947 echo "Using Message Passing Interface (MPI)"
8948 echo "for processing on distributed memory systems"
8951 if test $ENABLE_OMP; then
8952 echo "Using Open Multi-Processing (OMP)"
8953 echo "for processing on shared memory systems"
8956 echo "Type 'make' and 'make install' to build and install the gpiv-tools."
8957 echo "===================================================================="