Debian Codegraph @

MW/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell [email protected] about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509 *)
510 ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="src/MWDriver.h"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
621
622 ac_subst_vars='LTLIBOBJS
623 LIBOBJS
624 MW_LIBDIR_DEBUG
625 MW_LIBDIR
626 ENABLE_MWINDEPENDENT
627 MEASURE_DEFN
628 MISC_LIB
629 MISC_DEFN
630 USE_POLL
631 SOCKET_LIB
632 MPICXX
633 JUNK5
634 PVM_ARCH
635 PVM_ROOT
636 JUNK3
637 USE_CHIRP
638 USE_MWFILE
639 CONDOR_DIR
640 JUNK1
641 EGREP
642 GREP
643 CPP
644 ac_ct_CC
645 CFLAGS
646 CC
647 AUTOCONF
648 RANLIB
649 SET_MAKE
650 INSTALL_DATA
651 INSTALL_SCRIPT
652 INSTALL_PROGRAM
653 OBJEXT
654 EXEEXT
655 ac_ct_CXX
656 CPPFLAGS
657 LDFLAGS
658 CXXFLAGS
659 CXX
660 VERSION
661 PACKAGE
662 target_alias
663 host_alias
664 build_alias
665 LIBS
666 ECHO_T
667 ECHO_N
668 ECHO_C
669 DEFS
670 mandir
671 localedir
672 libdir
673 psdir
674 pdfdir
675 dvidir
676 htmldir
677 infodir
678 docdir
679 oldincludedir
680 includedir
681 localstatedir
682 sharedstatedir
683 sysconfdir
684 datadir
685 datarootdir
686 libexecdir
687 sbindir
688 bindir
689 program_transform_name
690 prefix
691 exec_prefix
692 PACKAGE_URL
693 PACKAGE_BUGREPORT
694 PACKAGE_STRING
695 PACKAGE_VERSION
696 PACKAGE_TARNAME
697 PACKAGE_NAME
698 PATH_SEPARATOR
699 SHELL'
700 ac_subst_files=''
701 ac_user_opts='
702 enable_option_checking
703 with_condor
704 with_mwfile
705 with_chirp
706 with_pvm_arch
707 with_pvm
708 with_mpi
709 with_measure
710 '
711 ac_precious_vars='build_alias
712 host_alias
713 target_alias
714 CXX
715 CXXFLAGS
716 LDFLAGS
717 LIBS
718 CPPFLAGS
719 CCC
720 CC
721 CFLAGS
722 CPP'
723
724
725 # Initialize some variables set by options.
726 ac_init_help=
727 ac_init_version=false
728 ac_unrecognized_opts=
729 ac_unrecognized_sep=
730 # The variables have the same names as the options, with
731 # dashes changed to underlines.
732 cache_file=/dev/null
733 exec_prefix=NONE
734 no_create=
735 no_recursion=
736 prefix=NONE
737 program_prefix=NONE
738 program_suffix=NONE
739 program_transform_name=s,x,x,
740 silent=
741 site=
742 srcdir=
743 verbose=
744 x_includes=NONE
745 x_libraries=NONE
746
747 # Installation directory options.
748 # These are left unexpanded so users can "make install exec_prefix=/foo"
749 # and all the variables that are supposed to be based on exec_prefix
750 # by default will actually change.
751 # Use braces instead of parens because sh, perl, etc. also accept them.
752 # (The list follows the same order as the GNU Coding Standards.)
753 bindir='${exec_prefix}/bin'
754 sbindir='${exec_prefix}/sbin'
755 libexecdir='${exec_prefix}/libexec'
756 datarootdir='${prefix}/share'
757 datadir='${datarootdir}'
758 sysconfdir='${prefix}/etc'
759 sharedstatedir='${prefix}/com'
760 localstatedir='${prefix}/var'
761 includedir='${prefix}/include'
762 oldincludedir='/usr/include'
763 docdir='${datarootdir}/doc/${PACKAGE}'
764 infodir='${datarootdir}/info'
765 htmldir='${docdir}'
766 dvidir='${docdir}'
767 pdfdir='${docdir}'
768 psdir='${docdir}'
769 libdir='${exec_prefix}/lib'
770 localedir='${datarootdir}/locale'
771 mandir='${datarootdir}/man'
772
773 ac_prev=
774 ac_dashdash=
775 for ac_option
776 do
777 # If the previous option needs an argument, assign it.
778 if test -n "$ac_prev"; then
779 eval $ac_prev=\$ac_option
780 ac_prev=
781 continue
782 fi
783
784 case $ac_option in
785 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
786 *=) ac_optarg= ;;
787 *) ac_optarg=yes ;;
788 esac
789
790 # Accept the important Cygnus configure options, so we can diagnose typos.
791
792 case $ac_dashdash$ac_option in
793 --)
794 ac_dashdash=yes ;;
795
796 -bindir | --bindir | --bindi | --bind | --bin | --bi)
797 ac_prev=bindir ;;
798 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
799 bindir=$ac_optarg ;;
800
801 -build | --build | --buil | --bui | --bu)
802 ac_prev=build_alias ;;
803 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
804 build_alias=$ac_optarg ;;
805
806 -cache-file | --cache-file | --cache-fil | --cache-fi \
807 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
808 ac_prev=cache_file ;;
809 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
810 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
811 cache_file=$ac_optarg ;;
812
813 --config-cache | -C)
814 cache_file=config.cache ;;
815
816 -datadir | --datadir | --datadi | --datad)
817 ac_prev=datadir ;;
818 -datadir=* | --datadir=* | --datadi=* | --datad=*)
819 datadir=$ac_optarg ;;
820
821 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
822 | --dataroo | --dataro | --datar)
823 ac_prev=datarootdir ;;
824 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
825 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
826 datarootdir=$ac_optarg ;;
827
828 -disable-* | --disable-*)
829 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
830 # Reject names that are not valid shell variable names.
831 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
832 as_fn_error $? "invalid feature name: $ac_useropt"
833 ac_useropt_orig=$ac_useropt
834 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
835 case $ac_user_opts in
836 *"
837 "enable_$ac_useropt"
838 "*) ;;
839 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
840 ac_unrecognized_sep=', ';;
841 esac
842 eval enable_$ac_useropt=no ;;
843
844 -docdir | --docdir | --docdi | --doc | --do)
845 ac_prev=docdir ;;
846 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
847 docdir=$ac_optarg ;;
848
849 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
850 ac_prev=dvidir ;;
851 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
852 dvidir=$ac_optarg ;;
853
854 -enable-* | --enable-*)
855 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
856 # Reject names that are not valid shell variable names.
857 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
858 as_fn_error $? "invalid feature name: $ac_useropt"
859 ac_useropt_orig=$ac_useropt
860 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
861 case $ac_user_opts in
862 *"
863 "enable_$ac_useropt"
864 "*) ;;
865 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
866 ac_unrecognized_sep=', ';;
867 esac
868 eval enable_$ac_useropt=\$ac_optarg ;;
869
870 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
871 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
872 | --exec | --exe | --ex)
873 ac_prev=exec_prefix ;;
874 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
875 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
876 | --exec=* | --exe=* | --ex=*)
877 exec_prefix=$ac_optarg ;;
878
879 -gas | --gas | --ga | --g)
880 # Obsolete; use --with-gas.
881 with_gas=yes ;;
882
883 -help | --help | --hel | --he | -h)
884 ac_init_help=long ;;
885 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
886 ac_init_help=recursive ;;
887 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
888 ac_init_help=short ;;
889
890 -host | --host | --hos | --ho)
891 ac_prev=host_alias ;;
892 -host=* | --host=* | --hos=* | --ho=*)
893 host_alias=$ac_optarg ;;
894
895 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
896 ac_prev=htmldir ;;
897 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
898 | --ht=*)
899 htmldir=$ac_optarg ;;
900
901 -includedir | --includedir | --includedi | --included | --include \
902 | --includ | --inclu | --incl | --inc)
903 ac_prev=includedir ;;
904 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
905 | --includ=* | --inclu=* | --incl=* | --inc=*)
906 includedir=$ac_optarg ;;
907
908 -infodir | --infodir | --infodi | --infod | --info | --inf)
909 ac_prev=infodir ;;
910 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
911 infodir=$ac_optarg ;;
912
913 -libdir | --libdir | --libdi | --libd)
914 ac_prev=libdir ;;
915 -libdir=* | --libdir=* | --libdi=* | --libd=*)
916 libdir=$ac_optarg ;;
917
918 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
919 | --libexe | --libex | --libe)
920 ac_prev=libexecdir ;;
921 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
922 | --libexe=* | --libex=* | --libe=*)
923 libexecdir=$ac_optarg ;;
924
925 -localedir | --localedir | --localedi | --localed | --locale)
926 ac_prev=localedir ;;
927 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
928 localedir=$ac_optarg ;;
929
930 -localstatedir | --localstatedir | --localstatedi | --localstated \
931 | --localstate | --localstat | --localsta | --localst | --locals)
932 ac_prev=localstatedir ;;
933 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
934 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
935 localstatedir=$ac_optarg ;;
936
937 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
938 ac_prev=mandir ;;
939 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
940 mandir=$ac_optarg ;;
941
942 -nfp | --nfp | --nf)
943 # Obsolete; use --without-fp.
944 with_fp=no ;;
945
946 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
947 | --no-cr | --no-c | -n)
948 no_create=yes ;;
949
950 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
951 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
952 no_recursion=yes ;;
953
954 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
955 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
956 | --oldin | --oldi | --old | --ol | --o)
957 ac_prev=oldincludedir ;;
958 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
959 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
960 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
961 oldincludedir=$ac_optarg ;;
962
963 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
964 ac_prev=prefix ;;
965 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
966 prefix=$ac_optarg ;;
967
968 -program-prefix | --program-prefix | --program-prefi | --program-pref \
969 | --program-pre | --program-pr | --program-p)
970 ac_prev=program_prefix ;;
971 -program-prefix=* | --program-prefix=* | --program-prefi=* \
972 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
973 program_prefix=$ac_optarg ;;
974
975 -program-suffix | --program-suffix | --program-suffi | --program-suff \
976 | --program-suf | --program-su | --program-s)
977 ac_prev=program_suffix ;;
978 -program-suffix=* | --program-suffix=* | --program-suffi=* \
979 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
980 program_suffix=$ac_optarg ;;
981
982 -program-transform-name | --program-transform-name \
983 | --program-transform-nam | --program-transform-na \
984 | --program-transform-n | --program-transform- \
985 | --program-transform | --program-transfor \
986 | --program-transfo | --program-transf \
987 | --program-trans | --program-tran \
988 | --progr-tra | --program-tr | --program-t)
989 ac_prev=program_transform_name ;;
990 -program-transform-name=* | --program-transform-name=* \
991 | --program-transform-nam=* | --program-transform-na=* \
992 | --program-transform-n=* | --program-transform-=* \
993 | --program-transform=* | --program-transfor=* \
994 | --program-transfo=* | --program-transf=* \
995 | --program-trans=* | --program-tran=* \
996 | --progr-tra=* | --program-tr=* | --program-t=*)
997 program_transform_name=$ac_optarg ;;
998
999 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1000 ac_prev=pdfdir ;;
1001 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1002 pdfdir=$ac_optarg ;;
1003
1004 -psdir | --psdir | --psdi | --psd | --ps)
1005 ac_prev=psdir ;;
1006 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1007 psdir=$ac_optarg ;;
1008
1009 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1010 | -silent | --silent | --silen | --sile | --sil)
1011 silent=yes ;;
1012
1013 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1014 ac_prev=sbindir ;;
1015 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1016 | --sbi=* | --sb=*)
1017 sbindir=$ac_optarg ;;
1018
1019 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1020 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1021 | --sharedst | --shareds | --shared | --share | --shar \
1022 | --sha | --sh)
1023 ac_prev=sharedstatedir ;;
1024 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1025 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1026 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1027 | --sha=* | --sh=*)
1028 sharedstatedir=$ac_optarg ;;
1029
1030 -site | --site | --sit)
1031 ac_prev=site ;;
1032 -site=* | --site=* | --sit=*)
1033 site=$ac_optarg ;;
1034
1035 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1036 ac_prev=srcdir ;;
1037 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1038 srcdir=$ac_optarg ;;
1039
1040 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1041 | --syscon | --sysco | --sysc | --sys | --sy)
1042 ac_prev=sysconfdir ;;
1043 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1044 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1045 sysconfdir=$ac_optarg ;;
1046
1047 -target | --target | --targe | --targ | --tar | --ta | --t)
1048 ac_prev=target_alias ;;
1049 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1050 target_alias=$ac_optarg ;;
1051
1052 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1053 verbose=yes ;;
1054
1055 -version | --version | --versio | --versi | --vers | -V)
1056 ac_init_version=: ;;
1057
1058 -with-* | --with-*)
1059 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1060 # Reject names that are not valid shell variable names.
1061 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1062 as_fn_error $? "invalid package name: $ac_useropt"
1063 ac_useropt_orig=$ac_useropt
1064 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1065 case $ac_user_opts in
1066 *"
1067 "with_$ac_useropt"
1068 "*) ;;
1069 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1070 ac_unrecognized_sep=', ';;
1071 esac
1072 eval with_$ac_useropt=\$ac_optarg ;;
1073
1074 -without-* | --without-*)
1075 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1078 as_fn_error $? "invalid package name: $ac_useropt"
1079 ac_useropt_orig=$ac_useropt
1080 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081 case $ac_user_opts in
1082 *"
1083 "with_$ac_useropt"
1084 "*) ;;
1085 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1086 ac_unrecognized_sep=', ';;
1087 esac
1088 eval with_$ac_useropt=no ;;
1089
1090 --x)
1091 # Obsolete; use --with-x.
1092 with_x=yes ;;
1093
1094 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1095 | --x-incl | --x-inc | --x-in | --x-i)
1096 ac_prev=x_includes ;;
1097 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1098 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1099 x_includes=$ac_optarg ;;
1100
1101 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1102 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1103 ac_prev=x_libraries ;;
1104 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1105 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1106 x_libraries=$ac_optarg ;;
1107
1108 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1109 Try \`$0 --help' for more information"
1110 ;;
1111
1112 *=*)
1113 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1114 # Reject names that are not valid shell variable names.
1115 case $ac_envvar in #(
1116 '' | [0-9]* | *[!_$as_cr_alnum]* )
1117 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1118 esac
1119 eval $ac_envvar=\$ac_optarg
1120 export $ac_envvar ;;
1121
1122 *)
1123 # FIXME: should be removed in autoconf 3.0.
1124 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1125 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1126 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1127 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1128 ;;
1129
1130 esac
1131 done
1132
1133 if test -n "$ac_prev"; then
1134 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1135 as_fn_error $? "missing argument to $ac_option"
1136 fi
1137
1138 if test -n "$ac_unrecognized_opts"; then
1139 case $enable_option_checking in
1140 no) ;;
1141 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1142 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1143 esac
1144 fi
1145
1146 # Check all directory arguments for consistency.
1147 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1148 datadir sysconfdir sharedstatedir localstatedir includedir \
1149 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1150 libdir localedir mandir
1151 do
1152 eval ac_val=\$$ac_var
1153 # Remove trailing slashes.
1154 case $ac_val in
1155 */ )
1156 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1157 eval $ac_var=\$ac_val;;
1158 esac
1159 # Be sure to have absolute directory names.
1160 case $ac_val in
1161 [\\/$]* | ?:[\\/]* ) continue;;
1162 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1163 esac
1164 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1165 done
1166
1167 # There might be people who depend on the old broken behavior: `$host'
1168 # used to hold the argument of --host etc.
1169 # FIXME: To remove some day.
1170 build=$build_alias
1171 host=$host_alias
1172 target=$target_alias
1173
1174 # FIXME: To remove some day.
1175 if test "x$host_alias" != x; then
1176 if test "x$build_alias" = x; then
1177 cross_compiling=maybe
1178 elif test "x$build_alias" != "x$host_alias"; then
1179 cross_compiling=yes
1180 fi
1181 fi
1182
1183 ac_tool_prefix=
1184 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1185
1186 test "$silent" = yes && exec 6>/dev/null
1187
1188
1189 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1190 ac_ls_di=`ls -di .` &&
1191 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1192 as_fn_error $? "working directory cannot be determined"
1193 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1194 as_fn_error $? "pwd does not report name of working directory"
1195
1196
1197 # Find the source files, if location was not specified.
1198 if test -z "$srcdir"; then
1199 ac_srcdir_defaulted=yes
1200 # Try the directory containing this script, then the parent directory.
1201 ac_confdir=`$as_dirname -- "$as_myself" ||
1202 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1203 X"$as_myself" : 'X\(//\)[^/]' \| \
1204 X"$as_myself" : 'X\(//\)$' \| \
1205 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1206 $as_echo X"$as_myself" |
1207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1208 s//\1/
1209 q
1210 }
1211 /^X\(\/\/\)[^/].*/{
1212 s//\1/
1213 q
1214 }
1215 /^X\(\/\/\)$/{
1216 s//\1/
1217 q
1218 }
1219 /^X\(\/\).*/{
1220 s//\1/
1221 q
1222 }
1223 s/.*/./; q'`
1224 srcdir=$ac_confdir
1225 if test ! -r "$srcdir/$ac_unique_file"; then
1226 srcdir=..
1227 fi
1228 else
1229 ac_srcdir_defaulted=no
1230 fi
1231 if test ! -r "$srcdir/$ac_unique_file"; then
1232 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1233 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1234 fi
1235 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1236 ac_abs_confdir=`(
1237 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1238 pwd)`
1239 # When building in place, set srcdir=.
1240 if test "$ac_abs_confdir" = "$ac_pwd"; then
1241 srcdir=.
1242 fi
1243 # Remove unnecessary trailing slashes from srcdir.
1244 # Double slashes in file names in object file debugging info
1245 # mess up M-x gdb in Emacs.
1246 case $srcdir in
1247 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1248 esac
1249 for ac_var in $ac_precious_vars; do
1250 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1251 eval ac_env_${ac_var}_value=\$${ac_var}
1252 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1253 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1254 done
1255
1256 #
1257 # Report the --help message.
1258 #
1259 if test "$ac_init_help" = "long"; then
1260 # Omit some internal or obsolete options to make the list less imposing.
1261 # This message is too long to be a string in the A/UX 3.1 sh.
1262 cat <<_ACEOF
1263 \`configure' configures this package to adapt to many kinds of systems.
1264
1265 Usage: $0 [OPTION]... [VAR=VALUE]...
1266
1267 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1268 VAR=VALUE. See below for descriptions of some of the useful variables.
1269
1270 Defaults for the options are specified in brackets.
1271
1272 Configuration:
1273 -h, --help display this help and exit
1274 --help=short display options specific to this package
1275 --help=recursive display the short help of all the included packages
1276 -V, --version display version information and exit
1277 -q, --quiet, --silent do not print \`checking ...' messages
1278 --cache-file=FILE cache test results in FILE [disabled]
1279 -C, --config-cache alias for \`--cache-file=config.cache'
1280 -n, --no-create do not create output files
1281 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1282
1283 Installation directories:
1284 --prefix=PREFIX install architecture-independent files in PREFIX
1285 [$ac_default_prefix]
1286 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1287 [PREFIX]
1288
1289 By default, \`make install' will install all the files in
1290 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1291 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1292 for instance \`--prefix=\$HOME'.
1293
1294 For better control, use the options below.
1295
1296 Fine tuning of the installation directories:
1297 --bindir=DIR user executables [EPREFIX/bin]
1298 --sbindir=DIR system admin executables [EPREFIX/sbin]
1299 --libexecdir=DIR program executables [EPREFIX/libexec]
1300 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1301 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1302 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1303 --libdir=DIR object code libraries [EPREFIX/lib]
1304 --includedir=DIR C header files [PREFIX/include]
1305 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1306 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1307 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1308 --infodir=DIR info documentation [DATAROOTDIR/info]
1309 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1310 --mandir=DIR man documentation [DATAROOTDIR/man]
1311 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1312 --htmldir=DIR html documentation [DOCDIR]
1313 --dvidir=DIR dvi documentation [DOCDIR]
1314 --pdfdir=DIR pdf documentation [DOCDIR]
1315 --psdir=DIR ps documentation [DOCDIR]
1316 _ACEOF
1317
1318 cat <<\_ACEOF
1319
1320 Program names:
1321 --program-prefix=PREFIX prepend PREFIX to installed program names
1322 --program-suffix=SUFFIX append SUFFIX to installed program names
1323 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1324 _ACEOF
1325 fi
1326
1327 if test -n "$ac_init_help"; then
1328
1329 cat <<\_ACEOF
1330
1331 Optional Packages:
1332 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1333 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1334 --with-condor Use the given condor installation path --without-condor means only build indp
1335 --with-mwfile Use MWfile RMCOMM
1336 --with-chirp Use chirp for mw-file on clipped platforms
1337 --with-pvm-arch Use the given pvm architectures
1338 --with-pvm Use the given pvm installation path
1339 --with-mpi Build the Static MPI RMComm
1340 --with-measure Build with -DMEASURE
1341
1342 Some influential environment variables:
1343 CXX C++ compiler command
1344 CXXFLAGS C++ compiler flags
1345 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1346 nonstandard directory <lib dir>
1347 LIBS libraries to pass to the linker, e.g. -l<library>
1348 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1349 you have headers in a nonstandard directory <include dir>
1350 CC C compiler command
1351 CFLAGS C compiler flags
1352 CPP C preprocessor
1353
1354 Use these variables to override the choices made by `configure' or to help
1355 it to find libraries and programs with nonstandard names/locations.
1356
1357 Report bugs to the package provider.
1358 _ACEOF
1359 ac_status=$?
1360 fi
1361
1362 if test "$ac_init_help" = "recursive"; then
1363 # If there are subdirs, report their specific --help.
1364 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1365 test -d "$ac_dir" ||
1366 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1367 continue
1368 ac_builddir=.
1369
1370 case "$ac_dir" in
1371 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1372 *)
1373 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1374 # A ".." for each directory in $ac_dir_suffix.
1375 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1376 case $ac_top_builddir_sub in
1377 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1378 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1379 esac ;;
1380 esac
1381 ac_abs_top_builddir=$ac_pwd
1382 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1383 # for backward compatibility:
1384 ac_top_builddir=$ac_top_build_prefix
1385
1386 case $srcdir in
1387 .) # We are building in place.
1388 ac_srcdir=.
1389 ac_top_srcdir=$ac_top_builddir_sub
1390 ac_abs_top_srcdir=$ac_pwd ;;
1391 [\\/]* | ?:[\\/]* ) # Absolute name.
1392 ac_srcdir=$srcdir$ac_dir_suffix;
1393 ac_top_srcdir=$srcdir
1394 ac_abs_top_srcdir=$srcdir ;;
1395 *) # Relative name.
1396 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1397 ac_top_srcdir=$ac_top_build_prefix$srcdir
1398 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1399 esac
1400 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1401
1402 cd "$ac_dir" || { ac_status=$?; continue; }
1403 # Check for guested configure.
1404 if test -f "$ac_srcdir/configure.gnu"; then
1405 echo &&
1406 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1407 elif test -f "$ac_srcdir/configure"; then
1408 echo &&
1409 $SHELL "$ac_srcdir/configure" --help=recursive
1410 else
1411 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1412 fi || ac_status=$?
1413 cd "$ac_pwd" || { ac_status=$?; break; }
1414 done
1415 fi
1416
1417 test -n "$ac_init_help" && exit $ac_status
1418 if $ac_init_version; then
1419 cat <<\_ACEOF
1420 configure
1421 generated by GNU Autoconf 2.69
1422
1423 Copyright (C) 2012 Free Software Foundation, Inc.
1424 This configure script is free software; the Free Software Foundation
1425 gives unlimited permission to copy, distribute and modify it.
1426 _ACEOF
1427 exit
1428 fi
1429
1430 ## ------------------------ ##
1431 ## Autoconf initialization. ##
1432 ## ------------------------ ##
1433
1434 # ac_fn_cxx_try_compile LINENO
1435 # ----------------------------
1436 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1437 ac_fn_cxx_try_compile ()
1438 {
1439 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1440 rm -f conftest.$ac_objext
1441 if { { ac_try="$ac_compile"
1442 case "(($ac_try" in
1443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1444 *) ac_try_echo=$ac_try;;
1445 esac
1446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1447 $as_echo "$ac_try_echo"; } >&5
1448 (eval "$ac_compile") 2>conftest.err
1449 ac_status=$?
1450 if test -s conftest.err; then
1451 grep -v '^ *+' conftest.err >conftest.er1
1452 cat conftest.er1 >&5
1453 mv -f conftest.er1 conftest.err
1454 fi
1455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1456 test $ac_status = 0; } && {
1457 test -z "$ac_cxx_werror_flag" ||
1458 test ! -s conftest.err
1459 } && test -s conftest.$ac_objext; then :
1460 ac_retval=0
1461 else
1462 $as_echo "$as_me: failed program was:" >&5
1463 sed 's/^/| /' conftest.$ac_ext >&5
1464
1465 ac_retval=1
1466 fi
1467 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1468 as_fn_set_status $ac_retval
1469
1470 } # ac_fn_cxx_try_compile
1471
1472 # ac_fn_c_try_compile LINENO
1473 # --------------------------
1474 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1475 ac_fn_c_try_compile ()
1476 {
1477 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1478 rm -f conftest.$ac_objext
1479 if { { ac_try="$ac_compile"
1480 case "(($ac_try" in
1481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1482 *) ac_try_echo=$ac_try;;
1483 esac
1484 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1485 $as_echo "$ac_try_echo"; } >&5
1486 (eval "$ac_compile") 2>conftest.err
1487 ac_status=$?
1488 if test -s conftest.err; then
1489 grep -v '^ *+' conftest.err >conftest.er1
1490 cat conftest.er1 >&5
1491 mv -f conftest.er1 conftest.err
1492 fi
1493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1494 test $ac_status = 0; } && {
1495 test -z "$ac_c_werror_flag" ||
1496 test ! -s conftest.err
1497 } && test -s conftest.$ac_objext; then :
1498 ac_retval=0
1499 else
1500 $as_echo "$as_me: failed program was:" >&5
1501 sed 's/^/| /' conftest.$ac_ext >&5
1502
1503 ac_retval=1
1504 fi
1505 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1506 as_fn_set_status $ac_retval
1507
1508 } # ac_fn_c_try_compile
1509
1510 # ac_fn_c_try_cpp LINENO
1511 # ----------------------
1512 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1513 ac_fn_c_try_cpp ()
1514 {
1515 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1516 if { { ac_try="$ac_cpp conftest.$ac_ext"
1517 case "(($ac_try" in
1518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1519 *) ac_try_echo=$ac_try;;
1520 esac
1521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1522 $as_echo "$ac_try_echo"; } >&5
1523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1524 ac_status=$?
1525 if test -s conftest.err; then
1526 grep -v '^ *+' conftest.err >conftest.er1
1527 cat conftest.er1 >&5
1528 mv -f conftest.er1 conftest.err
1529 fi
1530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1531 test $ac_status = 0; } > conftest.i && {
1532 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1533 test ! -s conftest.err
1534 }; then :
1535 ac_retval=0
1536 else
1537 $as_echo "$as_me: failed program was:" >&5
1538 sed 's/^/| /' conftest.$ac_ext >&5
1539
1540 ac_retval=1
1541 fi
1542 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1543 as_fn_set_status $ac_retval
1544
1545 } # ac_fn_c_try_cpp
1546
1547 # ac_fn_c_try_run LINENO
1548 # ----------------------
1549 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1550 # that executables *can* be run.
1551 ac_fn_c_try_run ()
1552 {
1553 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554 if { { ac_try="$ac_link"
1555 case "(($ac_try" in
1556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1557 *) ac_try_echo=$ac_try;;
1558 esac
1559 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1560 $as_echo "$ac_try_echo"; } >&5
1561 (eval "$ac_link") 2>&5
1562 ac_status=$?
1563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1564 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1565 { { case "(($ac_try" in
1566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567 *) ac_try_echo=$ac_try;;
1568 esac
1569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570 $as_echo "$ac_try_echo"; } >&5
1571 (eval "$ac_try") 2>&5
1572 ac_status=$?
1573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574 test $ac_status = 0; }; }; then :
1575 ac_retval=0
1576 else
1577 $as_echo "$as_me: program exited with status $ac_status" >&5
1578 $as_echo "$as_me: failed program was:" >&5
1579 sed 's/^/| /' conftest.$ac_ext >&5
1580
1581 ac_retval=$ac_status
1582 fi
1583 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1584 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1585 as_fn_set_status $ac_retval
1586
1587 } # ac_fn_c_try_run
1588
1589 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1590 # -------------------------------------------------------
1591 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1592 # the include files in INCLUDES and setting the cache variable VAR
1593 # accordingly.
1594 ac_fn_c_check_header_mongrel ()
1595 {
1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597 if eval \${$3+:} false; then :
1598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1599 $as_echo_n "checking for $2... " >&6; }
1600 if eval \${$3+:} false; then :
1601 $as_echo_n "(cached) " >&6
1602 fi
1603 eval ac_res=\$$3
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1605 $as_echo "$ac_res" >&6; }
1606 else
1607 # Is the header compilable?
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1609 $as_echo_n "checking $2 usability... " >&6; }
1610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1611 /* end confdefs.h. */
1612 $4
1613 #include <$2>
1614 _ACEOF
1615 if ac_fn_c_try_compile "$LINENO"; then :
1616 ac_header_compiler=yes
1617 else
1618 ac_header_compiler=no
1619 fi
1620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1622 $as_echo "$ac_header_compiler" >&6; }
1623
1624 # Is the header present?
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1626 $as_echo_n "checking $2 presence... " >&6; }
1627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1628 /* end confdefs.h. */
1629 #include <$2>
1630 _ACEOF
1631 if ac_fn_c_try_cpp "$LINENO"; then :
1632 ac_header_preproc=yes
1633 else
1634 ac_header_preproc=no
1635 fi
1636 rm -f conftest.err conftest.i conftest.$ac_ext
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1638 $as_echo "$ac_header_preproc" >&6; }
1639
1640 # So? What about this header?
1641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1642 yes:no: )
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1644 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1646 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1647 ;;
1648 no:yes:* )
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1650 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1652 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1654 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1656 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1658 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1659 ;;
1660 esac
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1662 $as_echo_n "checking for $2... " >&6; }
1663 if eval \${$3+:} false; then :
1664 $as_echo_n "(cached) " >&6
1665 else
1666 eval "$3=\$ac_header_compiler"
1667 fi
1668 eval ac_res=\$$3
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1670 $as_echo "$ac_res" >&6; }
1671 fi
1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673
1674 } # ac_fn_c_check_header_mongrel
1675
1676 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1677 # -------------------------------------------------------
1678 # Tests whether HEADER exists and can be compiled using the include files in
1679 # INCLUDES, setting the cache variable VAR accordingly.
1680 ac_fn_c_check_header_compile ()
1681 {
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1684 $as_echo_n "checking for $2... " >&6; }
1685 if eval \${$3+:} false; then :
1686 $as_echo_n "(cached) " >&6
1687 else
1688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1689 /* end confdefs.h. */
1690 $4
1691 #include <$2>
1692 _ACEOF
1693 if ac_fn_c_try_compile "$LINENO"; then :
1694 eval "$3=yes"
1695 else
1696 eval "$3=no"
1697 fi
1698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1699 fi
1700 eval ac_res=\$$3
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1702 $as_echo "$ac_res" >&6; }
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704
1705 } # ac_fn_c_check_header_compile
1706
1707 # ac_fn_c_try_link LINENO
1708 # -----------------------
1709 # Try to link conftest.$ac_ext, and return whether this succeeded.
1710 ac_fn_c_try_link ()
1711 {
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 rm -f conftest.$ac_objext conftest$ac_exeext
1714 if { { ac_try="$ac_link"
1715 case "(($ac_try" in
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1718 esac
1719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_link") 2>conftest.err
1722 ac_status=$?
1723 if test -s conftest.err; then
1724 grep -v '^ *+' conftest.err >conftest.er1
1725 cat conftest.er1 >&5
1726 mv -f conftest.er1 conftest.err
1727 fi
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } && {
1730 test -z "$ac_c_werror_flag" ||
1731 test ! -s conftest.err
1732 } && test -s conftest$ac_exeext && {
1733 test "$cross_compiling" = yes ||
1734 test -x conftest$ac_exeext
1735 }; then :
1736 ac_retval=0
1737 else
1738 $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1740
1741 ac_retval=1
1742 fi
1743 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1744 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1745 # interfere with the next link command; also delete a directory that is
1746 # left behind by Apple's compiler. We do this before executing the actions.
1747 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749 as_fn_set_status $ac_retval
1750
1751 } # ac_fn_c_try_link
1752
1753 # ac_fn_c_check_func LINENO FUNC VAR
1754 # ----------------------------------
1755 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1756 ac_fn_c_check_func ()
1757 {
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760 $as_echo_n "checking for $2... " >&6; }
1761 if eval \${$3+:} false; then :
1762 $as_echo_n "(cached) " >&6
1763 else
1764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1765 /* end confdefs.h. */
1766 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1768 #define $2 innocuous_$2
1769
1770 /* System header to define __stub macros and hopefully few prototypes,
1771 which can conflict with char $2 (); below.
1772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1773 <limits.h> exists even on freestanding compilers. */
1774
1775 #ifdef __STDC__
1776 # include <limits.h>
1777 #else
1778 # include <assert.h>
1779 #endif
1780
1781 #undef $2
1782
1783 /* Override any GCC internal prototype to avoid an error.
1784 Use char because int might match the return type of a GCC
1785 builtin and then its argument prototype would still apply. */
1786 #ifdef __cplusplus
1787 extern "C"
1788 #endif
1789 char $2 ();
1790 /* The GNU C library defines this for functions which it implements
1791 to always fail with ENOSYS. Some functions are actually named
1792 something starting with __ and the normal name is an alias. */
1793 #if defined __stub_$2 || defined __stub___$2
1794 choke me
1795 #endif
1796
1797 int
1798 main ()
1799 {
1800 return $2 ();
1801 ;
1802 return 0;
1803 }
1804 _ACEOF
1805 if ac_fn_c_try_link "$LINENO"; then :
1806 eval "$3=yes"
1807 else
1808 eval "$3=no"
1809 fi
1810 rm -f core conftest.err conftest.$ac_objext \
1811 conftest$ac_exeext conftest.$ac_ext
1812 fi
1813 eval ac_res=\$$3
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1815 $as_echo "$ac_res" >&6; }
1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817
1818 } # ac_fn_c_check_func
1819 cat >config.log <<_ACEOF
1820 This file contains any messages produced by compilers while
1821 running configure, to aid debugging if configure makes a mistake.
1822
1823 It was created by $as_me, which was
1824 generated by GNU Autoconf 2.69. Invocation command line was
1825
1826 $ $0 $@
1827
1828 _ACEOF
1829 exec 5>>config.log
1830 {
1831 cat <<_ASUNAME
1832 ## --------- ##
1833 ## Platform. ##
1834 ## --------- ##
1835
1836 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1837 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1838 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1839 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1840 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1841
1842 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1843 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1844
1845 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1846 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1847 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1848 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1849 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1850 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1851 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1852
1853 _ASUNAME
1854
1855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1856 for as_dir in $PATH
1857 do
1858 IFS=$as_save_IFS
1859 test -z "$as_dir" && as_dir=.
1860 $as_echo "PATH: $as_dir"
1861 done
1862 IFS=$as_save_IFS
1863
1864 } >&5
1865
1866 cat >&5 <<_ACEOF
1867
1868
1869 ## ----------- ##
1870 ## Core tests. ##
1871 ## ----------- ##
1872
1873 _ACEOF
1874
1875
1876 # Keep a trace of the command line.
1877 # Strip out --no-create and --no-recursion so they do not pile up.
1878 # Strip out --silent because we don't want to record it for future runs.
1879 # Also quote any args containing shell meta-characters.
1880 # Make two passes to allow for proper duplicate-argument suppression.
1881 ac_configure_args=
1882 ac_configure_args0=
1883 ac_configure_args1=
1884 ac_must_keep_next=false
1885 for ac_pass in 1 2
1886 do
1887 for ac_arg
1888 do
1889 case $ac_arg in
1890 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1891 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1892 | -silent | --silent | --silen | --sile | --sil)
1893 continue ;;
1894 *\'*)
1895 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1896 esac
1897 case $ac_pass in
1898 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1899 2)
1900 as_fn_append ac_configure_args1 " '$ac_arg'"
1901 if test $ac_must_keep_next = true; then
1902 ac_must_keep_next=false # Got value, back to normal.
1903 else
1904 case $ac_arg in
1905 *=* | --config-cache | -C | -disable-* | --disable-* \
1906 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1907 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1908 | -with-* | --with-* | -without-* | --without-* | --x)
1909 case "$ac_configure_args0 " in
1910 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1911 esac
1912 ;;
1913 -* ) ac_must_keep_next=true ;;
1914 esac
1915 fi
1916 as_fn_append ac_configure_args " '$ac_arg'"
1917 ;;
1918 esac
1919 done
1920 done
1921 { ac_configure_args0=; unset ac_configure_args0;}
1922 { ac_configure_args1=; unset ac_configure_args1;}
1923
1924 # When interrupted or exit'd, cleanup temporary files, and complete
1925 # config.log. We remove comments because anyway the quotes in there
1926 # would cause problems or look ugly.
1927 # WARNING: Use '\'' to represent an apostrophe within the trap.
1928 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1929 trap 'exit_status=$?
1930 # Save into config.log some information that might help in debugging.
1931 {
1932 echo
1933
1934 $as_echo "## ---------------- ##
1935 ## Cache variables. ##
1936 ## ---------------- ##"
1937 echo
1938 # The following way of writing the cache mishandles newlines in values,
1939 (
1940 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1941 eval ac_val=\$$ac_var
1942 case $ac_val in #(
1943 *${as_nl}*)
1944 case $ac_var in #(
1945 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1946 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1947 esac
1948 case $ac_var in #(
1949 _ | IFS | as_nl) ;; #(
1950 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1951 *) { eval $ac_var=; unset $ac_var;} ;;
1952 esac ;;
1953 esac
1954 done
1955 (set) 2>&1 |
1956 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1957 *${as_nl}ac_space=\ *)
1958 sed -n \
1959 "s/'\''/'\''\\\\'\'''\''/g;
1960 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1961 ;; #(
1962 *)
1963 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1964 ;;
1965 esac |
1966 sort
1967 )
1968 echo
1969
1970 $as_echo "## ----------------- ##
1971 ## Output variables. ##
1972 ## ----------------- ##"
1973 echo
1974 for ac_var in $ac_subst_vars
1975 do
1976 eval ac_val=\$$ac_var
1977 case $ac_val in
1978 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1979 esac
1980 $as_echo "$ac_var='\''$ac_val'\''"
1981 done | sort
1982 echo
1983
1984 if test -n "$ac_subst_files"; then
1985 $as_echo "## ------------------- ##
1986 ## File substitutions. ##
1987 ## ------------------- ##"
1988 echo
1989 for ac_var in $ac_subst_files
1990 do
1991 eval ac_val=\$$ac_var
1992 case $ac_val in
1993 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1994 esac
1995 $as_echo "$ac_var='\''$ac_val'\''"
1996 done | sort
1997 echo
1998 fi
1999
2000 if test -s confdefs.h; then
2001 $as_echo "## ----------- ##
2002 ## confdefs.h. ##
2003 ## ----------- ##"
2004 echo
2005 cat confdefs.h
2006 echo
2007 fi
2008 test "$ac_signal" != 0 &&
2009 $as_echo "$as_me: caught signal $ac_signal"
2010 $as_echo "$as_me: exit $exit_status"
2011 } >&5
2012 rm -f core *.core core.conftest.* &&
2013 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2014 exit $exit_status
2015 ' 0
2016 for ac_signal in 1 2 13 15; do
2017 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2018 done
2019 ac_signal=0
2020
2021 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2022 rm -f -r conftest* confdefs.h
2023
2024 $as_echo "/* confdefs.h */" > confdefs.h
2025
2026 # Predefined preprocessor variables.
2027
2028 cat >>confdefs.h <<_ACEOF
2029 #define PACKAGE_NAME "$PACKAGE_NAME"
2030 _ACEOF
2031
2032 cat >>confdefs.h <<_ACEOF
2033 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2034 _ACEOF
2035
2036 cat >>confdefs.h <<_ACEOF
2037 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2038 _ACEOF
2039
2040 cat >>confdefs.h <<_ACEOF
2041 #define PACKAGE_STRING "$PACKAGE_STRING"
2042 _ACEOF
2043
2044 cat >>confdefs.h <<_ACEOF
2045 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2046 _ACEOF
2047
2048 cat >>confdefs.h <<_ACEOF
2049 #define PACKAGE_URL "$PACKAGE_URL"
2050 _ACEOF
2051
2052
2053 # Let the site file select an alternate cache file if it wants to.
2054 # Prefer an explicitly selected file to automatically selected ones.
2055 ac_site_file1=NONE
2056 ac_site_file2=NONE
2057 if test -n "$CONFIG_SITE"; then
2058 # We do not want a PATH search for config.site.
2059 case $CONFIG_SITE in #((
2060 -*) ac_site_file1=./$CONFIG_SITE;;
2061 */*) ac_site_file1=$CONFIG_SITE;;
2062 *) ac_site_file1=./$CONFIG_SITE;;
2063 esac
2064 elif test "x$prefix" != xNONE; then
2065 ac_site_file1=$prefix/share/config.site
2066 ac_site_file2=$prefix/etc/config.site
2067 else
2068 ac_site_file1=$ac_default_prefix/share/config.site
2069 ac_site_file2=$ac_default_prefix/etc/config.site
2070 fi
2071 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2072 do
2073 test "x$ac_site_file" = xNONE && continue
2074 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2076 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2077 sed 's/^/| /' "$ac_site_file" >&5
2078 . "$ac_site_file" \
2079 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2081 as_fn_error $? "failed to load site script $ac_site_file
2082 See \`config.log' for more details" "$LINENO" 5; }
2083 fi
2084 done
2085
2086
2087 # Check that the precious variables saved in the cache have kept the same
2088 # value.
2089 ac_cache_corrupted=false
2090 for ac_var in $ac_precious_vars; do
2091 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2092 eval ac_new_set=\$ac_env_${ac_var}_set
2093 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2094 eval ac_new_val=\$ac_env_${ac_var}_value
2095 case $ac_old_set,$ac_new_set in
2096 set,)
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2098 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2099 ac_cache_corrupted=: ;;
2100 ,set)
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2102 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2103 ac_cache_corrupted=: ;;
2104 ,);;
2105 *)
2106 if test "x$ac_old_val" != "x$ac_new_val"; then
2107 # differences in whitespace do not lead to failure.
2108 ac_old_val_w=`echo x $ac_old_val`
2109 ac_new_val_w=`echo x $ac_new_val`
2110 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2112 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2113 ac_cache_corrupted=:
2114 else
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2116 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2117 eval $ac_var=\$ac_old_val
2118 fi
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2120 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2122 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2123 fi;;
2124 esac
2125 # Pass precious variables to config.status.
2126 if test "$ac_new_set" = set; then
2127 case $ac_new_val in
2128 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2129 *) ac_arg=$ac_var=$ac_new_val ;;
2130 esac
2131 case " $ac_configure_args " in
2132 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2133 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2134 esac
2135 fi
2136 done
2137 if $ac_cache_corrupted; then
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2141 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2142 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2143 fi
2144 ## -------------------- ##
2145 ## Main body of script. ##
2146 ## -------------------- ##
2147
2148 ac_ext=c
2149 ac_cpp='$CPP $CPPFLAGS'
2150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2153
2154
2155
2156 PACKAGE=mw
2157 VERSION=0.3.0
2158
2159
2160
2161
2162
2163
2164
2165 test "$program_prefix" != NONE &&
2166 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2167 # Use a double $ so make ignores it.
2168 test "$program_suffix" != NONE &&
2169 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2170 # Double any \ or $.
2171 # By default was `s,x,x', remove it if useless.
2172 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2173 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2174
2175
2176 ac_ext=cpp
2177 ac_cpp='$CXXCPP $CPPFLAGS'
2178 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2179 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2180 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2181 if test -z "$CXX"; then
2182 if test -n "$CCC"; then
2183 CXX=$CCC
2184 else
2185 if test -n "$ac_tool_prefix"; then
2186 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2187 do
2188 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2189 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2191 $as_echo_n "checking for $ac_word... " >&6; }
2192 if ${ac_cv_prog_CXX+:} false; then :
2193 $as_echo_n "(cached) " >&6
2194 else
2195 if test -n "$CXX"; then
2196 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2197 else
2198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2199 for as_dir in $PATH
2200 do
2201 IFS=$as_save_IFS
2202 test -z "$as_dir" && as_dir=.
2203 for ac_exec_ext in '' $ac_executable_extensions; do
2204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2205 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2207 break 2
2208 fi
2209 done
2210 done
2211 IFS=$as_save_IFS
2212
2213 fi
2214 fi
2215 CXX=$ac_cv_prog_CXX
2216 if test -n "$CXX"; then
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2218 $as_echo "$CXX" >&6; }
2219 else
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2221 $as_echo "no" >&6; }
2222 fi
2223
2224
2225 test -n "$CXX" && break
2226 done
2227 fi
2228 if test -z "$CXX"; then
2229 ac_ct_CXX=$CXX
2230 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2231 do
2232 # Extract the first word of "$ac_prog", so it can be a program name with args.
2233 set dummy $ac_prog; ac_word=$2
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2235 $as_echo_n "checking for $ac_word... " >&6; }
2236 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2237 $as_echo_n "(cached) " >&6
2238 else
2239 if test -n "$ac_ct_CXX"; then
2240 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2241 else
2242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243 for as_dir in $PATH
2244 do
2245 IFS=$as_save_IFS
2246 test -z "$as_dir" && as_dir=.
2247 for ac_exec_ext in '' $ac_executable_extensions; do
2248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2249 ac_cv_prog_ac_ct_CXX="$ac_prog"
2250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2251 break 2
2252 fi
2253 done
2254 done
2255 IFS=$as_save_IFS
2256
2257 fi
2258 fi
2259 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2260 if test -n "$ac_ct_CXX"; then
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2262 $as_echo "$ac_ct_CXX" >&6; }
2263 else
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2265 $as_echo "no" >&6; }
2266 fi
2267
2268
2269 test -n "$ac_ct_CXX" && break
2270 done
2271
2272 if test "x$ac_ct_CXX" = x; then
2273 CXX="g++"
2274 else
2275 case $cross_compiling:$ac_tool_warned in
2276 yes:)
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2279 ac_tool_warned=yes ;;
2280 esac
2281 CXX=$ac_ct_CXX
2282 fi
2283 fi
2284
2285 fi
2286 fi
2287 # Provide some information about the compiler.
2288 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2289 set X $ac_compile
2290 ac_compiler=$2
2291 for ac_option in --version -v -V -qversion; do
2292 { { ac_try="$ac_compiler $ac_option >&5"
2293 case "(($ac_try" in
2294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2295 *) ac_try_echo=$ac_try;;
2296 esac
2297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2298 $as_echo "$ac_try_echo"; } >&5
2299 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2300 ac_status=$?
2301 if test -s conftest.err; then
2302 sed '10a\
2303 ... rest of stderr output deleted ...
2304 10q' conftest.err >conftest.er1
2305 cat conftest.er1 >&5
2306 fi
2307 rm -f conftest.er1 conftest.err
2308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2309 test $ac_status = 0; }
2310 done
2311
2312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313 /* end confdefs.h. */
2314
2315 int
2316 main ()
2317 {
2318
2319 ;
2320 return 0;
2321 }
2322 _ACEOF
2323 ac_clean_files_save=$ac_clean_files
2324 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2325 # Try to create an executable without -o first, disregard a.out.
2326 # It will help us diagnose broken compilers, and finding out an intuition
2327 # of exeext.
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2329 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2330 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2331
2332 # The possible output files:
2333 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2334
2335 ac_rmfiles=
2336 for ac_file in $ac_files
2337 do
2338 case $ac_file in
2339 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2340 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2341 esac
2342 done
2343 rm -f $ac_rmfiles
2344
2345 if { { ac_try="$ac_link_default"
2346 case "(($ac_try" in
2347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2348 *) ac_try_echo=$ac_try;;
2349 esac
2350 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2351 $as_echo "$ac_try_echo"; } >&5
2352 (eval "$ac_link_default") 2>&5
2353 ac_status=$?
2354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2355 test $ac_status = 0; }; then :
2356 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2357 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2358 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2359 # so that the user can short-circuit this test for compilers unknown to
2360 # Autoconf.
2361 for ac_file in $ac_files ''
2362 do
2363 test -f "$ac_file" || continue
2364 case $ac_file in
2365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2366 ;;
2367 [ab].out )
2368 # We found the default executable, but exeext='' is most
2369 # certainly right.
2370 break;;
2371 *.* )
2372 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2373 then :; else
2374 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2375 fi
2376 # We set ac_cv_exeext here because the later test for it is not
2377 # safe: cross compilers may not add the suffix if given an `-o'
2378 # argument, so we may need to know it at that point already.
2379 # Even if this section looks crufty: it has the advantage of
2380 # actually working.
2381 break;;
2382 * )
2383 break;;
2384 esac
2385 done
2386 test "$ac_cv_exeext" = no && ac_cv_exeext=
2387
2388 else
2389 ac_file=''
2390 fi
2391 if test -z "$ac_file"; then :
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2393 $as_echo "no" >&6; }
2394 $as_echo "$as_me: failed program was:" >&5
2395 sed 's/^/| /' conftest.$ac_ext >&5
2396
2397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2399 as_fn_error 77 "C++ compiler cannot create executables
2400 See \`config.log' for more details" "$LINENO" 5; }
2401 else
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2403 $as_echo "yes" >&6; }
2404 fi
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
2406 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2408 $as_echo "$ac_file" >&6; }
2409 ac_exeext=$ac_cv_exeext
2410
2411 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2412 ac_clean_files=$ac_clean_files_save
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2414 $as_echo_n "checking for suffix of executables... " >&6; }
2415 if { { ac_try="$ac_link"
2416 case "(($ac_try" in
2417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2418 *) ac_try_echo=$ac_try;;
2419 esac
2420 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2421 $as_echo "$ac_try_echo"; } >&5
2422 (eval "$ac_link") 2>&5
2423 ac_status=$?
2424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2425 test $ac_status = 0; }; then :
2426 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2427 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2428 # work properly (i.e., refer to `conftest.exe'), while it won't with
2429 # `rm'.
2430 for ac_file in conftest.exe conftest conftest.*; do
2431 test -f "$ac_file" || continue
2432 case $ac_file in
2433 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2434 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2435 break;;
2436 * ) break;;
2437 esac
2438 done
2439 else
2440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2442 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2443 See \`config.log' for more details" "$LINENO" 5; }
2444 fi
2445 rm -f conftest conftest$ac_cv_exeext
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2447 $as_echo "$ac_cv_exeext" >&6; }
2448
2449 rm -f conftest.$ac_ext
2450 EXEEXT=$ac_cv_exeext
2451 ac_exeext=$EXEEXT
2452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2453 /* end confdefs.h. */
2454 #include <stdio.h>
2455 int
2456 main ()
2457 {
2458 FILE *f = fopen ("conftest.out", "w");
2459 return ferror (f) || fclose (f) != 0;
2460
2461 ;
2462 return 0;
2463 }
2464 _ACEOF
2465 ac_clean_files="$ac_clean_files conftest.out"
2466 # Check that the compiler produces executables we can run. If not, either
2467 # the compiler is broken, or we cross compile.
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2469 $as_echo_n "checking whether we are cross compiling... " >&6; }
2470 if test "$cross_compiling" != yes; then
2471 { { ac_try="$ac_link"
2472 case "(($ac_try" in
2473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474 *) ac_try_echo=$ac_try;;
2475 esac
2476 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2477 $as_echo "$ac_try_echo"; } >&5
2478 (eval "$ac_link") 2>&5
2479 ac_status=$?
2480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2481 test $ac_status = 0; }
2482 if { ac_try='./conftest$ac_cv_exeext'
2483 { { case "(($ac_try" in
2484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2485 *) ac_try_echo=$ac_try;;
2486 esac
2487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2488 $as_echo "$ac_try_echo"; } >&5
2489 (eval "$ac_try") 2>&5
2490 ac_status=$?
2491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2492 test $ac_status = 0; }; }; then
2493 cross_compiling=no
2494 else
2495 if test "$cross_compiling" = maybe; then
2496 cross_compiling=yes
2497 else
2498 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2500 as_fn_error $? "cannot run C++ compiled programs.
2501 If you meant to cross compile, use \`--host'.
2502 See \`config.log' for more details" "$LINENO" 5; }
2503 fi
2504 fi
2505 fi
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2507 $as_echo "$cross_compiling" >&6; }
2508
2509 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2510 ac_clean_files=$ac_clean_files_save
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2512 $as_echo_n "checking for suffix of object files... " >&6; }
2513 if ${ac_cv_objext+:} false; then :
2514 $as_echo_n "(cached) " >&6
2515 else
2516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2517 /* end confdefs.h. */
2518
2519 int
2520 main ()
2521 {
2522
2523 ;
2524 return 0;
2525 }
2526 _ACEOF
2527 rm -f conftest.o conftest.obj
2528 if { { ac_try="$ac_compile"
2529 case "(($ac_try" in
2530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2531 *) ac_try_echo=$ac_try;;
2532 esac
2533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2534 $as_echo "$ac_try_echo"; } >&5
2535 (eval "$ac_compile") 2>&5
2536 ac_status=$?
2537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2538 test $ac_status = 0; }; then :
2539 for ac_file in conftest.o conftest.obj conftest.*; do
2540 test -f "$ac_file" || continue;
2541 case $ac_file in
2542 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2543 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2544 break;;
2545 esac
2546 done
2547 else
2548 $as_echo "$as_me: failed program was:" >&5
2549 sed 's/^/| /' conftest.$ac_ext >&5
2550
2551 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2553 as_fn_error $? "cannot compute suffix of object files: cannot compile
2554 See \`config.log' for more details" "$LINENO" 5; }
2555 fi
2556 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2557 fi
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2559 $as_echo "$ac_cv_objext" >&6; }
2560 OBJEXT=$ac_cv_objext
2561 ac_objext=$OBJEXT
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
2563 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2564 if ${ac_cv_cxx_compiler_gnu+:} false; then :
2565 $as_echo_n "(cached) " >&6
2566 else
2567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2568 /* end confdefs.h. */
2569
2570 int
2571 main ()
2572 {
2573 #ifndef __GNUC__
2574 choke me
2575 #endif
2576
2577 ;
2578 return 0;
2579 }
2580 _ACEOF
2581 if ac_fn_cxx_try_compile "$LINENO"; then :
2582 ac_compiler_gnu=yes
2583 else
2584 ac_compiler_gnu=no
2585 fi
2586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2587 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2588
2589 fi
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
2591 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
2592 if test $ac_compiler_gnu = yes; then
2593 GXX=yes
2594 else
2595 GXX=
2596 fi
2597 ac_test_CXXFLAGS=${CXXFLAGS+set}
2598 ac_save_CXXFLAGS=$CXXFLAGS
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
2600 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
2601 if ${ac_cv_prog_cxx_g+:} false; then :
2602 $as_echo_n "(cached) " >&6
2603 else
2604 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2605 ac_cxx_werror_flag=yes
2606 ac_cv_prog_cxx_g=no
2607 CXXFLAGS="-g"
2608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2609 /* end confdefs.h. */
2610
2611 int
2612 main ()
2613 {
2614
2615 ;
2616 return 0;
2617 }
2618 _ACEOF
2619 if ac_fn_cxx_try_compile "$LINENO"; then :
2620 ac_cv_prog_cxx_g=yes
2621 else
2622 CXXFLAGS=""
2623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2624 /* end confdefs.h. */
2625
2626 int
2627 main ()
2628 {
2629
2630 ;
2631 return 0;
2632 }
2633 _ACEOF
2634 if ac_fn_cxx_try_compile "$LINENO"; then :
2635
2636 else
2637 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2638 CXXFLAGS="-g"
2639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2640 /* end confdefs.h. */
2641
2642 int
2643 main ()
2644 {
2645
2646 ;
2647 return 0;
2648 }
2649 _ACEOF
2650 if ac_fn_cxx_try_compile "$LINENO"; then :
2651 ac_cv_prog_cxx_g=yes
2652 fi
2653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2654 fi
2655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2656 fi
2657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2658 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2659 fi
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
2661 $as_echo "$ac_cv_prog_cxx_g" >&6; }
2662 if test "$ac_test_CXXFLAGS" = set; then
2663 CXXFLAGS=$ac_save_CXXFLAGS
2664 elif test $ac_cv_prog_cxx_g = yes; then
2665 if test "$GXX" = yes; then
2666 CXXFLAGS="-g -O2"
2667 else
2668 CXXFLAGS="-g"
2669 fi
2670 else
2671 if test "$GXX" = yes; then
2672 CXXFLAGS="-O2"
2673 else
2674 CXXFLAGS=
2675 fi
2676 fi
2677 ac_ext=c
2678 ac_cpp='$CPP $CPPFLAGS'
2679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2682
2683 ac_aux_dir=
2684 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2685 if test -f "$ac_dir/install-sh"; then
2686 ac_aux_dir=$ac_dir
2687 ac_install_sh="$ac_aux_dir/install-sh -c"
2688 break
2689 elif test -f "$ac_dir/install.sh"; then
2690 ac_aux_dir=$ac_dir
2691 ac_install_sh="$ac_aux_dir/install.sh -c"
2692 break
2693 elif test -f "$ac_dir/shtool"; then
2694 ac_aux_dir=$ac_dir
2695 ac_install_sh="$ac_aux_dir/shtool install -c"
2696 break
2697 fi
2698 done
2699 if test -z "$ac_aux_dir"; then
2700 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2701 fi
2702
2703 # These three variables are undocumented and unsupported,
2704 # and are intended to be withdrawn in a future Autoconf release.
2705 # They can cause serious problems if a builder's source tree is in a directory
2706 # whose full name contains unusual characters.
2707 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2708 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2709 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2710
2711
2712 # Find a good install program. We prefer a C program (faster),
2713 # so one script is as good as another. But avoid the broken or
2714 # incompatible versions:
2715 # SysV /etc/install, /usr/sbin/install
2716 # SunOS /usr/etc/install
2717 # IRIX /sbin/install
2718 # AIX /bin/install
2719 # AmigaOS /C/install, which installs bootblocks on floppy discs
2720 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2721 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2722 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2723 # OS/2's system install, which has a completely different semantic
2724 # ./install, which can be erroneously created by make from ./install.sh.
2725 # Reject install programs that cannot install multiple files.
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2727 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2728 if test -z "$INSTALL"; then
2729 if ${ac_cv_path_install+:} false; then :
2730 $as_echo_n "(cached) " >&6
2731 else
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 for as_dir in $PATH
2734 do
2735 IFS=$as_save_IFS
2736 test -z "$as_dir" && as_dir=.
2737 # Account for people who put trailing slashes in PATH elements.
2738 case $as_dir/ in #((
2739 ./ | .// | /[cC]/* | \
2740 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2741 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2742 /usr/ucb/* ) ;;
2743 *)
2744 # OSF1 and SCO ODT 3.0 have their own names for install.
2745 # Don't use installbsd from OSF since it installs stuff as root
2746 # by default.
2747 for ac_prog in ginstall scoinst install; do
2748 for ac_exec_ext in '' $ac_executable_extensions; do
2749 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2750 if test $ac_prog = install &&
2751 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2752 # AIX install. It has an incompatible calling convention.
2753 :
2754 elif test $ac_prog = install &&
2755 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2756 # program-specific install script used by HP pwplus--don't use.
2757 :
2758 else
2759 rm -rf conftest.one conftest.two conftest.dir
2760 echo one > conftest.one
2761 echo two > conftest.two
2762 mkdir conftest.dir
2763 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2764 test -s conftest.one && test -s conftest.two &&
2765 test -s conftest.dir/conftest.one &&
2766 test -s conftest.dir/conftest.two
2767 then
2768 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2769 break 3
2770 fi
2771 fi
2772 fi
2773 done
2774 done
2775 ;;
2776 esac
2777
2778 done
2779 IFS=$as_save_IFS
2780
2781 rm -rf conftest.one conftest.two conftest.dir
2782
2783 fi
2784 if test "${ac_cv_path_install+set}" = set; then
2785 INSTALL=$ac_cv_path_install
2786 else
2787 # As a last resort, use the slow shell script. Don't cache a
2788 # value for INSTALL within a source directory, because that will
2789 # break other packages using the cache if that directory is
2790 # removed, or if the value is a relative name.
2791 INSTALL=$ac_install_sh
2792 fi
2793 fi
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2795 $as_echo "$INSTALL" >&6; }
2796
2797 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2798 # It thinks the first close brace ends the variable substitution.
2799 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2800
2801 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2802
2803 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2804
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2806 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2807 set x ${MAKE-make}
2808 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2809 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2810 $as_echo_n "(cached) " >&6
2811 else
2812 cat >conftest.make <<\_ACEOF
2813 SHELL = /bin/sh
2814 all:
2815 @echo '@@@%%%=$(MAKE)=@@@%%%'
2816 _ACEOF
2817 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2818 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2819 *@@@%%%=?*=@@@%%%*)
2820 eval ac_cv_prog_make_${ac_make}_set=yes;;
2821 *)
2822 eval ac_cv_prog_make_${ac_make}_set=no;;
2823 esac
2824 rm -f conftest.make
2825 fi
2826 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2828 $as_echo "yes" >&6; }
2829 SET_MAKE=
2830 else
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2832 $as_echo "no" >&6; }
2833 SET_MAKE="MAKE=${MAKE-make}"
2834 fi
2835
2836 if test -n "$ac_tool_prefix"; then
2837 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2838 set dummy ${ac_tool_prefix}ranlib; 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 ${ac_cv_prog_RANLIB+:} false; then :
2842 $as_echo_n "(cached) " >&6
2843 else
2844 if test -n "$RANLIB"; then
2845 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2846 else
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 for as_dir in $PATH
2849 do
2850 IFS=$as_save_IFS
2851 test -z "$as_dir" && as_dir=.
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2854 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 break 2
2857 fi
2858 done
2859 done
2860 IFS=$as_save_IFS
2861
2862 fi
2863 fi
2864 RANLIB=$ac_cv_prog_RANLIB
2865 if test -n "$RANLIB"; then
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
2867 $as_echo "$RANLIB" >&6; }
2868 else
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2870 $as_echo "no" >&6; }
2871 fi
2872
2873
2874 fi
2875 if test -z "$ac_cv_prog_RANLIB"; then
2876 ac_ct_RANLIB=$RANLIB
2877 # Extract the first word of "ranlib", so it can be a program name with args.
2878 set dummy ranlib; 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 ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
2882 $as_echo_n "(cached) " >&6
2883 else
2884 if test -n "$ac_ct_RANLIB"; then
2885 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2886 else
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 for as_dir in $PATH
2889 do
2890 IFS=$as_save_IFS
2891 test -z "$as_dir" && as_dir=.
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2894 ac_cv_prog_ac_ct_RANLIB="ranlib"
2895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2896 break 2
2897 fi
2898 done
2899 done
2900 IFS=$as_save_IFS
2901
2902 fi
2903 fi
2904 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2905 if test -n "$ac_ct_RANLIB"; then
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
2907 $as_echo "$ac_ct_RANLIB" >&6; }
2908 else
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2910 $as_echo "no" >&6; }
2911 fi
2912
2913 if test "x$ac_ct_RANLIB" = x; then
2914 RANLIB=":"
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 RANLIB=$ac_ct_RANLIB
2923 fi
2924 else
2925 RANLIB="$ac_cv_prog_RANLIB"
2926 fi
2927
2928 # Extract the first word of "g++", so it can be a program name with args.
2929 set dummy g++; ac_word=$2
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931 $as_echo_n "checking for $ac_word... " >&6; }
2932 if ${ac_cv_path_CXX+:} false; then :
2933 $as_echo_n "(cached) " >&6
2934 else
2935 case $CXX in
2936 [\\/]* | ?:[\\/]*)
2937 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
2938 ;;
2939 *)
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 for as_dir in $PATH
2942 do
2943 IFS=$as_save_IFS
2944 test -z "$as_dir" && as_dir=.
2945 for ac_exec_ext in '' $ac_executable_extensions; do
2946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2947 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
2948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2949 break 2
2950 fi
2951 done
2952 done
2953 IFS=$as_save_IFS
2954
2955 ;;
2956 esac
2957 fi
2958 CXX=$ac_cv_path_CXX
2959 if test -n "$CXX"; then
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2961 $as_echo "$CXX" >&6; }
2962 else
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964 $as_echo "no" >&6; }
2965 fi
2966
2967
2968 # Extract the first word of "autoconf", so it can be a program name with args.
2969 set dummy autoconf; ac_word=$2
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971 $as_echo_n "checking for $ac_word... " >&6; }
2972 if ${ac_cv_path_AUTOCONF+:} false; then :
2973 $as_echo_n "(cached) " >&6
2974 else
2975 case $AUTOCONF in
2976 [\\/]* | ?:[\\/]*)
2977 ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
2978 ;;
2979 *)
2980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981 for as_dir in $PATH
2982 do
2983 IFS=$as_save_IFS
2984 test -z "$as_dir" && as_dir=.
2985 for ac_exec_ext in '' $ac_executable_extensions; do
2986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2987 ac_cv_path_AUTOCONF="$as_dir/$ac_word$ac_exec_ext"
2988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2989 break 2
2990 fi
2991 done
2992 done
2993 IFS=$as_save_IFS
2994
2995 ;;
2996 esac
2997 fi
2998 AUTOCONF=$ac_cv_path_AUTOCONF
2999 if test -n "$AUTOCONF"; then
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
3001 $as_echo "$AUTOCONF" >&6; }
3002 else
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3004 $as_echo "no" >&6; }
3005 fi
3006
3007
3008
3009
3010
3011
3012
3013 ac_ext=c
3014 ac_cpp='$CPP $CPPFLAGS'
3015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3018 if test -n "$ac_tool_prefix"; then
3019 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3020 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022 $as_echo_n "checking for $ac_word... " >&6; }
3023 if ${ac_cv_prog_CC+:} false; then :
3024 $as_echo_n "(cached) " >&6
3025 else
3026 if test -n "$CC"; then
3027 ac_cv_prog_CC="$CC" # Let the user override the test.
3028 else
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 for as_dir in $PATH
3031 do
3032 IFS=$as_save_IFS
3033 test -z "$as_dir" && as_dir=.
3034 for ac_exec_ext in '' $ac_executable_extensions; do
3035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3036 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3038 break 2
3039 fi
3040 done
3041 done
3042 IFS=$as_save_IFS
3043
3044 fi
3045 fi
3046 CC=$ac_cv_prog_CC
3047 if test -n "$CC"; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3049 $as_echo "$CC" >&6; }
3050 else
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3053 fi
3054
3055
3056 fi
3057 if test -z "$ac_cv_prog_CC"; then
3058 ac_ct_CC=$CC
3059 # Extract the first word of "gcc", so it can be a program name with args.
3060 set dummy gcc; ac_word=$2
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062 $as_echo_n "checking for $ac_word... " >&6; }
3063 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3064 $as_echo_n "(cached) " >&6
3065 else
3066 if test -n "$ac_ct_CC"; then
3067 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3068 else
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 for as_dir in $PATH
3071 do
3072 IFS=$as_save_IFS
3073 test -z "$as_dir" && as_dir=.
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3076 ac_cv_prog_ac_ct_CC="gcc"
3077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 break 2
3079 fi
3080 done
3081 done
3082 IFS=$as_save_IFS
3083
3084 fi
3085 fi
3086 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3087 if test -n "$ac_ct_CC"; then
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3089 $as_echo "$ac_ct_CC" >&6; }
3090 else
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092 $as_echo "no" >&6; }
3093 fi
3094
3095 if test "x$ac_ct_CC" = x; then
3096 CC=""
3097 else
3098 case $cross_compiling:$ac_tool_warned in
3099 yes:)
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3102 ac_tool_warned=yes ;;
3103 esac
3104 CC=$ac_ct_CC
3105 fi
3106 else
3107 CC="$ac_cv_prog_CC"
3108 fi
3109
3110 if test -z "$CC"; then
3111 if test -n "$ac_tool_prefix"; then
3112 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3113 set dummy ${ac_tool_prefix}cc; ac_word=$2
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3115 $as_echo_n "checking for $ac_word... " >&6; }
3116 if ${ac_cv_prog_CC+:} false; then :
3117 $as_echo_n "(cached) " >&6
3118 else
3119 if test -n "$CC"; then
3120 ac_cv_prog_CC="$CC" # Let the user override the test.
3121 else
3122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 for as_dir in $PATH
3124 do
3125 IFS=$as_save_IFS
3126 test -z "$as_dir" && as_dir=.
3127 for ac_exec_ext in '' $ac_executable_extensions; do
3128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3129 ac_cv_prog_CC="${ac_tool_prefix}cc"
3130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3131 break 2
3132 fi
3133 done
3134 done
3135 IFS=$as_save_IFS
3136
3137 fi
3138 fi
3139 CC=$ac_cv_prog_CC
3140 if test -n "$CC"; then
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3142 $as_echo "$CC" >&6; }
3143 else
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145 $as_echo "no" >&6; }
3146 fi
3147
3148
3149 fi
3150 fi
3151 if test -z "$CC"; then
3152 # Extract the first word of "cc", so it can be a program name with args.
3153 set dummy cc; ac_word=$2
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155 $as_echo_n "checking for $ac_word... " >&6; }
3156 if ${ac_cv_prog_CC+:} false; then :
3157 $as_echo_n "(cached) " >&6
3158 else
3159 if test -n "$CC"; then
3160 ac_cv_prog_CC="$CC" # Let the user override the test.
3161 else
3162 ac_prog_rejected=no
3163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164 for as_dir in $PATH
3165 do
3166 IFS=$as_save_IFS
3167 test -z "$as_dir" && as_dir=.
3168 for ac_exec_ext in '' $ac_executable_extensions; do
3169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3170 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3171 ac_prog_rejected=yes
3172 continue
3173 fi
3174 ac_cv_prog_CC="cc"
3175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3176 break 2
3177 fi
3178 done
3179 done
3180 IFS=$as_save_IFS
3181
3182 if test $ac_prog_rejected = yes; then
3183 # We found a bogon in the path, so make sure we never use it.
3184 set dummy $ac_cv_prog_CC
3185 shift
3186 if test $# != 0; then
3187 # We chose a different compiler from the bogus one.
3188 # However, it has the same basename, so the bogon will be chosen
3189 # first if we set CC to just the basename; use the full file name.
3190 shift
3191 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3192 fi
3193 fi
3194 fi
3195 fi
3196 CC=$ac_cv_prog_CC
3197 if test -n "$CC"; then
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3199 $as_echo "$CC" >&6; }
3200 else
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202 $as_echo "no" >&6; }
3203 fi
3204
3205
3206 fi
3207 if test -z "$CC"; then
3208 if test -n "$ac_tool_prefix"; then
3209 for ac_prog in cl.exe
3210 do
3211 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3212 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3214 $as_echo_n "checking for $ac_word... " >&6; }
3215 if ${ac_cv_prog_CC+:} false; then :
3216 $as_echo_n "(cached) " >&6
3217 else
3218 if test -n "$CC"; then
3219 ac_cv_prog_CC="$CC" # Let the user override the test.
3220 else
3221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222 for as_dir in $PATH
3223 do
3224 IFS=$as_save_IFS
3225 test -z "$as_dir" && as_dir=.
3226 for ac_exec_ext in '' $ac_executable_extensions; do
3227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3228 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3230 break 2
3231 fi
3232 done
3233 done
3234 IFS=$as_save_IFS
3235
3236 fi
3237 fi
3238 CC=$ac_cv_prog_CC
3239 if test -n "$CC"; then
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3241 $as_echo "$CC" >&6; }
3242 else
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244 $as_echo "no" >&6; }
3245 fi
3246
3247
3248 test -n "$CC" && break
3249 done
3250 fi
3251 if test -z "$CC"; then
3252 ac_ct_CC=$CC
3253 for ac_prog in cl.exe
3254 do
3255 # Extract the first word of "$ac_prog", so it can be a program name with args.
3256 set dummy $ac_prog; ac_word=$2
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3258 $as_echo_n "checking for $ac_word... " >&6; }
3259 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3260 $as_echo_n "(cached) " >&6
3261 else
3262 if test -n "$ac_ct_CC"; then
3263 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3264 else
3265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266 for as_dir in $PATH
3267 do
3268 IFS=$as_save_IFS
3269 test -z "$as_dir" && as_dir=.
3270 for ac_exec_ext in '' $ac_executable_extensions; do
3271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3272 ac_cv_prog_ac_ct_CC="$ac_prog"
3273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3274 break 2
3275 fi
3276 done
3277 done
3278 IFS=$as_save_IFS
3279
3280 fi
3281 fi
3282 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3283 if test -n "$ac_ct_CC"; then
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3285 $as_echo "$ac_ct_CC" >&6; }
3286 else
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288 $as_echo "no" >&6; }
3289 fi
3290
3291
3292 test -n "$ac_ct_CC" && break
3293 done
3294
3295 if test "x$ac_ct_CC" = x; then
3296 CC=""
3297 else
3298 case $cross_compiling:$ac_tool_warned in
3299 yes:)
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3302 ac_tool_warned=yes ;;
3303 esac
3304 CC=$ac_ct_CC
3305 fi
3306 fi
3307
3308 fi
3309
3310
3311 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3313 as_fn_error $? "no acceptable C compiler found in \$PATH
3314 See \`config.log' for more details" "$LINENO" 5; }
3315
3316 # Provide some information about the compiler.
3317 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3318 set X $ac_compile
3319 ac_compiler=$2
3320 for ac_option in --version -v -V -qversion; do
3321 { { ac_try="$ac_compiler $ac_option >&5"
3322 case "(($ac_try" in
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3325 esac
3326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3327 $as_echo "$ac_try_echo"; } >&5
3328 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3329 ac_status=$?
3330 if test -s conftest.err; then
3331 sed '10a\
3332 ... rest of stderr output deleted ...
3333 10q' conftest.err >conftest.er1
3334 cat conftest.er1 >&5
3335 fi
3336 rm -f conftest.er1 conftest.err
3337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3338 test $ac_status = 0; }
3339 done
3340
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3342 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3343 if ${ac_cv_c_compiler_gnu+:} false; then :
3344 $as_echo_n "(cached) " >&6
3345 else
3346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3347 /* end confdefs.h. */
3348
3349 int
3350 main ()
3351 {
3352 #ifndef __GNUC__
3353 choke me
3354 #endif
3355
3356 ;
3357 return 0;
3358 }
3359 _ACEOF
3360 if ac_fn_c_try_compile "$LINENO"; then :
3361 ac_compiler_gnu=yes
3362 else
3363 ac_compiler_gnu=no
3364 fi
3365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3366 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3367
3368 fi
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3370 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3371 if test $ac_compiler_gnu = yes; then
3372 GCC=yes
3373 else
3374 GCC=
3375 fi
3376 ac_test_CFLAGS=${CFLAGS+set}
3377 ac_save_CFLAGS=$CFLAGS
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3379 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3380 if ${ac_cv_prog_cc_g+:} false; then :
3381 $as_echo_n "(cached) " >&6
3382 else
3383 ac_save_c_werror_flag=$ac_c_werror_flag
3384 ac_c_werror_flag=yes
3385 ac_cv_prog_cc_g=no
3386 CFLAGS="-g"
3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388 /* end confdefs.h. */
3389
3390 int
3391 main ()
3392 {
3393
3394 ;
3395 return 0;
3396 }
3397 _ACEOF
3398 if ac_fn_c_try_compile "$LINENO"; then :
3399 ac_cv_prog_cc_g=yes
3400 else
3401 CFLAGS=""
3402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403 /* end confdefs.h. */
3404
3405 int
3406 main ()
3407 {
3408
3409 ;
3410 return 0;
3411 }
3412 _ACEOF
3413 if ac_fn_c_try_compile "$LINENO"; then :
3414
3415 else
3416 ac_c_werror_flag=$ac_save_c_werror_flag
3417 CFLAGS="-g"
3418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3419 /* end confdefs.h. */
3420
3421 int
3422 main ()
3423 {
3424
3425 ;
3426 return 0;
3427 }
3428 _ACEOF
3429 if ac_fn_c_try_compile "$LINENO"; then :
3430 ac_cv_prog_cc_g=yes
3431 fi
3432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3433 fi
3434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3435 fi
3436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3437 ac_c_werror_flag=$ac_save_c_werror_flag
3438 fi
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3440 $as_echo "$ac_cv_prog_cc_g" >&6; }
3441 if test "$ac_test_CFLAGS" = set; then
3442 CFLAGS=$ac_save_CFLAGS
3443 elif test $ac_cv_prog_cc_g = yes; then
3444 if test "$GCC" = yes; then
3445 CFLAGS="-g -O2"
3446 else
3447 CFLAGS="-g"
3448 fi
3449 else
3450 if test "$GCC" = yes; then
3451 CFLAGS="-O2"
3452 else
3453 CFLAGS=
3454 fi
3455 fi
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3457 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3458 if ${ac_cv_prog_cc_c89+:} false; then :
3459 $as_echo_n "(cached) " >&6
3460 else
3461 ac_cv_prog_cc_c89=no
3462 ac_save_CC=$CC
3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h. */
3465 #include <stdarg.h>
3466 #include <stdio.h>
3467 struct stat;
3468 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3469 struct buf { int x; };
3470 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3471 static char *e (p, i)
3472 char **p;
3473 int i;
3474 {
3475 return p[i];
3476 }
3477 static char *f (char * (*g) (char **, int), char **p, ...)
3478 {
3479 char *s;
3480 va_list v;
3481 va_start (v,p);
3482 s = g (p, va_arg (v,int));
3483 va_end (v);
3484 return s;
3485 }
3486
3487 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3488 function prototypes and stuff, but not '\xHH' hex character constants.
3489 These don't provoke an error unfortunately, instead are silently treated
3490 as 'x'. The following induces an error, until -std is added to get
3491 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3492 array size at least. It's necessary to write '\x00'==0 to get something
3493 that's true only with -std. */
3494 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3495
3496 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3497 inside strings and character constants. */
3498 #define FOO(x) 'x'
3499 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3500
3501 int test (int i, double x);
3502 struct s1 {int (*f) (int a);};
3503 struct s2 {int (*f) (double a);};
3504 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3505 int argc;
3506 char **argv;
3507 int
3508 main ()
3509 {
3510 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3511 ;
3512 return 0;
3513 }
3514 _ACEOF
3515 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3516 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3517 do
3518 CC="$ac_save_CC $ac_arg"
3519 if ac_fn_c_try_compile "$LINENO"; then :
3520 ac_cv_prog_cc_c89=$ac_arg
3521 fi
3522 rm -f core conftest.err conftest.$ac_objext
3523 test "x$ac_cv_prog_cc_c89" != "xno" && break
3524 done
3525 rm -f conftest.$ac_ext
3526 CC=$ac_save_CC
3527
3528 fi
3529 # AC_CACHE_VAL
3530 case "x$ac_cv_prog_cc_c89" in
3531 x)
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3533 $as_echo "none needed" >&6; } ;;
3534 xno)
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3536 $as_echo "unsupported" >&6; } ;;
3537 *)
3538 CC="$CC $ac_cv_prog_cc_c89"
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3540 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3541 esac
3542 if test "x$ac_cv_prog_cc_c89" != xno; then :
3543
3544 fi
3545
3546 ac_ext=c
3547 ac_cpp='$CPP $CPPFLAGS'
3548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3551
3552
3553 ac_ext=c
3554 ac_cpp='$CPP $CPPFLAGS'
3555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3559 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3560 # On Suns, sometimes $CPP names a directory.
3561 if test -n "$CPP" && test -d "$CPP"; then
3562 CPP=
3563 fi
3564 if test -z "$CPP"; then
3565 if ${ac_cv_prog_CPP+:} false; then :
3566 $as_echo_n "(cached) " >&6
3567 else
3568 # Double quotes because CPP needs to be expanded
3569 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3570 do
3571 ac_preproc_ok=false
3572 for ac_c_preproc_warn_flag in '' yes
3573 do
3574 # Use a header file that comes with gcc, so configuring glibc
3575 # with a fresh cross-compiler works.
3576 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3577 # <limits.h> exists even on freestanding compilers.
3578 # On the NeXT, cc -E runs the code through the compiler's parser,
3579 # not just through cpp. "Syntax error" is here to catch this case.
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h. */
3582 #ifdef __STDC__
3583 # include <limits.h>
3584 #else
3585 # include <assert.h>
3586 #endif
3587 Syntax error
3588 _ACEOF
3589 if ac_fn_c_try_cpp "$LINENO"; then :
3590
3591 else
3592 # Broken: fails on valid input.
3593 continue
3594 fi
3595 rm -f conftest.err conftest.i conftest.$ac_ext
3596
3597 # OK, works on sane cases. Now check whether nonexistent headers
3598 # can be detected and how.
3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600 /* end confdefs.h. */
3601 #include <ac_nonexistent.h>
3602 _ACEOF
3603 if ac_fn_c_try_cpp "$LINENO"; then :
3604 # Broken: success on invalid input.
3605 continue
3606 else
3607 # Passes both tests.
3608 ac_preproc_ok=:
3609 break
3610 fi
3611 rm -f conftest.err conftest.i conftest.$ac_ext
3612
3613 done
3614 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3615 rm -f conftest.i conftest.err conftest.$ac_ext
3616 if $ac_preproc_ok; then :
3617 break
3618 fi
3619
3620 done
3621 ac_cv_prog_CPP=$CPP
3622
3623 fi
3624 CPP=$ac_cv_prog_CPP
3625 else
3626 ac_cv_prog_CPP=$CPP
3627 fi
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3629 $as_echo "$CPP" >&6; }
3630 ac_preproc_ok=false
3631 for ac_c_preproc_warn_flag in '' yes
3632 do
3633 # Use a header file that comes with gcc, so configuring glibc
3634 # with a fresh cross-compiler works.
3635 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3636 # <limits.h> exists even on freestanding compilers.
3637 # On the NeXT, cc -E runs the code through the compiler's parser,
3638 # not just through cpp. "Syntax error" is here to catch this case.
3639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640 /* end confdefs.h. */
3641 #ifdef __STDC__
3642 # include <limits.h>
3643 #else
3644 # include <assert.h>
3645 #endif
3646 Syntax error
3647 _ACEOF
3648 if ac_fn_c_try_cpp "$LINENO"; then :
3649
3650 else
3651 # Broken: fails on valid input.
3652 continue
3653 fi
3654 rm -f conftest.err conftest.i conftest.$ac_ext
3655
3656 # OK, works on sane cases. Now check whether nonexistent headers
3657 # can be detected and how.
3658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659 /* end confdefs.h. */
3660 #include <ac_nonexistent.h>
3661 _ACEOF
3662 if ac_fn_c_try_cpp "$LINENO"; then :
3663 # Broken: success on invalid input.
3664 continue
3665 else
3666 # Passes both tests.
3667 ac_preproc_ok=:
3668 break
3669 fi
3670 rm -f conftest.err conftest.i conftest.$ac_ext
3671
3672 done
3673 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3674 rm -f conftest.i conftest.err conftest.$ac_ext
3675 if $ac_preproc_ok; then :
3676
3677 else
3678 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3680 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3681 See \`config.log' for more details" "$LINENO" 5; }
3682 fi
3683
3684 ac_ext=c
3685 ac_cpp='$CPP $CPPFLAGS'
3686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3689
3690
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3692 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3693 if ${ac_cv_path_GREP+:} false; then :
3694 $as_echo_n "(cached) " >&6
3695 else
3696 if test -z "$GREP"; then
3697 ac_path_GREP_found=false
3698 # Loop through the user's path and test for each of PROGNAME-LIST
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3701 do
3702 IFS=$as_save_IFS
3703 test -z "$as_dir" && as_dir=.
3704 for ac_prog in grep ggrep; do
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3707 as_fn_executable_p "$ac_path_GREP" || continue
3708 # Check for GNU ac_path_GREP and select it if it is found.
3709 # Check for GNU $ac_path_GREP
3710 case `"$ac_path_GREP" --version 2>&1` in
3711 *GNU*)
3712 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3713 *)
3714 ac_count=0
3715 $as_echo_n 0123456789 >"conftest.in"
3716 while :
3717 do
3718 cat "conftest.in" "conftest.in" >"conftest.tmp"
3719 mv "conftest.tmp" "conftest.in"
3720 cp "conftest.in" "conftest.nl"
3721 $as_echo 'GREP' >> "conftest.nl"
3722 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3723 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3724 as_fn_arith $ac_count + 1 && ac_count=$as_val
3725 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3726 # Best one so far, save it but keep looking for a better one
3727 ac_cv_path_GREP="$ac_path_GREP"
3728 ac_path_GREP_max=$ac_count
3729 fi
3730 # 10*(2^10) chars as input seems more than enough
3731 test $ac_count -gt 10 && break
3732 done
3733 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3734 esac
3735
3736 $ac_path_GREP_found && break 3
3737 done
3738 done
3739 done
3740 IFS=$as_save_IFS
3741 if test -z "$ac_cv_path_GREP"; then
3742 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3743 fi
3744 else
3745 ac_cv_path_GREP=$GREP
3746 fi
3747
3748 fi
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3750 $as_echo "$ac_cv_path_GREP" >&6; }
3751 GREP="$ac_cv_path_GREP"
3752
3753
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3755 $as_echo_n "checking for egrep... " >&6; }
3756 if ${ac_cv_path_EGREP+:} false; then :
3757 $as_echo_n "(cached) " >&6
3758 else
3759 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3760 then ac_cv_path_EGREP="$GREP -E"
3761 else
3762 if test -z "$EGREP"; then
3763 ac_path_EGREP_found=false
3764 # Loop through the user's path and test for each of PROGNAME-LIST
3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3767 do
3768 IFS=$as_save_IFS
3769 test -z "$as_dir" && as_dir=.
3770 for ac_prog in egrep; do
3771 for ac_exec_ext in '' $ac_executable_extensions; do
3772 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3773 as_fn_executable_p "$ac_path_EGREP" || continue
3774 # Check for GNU ac_path_EGREP and select it if it is found.
3775 # Check for GNU $ac_path_EGREP
3776 case `"$ac_path_EGREP" --version 2>&1` in
3777 *GNU*)
3778 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3779 *)
3780 ac_count=0
3781 $as_echo_n 0123456789 >"conftest.in"
3782 while :
3783 do
3784 cat "conftest.in" "conftest.in" >"conftest.tmp"
3785 mv "conftest.tmp" "conftest.in"
3786 cp "conftest.in" "conftest.nl"
3787 $as_echo 'EGREP' >> "conftest.nl"
3788 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3789 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3790 as_fn_arith $ac_count + 1 && ac_count=$as_val
3791 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3792 # Best one so far, save it but keep looking for a better one
3793 ac_cv_path_EGREP="$ac_path_EGREP"
3794 ac_path_EGREP_max=$ac_count
3795 fi
3796 # 10*(2^10) chars as input seems more than enough
3797 test $ac_count -gt 10 && break
3798 done
3799 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3800 esac
3801
3802 $ac_path_EGREP_found && break 3
3803 done
3804 done
3805 done
3806 IFS=$as_save_IFS
3807 if test -z "$ac_cv_path_EGREP"; then
3808 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3809 fi
3810 else
3811 ac_cv_path_EGREP=$EGREP
3812 fi
3813
3814 fi
3815 fi
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3817 $as_echo "$ac_cv_path_EGREP" >&6; }
3818 EGREP="$ac_cv_path_EGREP"
3819
3820
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3822 $as_echo_n "checking for ANSI C header files... " >&6; }
3823 if ${ac_cv_header_stdc+:} false; then :
3824 $as_echo_n "(cached) " >&6
3825 else
3826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3827 /* end confdefs.h. */
3828 #include <stdlib.h>
3829 #include <stdarg.h>
3830 #include <string.h>
3831 #include <float.h>
3832
3833 int
3834 main ()
3835 {
3836
3837 ;
3838 return 0;
3839 }
3840 _ACEOF
3841 if ac_fn_c_try_compile "$LINENO"; then :
3842 ac_cv_header_stdc=yes
3843 else
3844 ac_cv_header_stdc=no
3845 fi
3846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3847
3848 if test $ac_cv_header_stdc = yes; then
3849 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851 /* end confdefs.h. */
3852 #include <string.h>
3853
3854 _ACEOF
3855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3856 $EGREP "memchr" >/dev/null 2>&1; then :
3857
3858 else
3859 ac_cv_header_stdc=no
3860 fi
3861 rm -f conftest*
3862
3863 fi
3864
3865 if test $ac_cv_header_stdc = yes; then
3866 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868 /* end confdefs.h. */
3869 #include <stdlib.h>
3870
3871 _ACEOF
3872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3873 $EGREP "free" >/dev/null 2>&1; then :
3874
3875 else
3876 ac_cv_header_stdc=no
3877 fi
3878 rm -f conftest*
3879
3880 fi
3881
3882 if test $ac_cv_header_stdc = yes; then
3883 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3884 if test "$cross_compiling" = yes; then :
3885 :
3886 else
3887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3888 /* end confdefs.h. */
3889 #include <ctype.h>
3890 #include <stdlib.h>
3891 #if ((' ' & 0x0FF) == 0x020)
3892 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3893 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3894 #else
3895 # define ISLOWER(c) \
3896 (('a' <= (c) && (c) <= 'i') \
3897 || ('j' <= (c) && (c) <= 'r') \
3898 || ('s' <= (c) && (c) <= 'z'))
3899 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3900 #endif
3901
3902 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3903 int
3904 main ()
3905 {
3906 int i;
3907 for (i = 0; i < 256; i++)
3908 if (XOR (islower (i), ISLOWER (i))
3909 || toupper (i) != TOUPPER (i))
3910 return 2;
3911 return 0;
3912 }
3913 _ACEOF
3914 if ac_fn_c_try_run "$LINENO"; then :
3915
3916 else
3917 ac_cv_header_stdc=no
3918 fi
3919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3920 conftest.$ac_objext conftest.beam conftest.$ac_ext
3921 fi
3922
3923 fi
3924 fi
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3926 $as_echo "$ac_cv_header_stdc" >&6; }
3927 if test $ac_cv_header_stdc = yes; then
3928
3929 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3930
3931 fi
3932
3933 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3934 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3935 inttypes.h stdint.h unistd.h
3936 do :
3937 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3938 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3939 "
3940 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3941 cat >>confdefs.h <<_ACEOF
3942 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3943 _ACEOF
3944
3945 fi
3946
3947 done
3948
3949
3950 for ac_header in fcntl.h limits.h sys/time.h unistd.h
3951 do :
3952 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3953 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3954 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3955 cat >>confdefs.h <<_ACEOF
3956 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3957 _ACEOF
3958
3959 fi
3960
3961 done
3962
3963
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
3965 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
3966 if ${ac_cv_c_const+:} false; then :
3967 $as_echo_n "(cached) " >&6
3968 else
3969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970 /* end confdefs.h. */
3971
3972 int
3973 main ()
3974 {
3975
3976 #ifndef __cplusplus
3977 /* Ultrix mips cc rejects this sort of thing. */
3978 typedef int charset[2];
3979 const charset cs = { 0, 0 };
3980 /* SunOS 4.1.1 cc rejects this. */
3981 char const *const *pcpcc;
3982 char **ppc;
3983 /* NEC SVR4.0.2 mips cc rejects this. */
3984 struct point {int x, y;};
3985 static struct point const zero = {0,0};
3986 /* AIX XL C 1.02.0.0 rejects this.
3987 It does not let you subtract one const X* pointer from another in
3988 an arm of an if-expression whose if-part is not a constant
3989 expression */
3990 const char *g = "string";
3991 pcpcc = &g + (g ? g-g : 0);
3992 /* HPUX 7.0 cc rejects these. */
3993 ++pcpcc;
3994 ppc = (char**) pcpcc;
3995 pcpcc = (char const *const *) ppc;
3996 { /* SCO 3.2v4 cc rejects this sort of thing. */
3997 char tx;
3998 char *t = &tx;
3999 char const *s = 0 ? (char *) 0 : (char const *) 0;
4000
4001 *t++ = 0;
4002 if (s) return 0;
4003 }
4004 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4005 int x[] = {25, 17};
4006 const int *foo = &x[0];
4007 ++foo;
4008 }
4009 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4010 typedef const int *iptr;
4011 iptr p = 0;
4012 ++p;
4013 }
4014 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4015 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4016 struct s { int j; const int *ap[3]; } bx;
4017 struct s *b = &bx; b->j = 5;
4018 }
4019 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4020 const int foo = 10;
4021 if (!foo) return 0;
4022 }
4023 return !cs[0] && !zero.x;
4024 #endif
4025
4026 ;
4027 return 0;
4028 }
4029 _ACEOF
4030 if ac_fn_c_try_compile "$LINENO"; then :
4031 ac_cv_c_const=yes
4032 else
4033 ac_cv_c_const=no
4034 fi
4035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4036 fi
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4038 $as_echo "$ac_cv_c_const" >&6; }
4039 if test $ac_cv_c_const = no; then
4040
4041 $as_echo "#define const /**/" >>confdefs.h
4042
4043 fi
4044
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4046 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4047 if ${ac_cv_header_time+:} false; then :
4048 $as_echo_n "(cached) " >&6
4049 else
4050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051 /* end confdefs.h. */
4052 #include <sys/types.h>
4053 #include <sys/time.h>
4054 #include <time.h>
4055
4056 int
4057 main ()
4058 {
4059 if ((struct tm *) 0)
4060 return 0;
4061 ;
4062 return 0;
4063 }
4064 _ACEOF
4065 if ac_fn_c_try_compile "$LINENO"; then :
4066 ac_cv_header_time=yes
4067 else
4068 ac_cv_header_time=no
4069 fi
4070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4071 fi
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4073 $as_echo "$ac_cv_header_time" >&6; }
4074 if test $ac_cv_header_time = yes; then
4075
4076 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4077
4078 fi
4079
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
4081 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
4082 if ${ac_cv_struct_tm+:} false; then :
4083 $as_echo_n "(cached) " >&6
4084 else
4085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h. */
4087 #include <sys/types.h>
4088 #include <time.h>
4089
4090 int
4091 main ()
4092 {
4093 struct tm tm;
4094 int *p = &tm.tm_sec;
4095 return !p;
4096 ;
4097 return 0;
4098 }
4099 _ACEOF
4100 if ac_fn_c_try_compile "$LINENO"; then :
4101 ac_cv_struct_tm=time.h
4102 else
4103 ac_cv_struct_tm=sys/time.h
4104 fi
4105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4106 fi
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
4108 $as_echo "$ac_cv_struct_tm" >&6; }
4109 if test $ac_cv_struct_tm = sys/time.h; then
4110
4111 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
4112
4113 fi
4114
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
4116 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
4117 if ${ac_cv_type_uid_t+:} false; then :
4118 $as_echo_n "(cached) " >&6
4119 else
4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121 /* end confdefs.h. */
4122 #include <sys/types.h>
4123
4124 _ACEOF
4125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4126 $EGREP "uid_t" >/dev/null 2>&1; then :
4127 ac_cv_type_uid_t=yes
4128 else
4129 ac_cv_type_uid_t=no
4130 fi
4131 rm -f conftest*
4132
4133 fi
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
4135 $as_echo "$ac_cv_type_uid_t" >&6; }
4136 if test $ac_cv_type_uid_t = no; then
4137
4138 $as_echo "#define uid_t int" >>confdefs.h
4139
4140
4141 $as_echo "#define gid_t int" >>confdefs.h
4142
4143 fi
4144
4145
4146 for ac_func in vprintf
4147 do :
4148 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
4149 if test "x$ac_cv_func_vprintf" = xyes; then :
4150 cat >>confdefs.h <<_ACEOF
4151 #define HAVE_VPRINTF 1
4152 _ACEOF
4153
4154 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
4155 if test "x$ac_cv_func__doprnt" = xyes; then :
4156
4157 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
4158
4159 fi
4160
4161 fi
4162 done
4163
4164
4165 for ac_func in getcwd gethostname gettimeofday mkdir strstr
4166 do :
4167 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4168 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4169 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4170 cat >>confdefs.h <<_ACEOF
4171 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4172 _ACEOF
4173
4174 fi
4175 done
4176
4177
4178
4179
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports dynamic_cast<>" >&5
4181 $as_echo_n "checking whether the compiler supports dynamic_cast<>... " >&6; }
4182 if ${ac_cv_cxx_dynamic_cast+:} false; then :
4183 $as_echo_n "(cached) " >&6
4184 else
4185
4186 ac_ext=cpp
4187 ac_cpp='$CXXCPP $CPPFLAGS'
4188 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4189 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4190 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4191
4192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193 /* end confdefs.h. */
4194 #include <typeinfo>
4195 class Base { public : Base () {} virtual void f () = 0;};
4196 class Derived : public Base { public : Derived () {} virtual void f () {} };
4197 int
4198 main ()
4199 {
4200
4201 Derived d; Base& b=d; return dynamic_cast<Derived*>(&b) ? 0 : 1;
4202 ;
4203 return 0;
4204 }
4205 _ACEOF
4206 if ac_fn_cxx_try_compile "$LINENO"; then :
4207 ac_cv_cxx_dynamic_cast=yes
4208 else
4209 ac_cv_cxx_dynamic_cast=no
4210 fi
4211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4212 ac_ext=c
4213 ac_cpp='$CPP $CPPFLAGS'
4214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4217
4218
4219 fi
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_dynamic_cast" >&5
4221 $as_echo "$ac_cv_cxx_dynamic_cast" >&6; }
4222 if test "$ac_cv_cxx_dynamic_cast" = yes; then
4223
4224 $as_echo "#define HAVE_DYNAMIC_CAST /**/" >>confdefs.h
4225
4226 fi
4227
4228
4229
4230 # Check whether --with-condor was given.
4231 if test "${with_condor+set}" = set; then :
4232 withval=$with_condor; CONDOR_DIR=$withval
4233 fi
4234
4235 if test -z "$CONDOR_DIR"; then
4236 # Extract the first word of "condor_status", so it can be a program name with args.
4237 set dummy condor_status; ac_word=$2
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4239 $as_echo_n "checking for $ac_word... " >&6; }
4240 if ${ac_cv_path_JUNK1+:} false; then :
4241 $as_echo_n "(cached) " >&6
4242 else
4243 case $JUNK1 in
4244 [\\/]* | ?:[\\/]*)
4245 ac_cv_path_JUNK1="$JUNK1" # Let the user override the test with a path.
4246 ;;
4247 *)
4248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249 for as_dir in $PATH
4250 do
4251 IFS=$as_save_IFS
4252 test -z "$as_dir" && as_dir=.
4253 for ac_exec_ext in '' $ac_executable_extensions; do
4254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4255 ac_cv_path_JUNK1="$as_dir/$ac_word$ac_exec_ext"
4256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4257 break 2
4258 fi
4259 done
4260 done
4261 IFS=$as_save_IFS
4262
4263 ;;
4264 esac
4265 fi
4266 JUNK1=$ac_cv_path_JUNK1
4267 if test -n "$JUNK1"; then
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JUNK1" >&5
4269 $as_echo "$JUNK1" >&6; }
4270 else
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4272 $as_echo "no" >&6; }
4273 fi
4274
4275
4276 if test -z "$JUNK1"; then
4277 echo "-- Can't build MW without Condor, please install Condor first."
4278 exit 1
4279 else
4280 JUNK2=`dirname $JUNK1`
4281 CONDOR_DIR=`dirname $JUNK2`
4282 echo "-- Using Condor installed in $CONDOR_DIR"
4283
4284 fi
4285 else
4286 echo "-- Using Condor installed in $CONDOR_DIR"
4287 fi
4288
4289 cat >>confdefs.h <<_ACEOF
4290 #define CONDOR_DIR "$CONDOR_DIR"
4291 _ACEOF
4292
4293
4294
4295 # Check whether --with-mwfile was given.
4296 if test "${with_mwfile+set}" = set; then :
4297 withval=$with_mwfile; USE_MWFILE=$withval
4298 else
4299 USE_MWFILE=no
4300 fi
4301
4302 if test -z $USE_MWFILE
4303 then
4304 USE_MWFILE=true
4305 echo "-- configuring MW to use MW-FILE RMCOMM Layer"
4306 else
4307 if test $USE_MWFILE = no
4308 then
4309 USE_MWFILE=no
4310 echo "-- configuring MW not to use MW-FILE RMCOMM Layer"
4311 else
4312 USE_MWFILE=true
4313 echo "-- configuring MW to use MW-FILE RMCOMM Layer"
4314 fi
4315 fi
4316
4317
4318 machtype=`uname -m`
4319 case $machtype in
4320 x86_64)
4321 echo "On x86_64, forcing mwfile implementation off"
4322 USE_MWFILE=no
4323 ;;
4324 esac
4325
4326
4327
4328 # Check whether --with-chirp was given.
4329 if test "${with_chirp+set}" = set; then :
4330 withval=$with_chirp; USE_CHIRP=$withval
4331 fi
4332
4333
4334 if test -z $USE_CHIRP
4335 then
4336 echo "-- Not using chirp with MW-File"
4337 else
4338 echo "-- Using chirp with MW-File"
4339 $as_echo "#define USE_CHIRP 1" >>confdefs.h
4340
4341
4342 fi
4343
4344
4345
4346 # Check whether --with-pvm-arch was given.
4347 if test "${with_pvm_arch+set}" = set; then :
4348 withval=$with_pvm_arch; PVM_ARCH=$withval
4349 fi
4350
4351
4352 # Check whether --with-pvm was given.
4353 if test "${with_pvm+set}" = set; then :
4354 withval=$with_pvm; PVM_ROOT=$withval
4355 else
4356 PVM_ROOT=no
4357 fi
4358
4359 if test -z "$PVM_ROOT"; then
4360 # Extract the first word of "pvm", so it can be a program name with args.
4361 set dummy pvm; ac_word=$2
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4363 $as_echo_n "checking for $ac_word... " >&6; }
4364 if ${ac_cv_path_JUNK3+:} false; then :
4365 $as_echo_n "(cached) " >&6
4366 else
4367 case $JUNK3 in
4368 [\\/]* | ?:[\\/]*)
4369 ac_cv_path_JUNK3="$JUNK3" # Let the user override the test with a path.
4370 ;;
4371 *)
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373 for as_dir in $PATH
4374 do
4375 IFS=$as_save_IFS
4376 test -z "$as_dir" && as_dir=.
4377 for ac_exec_ext in '' $ac_executable_extensions; do
4378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4379 ac_cv_path_JUNK3="$as_dir/$ac_word$ac_exec_ext"
4380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4381 break 2
4382 fi
4383 done
4384 done
4385 IFS=$as_save_IFS
4386
4387 ;;
4388 esac
4389 fi
4390 JUNK3=$ac_cv_path_JUNK3
4391 if test -n "$JUNK3"; then
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JUNK3" >&5
4393 $as_echo "$JUNK3" >&6; }
4394 else
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4396 $as_echo "no" >&6; }
4397 fi
4398
4399
4400 if test -z "$JUNK3"; then
4401 echo "-- Can't build MW without PVM, please install CondorPvm first."
4402 exit 1
4403 else
4404 JUNK4=`dirname $JUNK3`
4405 PVM_ROOT=`dirname $JUNK4`/
4406 echo "-- Using PVM lib installed in $PVM_ROOT/lib/$PVM_ARCH"
4407
4408
4409 fi
4410 else
4411 if test $PVM_ROOT = no
4412 then
4413 echo "-- Not using PVM"
4414 else
4415 echo "-- Using PVM lib installed in $PVM_ROOT/lib/$PVM_ARCH"
4416 fi
4417 fi
4418
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi-directory" >&5
4420 $as_echo_n "checking for mpi-directory... " >&6; }
4421
4422 # Check whether --with-mpi was given.
4423 if test "${with_mpi+set}" = set; then :
4424 withval=$with_mpi; USE_MPI=$withval
4425 else
4426 USE_MPI=no
4427 fi
4428
4429 if test -z $USE_MPI
4430 then
4431 # Extract the first word of "mpicxx", so it can be a program name with args.
4432 set dummy mpicxx; ac_word=$2
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4434 $as_echo_n "checking for $ac_word... " >&6; }
4435 if ${ac_cv_path_JUNK5+:} false; then :
4436 $as_echo_n "(cached) " >&6
4437 else
4438 case $JUNK5 in
4439 [\\/]* | ?:[\\/]*)
4440 ac_cv_path_JUNK5="$JUNK5" # Let the user override the test with a path.
4441 ;;
4442 *)
4443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 for as_dir in $PATH
4445 do
4446 IFS=$as_save_IFS
4447 test -z "$as_dir" && as_dir=.
4448 for ac_exec_ext in '' $ac_executable_extensions; do
4449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4450 ac_cv_path_JUNK5="$as_dir/$ac_word$ac_exec_ext"
4451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4452 break 2
4453 fi
4454 done
4455 done
4456 IFS=$as_save_IFS
4457
4458 ;;
4459 esac
4460 fi
4461 JUNK5=$ac_cv_path_JUNK5
4462 if test -n "$JUNK5"; then
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JUNK5" >&5
4464 $as_echo "$JUNK5" >&6; }
4465 else
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4467 $as_echo "no" >&6; }
4468 fi
4469
4470
4471 if test -z "$JUNK5"; then
4472 echo "-- Can't find mpicxx, please install mpi first."
4473 exit 1
4474 else
4475 echo "-- MPI is set to $USE_MPI"
4476 echo "-- Using MPI lib $JUNK5"
4477 MPICXX=mpicxx
4478
4479 echo "-- The MPI Compiler MPICXX is set at $MPICXX"
4480 fi
4481 else
4482 if test $USE_MPI = no
4483 then
4484 echo "-- Not using MPI"
4485 else
4486 MPICXX=mpicxx
4487
4488 echo "-- The MPI Compiler MPICXX is set at $MPICXX"
4489 fi
4490 fi
4491
4492
4493 if opsys=`uname -s`
4494 then
4495 echo "-- Operating system is $opsys"
4496 else
4497 echo "-- Can't find the 'uname' program!"
4498 exit 1
4499 fi
4500
4501 case $opsys in
4502 SunOS*)
4503 SOCKET_LIB="-lnsl -lsocket " ;;
4504 *)
4505 SOCKET_LIB= ;;
4506 esac
4507
4508
4509 if test $opsys = "Linux"
4510 then
4511 echo "-- Using poll instead of select for supporting > 1024 socket workers"
4512 $as_echo "#define USE_POLL 1" >>confdefs.h
4513
4514
4515 fi
4516
4517
4518 USE_NWS=no
4519
4520 case $USE_NWS in
4521 yes*)
4522 MISC_DEFN=-DNWSENABLED;
4523 NWS_SENSOR_PATH=`dirname $NWS_SENSOR_PING`
4524 NWS_PATH=`dirname $NWS_SENSOR_PATH`
4525 MISC_LIB=$NWS_PATH/libnws
4526 ;;
4527 *)
4528 MISC_DEFN=
4529 MISC_LIB=-lNWS;
4530 ;;
4531 esac
4532
4533
4534
4535
4536
4537 # Check whether --with-measure was given.
4538 if test "${with_measure+set}" = set; then :
4539 withval=$with_measure; MEASURE_DEFN='-DMEASURE'
4540 fi
4541
4542
4543
4544 ENABLE_MWINDEPENDENT=yes
4545
4546
4547 MW_LIBDIR=`pwd`/lib
4548
4549 MW_LIBDIR_DEBUG=`pwd`/debug_lib
4550
4551
4552 if test -d lib; then
4553 echo "-- The lib directory already exists, no need to create"
4554 else
4555 echo "-- Creating lib directory"
4556 mkdir lib
4557 fi
4558
4559 if test -d debug_lib; then
4560 echo "-- The debug_lib directory already exists, no need to create"
4561 else
4562 echo "-- Creating debug_lib directory"
4563 mkdir debug_lib
4564 fi
4565
4566 EXTRA_MAKEFILES=`echo "src/RMComm/MW-Independent/Makefile"`
4567 ac_config_files="$ac_config_files Makefile src/Makefile src/RMComm/Makefile src/RMComm/MW-File/Makefile src/RMComm/MW-CondorPVM/Makefile src/RMComm/MW-Socket/Makefile src/RMComm/MW-StaticMPI/Makefile src/MWControlTasks/Makefile src/BlackBox/Makefile $EXTRA_MAKEFILES"
4568
4569 ac_config_commands="$ac_config_commands default"
4570
4571
4572
4573 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4574 # Let make expand exec_prefix.
4575 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4576
4577 # Transform confdefs.h into DEFS.
4578 # Protect against shell expansion while executing Makefile rules.
4579 # Protect against Makefile macro expansion.
4580 #
4581 # If the first sed substitution is executed (which looks for macros that
4582 # take arguments), then branch to the quote section. Otherwise,
4583 # look for a macro that doesn't take arguments.
4584 ac_script='
4585 :mline
4586 /\\$/{
4587 N
4588 s,\\\n,,
4589 b mline
4590 }
4591 t clear
4592 :clear
4593 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
4594 t quote
4595 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
4596 t quote
4597 b any
4598 :quote
4599 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
4600 s/\[/\\&/g
4601 s/\]/\\&/g
4602 s/\$/$$/g
4603 H
4604 :any
4605 ${
4606 g
4607 s/^\n//
4608 s/\n/ /g
4609 p
4610 }
4611 '
4612 DEFS=`sed -n "$ac_script" confdefs.h`
4613
4614
4615 ac_libobjs=
4616 ac_ltlibobjs=
4617 U=
4618 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4619 # 1. Remove the extension, and $U if already installed.
4620 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4621 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4622 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4623 # will be set to the directory where LIBOBJS objects are built.
4624 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4625 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4626 done
4627 LIBOBJS=$ac_libobjs
4628
4629 LTLIBOBJS=$ac_ltlibobjs
4630
4631
4632
4633 : "${CONFIG_STATUS=./config.status}"
4634 ac_write_fail=0
4635 ac_clean_files_save=$ac_clean_files
4636 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4638 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4639 as_write_fail=0
4640 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4641 #! $SHELL
4642 # Generated by $as_me.
4643 # Run this file to recreate the current configuration.
4644 # Compiler output produced by configure, useful for debugging
4645 # configure, is in config.log if it exists.
4646
4647 debug=false
4648 ac_cs_recheck=false
4649 ac_cs_silent=false
4650
4651 SHELL=\${CONFIG_SHELL-$SHELL}
4652 export SHELL
4653 _ASEOF
4654 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4655 ## -------------------- ##
4656 ## M4sh Initialization. ##
4657 ## -------------------- ##
4658
4659 # Be more Bourne compatible
4660 DUALCASE=1; export DUALCASE # for MKS sh
4661 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4662 emulate sh
4663 NULLCMD=:
4664 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4665 # is contrary to our usage. Disable this feature.
4666 alias -g '${1+"$@"}'='"$@"'
4667 setopt NO_GLOB_SUBST
4668 else
4669 case `(set -o) 2>/dev/null` in #(
4670 *posix*) :
4671 set -o posix ;; #(
4672 *) :
4673 ;;
4674 esac
4675 fi
4676
4677
4678 as_nl='
4679 '
4680 export as_nl
4681 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4682 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4683 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4684 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4685 # Prefer a ksh shell builtin over an external printf program on Solaris,
4686 # but without wasting forks for bash or zsh.
4687 if test -z "$BASH_VERSION$ZSH_VERSION" \
4688 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4689 as_echo='print -r --'
4690 as_echo_n='print -rn --'
4691 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4692 as_echo='printf %s\n'
4693 as_echo_n='printf %s'
4694 else
4695 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4696 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4697 as_echo_n='/usr/ucb/echo -n'
4698 else
4699 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4700 as_echo_n_body='eval
4701 arg=$1;
4702 case $arg in #(
4703 *"$as_nl"*)
4704 expr "X$arg" : "X\\(.*\\)$as_nl";
4705 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4706 esac;
4707 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4708 '
4709 export as_echo_n_body
4710 as_echo_n='sh -c $as_echo_n_body as_echo'
4711 fi
4712 export as_echo_body
4713 as_echo='sh -c $as_echo_body as_echo'
4714 fi
4715
4716 # The user is always right.
4717 if test "${PATH_SEPARATOR+set}" != set; then
4718 PATH_SEPARATOR=:
4719 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4720 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4721 PATH_SEPARATOR=';'
4722 }
4723 fi
4724
4725
4726 # IFS
4727 # We need space, tab and new line, in precisely that order. Quoting is
4728 # there to prevent editors from complaining about space-tab.
4729 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4730 # splitting by setting IFS to empty value.)
4731 IFS=" "" $as_nl"
4732
4733 # Find who we are. Look in the path if we contain no directory separator.
4734 as_myself=
4735 case $0 in #((
4736 *[\\/]* ) as_myself=$0 ;;
4737 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 for as_dir in $PATH
4739 do
4740 IFS=$as_save_IFS
4741 test -z "$as_dir" && as_dir=.
4742 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4743 done
4744 IFS=$as_save_IFS
4745
4746 ;;
4747 esac
4748 # We did not find ourselves, most probably we were run as `sh COMMAND'
4749 # in which case we are not to be found in the path.
4750 if test "x$as_myself" = x; then
4751 as_myself=$0
4752 fi
4753 if test ! -f "$as_myself"; then
4754 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4755 exit 1
4756 fi
4757
4758 # Unset variables that we do not need and which cause bugs (e.g. in
4759 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4760 # suppresses any "Segmentation fault" message there. '((' could
4761 # trigger a bug in pdksh 5.2.14.
4762 for as_var in BASH_ENV ENV MAIL MAILPATH
4763 do eval test x\${$as_var+set} = xset \
4764 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4765 done
4766 PS1='$ '
4767 PS2='> '
4768 PS4='+ '
4769
4770 # NLS nuisances.
4771 LC_ALL=C
4772 export LC_ALL
4773 LANGUAGE=C
4774 export LANGUAGE
4775
4776 # CDPATH.
4777 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4778
4779
4780 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4781 # ----------------------------------------
4782 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4783 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4784 # script with STATUS, using 1 if that was 0.
4785 as_fn_error ()
4786 {
4787 as_status=$1; test $as_status -eq 0 && as_status=1
4788 if test "$4"; then
4789 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4790 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4791 fi
4792 $as_echo "$as_me: error: $2" >&2
4793 as_fn_exit $as_status
4794 } # as_fn_error
4795
4796
4797 # as_fn_set_status STATUS
4798 # -----------------------
4799 # Set $? to STATUS, without forking.
4800 as_fn_set_status ()
4801 {
4802 return $1
4803 } # as_fn_set_status
4804
4805 # as_fn_exit STATUS
4806 # -----------------
4807 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4808 as_fn_exit ()
4809 {
4810 set +e
4811 as_fn_set_status $1
4812 exit $1
4813 } # as_fn_exit
4814
4815 # as_fn_unset VAR
4816 # ---------------
4817 # Portably unset VAR.
4818 as_fn_unset ()
4819 {
4820 { eval $1=; unset $1;}
4821 }
4822 as_unset=as_fn_unset
4823 # as_fn_append VAR VALUE
4824 # ----------------------
4825 # Append the text in VALUE to the end of the definition contained in VAR. Take
4826 # advantage of any shell optimizations that allow amortized linear growth over
4827 # repeated appends, instead of the typical quadratic growth present in naive
4828 # implementations.
4829 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4830 eval 'as_fn_append ()
4831 {
4832 eval $1+=\$2
4833 }'
4834 else
4835 as_fn_append ()
4836 {
4837 eval $1=\$$1\$2
4838 }
4839 fi # as_fn_append
4840
4841 # as_fn_arith ARG...
4842 # ------------------
4843 # Perform arithmetic evaluation on the ARGs, and store the result in the
4844 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4845 # must be portable across $(()) and expr.
4846 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4847 eval 'as_fn_arith ()
4848 {
4849 as_val=$(( $* ))
4850 }'
4851 else
4852 as_fn_arith ()
4853 {
4854 as_val=`expr "$@" || test $? -eq 1`
4855 }
4856 fi # as_fn_arith
4857
4858
4859 if expr a : '\(a\)' >/dev/null 2>&1 &&
4860 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4861 as_expr=expr
4862 else
4863 as_expr=false
4864 fi
4865
4866 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4867 as_basename=basename
4868 else
4869 as_basename=false
4870 fi
4871
4872 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4873 as_dirname=dirname
4874 else
4875 as_dirname=false
4876 fi
4877
4878 as_me=`$as_basename -- "$0" ||
4879 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4880 X"$0" : 'X\(//\)$' \| \
4881 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4882 $as_echo X/"$0" |
4883 sed '/^.*\/\([^/][^/]*\)\/*$/{
4884 s//\1/
4885 q
4886 }
4887 /^X\/\(\/\/\)$/{
4888 s//\1/
4889 q
4890 }
4891 /^X\/\(\/\).*/{
4892 s//\1/
4893 q
4894 }
4895 s/.*/./; q'`
4896
4897 # Avoid depending upon Character Ranges.
4898 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4899 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4900 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4901 as_cr_digits='0123456789'
4902 as_cr_alnum=$as_cr_Letters$as_cr_digits
4903
4904 ECHO_C= ECHO_N= ECHO_T=
4905 case `echo -n x` in #(((((
4906 -n*)
4907 case `echo 'xy\c'` in
4908 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4909 xy) ECHO_C='\c';;
4910 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4911 ECHO_T=' ';;
4912 esac;;
4913 *)
4914 ECHO_N='-n';;
4915 esac
4916
4917 rm -f conf$$ conf$$.exe conf$$.file
4918 if test -d conf$$.dir; then
4919 rm -f conf$$.dir/conf$$.file
4920 else
4921 rm -f conf$$.dir
4922 mkdir conf$$.dir 2>/dev/null
4923 fi
4924 if (echo >conf$$.file) 2>/dev/null; then
4925 if ln -s conf$$.file conf$$ 2>/dev/null; then
4926 as_ln_s='ln -s'
4927 # ... but there are two gotchas:
4928 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4929 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4930 # In both cases, we have to default to `cp -pR'.
4931 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4932 as_ln_s='cp -pR'
4933 elif ln conf$$.file conf$$ 2>/dev/null; then
4934 as_ln_s=ln
4935 else
4936 as_ln_s='cp -pR'
4937 fi
4938 else
4939 as_ln_s='cp -pR'
4940 fi
4941 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4942 rmdir conf$$.dir 2>/dev/null
4943
4944
4945 # as_fn_mkdir_p
4946 # -------------
4947 # Create "$as_dir" as a directory, including parents if necessary.
4948 as_fn_mkdir_p ()
4949 {
4950
4951 case $as_dir in #(
4952 -*) as_dir=./$as_dir;;
4953 esac
4954 test -d "$as_dir" || eval $as_mkdir_p || {
4955 as_dirs=
4956 while :; do
4957 case $as_dir in #(
4958 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4959 *) as_qdir=$as_dir;;
4960 esac
4961 as_dirs="'$as_qdir' $as_dirs"
4962 as_dir=`$as_dirname -- "$as_dir" ||
4963 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4964 X"$as_dir" : 'X\(//\)[^/]' \| \
4965 X"$as_dir" : 'X\(//\)$' \| \
4966 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4967 $as_echo X"$as_dir" |
4968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4969 s//\1/
4970 q
4971 }
4972 /^X\(\/\/\)[^/].*/{
4973 s//\1/
4974 q
4975 }
4976 /^X\(\/\/\)$/{
4977 s//\1/
4978 q
4979 }
4980 /^X\(\/\).*/{
4981 s//\1/
4982 q
4983 }
4984 s/.*/./; q'`
4985 test -d "$as_dir" && break
4986 done
4987 test -z "$as_dirs" || eval "mkdir $as_dirs"
4988 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4989
4990
4991 } # as_fn_mkdir_p
4992 if mkdir -p . 2>/dev/null; then
4993 as_mkdir_p='mkdir -p "$as_dir"'
4994 else
4995 test -d ./-p && rmdir ./-p
4996 as_mkdir_p=false
4997 fi
4998
4999
5000 # as_fn_executable_p FILE
5001 # -----------------------
5002 # Test if FILE is an executable regular file.
5003 as_fn_executable_p ()
5004 {
5005 test -f "$1" && test -x "$1"
5006 } # as_fn_executable_p
5007 as_test_x='test -x'
5008 as_executable_p=as_fn_executable_p
5009
5010 # Sed expression to map a string onto a valid CPP name.
5011 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5012
5013 # Sed expression to map a string onto a valid variable name.
5014 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5015
5016
5017 exec 6>&1
5018 ## ----------------------------------- ##
5019 ## Main body of $CONFIG_STATUS script. ##
5020 ## ----------------------------------- ##
5021 _ASEOF
5022 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5023
5024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5025 # Save the log message, to keep $0 and so on meaningful, and to
5026 # report actual input values of CONFIG_FILES etc. instead of their
5027 # values after options handling.
5028 ac_log="
5029 This file was extended by $as_me, which was
5030 generated by GNU Autoconf 2.69. Invocation command line was
5031
5032 CONFIG_FILES = $CONFIG_FILES
5033 CONFIG_HEADERS = $CONFIG_HEADERS
5034 CONFIG_LINKS = $CONFIG_LINKS
5035 CONFIG_COMMANDS = $CONFIG_COMMANDS
5036 $ $0 $@
5037
5038 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5039 "
5040
5041 _ACEOF
5042
5043 case $ac_config_files in *"
5044 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5045 esac
5046
5047
5048
5049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5050 # Files that config.status was made for.
5051 config_files="$ac_config_files"
5052 config_commands="$ac_config_commands"
5053
5054 _ACEOF
5055
5056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5057 ac_cs_usage="\
5058 \`$as_me' instantiates files and other configuration actions
5059 from templates according to the current configuration. Unless the files
5060 and actions are specified as TAGs, all are instantiated by default.
5061
5062 Usage: $0 [OPTION]... [TAG]...
5063
5064 -h, --help print this help, then exit
5065 -V, --version print version number and configuration settings, then exit
5066 --config print configuration, then exit
5067 -q, --quiet, --silent
5068 do not print progress messages
5069 -d, --debug don't remove temporary files
5070 --recheck update $as_me by reconfiguring in the same conditions
5071 --file=FILE[:TEMPLATE]
5072 instantiate the configuration file FILE
5073
5074 Configuration files:
5075 $config_files
5076
5077 Configuration commands:
5078 $config_commands
5079
5080 Report bugs to the package provider."
5081
5082 _ACEOF
5083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5084 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5085 ac_cs_version="\\
5086 config.status
5087 configured by $0, generated by GNU Autoconf 2.69,
5088 with options \\"\$ac_cs_config\\"
5089
5090 Copyright (C) 2012 Free Software Foundation, Inc.
5091 This config.status script is free software; the Free Software Foundation
5092 gives unlimited permission to copy, distribute and modify it."
5093
5094 ac_pwd='$ac_pwd'
5095 srcdir='$srcdir'
5096 INSTALL='$INSTALL'
5097 test -n "\$AWK" || AWK=awk
5098 _ACEOF
5099
5100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5101 # The default lists apply if the user does not specify any file.
5102 ac_need_defaults=:
5103 while test $# != 0
5104 do
5105 case $1 in
5106 --*=?*)
5107 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5108 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5109 ac_shift=:
5110 ;;
5111 --*=)
5112 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5113 ac_optarg=
5114 ac_shift=:
5115 ;;
5116 *)
5117 ac_option=$1
5118 ac_optarg=$2
5119 ac_shift=shift
5120 ;;
5121 esac
5122
5123 case $ac_option in
5124 # Handling of the options.
5125 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5126 ac_cs_recheck=: ;;
5127 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5128 $as_echo "$ac_cs_version"; exit ;;
5129 --config | --confi | --conf | --con | --co | --c )
5130 $as_echo "$ac_cs_config"; exit ;;
5131 --debug | --debu | --deb | --de | --d | -d )
5132 debug=: ;;
5133 --file | --fil | --fi | --f )
5134 $ac_shift
5135 case $ac_optarg in
5136 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5137 '') as_fn_error $? "missing file argument" ;;
5138 esac
5139 as_fn_append CONFIG_FILES " '$ac_optarg'"
5140 ac_need_defaults=false;;
5141 --he | --h | --help | --hel | -h )
5142 $as_echo "$ac_cs_usage"; exit ;;
5143 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5144 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5145 ac_cs_silent=: ;;
5146
5147 # This is an error.
5148 -*) as_fn_error $? "unrecognized option: \`$1'
5149 Try \`$0 --help' for more information." ;;
5150
5151 *) as_fn_append ac_config_targets " $1"
5152 ac_need_defaults=false ;;
5153
5154 esac
5155 shift
5156 done
5157
5158 ac_configure_extra_args=
5159
5160 if $ac_cs_silent; then
5161 exec 6>/dev/null
5162 ac_configure_extra_args="$ac_configure_extra_args --silent"
5163 fi
5164
5165 _ACEOF
5166 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5167 if \$ac_cs_recheck; then
5168 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5169 shift
5170 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5171 CONFIG_SHELL='$SHELL'
5172 export CONFIG_SHELL
5173 exec "\$@"
5174 fi
5175
5176 _ACEOF
5177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5178 exec 5>>config.log
5179 {
5180 echo
5181 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5182 ## Running $as_me. ##
5183 _ASBOX
5184 $as_echo "$ac_log"
5185 } >&5
5186
5187 _ACEOF
5188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5189 _ACEOF
5190
5191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5192
5193 # Handling of arguments.
5194 for ac_config_target in $ac_config_targets
5195 do
5196 case $ac_config_target in
5197 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5198 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5199 "src/RMComm/Makefile") CONFIG_FILES="$CONFIG_FILES src/RMComm/Makefile" ;;
5200 "src/RMComm/MW-File/Makefile") CONFIG_FILES="$CONFIG_FILES src/RMComm/MW-File/Makefile" ;;
5201 "src/RMComm/MW-CondorPVM/Makefile") CONFIG_FILES="$CONFIG_FILES src/RMComm/MW-CondorPVM/Makefile" ;;
5202 "src/RMComm/MW-Socket/Makefile") CONFIG_FILES="$CONFIG_FILES src/RMComm/MW-Socket/Makefile" ;;
5203 "src/RMComm/MW-StaticMPI/Makefile") CONFIG_FILES="$CONFIG_FILES src/RMComm/MW-StaticMPI/Makefile" ;;
5204 "src/MWControlTasks/Makefile") CONFIG_FILES="$CONFIG_FILES src/MWControlTasks/Makefile" ;;
5205 "src/BlackBox/Makefile") CONFIG_FILES="$CONFIG_FILES src/BlackBox/Makefile" ;;
5206 "$EXTRA_MAKEFILES") CONFIG_FILES="$CONFIG_FILES $EXTRA_MAKEFILES" ;;
5207 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5208
5209 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5210 esac
5211 done
5212
5213
5214 # If the user did not use the arguments to specify the items to instantiate,
5215 # then the envvar interface is used. Set only those that are not.
5216 # We use the long form for the default assignment because of an extremely
5217 # bizarre bug on SunOS 4.1.3.
5218 if $ac_need_defaults; then
5219 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5220 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5221 fi
5222
5223 # Have a temporary directory for convenience. Make it in the build tree
5224 # simply because there is no reason against having it here, and in addition,
5225 # creating and moving files from /tmp can sometimes cause problems.
5226 # Hook for its removal unless debugging.
5227 # Note that there is a small window in which the directory will not be cleaned:
5228 # after its creation but before its name has been assigned to `$tmp'.
5229 $debug ||
5230 {
5231 tmp= ac_tmp=
5232 trap 'exit_status=$?
5233 : "${ac_tmp:=$tmp}"
5234 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5235 ' 0
5236 trap 'as_fn_exit 1' 1 2 13 15
5237 }
5238 # Create a (secure) tmp directory for tmp files.
5239
5240 {
5241 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5242 test -d "$tmp"
5243 } ||
5244 {
5245 tmp=./conf$$-$RANDOM
5246 (umask 077 && mkdir "$tmp")
5247 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5248 ac_tmp=$tmp
5249
5250 # Set up the scripts for CONFIG_FILES section.
5251 # No need to generate them if there are no CONFIG_FILES.
5252 # This happens for instance with `./config.status config.h'.
5253 if test -n "$CONFIG_FILES"; then
5254
5255
5256 ac_cr=`echo X | tr X '\015'`
5257 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5258 # But we know of no other shell where ac_cr would be empty at this
5259 # point, so we can use a bashism as a fallback.
5260 if test "x$ac_cr" = x; then
5261 eval ac_cr=\$\'\\r\'
5262 fi
5263 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5264 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5265 ac_cs_awk_cr='\\r'
5266 else
5267 ac_cs_awk_cr=$ac_cr
5268 fi
5269
5270 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5271 _ACEOF
5272
5273
5274 {
5275 echo "cat >conf$$subs.awk <<_ACEOF" &&
5276 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5277 echo "_ACEOF"
5278 } >conf$$subs.sh ||
5279 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5280 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5281 ac_delim='%!_!# '
5282 for ac_last_try in false false false false false :; do
5283 . ./conf$$subs.sh ||
5284 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5285
5286 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5287 if test $ac_delim_n = $ac_delim_num; then
5288 break
5289 elif $ac_last_try; then
5290 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5291 else
5292 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5293 fi
5294 done
5295 rm -f conf$$subs.sh
5296
5297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5298 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5299 _ACEOF
5300 sed -n '
5301 h
5302 s/^/S["/; s/!.*/"]=/
5303 p
5304 g
5305 s/^[^!]*!//
5306 :repl
5307 t repl
5308 s/'"$ac_delim"'$//
5309 t delim
5310 :nl
5311 h
5312 s/\(.\{148\}\)..*/\1/
5313 t more1
5314 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5315 p
5316 n
5317 b repl
5318 :more1
5319 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5320 p
5321 g
5322 s/.\{148\}//
5323 t nl
5324 :delim
5325 h
5326 s/\(.\{148\}\)..*/\1/
5327 t more2
5328 s/["\\]/\\&/g; s/^/"/; s/$/"/
5329 p
5330 b
5331 :more2
5332 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5333 p
5334 g
5335 s/.\{148\}//
5336 t delim
5337 ' <conf$$subs.awk | sed '
5338 /^[^""]/{
5339 N
5340 s/\n//
5341 }
5342 ' >>$CONFIG_STATUS || ac_write_fail=1
5343 rm -f conf$$subs.awk
5344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5345 _ACAWK
5346 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5347 for (key in S) S_is_set[key] = 1
5348 FS = ""
5349
5350 }
5351 {
5352 line = $ 0
5353 nfields = split(line, field, "@")
5354 substed = 0
5355 len = length(field[1])
5356 for (i = 2; i < nfields; i++) {
5357 key = field[i]
5358 keylen = length(key)
5359 if (S_is_set[key]) {
5360 value = S[key]
5361 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5362 len += length(value) + length(field[++i])
5363 substed = 1
5364 } else
5365 len += 1 + keylen
5366 }
5367
5368 print line
5369 }
5370
5371 _ACAWK
5372 _ACEOF
5373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5374 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5375 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5376 else
5377 cat
5378 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5379 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5380 _ACEOF
5381
5382 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5383 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5384 # trailing colons and then remove the whole line if VPATH becomes empty
5385 # (actually we leave an empty line to preserve line numbers).
5386 if test "x$srcdir" = x.; then
5387 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5388 h
5389 s///
5390 s/^/:/
5391 s/[ ]*$/:/
5392 s/:\$(srcdir):/:/g
5393 s/:\${srcdir}:/:/g
5394 s/:@srcdir@:/:/g
5395 s/^:*//
5396 s/:*$//
5397 x
5398 s/\(=[ ]*\).*/\1/
5399 G
5400 s/\n//
5401 s/^[^=]*=[ ]*$//
5402 }'
5403 fi
5404
5405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5406 fi # test -n "$CONFIG_FILES"
5407
5408
5409 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
5410 shift
5411 for ac_tag
5412 do
5413 case $ac_tag in
5414 :[FHLC]) ac_mode=$ac_tag; continue;;
5415 esac
5416 case $ac_mode$ac_tag in
5417 :[FHL]*:*);;
5418 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5419 :[FH]-) ac_tag=-:-;;
5420 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5421 esac
5422 ac_save_IFS=$IFS
5423 IFS=:
5424 set x $ac_tag
5425 IFS=$ac_save_IFS
5426 shift
5427 ac_file=$1
5428 shift
5429
5430 case $ac_mode in
5431 :L) ac_source=$1;;
5432 :[FH])
5433 ac_file_inputs=
5434 for ac_f
5435 do
5436 case $ac_f in
5437 -) ac_f="$ac_tmp/stdin";;
5438 *) # Look for the file first in the build tree, then in the source tree
5439 # (if the path is not absolute). The absolute path cannot be DOS-style,
5440 # because $ac_f cannot contain `:'.
5441 test -f "$ac_f" ||
5442 case $ac_f in
5443 [\\/$]*) false;;
5444 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5445 esac ||
5446 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5447 esac
5448 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5449 as_fn_append ac_file_inputs " '$ac_f'"
5450 done
5451
5452 # Let's still pretend it is `configure' which instantiates (i.e., don't
5453 # use $as_me), people would be surprised to read:
5454 # /* config.h. Generated by config.status. */
5455 configure_input='Generated from '`
5456 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5457 `' by configure.'
5458 if test x"$ac_file" != x-; then
5459 configure_input="$ac_file. $configure_input"
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5461 $as_echo "$as_me: creating $ac_file" >&6;}
5462 fi
5463 # Neutralize special characters interpreted by sed in replacement strings.
5464 case $configure_input in #(
5465 *\&* | *\|* | *\\* )
5466 ac_sed_conf_input=`$as_echo "$configure_input" |
5467 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5468 *) ac_sed_conf_input=$configure_input;;
5469 esac
5470
5471 case $ac_tag in
5472 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5473 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5474 esac
5475 ;;
5476 esac
5477
5478 ac_dir=`$as_dirname -- "$ac_file" ||
5479 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5480 X"$ac_file" : 'X\(//\)[^/]' \| \
5481 X"$ac_file" : 'X\(//\)$' \| \
5482 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5483 $as_echo X"$ac_file" |
5484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5485 s//\1/
5486 q
5487 }
5488 /^X\(\/\/\)[^/].*/{
5489 s//\1/
5490 q
5491 }
5492 /^X\(\/\/\)$/{
5493 s//\1/
5494 q
5495 }
5496 /^X\(\/\).*/{
5497 s//\1/
5498 q
5499 }
5500 s/.*/./; q'`
5501 as_dir="$ac_dir"; as_fn_mkdir_p
5502 ac_builddir=.
5503
5504 case "$ac_dir" in
5505 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5506 *)
5507 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5508 # A ".." for each directory in $ac_dir_suffix.
5509 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5510 case $ac_top_builddir_sub in
5511 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5512 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5513 esac ;;
5514 esac
5515 ac_abs_top_builddir=$ac_pwd
5516 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5517 # for backward compatibility:
5518 ac_top_builddir=$ac_top_build_prefix
5519
5520 case $srcdir in
5521 .) # We are building in place.
5522 ac_srcdir=.
5523 ac_top_srcdir=$ac_top_builddir_sub
5524 ac_abs_top_srcdir=$ac_pwd ;;
5525 [\\/]* | ?:[\\/]* ) # Absolute name.
5526 ac_srcdir=$srcdir$ac_dir_suffix;
5527 ac_top_srcdir=$srcdir
5528 ac_abs_top_srcdir=$srcdir ;;
5529 *) # Relative name.
5530 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5531 ac_top_srcdir=$ac_top_build_prefix$srcdir
5532 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5533 esac
5534 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5535
5536
5537 case $ac_mode in
5538 :F)
5539 #
5540 # CONFIG_FILE
5541 #
5542
5543 case $INSTALL in
5544 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5545 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5546 esac
5547 _ACEOF
5548
5549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5550 # If the template does not know about datarootdir, expand it.
5551 # FIXME: This hack should be removed a few years after 2.60.
5552 ac_datarootdir_hack=; ac_datarootdir_seen=
5553 ac_sed_dataroot='
5554 /datarootdir/ {
5555 p
5556 q
5557 }
5558 /@datadir@/p
5559 /@docdir@/p
5560 /@infodir@/p
5561 /@localedir@/p
5562 /@mandir@/p'
5563 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5564 *datarootdir*) ac_datarootdir_seen=yes;;
5565 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5567 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5568 _ACEOF
5569 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5570 ac_datarootdir_hack='
5571 s&@datadir@&$datadir&g
5572 s&@docdir@&$docdir&g
5573 s&@infodir@&$infodir&g
5574 s&@localedir@&$localedir&g
5575 s&@mandir@&$mandir&g
5576 s&\\\${datarootdir}&$datarootdir&g' ;;
5577 esac
5578 _ACEOF
5579
5580 # Neutralize VPATH when `$srcdir' = `.'.
5581 # Shell code in configure.ac might set extrasub.
5582 # FIXME: do we really want to maintain this feature?
5583 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5584 ac_sed_extra="$ac_vpsub
5585 $extrasub
5586 _ACEOF
5587 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5588 :t
5589 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5590 s|@configure_input@|$ac_sed_conf_input|;t t
5591 s&@top_builddir@&$ac_top_builddir_sub&;t t
5592 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5593 s&@srcdir@&$ac_srcdir&;t t
5594 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5595 s&@top_srcdir@&$ac_top_srcdir&;t t
5596 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5597 s&@builddir@&$ac_builddir&;t t
5598 s&@abs_builddir@&$ac_abs_builddir&;t t
5599 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5600 s&@INSTALL@&$ac_INSTALL&;t t
5601 $ac_datarootdir_hack
5602 "
5603 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5604 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5605
5606 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5607 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5608 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5609 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5611 which seems to be undefined. Please make sure it is defined" >&5
5612 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5613 which seems to be undefined. Please make sure it is defined" >&2;}
5614
5615 rm -f "$ac_tmp/stdin"
5616 case $ac_file in
5617 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5618 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5619 esac \
5620 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5621 ;;
5622
5623
5624 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
5625 $as_echo "$as_me: executing $ac_file commands" >&6;}
5626 ;;
5627 esac
5628
5629
5630 case $ac_file$ac_mode in
5631 "default":C) echo timestamp > stamp-h ;;
5632
5633 esac
5634 done # for ac_tag
5635
5636
5637 as_fn_exit 0
5638 _ACEOF
5639 ac_clean_files=$ac_clean_files_save
5640
5641 test $ac_write_fail = 0 ||
5642 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5643
5644
5645 # configure is writing to config.log, and then calls config.status.
5646 # config.status does its own redirection, appending to config.log.
5647 # Unfortunately, on DOS this fails, as config.log is still kept open
5648 # by configure, so config.status won't be able to write to it; its
5649 # output is simply discarded. So we exec the FD to /dev/null,
5650 # effectively closing config.log, so it can be properly (re)opened and
5651 # appended to by config.status. When coming back to configure, we
5652 # need to make the FD available again.
5653 if test "$no_create" != yes; then
5654 ac_cs_success=:
5655 ac_config_status_args=
5656 test "$silent" = yes &&
5657 ac_config_status_args="$ac_config_status_args --quiet"
5658 exec 5>/dev/null
5659 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5660 exec 5>>config.log
5661 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5662 # would make configure fail if this is the last instruction.
5663 $ac_cs_success || as_fn_exit 1
5664 fi
5665 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5667 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5668 fi
5669