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