import source from 1.3.40
[external/swig.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for swig 1.3.40.
4 #
5 # Report bugs to <http://www.swig.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
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   # Zsh 3.x and 4.x performs 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*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554 exec 7<&0 </dev/null 6>&1
555
556 # Name of the host.
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
561 #
562 # Initializations.
563 #
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
573
574 # Identity of this package.
575 PACKAGE_NAME='swig'
576 PACKAGE_TARNAME='swig'
577 PACKAGE_VERSION='1.3.40'
578 PACKAGE_STRING='swig 1.3.40'
579 PACKAGE_BUGREPORT='http://www.swig.org'
580
581 ac_unique_file="Source/Swig/swig.h"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
584 #include <stdio.h>
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
587 #endif
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
590 #endif
591 #ifdef STDC_HEADERS
592 # include <stdlib.h>
593 # include <stddef.h>
594 #else
595 # ifdef HAVE_STDLIB_H
596 #  include <stdlib.h>
597 # endif
598 #endif
599 #ifdef HAVE_STRING_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 #  include <memory.h>
602 # endif
603 # include <string.h>
604 #endif
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
607 #endif
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
610 #endif
611 #ifdef HAVE_STDINT_H
612 # include <stdint.h>
613 #endif
614 #ifdef HAVE_UNISTD_H
615 # include <unistd.h>
616 #endif"
617
618 ac_subst_vars='SHELL
619 PATH_SEPARATOR
620 PACKAGE_NAME
621 PACKAGE_TARNAME
622 PACKAGE_VERSION
623 PACKAGE_STRING
624 PACKAGE_BUGREPORT
625 exec_prefix
626 prefix
627 program_transform_name
628 bindir
629 sbindir
630 libexecdir
631 datarootdir
632 datadir
633 sysconfdir
634 sharedstatedir
635 localstatedir
636 includedir
637 oldincludedir
638 docdir
639 infodir
640 htmldir
641 dvidir
642 pdfdir
643 psdir
644 libdir
645 localedir
646 mandir
647 DEFS
648 ECHO_C
649 ECHO_N
650 ECHO_T
651 LIBS
652 build_alias
653 host_alias
654 target_alias
655 build
656 build_cpu
657 build_vendor
658 build_os
659 host
660 host_cpu
661 host_vendor
662 host_os
663 INSTALL_PROGRAM
664 INSTALL_SCRIPT
665 INSTALL_DATA
666 am__isrc
667 CYGPATH_W
668 PACKAGE
669 VERSION
670 ACLOCAL
671 AUTOCONF
672 AUTOMAKE
673 AUTOHEADER
674 MAKEINFO
675 install_sh
676 STRIP
677 INSTALL_STRIP_PROGRAM
678 mkdir_p
679 AWK
680 SET_MAKE
681 am__leading_dot
682 AMTAR
683 am__tar
684 am__untar
685 CC
686 CFLAGS
687 LDFLAGS
688 CPPFLAGS
689 ac_ct_CC
690 EXEEXT
691 OBJEXT
692 DEPDIR
693 am__include
694 am__quote
695 AMDEP_TRUE
696 AMDEP_FALSE
697 AMDEPBACKSLASH
698 CCDEPMODE
699 am__fastdepCC_TRUE
700 am__fastdepCC_FALSE
701 CXX
702 CXXFLAGS
703 ac_ct_CXX
704 CXXDEPMODE
705 am__fastdepCXX_TRUE
706 am__fastdepCXX_FALSE
707 CPP
708 GREP
709 EGREP
710 subdirs
711 ENABLE_CCACHE
712 YACC
713 YFLAGS
714 RANLIB
715 AR
716 YODL2MAN
717 YODL2HTML
718 SO
719 LDSHARED
720 CCSHARED
721 CXXSHARED
722 TRYLINKINGWITHCXX
723 LINKFORSHARED
724 RPATH
725 PYTHON_SO
726 TCL_SO
727 GUILE_SO
728 PHP_SO
729 MZSCHEME_SO
730 LUA_SO
731 PLATFLAGS
732 SWIGLIBS
733 SWILL
734 LIBM
735 LIBCRYPT
736 LIBC
737 XMKMF
738 XINCLUDES
739 XLIBSW
740 TCLINCLUDE
741 TCLLIB
742 TCLDYNAMICLINKING
743 TCLLDSHARED
744 TCLCXXSHARED
745 PYTHON
746 PYINCLUDE
747 PYLIB
748 PYLINK
749 PYTHONDYNAMICLINKING
750 PYTHON3
751 PY3CONFIG
752 PY3INCLUDE
753 PY3LIB
754 PY3LINK
755 PYTHON3DYNAMICLINKING
756 PERL
757 PERL5EXT
758 PERL5DYNAMICLINKING
759 PERL5LIB
760 PERL5CCFLAGS
761 OCTAVE
762 OCTAVEEXT
763 OCTAVE_SO
764 OCTAVEDYNAMICLINKING
765 OCTAVELIB
766 OCTAVECCFLAGS
767 JAVA
768 JAVAC
769 JAVAINC
770 JAVADYNAMICLINKING
771 JAVALIBRARYPREFIX
772 JAVASO
773 JAVALDSHARED
774 JAVACXXSHARED
775 JAVACFLAGS
776 GCJ
777 GCJH
778 GUILE_CONFIG
779 GUILE
780 GUILEINCLUDE
781 GUILELIB
782 GUILELINK
783 GUILE_GH_INTERFACE
784 GUILE_SCM_INTERFACE
785 MZSCHEME
786 MZC
787 MZDYNOBJ
788 RUBY
789 RUBYINCLUDE
790 RUBYLIB
791 RUBYLINK
792 RUBYCCDLFLAGS
793 RUBYDYNAMICLINKING
794 PHP
795 PHPINC
796 OCAMLDLGEN
797 OCAMLFIND
798 OCAMLC
799 OCAMLBIN
800 OCAMLMKTOP
801 OCAMLLOC
802 OCAMLVER
803 OCAMLINC
804 PIKE
805 PIKECONFIG
806 PIKEINCLUDE
807 PIKECCDLFLAGS
808 PIKEDYNAMICLINKING
809 CHICKEN
810 CHICKEN_CSC
811 CHICKEN_CSI
812 CHICKENOPTS
813 CHICKENLIB
814 CHICKENSHAREDLIB
815 CSHARPCOMPILER
816 CSHARPCILINTERPRETER
817 CSHARPPATHSEPARATOR
818 CSHARPCYGPATH_W
819 CSHARPDYNAMICLINKING
820 CSHARPLIBRARYPREFIX
821 CSHARPCFLAGS
822 CSHARPSO
823 LUABIN
824 LUADYNAMICLINKING
825 LUAFLAGS
826 LUALINK
827 ALLEGROCLBIN
828 CLISPBIN
829 RBIN
830 SKIP_TCL
831 SKIP_PERL5
832 SKIP_OCTAVE
833 SKIP_PYTHON
834 SKIP_PYTHON3
835 SKIP_JAVA
836 SKIP_GUILE
837 SKIP_GUILESCM
838 SKIP_MZSCHEME
839 SKIP_RUBY
840 SKIP_PHP
841 SKIP_OCAML
842 SKIP_PIKE
843 SKIP_CHICKEN
844 SKIP_CSHARP
845 SKIP_MODULA3
846 SKIP_LUA
847 SKIP_ALLEGROCL
848 SKIP_CLISP
849 SKIP_R
850 SKIP_CFFI
851 SKIP_UFFI
852 SKIP_GCJ
853 ROOT_DIR
854 EXTRA_CLEAN
855 ac_aux_dir
856 swig_lib
857 SWIG_LIB
858 LIBOBJS
859 LTLIBOBJS'
860 ac_subst_files=''
861       ac_precious_vars='build_alias
862 host_alias
863 target_alias
864 CC
865 CFLAGS
866 LDFLAGS
867 LIBS
868 CPPFLAGS
869 CXX
870 CXXFLAGS
871 CCC
872 CPP
873 YACC
874 YFLAGS
875 XMKMF'
876 ac_subdirs_all='CCache'
877
878 # Initialize some variables set by options.
879 ac_init_help=
880 ac_init_version=false
881 # The variables have the same names as the options, with
882 # dashes changed to underlines.
883 cache_file=/dev/null
884 exec_prefix=NONE
885 no_create=
886 no_recursion=
887 prefix=NONE
888 program_prefix=NONE
889 program_suffix=NONE
890 program_transform_name=s,x,x,
891 silent=
892 site=
893 srcdir=
894 verbose=
895 x_includes=NONE
896 x_libraries=NONE
897
898 # Installation directory options.
899 # These are left unexpanded so users can "make install exec_prefix=/foo"
900 # and all the variables that are supposed to be based on exec_prefix
901 # by default will actually change.
902 # Use braces instead of parens because sh, perl, etc. also accept them.
903 # (The list follows the same order as the GNU Coding Standards.)
904 bindir='${exec_prefix}/bin'
905 sbindir='${exec_prefix}/sbin'
906 libexecdir='${exec_prefix}/libexec'
907 datarootdir='${prefix}/share'
908 datadir='${datarootdir}'
909 sysconfdir='${prefix}/etc'
910 sharedstatedir='${prefix}/com'
911 localstatedir='${prefix}/var'
912 includedir='${prefix}/include'
913 oldincludedir='/usr/include'
914 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
915 infodir='${datarootdir}/info'
916 htmldir='${docdir}'
917 dvidir='${docdir}'
918 pdfdir='${docdir}'
919 psdir='${docdir}'
920 libdir='${exec_prefix}/lib'
921 localedir='${datarootdir}/locale'
922 mandir='${datarootdir}/man'
923
924 ac_prev=
925 ac_dashdash=
926 for ac_option
927 do
928   # If the previous option needs an argument, assign it.
929   if test -n "$ac_prev"; then
930     eval $ac_prev=\$ac_option
931     ac_prev=
932     continue
933   fi
934
935   case $ac_option in
936   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
937   *)    ac_optarg=yes ;;
938   esac
939
940   # Accept the important Cygnus configure options, so we can diagnose typos.
941
942   case $ac_dashdash$ac_option in
943   --)
944     ac_dashdash=yes ;;
945
946   -bindir | --bindir | --bindi | --bind | --bin | --bi)
947     ac_prev=bindir ;;
948   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
949     bindir=$ac_optarg ;;
950
951   -build | --build | --buil | --bui | --bu)
952     ac_prev=build_alias ;;
953   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
954     build_alias=$ac_optarg ;;
955
956   -cache-file | --cache-file | --cache-fil | --cache-fi \
957   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
958     ac_prev=cache_file ;;
959   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
960   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
961     cache_file=$ac_optarg ;;
962
963   --config-cache | -C)
964     cache_file=config.cache ;;
965
966   -datadir | --datadir | --datadi | --datad)
967     ac_prev=datadir ;;
968   -datadir=* | --datadir=* | --datadi=* | --datad=*)
969     datadir=$ac_optarg ;;
970
971   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
972   | --dataroo | --dataro | --datar)
973     ac_prev=datarootdir ;;
974   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
975   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
976     datarootdir=$ac_optarg ;;
977
978   -disable-* | --disable-*)
979     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
980     # Reject names that are not valid shell variable names.
981     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
982       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
983    { (exit 1); exit 1; }; }
984     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
985     eval enable_$ac_feature=no ;;
986
987   -docdir | --docdir | --docdi | --doc | --do)
988     ac_prev=docdir ;;
989   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
990     docdir=$ac_optarg ;;
991
992   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
993     ac_prev=dvidir ;;
994   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
995     dvidir=$ac_optarg ;;
996
997   -enable-* | --enable-*)
998     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
999     # Reject names that are not valid shell variable names.
1000     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1001       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1002    { (exit 1); exit 1; }; }
1003     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1004     eval enable_$ac_feature=\$ac_optarg ;;
1005
1006   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1007   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1008   | --exec | --exe | --ex)
1009     ac_prev=exec_prefix ;;
1010   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1011   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1012   | --exec=* | --exe=* | --ex=*)
1013     exec_prefix=$ac_optarg ;;
1014
1015   -gas | --gas | --ga | --g)
1016     # Obsolete; use --with-gas.
1017     with_gas=yes ;;
1018
1019   -help | --help | --hel | --he | -h)
1020     ac_init_help=long ;;
1021   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1022     ac_init_help=recursive ;;
1023   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1024     ac_init_help=short ;;
1025
1026   -host | --host | --hos | --ho)
1027     ac_prev=host_alias ;;
1028   -host=* | --host=* | --hos=* | --ho=*)
1029     host_alias=$ac_optarg ;;
1030
1031   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1032     ac_prev=htmldir ;;
1033   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1034   | --ht=*)
1035     htmldir=$ac_optarg ;;
1036
1037   -includedir | --includedir | --includedi | --included | --include \
1038   | --includ | --inclu | --incl | --inc)
1039     ac_prev=includedir ;;
1040   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1041   | --includ=* | --inclu=* | --incl=* | --inc=*)
1042     includedir=$ac_optarg ;;
1043
1044   -infodir | --infodir | --infodi | --infod | --info | --inf)
1045     ac_prev=infodir ;;
1046   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1047     infodir=$ac_optarg ;;
1048
1049   -libdir | --libdir | --libdi | --libd)
1050     ac_prev=libdir ;;
1051   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1052     libdir=$ac_optarg ;;
1053
1054   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1055   | --libexe | --libex | --libe)
1056     ac_prev=libexecdir ;;
1057   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1058   | --libexe=* | --libex=* | --libe=*)
1059     libexecdir=$ac_optarg ;;
1060
1061   -localedir | --localedir | --localedi | --localed | --locale)
1062     ac_prev=localedir ;;
1063   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1064     localedir=$ac_optarg ;;
1065
1066   -localstatedir | --localstatedir | --localstatedi | --localstated \
1067   | --localstate | --localstat | --localsta | --localst | --locals)
1068     ac_prev=localstatedir ;;
1069   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1070   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1071     localstatedir=$ac_optarg ;;
1072
1073   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1074     ac_prev=mandir ;;
1075   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1076     mandir=$ac_optarg ;;
1077
1078   -nfp | --nfp | --nf)
1079     # Obsolete; use --without-fp.
1080     with_fp=no ;;
1081
1082   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1083   | --no-cr | --no-c | -n)
1084     no_create=yes ;;
1085
1086   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1087   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1088     no_recursion=yes ;;
1089
1090   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1091   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1092   | --oldin | --oldi | --old | --ol | --o)
1093     ac_prev=oldincludedir ;;
1094   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1095   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1096   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1097     oldincludedir=$ac_optarg ;;
1098
1099   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1100     ac_prev=prefix ;;
1101   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1102     prefix=$ac_optarg ;;
1103
1104   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1105   | --program-pre | --program-pr | --program-p)
1106     ac_prev=program_prefix ;;
1107   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1108   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1109     program_prefix=$ac_optarg ;;
1110
1111   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1112   | --program-suf | --program-su | --program-s)
1113     ac_prev=program_suffix ;;
1114   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1115   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1116     program_suffix=$ac_optarg ;;
1117
1118   -program-transform-name | --program-transform-name \
1119   | --program-transform-nam | --program-transform-na \
1120   | --program-transform-n | --program-transform- \
1121   | --program-transform | --program-transfor \
1122   | --program-transfo | --program-transf \
1123   | --program-trans | --program-tran \
1124   | --progr-tra | --program-tr | --program-t)
1125     ac_prev=program_transform_name ;;
1126   -program-transform-name=* | --program-transform-name=* \
1127   | --program-transform-nam=* | --program-transform-na=* \
1128   | --program-transform-n=* | --program-transform-=* \
1129   | --program-transform=* | --program-transfor=* \
1130   | --program-transfo=* | --program-transf=* \
1131   | --program-trans=* | --program-tran=* \
1132   | --progr-tra=* | --program-tr=* | --program-t=*)
1133     program_transform_name=$ac_optarg ;;
1134
1135   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1136     ac_prev=pdfdir ;;
1137   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1138     pdfdir=$ac_optarg ;;
1139
1140   -psdir | --psdir | --psdi | --psd | --ps)
1141     ac_prev=psdir ;;
1142   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1143     psdir=$ac_optarg ;;
1144
1145   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1146   | -silent | --silent | --silen | --sile | --sil)
1147     silent=yes ;;
1148
1149   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1150     ac_prev=sbindir ;;
1151   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1152   | --sbi=* | --sb=*)
1153     sbindir=$ac_optarg ;;
1154
1155   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1156   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1157   | --sharedst | --shareds | --shared | --share | --shar \
1158   | --sha | --sh)
1159     ac_prev=sharedstatedir ;;
1160   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1161   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1162   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1163   | --sha=* | --sh=*)
1164     sharedstatedir=$ac_optarg ;;
1165
1166   -site | --site | --sit)
1167     ac_prev=site ;;
1168   -site=* | --site=* | --sit=*)
1169     site=$ac_optarg ;;
1170
1171   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1172     ac_prev=srcdir ;;
1173   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1174     srcdir=$ac_optarg ;;
1175
1176   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1177   | --syscon | --sysco | --sysc | --sys | --sy)
1178     ac_prev=sysconfdir ;;
1179   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1180   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1181     sysconfdir=$ac_optarg ;;
1182
1183   -target | --target | --targe | --targ | --tar | --ta | --t)
1184     ac_prev=target_alias ;;
1185   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1186     target_alias=$ac_optarg ;;
1187
1188   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1189     verbose=yes ;;
1190
1191   -version | --version | --versio | --versi | --vers | -V)
1192     ac_init_version=: ;;
1193
1194   -with-* | --with-*)
1195     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1196     # Reject names that are not valid shell variable names.
1197     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1198       { echo "$as_me: error: invalid package name: $ac_package" >&2
1199    { (exit 1); exit 1; }; }
1200     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1201     eval with_$ac_package=\$ac_optarg ;;
1202
1203   -without-* | --without-*)
1204     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1205     # Reject names that are not valid shell variable names.
1206     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1207       { echo "$as_me: error: invalid package name: $ac_package" >&2
1208    { (exit 1); exit 1; }; }
1209     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1210     eval with_$ac_package=no ;;
1211
1212   --x)
1213     # Obsolete; use --with-x.
1214     with_x=yes ;;
1215
1216   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1217   | --x-incl | --x-inc | --x-in | --x-i)
1218     ac_prev=x_includes ;;
1219   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1220   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1221     x_includes=$ac_optarg ;;
1222
1223   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1224   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1225     ac_prev=x_libraries ;;
1226   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1227   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1228     x_libraries=$ac_optarg ;;
1229
1230   -*) { echo "$as_me: error: unrecognized option: $ac_option
1231 Try \`$0 --help' for more information." >&2
1232    { (exit 1); exit 1; }; }
1233     ;;
1234
1235   *=*)
1236     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1237     # Reject names that are not valid shell variable names.
1238     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1239       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1240    { (exit 1); exit 1; }; }
1241     eval $ac_envvar=\$ac_optarg
1242     export $ac_envvar ;;
1243
1244   *)
1245     # FIXME: should be removed in autoconf 3.0.
1246     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1247     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1249     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1250     ;;
1251
1252   esac
1253 done
1254
1255 if test -n "$ac_prev"; then
1256   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1257   { echo "$as_me: error: missing argument to $ac_option" >&2
1258    { (exit 1); exit 1; }; }
1259 fi
1260
1261 # Be sure to have absolute directory names.
1262 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263                 datadir sysconfdir sharedstatedir localstatedir includedir \
1264                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265                 libdir localedir mandir
1266 do
1267   eval ac_val=\$$ac_var
1268   case $ac_val in
1269     [\\/$]* | ?:[\\/]* )  continue;;
1270     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1271   esac
1272   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1273    { (exit 1); exit 1; }; }
1274 done
1275
1276 # There might be people who depend on the old broken behavior: `$host'
1277 # used to hold the argument of --host etc.
1278 # FIXME: To remove some day.
1279 build=$build_alias
1280 host=$host_alias
1281 target=$target_alias
1282
1283 # FIXME: To remove some day.
1284 if test "x$host_alias" != x; then
1285   if test "x$build_alias" = x; then
1286     cross_compiling=maybe
1287     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1288     If a cross compiler is detected then cross compile mode will be used." >&2
1289   elif test "x$build_alias" != "x$host_alias"; then
1290     cross_compiling=yes
1291   fi
1292 fi
1293
1294 ac_tool_prefix=
1295 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1296
1297 test "$silent" = yes && exec 6>/dev/null
1298
1299
1300 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1301 ac_ls_di=`ls -di .` &&
1302 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1303   { echo "$as_me: error: Working directory cannot be determined" >&2
1304    { (exit 1); exit 1; }; }
1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306   { echo "$as_me: error: pwd does not report name of working directory" >&2
1307    { (exit 1); exit 1; }; }
1308
1309
1310 # Find the source files, if location was not specified.
1311 if test -z "$srcdir"; then
1312   ac_srcdir_defaulted=yes
1313   # Try the directory containing this script, then the parent directory.
1314   ac_confdir=`$as_dirname -- "$0" ||
1315 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316          X"$0" : 'X\(//\)[^/]' \| \
1317          X"$0" : 'X\(//\)$' \| \
1318          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1319 echo X"$0" |
1320     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321             s//\1/
1322             q
1323           }
1324           /^X\(\/\/\)[^/].*/{
1325             s//\1/
1326             q
1327           }
1328           /^X\(\/\/\)$/{
1329             s//\1/
1330             q
1331           }
1332           /^X\(\/\).*/{
1333             s//\1/
1334             q
1335           }
1336           s/.*/./; q'`
1337   srcdir=$ac_confdir
1338   if test ! -r "$srcdir/$ac_unique_file"; then
1339     srcdir=..
1340   fi
1341 else
1342   ac_srcdir_defaulted=no
1343 fi
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1347    { (exit 1); exit 1; }; }
1348 fi
1349 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1350 ac_abs_confdir=`(
1351         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1352    { (exit 1); exit 1; }; }
1353         pwd)`
1354 # When building in place, set srcdir=.
1355 if test "$ac_abs_confdir" = "$ac_pwd"; then
1356   srcdir=.
1357 fi
1358 # Remove unnecessary trailing slashes from srcdir.
1359 # Double slashes in file names in object file debugging info
1360 # mess up M-x gdb in Emacs.
1361 case $srcdir in
1362 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1363 esac
1364 for ac_var in $ac_precious_vars; do
1365   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366   eval ac_env_${ac_var}_value=\$${ac_var}
1367   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369 done
1370
1371 #
1372 # Report the --help message.
1373 #
1374 if test "$ac_init_help" = "long"; then
1375   # Omit some internal or obsolete options to make the list less imposing.
1376   # This message is too long to be a string in the A/UX 3.1 sh.
1377   cat <<_ACEOF
1378 \`configure' configures swig 1.3.40 to adapt to many kinds of systems.
1379
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1381
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE.  See below for descriptions of some of the useful variables.
1384
1385 Defaults for the options are specified in brackets.
1386
1387 Configuration:
1388   -h, --help              display this help and exit
1389       --help=short        display options specific to this package
1390       --help=recursive    display the short help of all the included packages
1391   -V, --version           display version information and exit
1392   -q, --quiet, --silent   do not print \`checking...' messages
1393       --cache-file=FILE   cache test results in FILE [disabled]
1394   -C, --config-cache      alias for \`--cache-file=config.cache'
1395   -n, --no-create         do not create output files
1396       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1397
1398 Installation directories:
1399   --prefix=PREFIX         install architecture-independent files in PREFIX
1400                           [$ac_default_prefix]
1401   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1402                           [PREFIX]
1403
1404 By default, \`make install' will install all the files in
1405 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1406 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407 for instance \`--prefix=\$HOME'.
1408
1409 For better control, use the options below.
1410
1411 Fine tuning of the installation directories:
1412   --bindir=DIR           user executables [EPREFIX/bin]
1413   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1414   --libexecdir=DIR       program executables [EPREFIX/libexec]
1415   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1416   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1417   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1418   --libdir=DIR           object code libraries [EPREFIX/lib]
1419   --includedir=DIR       C header files [PREFIX/include]
1420   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1421   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1422   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1423   --infodir=DIR          info documentation [DATAROOTDIR/info]
1424   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1425   --mandir=DIR           man documentation [DATAROOTDIR/man]
1426   --docdir=DIR           documentation root [DATAROOTDIR/doc/swig]
1427   --htmldir=DIR          html documentation [DOCDIR]
1428   --dvidir=DIR           dvi documentation [DOCDIR]
1429   --pdfdir=DIR           pdf documentation [DOCDIR]
1430   --psdir=DIR            ps documentation [DOCDIR]
1431 _ACEOF
1432
1433   cat <<\_ACEOF
1434
1435 Program names:
1436   --program-prefix=PREFIX            prepend PREFIX to installed program names
1437   --program-suffix=SUFFIX            append SUFFIX to installed program names
1438   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1439
1440 X features:
1441   --x-includes=DIR    X include files are in DIR
1442   --x-libraries=DIR   X library files are in DIR
1443
1444 System types:
1445   --build=BUILD     configure for building on BUILD [guessed]
1446   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1447 _ACEOF
1448 fi
1449
1450 if test -n "$ac_init_help"; then
1451   case $ac_init_help in
1452      short | recursive ) echo "Configuration of swig 1.3.40:";;
1453    esac
1454   cat <<\_ACEOF
1455
1456 Optional Features:
1457   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1458   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1459   --disable-dependency-tracking  speeds up one-time build
1460   --enable-dependency-tracking   do not reject slow dependency extractors
1461   --disable-ccache        disable building and installation of ccache-swig
1462                           executable (default enabled)
1463
1464 Optional Packages:
1465   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1466   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1467   --without-maximum-compile-warnings
1468                           Disable maximum warning verbosity
1469   --without-popen         Disable popen
1470   --with-rxspencer        Enable RxSpencer
1471   --with-libm=STRING      math library
1472   --with-libc=STRING      C library
1473   --with-x                use the X Window System
1474   --without-alllang       Disable all languages
1475   --without-tcl           Disable Tcl
1476   --with-tclconfig=path   Set location of tclConfig.sh
1477   --with-tcl=path         Set location of Tcl package
1478   --with-tclincl=path     Set location of Tcl include directory
1479   --with-tcllib=path      Set location of Tcl library directory
1480   --without-python        Disable Python
1481   --with-python=path      Set location of Python executable
1482   --without-python3       Disable Python 3.x support
1483   --with-python3=path     Set location of Python 3.x executable
1484   --without-perl5         Disable Perl5
1485   --with-perl5=path       Set location of Perl5 executable
1486   --without-octave        Disable Octave
1487   --with-octave=path      Set location of Octave executable
1488   --without-java          Disable Java
1489   --with-java=path        Set location of java executable
1490   --with-javac=path       Set location of javac executable
1491   --with-javaincl=path    Set location of Java include directory
1492   --without-gcj           Disable GCJ
1493   --with-gcj=path         Set location of gcj executable
1494   --with-gcjh=path        Set location of gcjh executable
1495   --without-guile         Disable Guile
1496   --with-guile-config=path
1497                           Set location of guile-config
1498   --with-guile-prefix=path
1499                           Set location of Guile tree
1500   --with-guile=path       Set location of Guile executable
1501   --with-guileincl=path   Set location of Guile include directory
1502   --with-guilelib=path    Set location of Guile library directory
1503   --without-mzscheme      Disable MzScheme
1504   --with-mzscheme=path    Set location of MzScheme executable
1505   --with-mzc=path         Set location of MzScheme's mzc
1506   --without-ruby          Disable Ruby
1507   --with-ruby=path        Set location of Ruby executable
1508   --without-php           Disable PHP
1509   --with-php=path         Set location of PHP executable
1510   --without-ocaml         Disable OCaml
1511   --with-ocaml=path       Set location of ocaml executable
1512   --with-ocamlc=path      Set location of ocamlc executable
1513   --with-ocamldlgen=path  Set location of ocamldlgen
1514   --with-ocamlfind=path   Set location of ocamlfind
1515   --with-ocamlmktop=path  Set location of ocamlmktop executable
1516   --without-pike          Disable Pike
1517   --with-pike=path        Set location of Pike executable
1518   --with-pike-config=path Set location of pike-config script
1519   --with-pikeincl=path    Set location of Pike include directory
1520   --without-chicken       Disable CHICKEN
1521   --with-chicken=path     Set location of CHICKEN executable
1522   --with-chickencsc=path  Set location of csc executable
1523   --with-chickencsi=path  Set location of csi executable
1524   --with-chickenopts=args Set compiler options for static CHICKEN generated code
1525   --with-chickensharedlib=args    Set linker options for shared CHICKEN generated code
1526   --with-chickenlib=args  Set linker options for static CHICKEN generated code
1527   --without-csharp        Disable CSharp
1528   --with-cil-interpreter=path     Set location of CIL interpreter for CSharp
1529   --with-csharp-compiler=path     Set location of CSharp compiler
1530   --without-lua           Disable Lua
1531   --with-lua=path         Set location of Lua executable
1532   --with-luaincl=path     Set location of Lua include directory
1533   --with-lualib=path      Set location of Lua library directory
1534   --without-allegrocl     Disable Allegro CL
1535   --with-allegrocl=path   Set location of Allegro CL executable (alisp)
1536   --without-clisp         Disable CLISP
1537   --with-clisp=path       Set location of CLISP executable (clisp)
1538   --without-r             Disable R
1539   --with-r=path           Set location of R executable (r)
1540   --with-swiglibdir=DIR   Put SWIG system-independent libraries into DIR.
1541
1542 Some influential environment variables:
1543   CC          C compiler command
1544   CFLAGS      C compiler flags
1545   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1546               nonstandard directory <lib dir>
1547   LIBS        libraries to pass to the linker, e.g. -l<library>
1548   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1549               you have headers in a nonstandard directory <include dir>
1550   CXX         C++ compiler command
1551   CXXFLAGS    C++ compiler flags
1552   CPP         C preprocessor
1553   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1554               the first program found out of: `bison -y', `byacc', `yacc'.
1555   YFLAGS      The list of arguments that will be passed by default to $YACC.
1556               This script will default YFLAGS to the empty string to avoid a
1557               default value of `-d' given by some make applications.
1558   XMKMF       Path to xmkmf, Makefile generator for X Window System
1559
1560 Use these variables to override the choices made by `configure' or to help
1561 it to find libraries and programs with nonstandard names/locations.
1562
1563 Report bugs to <http://www.swig.org>.
1564 _ACEOF
1565 ac_status=$?
1566 fi
1567
1568 if test "$ac_init_help" = "recursive"; then
1569   # If there are subdirs, report their specific --help.
1570   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1571     test -d "$ac_dir" || continue
1572     ac_builddir=.
1573
1574 case "$ac_dir" in
1575 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576 *)
1577   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1578   # A ".." for each directory in $ac_dir_suffix.
1579   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1580   case $ac_top_builddir_sub in
1581   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1583   esac ;;
1584 esac
1585 ac_abs_top_builddir=$ac_pwd
1586 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1587 # for backward compatibility:
1588 ac_top_builddir=$ac_top_build_prefix
1589
1590 case $srcdir in
1591   .)  # We are building in place.
1592     ac_srcdir=.
1593     ac_top_srcdir=$ac_top_builddir_sub
1594     ac_abs_top_srcdir=$ac_pwd ;;
1595   [\\/]* | ?:[\\/]* )  # Absolute name.
1596     ac_srcdir=$srcdir$ac_dir_suffix;
1597     ac_top_srcdir=$srcdir
1598     ac_abs_top_srcdir=$srcdir ;;
1599   *) # Relative name.
1600     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1601     ac_top_srcdir=$ac_top_build_prefix$srcdir
1602     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1603 esac
1604 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1605
1606     cd "$ac_dir" || { ac_status=$?; continue; }
1607     # Check for guested configure.
1608     if test -f "$ac_srcdir/configure.gnu"; then
1609       echo &&
1610       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1611     elif test -f "$ac_srcdir/configure"; then
1612       echo &&
1613       $SHELL "$ac_srcdir/configure" --help=recursive
1614     else
1615       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1616     fi || ac_status=$?
1617     cd "$ac_pwd" || { ac_status=$?; break; }
1618   done
1619 fi
1620
1621 test -n "$ac_init_help" && exit $ac_status
1622 if $ac_init_version; then
1623   cat <<\_ACEOF
1624 swig configure 1.3.40
1625 generated by GNU Autoconf 2.61
1626
1627 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1628 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1629 This configure script is free software; the Free Software Foundation
1630 gives unlimited permission to copy, distribute and modify it.
1631 _ACEOF
1632   exit
1633 fi
1634 cat >config.log <<_ACEOF
1635 This file contains any messages produced by compilers while
1636 running configure, to aid debugging if configure makes a mistake.
1637
1638 It was created by swig $as_me 1.3.40, which was
1639 generated by GNU Autoconf 2.61.  Invocation command line was
1640
1641   $ $0 $@
1642
1643 _ACEOF
1644 exec 5>>config.log
1645 {
1646 cat <<_ASUNAME
1647 ## --------- ##
1648 ## Platform. ##
1649 ## --------- ##
1650
1651 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1652 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1653 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1654 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1655 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1656
1657 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1658 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1659
1660 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1661 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1662 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1663 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1664 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1665 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1666 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1667
1668 _ASUNAME
1669
1670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1671 for as_dir in $PATH
1672 do
1673   IFS=$as_save_IFS
1674   test -z "$as_dir" && as_dir=.
1675   echo "PATH: $as_dir"
1676 done
1677 IFS=$as_save_IFS
1678
1679 } >&5
1680
1681 cat >&5 <<_ACEOF
1682
1683
1684 ## ----------- ##
1685 ## Core tests. ##
1686 ## ----------- ##
1687
1688 _ACEOF
1689
1690
1691 # Keep a trace of the command line.
1692 # Strip out --no-create and --no-recursion so they do not pile up.
1693 # Strip out --silent because we don't want to record it for future runs.
1694 # Also quote any args containing shell meta-characters.
1695 # Make two passes to allow for proper duplicate-argument suppression.
1696 ac_configure_args=
1697 ac_configure_args0=
1698 ac_configure_args1=
1699 ac_must_keep_next=false
1700 for ac_pass in 1 2
1701 do
1702   for ac_arg
1703   do
1704     case $ac_arg in
1705     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1706     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1707     | -silent | --silent | --silen | --sile | --sil)
1708       continue ;;
1709     *\'*)
1710       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1711     esac
1712     case $ac_pass in
1713     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1714     2)
1715       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1716       if test $ac_must_keep_next = true; then
1717         ac_must_keep_next=false # Got value, back to normal.
1718       else
1719         case $ac_arg in
1720           *=* | --config-cache | -C | -disable-* | --disable-* \
1721           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1722           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1723           | -with-* | --with-* | -without-* | --without-* | --x)
1724             case "$ac_configure_args0 " in
1725               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1726             esac
1727             ;;
1728           -* ) ac_must_keep_next=true ;;
1729         esac
1730       fi
1731       ac_configure_args="$ac_configure_args '$ac_arg'"
1732       ;;
1733     esac
1734   done
1735 done
1736 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1737 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1738
1739 # When interrupted or exit'd, cleanup temporary files, and complete
1740 # config.log.  We remove comments because anyway the quotes in there
1741 # would cause problems or look ugly.
1742 # WARNING: Use '\'' to represent an apostrophe within the trap.
1743 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1744 trap 'exit_status=$?
1745   # Save into config.log some information that might help in debugging.
1746   {
1747     echo
1748
1749     cat <<\_ASBOX
1750 ## ---------------- ##
1751 ## Cache variables. ##
1752 ## ---------------- ##
1753 _ASBOX
1754     echo
1755     # The following way of writing the cache mishandles newlines in values,
1756 (
1757   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1758     eval ac_val=\$$ac_var
1759     case $ac_val in #(
1760     *${as_nl}*)
1761       case $ac_var in #(
1762       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1763 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1764       esac
1765       case $ac_var in #(
1766       _ | IFS | as_nl) ;; #(
1767       *) $as_unset $ac_var ;;
1768       esac ;;
1769     esac
1770   done
1771   (set) 2>&1 |
1772     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1773     *${as_nl}ac_space=\ *)
1774       sed -n \
1775         "s/'\''/'\''\\\\'\'''\''/g;
1776           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1777       ;; #(
1778     *)
1779       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1780       ;;
1781     esac |
1782     sort
1783 )
1784     echo
1785
1786     cat <<\_ASBOX
1787 ## ----------------- ##
1788 ## Output variables. ##
1789 ## ----------------- ##
1790 _ASBOX
1791     echo
1792     for ac_var in $ac_subst_vars
1793     do
1794       eval ac_val=\$$ac_var
1795       case $ac_val in
1796       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1797       esac
1798       echo "$ac_var='\''$ac_val'\''"
1799     done | sort
1800     echo
1801
1802     if test -n "$ac_subst_files"; then
1803       cat <<\_ASBOX
1804 ## ------------------- ##
1805 ## File substitutions. ##
1806 ## ------------------- ##
1807 _ASBOX
1808       echo
1809       for ac_var in $ac_subst_files
1810       do
1811         eval ac_val=\$$ac_var
1812         case $ac_val in
1813         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1814         esac
1815         echo "$ac_var='\''$ac_val'\''"
1816       done | sort
1817       echo
1818     fi
1819
1820     if test -s confdefs.h; then
1821       cat <<\_ASBOX
1822 ## ----------- ##
1823 ## confdefs.h. ##
1824 ## ----------- ##
1825 _ASBOX
1826       echo
1827       cat confdefs.h
1828       echo
1829     fi
1830     test "$ac_signal" != 0 &&
1831       echo "$as_me: caught signal $ac_signal"
1832     echo "$as_me: exit $exit_status"
1833   } >&5
1834   rm -f core *.core core.conftest.* &&
1835     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1836     exit $exit_status
1837 ' 0
1838 for ac_signal in 1 2 13 15; do
1839   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1840 done
1841 ac_signal=0
1842
1843 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1844 rm -f -r conftest* confdefs.h
1845
1846 # Predefined preprocessor variables.
1847
1848 cat >>confdefs.h <<_ACEOF
1849 #define PACKAGE_NAME "$PACKAGE_NAME"
1850 _ACEOF
1851
1852
1853 cat >>confdefs.h <<_ACEOF
1854 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1855 _ACEOF
1856
1857
1858 cat >>confdefs.h <<_ACEOF
1859 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1860 _ACEOF
1861
1862
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_STRING "$PACKAGE_STRING"
1865 _ACEOF
1866
1867
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1870 _ACEOF
1871
1872
1873 # Let the site file select an alternate cache file if it wants to.
1874 # Prefer explicitly selected file to automatically selected ones.
1875 if test -n "$CONFIG_SITE"; then
1876   set x "$CONFIG_SITE"
1877 elif test "x$prefix" != xNONE; then
1878   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1879 else
1880   set x "$ac_default_prefix/share/config.site" \
1881         "$ac_default_prefix/etc/config.site"
1882 fi
1883 shift
1884 for ac_site_file
1885 do
1886   if test -r "$ac_site_file"; then
1887     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1888 echo "$as_me: loading site script $ac_site_file" >&6;}
1889     sed 's/^/| /' "$ac_site_file" >&5
1890     . "$ac_site_file"
1891   fi
1892 done
1893
1894 if test -r "$cache_file"; then
1895   # Some versions of bash will fail to source /dev/null (special
1896   # files actually), so we avoid doing that.
1897   if test -f "$cache_file"; then
1898     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1899 echo "$as_me: loading cache $cache_file" >&6;}
1900     case $cache_file in
1901       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1902       *)                      . "./$cache_file";;
1903     esac
1904   fi
1905 else
1906   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1907 echo "$as_me: creating cache $cache_file" >&6;}
1908   >$cache_file
1909 fi
1910
1911 # Check that the precious variables saved in the cache have kept the same
1912 # value.
1913 ac_cache_corrupted=false
1914 for ac_var in $ac_precious_vars; do
1915   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1916   eval ac_new_set=\$ac_env_${ac_var}_set
1917   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1918   eval ac_new_val=\$ac_env_${ac_var}_value
1919   case $ac_old_set,$ac_new_set in
1920     set,)
1921       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1922 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1923       ac_cache_corrupted=: ;;
1924     ,set)
1925       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1926 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1927       ac_cache_corrupted=: ;;
1928     ,);;
1929     *)
1930       if test "x$ac_old_val" != "x$ac_new_val"; then
1931         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1932 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1933         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1934 echo "$as_me:   former value:  $ac_old_val" >&2;}
1935         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1936 echo "$as_me:   current value: $ac_new_val" >&2;}
1937         ac_cache_corrupted=:
1938       fi;;
1939   esac
1940   # Pass precious variables to config.status.
1941   if test "$ac_new_set" = set; then
1942     case $ac_new_val in
1943     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1944     *) ac_arg=$ac_var=$ac_new_val ;;
1945     esac
1946     case " $ac_configure_args " in
1947       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1948       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1949     esac
1950   fi
1951 done
1952 if $ac_cache_corrupted; then
1953   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1954 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1955   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1956 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1957    { (exit 1); exit 1; }; }
1958 fi
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984 ac_ext=c
1985 ac_cpp='$CPP $CPPFLAGS'
1986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1989
1990
1991
1992
1993 ac_aux_dir=
1994 for ac_dir in Tools/config "$srcdir"/Tools/config; do
1995   if test -f "$ac_dir/install-sh"; then
1996     ac_aux_dir=$ac_dir
1997     ac_install_sh="$ac_aux_dir/install-sh -c"
1998     break
1999   elif test -f "$ac_dir/install.sh"; then
2000     ac_aux_dir=$ac_dir
2001     ac_install_sh="$ac_aux_dir/install.sh -c"
2002     break
2003   elif test -f "$ac_dir/shtool"; then
2004     ac_aux_dir=$ac_dir
2005     ac_install_sh="$ac_aux_dir/shtool install -c"
2006     break
2007   fi
2008 done
2009 if test -z "$ac_aux_dir"; then
2010   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in Tools/config \"$srcdir\"/Tools/config" >&5
2011 echo "$as_me: error: cannot find install-sh or install.sh in Tools/config \"$srcdir\"/Tools/config" >&2;}
2012    { (exit 1); exit 1; }; }
2013 fi
2014
2015 # These three variables are undocumented and unsupported,
2016 # and are intended to be withdrawn in a future Autoconf release.
2017 # They can cause serious problems if a builder's source tree is in a directory
2018 # whose full name contains unusual characters.
2019 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2020 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2021 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2022
2023
2024 ac_config_headers="$ac_config_headers Source/Include/swigconfig.h"
2025
2026 # Make sure we can run config.sub.
2027 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2028   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2029 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2030    { (exit 1); exit 1; }; }
2031
2032 { echo "$as_me:$LINENO: checking build system type" >&5
2033 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2034 if test "${ac_cv_build+set}" = set; then
2035   echo $ECHO_N "(cached) $ECHO_C" >&6
2036 else
2037   ac_build_alias=$build_alias
2038 test "x$ac_build_alias" = x &&
2039   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2040 test "x$ac_build_alias" = x &&
2041   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2042 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2043    { (exit 1); exit 1; }; }
2044 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2045   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2046 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2047    { (exit 1); exit 1; }; }
2048
2049 fi
2050 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2051 echo "${ECHO_T}$ac_cv_build" >&6; }
2052 case $ac_cv_build in
2053 *-*-*) ;;
2054 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2055 echo "$as_me: error: invalid value of canonical build" >&2;}
2056    { (exit 1); exit 1; }; };;
2057 esac
2058 build=$ac_cv_build
2059 ac_save_IFS=$IFS; IFS='-'
2060 set x $ac_cv_build
2061 shift
2062 build_cpu=$1
2063 build_vendor=$2
2064 shift; shift
2065 # Remember, the first character of IFS is used to create $*,
2066 # except with old shells:
2067 build_os=$*
2068 IFS=$ac_save_IFS
2069 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2070
2071
2072 { echo "$as_me:$LINENO: checking host system type" >&5
2073 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2074 if test "${ac_cv_host+set}" = set; then
2075   echo $ECHO_N "(cached) $ECHO_C" >&6
2076 else
2077   if test "x$host_alias" = x; then
2078   ac_cv_host=$ac_cv_build
2079 else
2080   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2081     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2082 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2083    { (exit 1); exit 1; }; }
2084 fi
2085
2086 fi
2087 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2088 echo "${ECHO_T}$ac_cv_host" >&6; }
2089 case $ac_cv_host in
2090 *-*-*) ;;
2091 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2092 echo "$as_me: error: invalid value of canonical host" >&2;}
2093    { (exit 1); exit 1; }; };;
2094 esac
2095 host=$ac_cv_host
2096 ac_save_IFS=$IFS; IFS='-'
2097 set x $ac_cv_host
2098 shift
2099 host_cpu=$1
2100 host_vendor=$2
2101 shift; shift
2102 # Remember, the first character of IFS is used to create $*,
2103 # except with old shells:
2104 host_os=$*
2105 IFS=$ac_save_IFS
2106 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2107
2108
2109 am__api_version='1.10'
2110
2111 # Find a good install program.  We prefer a C program (faster),
2112 # so one script is as good as another.  But avoid the broken or
2113 # incompatible versions:
2114 # SysV /etc/install, /usr/sbin/install
2115 # SunOS /usr/etc/install
2116 # IRIX /sbin/install
2117 # AIX /bin/install
2118 # AmigaOS /C/install, which installs bootblocks on floppy discs
2119 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2120 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2121 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2122 # OS/2's system install, which has a completely different semantic
2123 # ./install, which can be erroneously created by make from ./install.sh.
2124 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2125 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2126 if test -z "$INSTALL"; then
2127 if test "${ac_cv_path_install+set}" = set; then
2128   echo $ECHO_N "(cached) $ECHO_C" >&6
2129 else
2130   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2131 for as_dir in $PATH
2132 do
2133   IFS=$as_save_IFS
2134   test -z "$as_dir" && as_dir=.
2135   # Account for people who put trailing slashes in PATH elements.
2136 case $as_dir/ in
2137   ./ | .// | /cC/* | \
2138   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2139   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2140   /usr/ucb/* ) ;;
2141   *)
2142     # OSF1 and SCO ODT 3.0 have their own names for install.
2143     # Don't use installbsd from OSF since it installs stuff as root
2144     # by default.
2145     for ac_prog in ginstall scoinst install; do
2146       for ac_exec_ext in '' $ac_executable_extensions; do
2147         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2148           if test $ac_prog = install &&
2149             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2150             # AIX install.  It has an incompatible calling convention.
2151             :
2152           elif test $ac_prog = install &&
2153             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2154             # program-specific install script used by HP pwplus--don't use.
2155             :
2156           else
2157             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2158             break 3
2159           fi
2160         fi
2161       done
2162     done
2163     ;;
2164 esac
2165 done
2166 IFS=$as_save_IFS
2167
2168
2169 fi
2170   if test "${ac_cv_path_install+set}" = set; then
2171     INSTALL=$ac_cv_path_install
2172   else
2173     # As a last resort, use the slow shell script.  Don't cache a
2174     # value for INSTALL within a source directory, because that will
2175     # break other packages using the cache if that directory is
2176     # removed, or if the value is a relative name.
2177     INSTALL=$ac_install_sh
2178   fi
2179 fi
2180 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2181 echo "${ECHO_T}$INSTALL" >&6; }
2182
2183 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2184 # It thinks the first close brace ends the variable substitution.
2185 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2186
2187 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2188
2189 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2190
2191 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2192 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2193 # Just in case
2194 sleep 1
2195 echo timestamp > conftest.file
2196 # Do `set' in a subshell so we don't clobber the current shell's
2197 # arguments.  Must try -L first in case configure is actually a
2198 # symlink; some systems play weird games with the mod time of symlinks
2199 # (eg FreeBSD returns the mod time of the symlink's containing
2200 # directory).
2201 if (
2202    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2203    if test "$*" = "X"; then
2204       # -L didn't work.
2205       set X `ls -t $srcdir/configure conftest.file`
2206    fi
2207    rm -f conftest.file
2208    if test "$*" != "X $srcdir/configure conftest.file" \
2209       && test "$*" != "X conftest.file $srcdir/configure"; then
2210
2211       # If neither matched, then we have a broken ls.  This can happen
2212       # if, for instance, CONFIG_SHELL is bash and it inherits a
2213       # broken ls alias from the environment.  This has actually
2214       # happened.  Such a system could not be considered "sane".
2215       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2216 alias in your environment" >&5
2217 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2218 alias in your environment" >&2;}
2219    { (exit 1); exit 1; }; }
2220    fi
2221
2222    test "$2" = conftest.file
2223    )
2224 then
2225    # Ok.
2226    :
2227 else
2228    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2229 Check your system clock" >&5
2230 echo "$as_me: error: newly created file is older than distributed files!
2231 Check your system clock" >&2;}
2232    { (exit 1); exit 1; }; }
2233 fi
2234 { echo "$as_me:$LINENO: result: yes" >&5
2235 echo "${ECHO_T}yes" >&6; }
2236 test "$program_prefix" != NONE &&
2237   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2238 # Use a double $ so make ignores it.
2239 test "$program_suffix" != NONE &&
2240   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2241 # Double any \ or $.  echo might interpret backslashes.
2242 # By default was `s,x,x', remove it if useless.
2243 cat <<\_ACEOF >conftest.sed
2244 s/[\\$]/&&/g;s/;s,x,x,$//
2245 _ACEOF
2246 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2247 rm -f conftest.sed
2248
2249 # expand $ac_aux_dir to an absolute path
2250 am_aux_dir=`cd $ac_aux_dir && pwd`
2251
2252 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2253 # Use eval to expand $SHELL
2254 if eval "$MISSING --run true"; then
2255   am_missing_run="$MISSING --run "
2256 else
2257   am_missing_run=
2258   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2259 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2260 fi
2261
2262 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2263 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2264 if test -z "$MKDIR_P"; then
2265   if test "${ac_cv_path_mkdir+set}" = set; then
2266   echo $ECHO_N "(cached) $ECHO_C" >&6
2267 else
2268   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2270 do
2271   IFS=$as_save_IFS
2272   test -z "$as_dir" && as_dir=.
2273   for ac_prog in mkdir gmkdir; do
2274          for ac_exec_ext in '' $ac_executable_extensions; do
2275            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2276            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2277              'mkdir (GNU coreutils) '* | \
2278              'mkdir (coreutils) '* | \
2279              'mkdir (fileutils) '4.1*)
2280                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2281                break 3;;
2282            esac
2283          done
2284        done
2285 done
2286 IFS=$as_save_IFS
2287
2288 fi
2289
2290   if test "${ac_cv_path_mkdir+set}" = set; then
2291     MKDIR_P="$ac_cv_path_mkdir -p"
2292   else
2293     # As a last resort, use the slow shell script.  Don't cache a
2294     # value for MKDIR_P within a source directory, because that will
2295     # break other packages using the cache if that directory is
2296     # removed, or if the value is a relative name.
2297     test -d ./--version && rmdir ./--version
2298     MKDIR_P="$ac_install_sh -d"
2299   fi
2300 fi
2301 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2302 echo "${ECHO_T}$MKDIR_P" >&6; }
2303
2304 mkdir_p="$MKDIR_P"
2305 case $mkdir_p in
2306   [\\/$]* | ?:[\\/]*) ;;
2307   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2308 esac
2309
2310 for ac_prog in gawk mawk nawk awk
2311 do
2312   # Extract the first word of "$ac_prog", so it can be a program name with args.
2313 set dummy $ac_prog; ac_word=$2
2314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2316 if test "${ac_cv_prog_AWK+set}" = set; then
2317   echo $ECHO_N "(cached) $ECHO_C" >&6
2318 else
2319   if test -n "$AWK"; then
2320   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2321 else
2322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323 for as_dir in $PATH
2324 do
2325   IFS=$as_save_IFS
2326   test -z "$as_dir" && as_dir=.
2327   for ac_exec_ext in '' $ac_executable_extensions; do
2328   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2329     ac_cv_prog_AWK="$ac_prog"
2330     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2331     break 2
2332   fi
2333 done
2334 done
2335 IFS=$as_save_IFS
2336
2337 fi
2338 fi
2339 AWK=$ac_cv_prog_AWK
2340 if test -n "$AWK"; then
2341   { echo "$as_me:$LINENO: result: $AWK" >&5
2342 echo "${ECHO_T}$AWK" >&6; }
2343 else
2344   { echo "$as_me:$LINENO: result: no" >&5
2345 echo "${ECHO_T}no" >&6; }
2346 fi
2347
2348
2349   test -n "$AWK" && break
2350 done
2351
2352 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2353 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2354 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2355 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2356   echo $ECHO_N "(cached) $ECHO_C" >&6
2357 else
2358   cat >conftest.make <<\_ACEOF
2359 SHELL = /bin/sh
2360 all:
2361         @echo '@@@%%%=$(MAKE)=@@@%%%'
2362 _ACEOF
2363 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2364 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2365   *@@@%%%=?*=@@@%%%*)
2366     eval ac_cv_prog_make_${ac_make}_set=yes;;
2367   *)
2368     eval ac_cv_prog_make_${ac_make}_set=no;;
2369 esac
2370 rm -f conftest.make
2371 fi
2372 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2373   { echo "$as_me:$LINENO: result: yes" >&5
2374 echo "${ECHO_T}yes" >&6; }
2375   SET_MAKE=
2376 else
2377   { echo "$as_me:$LINENO: result: no" >&5
2378 echo "${ECHO_T}no" >&6; }
2379   SET_MAKE="MAKE=${MAKE-make}"
2380 fi
2381
2382 rm -rf .tst 2>/dev/null
2383 mkdir .tst 2>/dev/null
2384 if test -d .tst; then
2385   am__leading_dot=.
2386 else
2387   am__leading_dot=_
2388 fi
2389 rmdir .tst 2>/dev/null
2390
2391 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2392   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2393   # is not polluted with repeated "-I."
2394   am__isrc=' -I$(srcdir)'
2395   # test to see if srcdir already configured
2396   if test -f $srcdir/config.status; then
2397     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2398 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2399    { (exit 1); exit 1; }; }
2400   fi
2401 fi
2402
2403 # test whether we have cygpath
2404 if test -z "$CYGPATH_W"; then
2405   if (cygpath --version) >/dev/null 2>/dev/null; then
2406     CYGPATH_W='cygpath -w'
2407   else
2408     CYGPATH_W=echo
2409   fi
2410 fi
2411
2412
2413 # Define the identity of the package.
2414  PACKAGE='swig'
2415  VERSION='1.3.40'
2416
2417
2418 cat >>confdefs.h <<_ACEOF
2419 #define PACKAGE "$PACKAGE"
2420 _ACEOF
2421
2422
2423 cat >>confdefs.h <<_ACEOF
2424 #define VERSION "$VERSION"
2425 _ACEOF
2426
2427 # Some tools Automake needs.
2428
2429 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2430
2431
2432 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2433
2434
2435 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2436
2437
2438 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2439
2440
2441 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2442
2443 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2444
2445 # Installed binaries are usually stripped using `strip' when the user
2446 # run `make install-strip'.  However `strip' might not be the right
2447 # tool to use in cross-compilation environments, therefore Automake
2448 # will honor the `STRIP' environment variable to overrule this program.
2449 if test "$cross_compiling" != no; then
2450   if test -n "$ac_tool_prefix"; then
2451   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2452 set dummy ${ac_tool_prefix}strip; ac_word=$2
2453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2455 if test "${ac_cv_prog_STRIP+set}" = set; then
2456   echo $ECHO_N "(cached) $ECHO_C" >&6
2457 else
2458   if test -n "$STRIP"; then
2459   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2460 else
2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462 for as_dir in $PATH
2463 do
2464   IFS=$as_save_IFS
2465   test -z "$as_dir" && as_dir=.
2466   for ac_exec_ext in '' $ac_executable_extensions; do
2467   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2468     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2469     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2470     break 2
2471   fi
2472 done
2473 done
2474 IFS=$as_save_IFS
2475
2476 fi
2477 fi
2478 STRIP=$ac_cv_prog_STRIP
2479 if test -n "$STRIP"; then
2480   { echo "$as_me:$LINENO: result: $STRIP" >&5
2481 echo "${ECHO_T}$STRIP" >&6; }
2482 else
2483   { echo "$as_me:$LINENO: result: no" >&5
2484 echo "${ECHO_T}no" >&6; }
2485 fi
2486
2487
2488 fi
2489 if test -z "$ac_cv_prog_STRIP"; then
2490   ac_ct_STRIP=$STRIP
2491   # Extract the first word of "strip", so it can be a program name with args.
2492 set dummy strip; ac_word=$2
2493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2495 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2496   echo $ECHO_N "(cached) $ECHO_C" >&6
2497 else
2498   if test -n "$ac_ct_STRIP"; then
2499   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2500 else
2501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502 for as_dir in $PATH
2503 do
2504   IFS=$as_save_IFS
2505   test -z "$as_dir" && as_dir=.
2506   for ac_exec_ext in '' $ac_executable_extensions; do
2507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2508     ac_cv_prog_ac_ct_STRIP="strip"
2509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2510     break 2
2511   fi
2512 done
2513 done
2514 IFS=$as_save_IFS
2515
2516 fi
2517 fi
2518 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2519 if test -n "$ac_ct_STRIP"; then
2520   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2521 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2522 else
2523   { echo "$as_me:$LINENO: result: no" >&5
2524 echo "${ECHO_T}no" >&6; }
2525 fi
2526
2527   if test "x$ac_ct_STRIP" = x; then
2528     STRIP=":"
2529   else
2530     case $cross_compiling:$ac_tool_warned in
2531 yes:)
2532 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2533 whose name does not start with the host triplet.  If you think this
2534 configuration is useful to you, please write to autoconf@gnu.org." >&5
2535 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2536 whose name does not start with the host triplet.  If you think this
2537 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2538 ac_tool_warned=yes ;;
2539 esac
2540     STRIP=$ac_ct_STRIP
2541   fi
2542 else
2543   STRIP="$ac_cv_prog_STRIP"
2544 fi
2545
2546 fi
2547 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2548
2549 # We need awk for the "check" target.  The system "awk" is bad on
2550 # some platforms.
2551 # Always define AMTAR for backward compatibility.
2552
2553 AMTAR=${AMTAR-"${am_missing_run}tar"}
2554
2555 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565 ac_ext=c
2566 ac_cpp='$CPP $CPPFLAGS'
2567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2570 if test -n "$ac_tool_prefix"; then
2571   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2572 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2575 if test "${ac_cv_prog_CC+set}" = set; then
2576   echo $ECHO_N "(cached) $ECHO_C" >&6
2577 else
2578   if test -n "$CC"; then
2579   ac_cv_prog_CC="$CC" # Let the user override the test.
2580 else
2581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582 for as_dir in $PATH
2583 do
2584   IFS=$as_save_IFS
2585   test -z "$as_dir" && as_dir=.
2586   for ac_exec_ext in '' $ac_executable_extensions; do
2587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2588     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2589     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2590     break 2
2591   fi
2592 done
2593 done
2594 IFS=$as_save_IFS
2595
2596 fi
2597 fi
2598 CC=$ac_cv_prog_CC
2599 if test -n "$CC"; then
2600   { echo "$as_me:$LINENO: result: $CC" >&5
2601 echo "${ECHO_T}$CC" >&6; }
2602 else
2603   { echo "$as_me:$LINENO: result: no" >&5
2604 echo "${ECHO_T}no" >&6; }
2605 fi
2606
2607
2608 fi
2609 if test -z "$ac_cv_prog_CC"; then
2610   ac_ct_CC=$CC
2611   # Extract the first word of "gcc", so it can be a program name with args.
2612 set dummy gcc; ac_word=$2
2613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2615 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2616   echo $ECHO_N "(cached) $ECHO_C" >&6
2617 else
2618   if test -n "$ac_ct_CC"; then
2619   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2620 else
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 for as_dir in $PATH
2623 do
2624   IFS=$as_save_IFS
2625   test -z "$as_dir" && as_dir=.
2626   for ac_exec_ext in '' $ac_executable_extensions; do
2627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2628     ac_cv_prog_ac_ct_CC="gcc"
2629     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2630     break 2
2631   fi
2632 done
2633 done
2634 IFS=$as_save_IFS
2635
2636 fi
2637 fi
2638 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2639 if test -n "$ac_ct_CC"; then
2640   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2641 echo "${ECHO_T}$ac_ct_CC" >&6; }
2642 else
2643   { echo "$as_me:$LINENO: result: no" >&5
2644 echo "${ECHO_T}no" >&6; }
2645 fi
2646
2647   if test "x$ac_ct_CC" = x; then
2648     CC=""
2649   else
2650     case $cross_compiling:$ac_tool_warned in
2651 yes:)
2652 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2653 whose name does not start with the host triplet.  If you think this
2654 configuration is useful to you, please write to autoconf@gnu.org." >&5
2655 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2656 whose name does not start with the host triplet.  If you think this
2657 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2658 ac_tool_warned=yes ;;
2659 esac
2660     CC=$ac_ct_CC
2661   fi
2662 else
2663   CC="$ac_cv_prog_CC"
2664 fi
2665
2666 if test -z "$CC"; then
2667           if test -n "$ac_tool_prefix"; then
2668     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2669 set dummy ${ac_tool_prefix}cc; ac_word=$2
2670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2672 if test "${ac_cv_prog_CC+set}" = set; then
2673   echo $ECHO_N "(cached) $ECHO_C" >&6
2674 else
2675   if test -n "$CC"; then
2676   ac_cv_prog_CC="$CC" # Let the user override the test.
2677 else
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679 for as_dir in $PATH
2680 do
2681   IFS=$as_save_IFS
2682   test -z "$as_dir" && as_dir=.
2683   for ac_exec_ext in '' $ac_executable_extensions; do
2684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2685     ac_cv_prog_CC="${ac_tool_prefix}cc"
2686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2687     break 2
2688   fi
2689 done
2690 done
2691 IFS=$as_save_IFS
2692
2693 fi
2694 fi
2695 CC=$ac_cv_prog_CC
2696 if test -n "$CC"; then
2697   { echo "$as_me:$LINENO: result: $CC" >&5
2698 echo "${ECHO_T}$CC" >&6; }
2699 else
2700   { echo "$as_me:$LINENO: result: no" >&5
2701 echo "${ECHO_T}no" >&6; }
2702 fi
2703
2704
2705   fi
2706 fi
2707 if test -z "$CC"; then
2708   # Extract the first word of "cc", so it can be a program name with args.
2709 set dummy cc; ac_word=$2
2710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2712 if test "${ac_cv_prog_CC+set}" = set; then
2713   echo $ECHO_N "(cached) $ECHO_C" >&6
2714 else
2715   if test -n "$CC"; then
2716   ac_cv_prog_CC="$CC" # Let the user override the test.
2717 else
2718   ac_prog_rejected=no
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     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2727        ac_prog_rejected=yes
2728        continue
2729      fi
2730     ac_cv_prog_CC="cc"
2731     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2732     break 2
2733   fi
2734 done
2735 done
2736 IFS=$as_save_IFS
2737
2738 if test $ac_prog_rejected = yes; then
2739   # We found a bogon in the path, so make sure we never use it.
2740   set dummy $ac_cv_prog_CC
2741   shift
2742   if test $# != 0; then
2743     # We chose a different compiler from the bogus one.
2744     # However, it has the same basename, so the bogon will be chosen
2745     # first if we set CC to just the basename; use the full file name.
2746     shift
2747     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2748   fi
2749 fi
2750 fi
2751 fi
2752 CC=$ac_cv_prog_CC
2753 if test -n "$CC"; then
2754   { echo "$as_me:$LINENO: result: $CC" >&5
2755 echo "${ECHO_T}$CC" >&6; }
2756 else
2757   { echo "$as_me:$LINENO: result: no" >&5
2758 echo "${ECHO_T}no" >&6; }
2759 fi
2760
2761
2762 fi
2763 if test -z "$CC"; then
2764   if test -n "$ac_tool_prefix"; then
2765   for ac_prog in cl.exe
2766   do
2767     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2768 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2771 if test "${ac_cv_prog_CC+set}" = set; then
2772   echo $ECHO_N "(cached) $ECHO_C" >&6
2773 else
2774   if test -n "$CC"; then
2775   ac_cv_prog_CC="$CC" # Let the user override the test.
2776 else
2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 for as_dir in $PATH
2779 do
2780   IFS=$as_save_IFS
2781   test -z "$as_dir" && as_dir=.
2782   for ac_exec_ext in '' $ac_executable_extensions; do
2783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2784     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2786     break 2
2787   fi
2788 done
2789 done
2790 IFS=$as_save_IFS
2791
2792 fi
2793 fi
2794 CC=$ac_cv_prog_CC
2795 if test -n "$CC"; then
2796   { echo "$as_me:$LINENO: result: $CC" >&5
2797 echo "${ECHO_T}$CC" >&6; }
2798 else
2799   { echo "$as_me:$LINENO: result: no" >&5
2800 echo "${ECHO_T}no" >&6; }
2801 fi
2802
2803
2804     test -n "$CC" && break
2805   done
2806 fi
2807 if test -z "$CC"; then
2808   ac_ct_CC=$CC
2809   for ac_prog in cl.exe
2810 do
2811   # Extract the first word of "$ac_prog", so it can be a program name with args.
2812 set dummy $ac_prog; ac_word=$2
2813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2815 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2816   echo $ECHO_N "(cached) $ECHO_C" >&6
2817 else
2818   if test -n "$ac_ct_CC"; then
2819   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2820 else
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH
2823 do
2824   IFS=$as_save_IFS
2825   test -z "$as_dir" && as_dir=.
2826   for ac_exec_ext in '' $ac_executable_extensions; do
2827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2828     ac_cv_prog_ac_ct_CC="$ac_prog"
2829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2830     break 2
2831   fi
2832 done
2833 done
2834 IFS=$as_save_IFS
2835
2836 fi
2837 fi
2838 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2839 if test -n "$ac_ct_CC"; then
2840   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2841 echo "${ECHO_T}$ac_ct_CC" >&6; }
2842 else
2843   { echo "$as_me:$LINENO: result: no" >&5
2844 echo "${ECHO_T}no" >&6; }
2845 fi
2846
2847
2848   test -n "$ac_ct_CC" && break
2849 done
2850
2851   if test "x$ac_ct_CC" = x; then
2852     CC=""
2853   else
2854     case $cross_compiling:$ac_tool_warned in
2855 yes:)
2856 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2857 whose name does not start with the host triplet.  If you think this
2858 configuration is useful to you, please write to autoconf@gnu.org." >&5
2859 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2860 whose name does not start with the host triplet.  If you think this
2861 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2862 ac_tool_warned=yes ;;
2863 esac
2864     CC=$ac_ct_CC
2865   fi
2866 fi
2867
2868 fi
2869
2870
2871 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2872 See \`config.log' for more details." >&5
2873 echo "$as_me: error: no acceptable C compiler found in \$PATH
2874 See \`config.log' for more details." >&2;}
2875    { (exit 1); exit 1; }; }
2876
2877 # Provide some information about the compiler.
2878 echo "$as_me:$LINENO: checking for C compiler version" >&5
2879 ac_compiler=`set X $ac_compile; echo $2`
2880 { (ac_try="$ac_compiler --version >&5"
2881 case "(($ac_try" in
2882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883   *) ac_try_echo=$ac_try;;
2884 esac
2885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2886   (eval "$ac_compiler --version >&5") 2>&5
2887   ac_status=$?
2888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889   (exit $ac_status); }
2890 { (ac_try="$ac_compiler -v >&5"
2891 case "(($ac_try" in
2892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893   *) ac_try_echo=$ac_try;;
2894 esac
2895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2896   (eval "$ac_compiler -v >&5") 2>&5
2897   ac_status=$?
2898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899   (exit $ac_status); }
2900 { (ac_try="$ac_compiler -V >&5"
2901 case "(($ac_try" in
2902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903   *) ac_try_echo=$ac_try;;
2904 esac
2905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2906   (eval "$ac_compiler -V >&5") 2>&5
2907   ac_status=$?
2908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909   (exit $ac_status); }
2910
2911 cat >conftest.$ac_ext <<_ACEOF
2912 /* confdefs.h.  */
2913 _ACEOF
2914 cat confdefs.h >>conftest.$ac_ext
2915 cat >>conftest.$ac_ext <<_ACEOF
2916 /* end confdefs.h.  */
2917
2918 int
2919 main ()
2920 {
2921
2922   ;
2923   return 0;
2924 }
2925 _ACEOF
2926 ac_clean_files_save=$ac_clean_files
2927 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2928 # Try to create an executable without -o first, disregard a.out.
2929 # It will help us diagnose broken compilers, and finding out an intuition
2930 # of exeext.
2931 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2932 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2933 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2934 #
2935 # List of possible output files, starting from the most likely.
2936 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2937 # only as a last resort.  b.out is created by i960 compilers.
2938 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2939 #
2940 # The IRIX 6 linker writes into existing files which may not be
2941 # executable, retaining their permissions.  Remove them first so a
2942 # subsequent execution test works.
2943 ac_rmfiles=
2944 for ac_file in $ac_files
2945 do
2946   case $ac_file in
2947     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2948     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2949   esac
2950 done
2951 rm -f $ac_rmfiles
2952
2953 if { (ac_try="$ac_link_default"
2954 case "(($ac_try" in
2955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956   *) ac_try_echo=$ac_try;;
2957 esac
2958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959   (eval "$ac_link_default") 2>&5
2960   ac_status=$?
2961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962   (exit $ac_status); }; then
2963   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2964 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2965 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2966 # so that the user can short-circuit this test for compilers unknown to
2967 # Autoconf.
2968 for ac_file in $ac_files ''
2969 do
2970   test -f "$ac_file" || continue
2971   case $ac_file in
2972     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2973         ;;
2974     [ab].out )
2975         # We found the default executable, but exeext='' is most
2976         # certainly right.
2977         break;;
2978     *.* )
2979         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2980         then :; else
2981            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2982         fi
2983         # We set ac_cv_exeext here because the later test for it is not
2984         # safe: cross compilers may not add the suffix if given an `-o'
2985         # argument, so we may need to know it at that point already.
2986         # Even if this section looks crufty: it has the advantage of
2987         # actually working.
2988         break;;
2989     * )
2990         break;;
2991   esac
2992 done
2993 test "$ac_cv_exeext" = no && ac_cv_exeext=
2994
2995 else
2996   ac_file=''
2997 fi
2998
2999 { echo "$as_me:$LINENO: result: $ac_file" >&5
3000 echo "${ECHO_T}$ac_file" >&6; }
3001 if test -z "$ac_file"; then
3002   echo "$as_me: failed program was:" >&5
3003 sed 's/^/| /' conftest.$ac_ext >&5
3004
3005 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3006 See \`config.log' for more details." >&5
3007 echo "$as_me: error: C compiler cannot create executables
3008 See \`config.log' for more details." >&2;}
3009    { (exit 77); exit 77; }; }
3010 fi
3011
3012 ac_exeext=$ac_cv_exeext
3013
3014 # Check that the compiler produces executables we can run.  If not, either
3015 # the compiler is broken, or we cross compile.
3016 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3017 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3018 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3019 # If not cross compiling, check that we can run a simple program.
3020 if test "$cross_compiling" != yes; then
3021   if { ac_try='./$ac_file'
3022   { (case "(($ac_try" in
3023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024   *) ac_try_echo=$ac_try;;
3025 esac
3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027   (eval "$ac_try") 2>&5
3028   ac_status=$?
3029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030   (exit $ac_status); }; }; then
3031     cross_compiling=no
3032   else
3033     if test "$cross_compiling" = maybe; then
3034         cross_compiling=yes
3035     else
3036         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3037 If you meant to cross compile, use \`--host'.
3038 See \`config.log' for more details." >&5
3039 echo "$as_me: error: cannot run C compiled programs.
3040 If you meant to cross compile, use \`--host'.
3041 See \`config.log' for more details." >&2;}
3042    { (exit 1); exit 1; }; }
3043     fi
3044   fi
3045 fi
3046 { echo "$as_me:$LINENO: result: yes" >&5
3047 echo "${ECHO_T}yes" >&6; }
3048
3049 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3050 ac_clean_files=$ac_clean_files_save
3051 # Check that the compiler produces executables we can run.  If not, either
3052 # the compiler is broken, or we cross compile.
3053 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3054 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3055 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3056 echo "${ECHO_T}$cross_compiling" >&6; }
3057
3058 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3059 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3060 if { (ac_try="$ac_link"
3061 case "(($ac_try" in
3062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063   *) ac_try_echo=$ac_try;;
3064 esac
3065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3066   (eval "$ac_link") 2>&5
3067   ac_status=$?
3068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069   (exit $ac_status); }; then
3070   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3071 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3072 # work properly (i.e., refer to `conftest.exe'), while it won't with
3073 # `rm'.
3074 for ac_file in conftest.exe conftest conftest.*; do
3075   test -f "$ac_file" || continue
3076   case $ac_file in
3077     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3078     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3079           break;;
3080     * ) break;;
3081   esac
3082 done
3083 else
3084   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3085 See \`config.log' for more details." >&5
3086 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3087 See \`config.log' for more details." >&2;}
3088    { (exit 1); exit 1; }; }
3089 fi
3090
3091 rm -f conftest$ac_cv_exeext
3092 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3093 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3094
3095 rm -f conftest.$ac_ext
3096 EXEEXT=$ac_cv_exeext
3097 ac_exeext=$EXEEXT
3098 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3099 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3100 if test "${ac_cv_objext+set}" = set; then
3101   echo $ECHO_N "(cached) $ECHO_C" >&6
3102 else
3103   cat >conftest.$ac_ext <<_ACEOF
3104 /* confdefs.h.  */
3105 _ACEOF
3106 cat confdefs.h >>conftest.$ac_ext
3107 cat >>conftest.$ac_ext <<_ACEOF
3108 /* end confdefs.h.  */
3109
3110 int
3111 main ()
3112 {
3113
3114   ;
3115   return 0;
3116 }
3117 _ACEOF
3118 rm -f conftest.o conftest.obj
3119 if { (ac_try="$ac_compile"
3120 case "(($ac_try" in
3121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122   *) ac_try_echo=$ac_try;;
3123 esac
3124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125   (eval "$ac_compile") 2>&5
3126   ac_status=$?
3127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128   (exit $ac_status); }; then
3129   for ac_file in conftest.o conftest.obj conftest.*; do
3130   test -f "$ac_file" || continue;
3131   case $ac_file in
3132     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3133     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3134        break;;
3135   esac
3136 done
3137 else
3138   echo "$as_me: failed program was:" >&5
3139 sed 's/^/| /' conftest.$ac_ext >&5
3140
3141 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3142 See \`config.log' for more details." >&5
3143 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3144 See \`config.log' for more details." >&2;}
3145    { (exit 1); exit 1; }; }
3146 fi
3147
3148 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3149 fi
3150 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3151 echo "${ECHO_T}$ac_cv_objext" >&6; }
3152 OBJEXT=$ac_cv_objext
3153 ac_objext=$OBJEXT
3154 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3155 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3156 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3157   echo $ECHO_N "(cached) $ECHO_C" >&6
3158 else
3159   cat >conftest.$ac_ext <<_ACEOF
3160 /* confdefs.h.  */
3161 _ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h.  */
3165
3166 int
3167 main ()
3168 {
3169 #ifndef __GNUC__
3170        choke me
3171 #endif
3172
3173   ;
3174   return 0;
3175 }
3176 _ACEOF
3177 rm -f conftest.$ac_objext
3178 if { (ac_try="$ac_compile"
3179 case "(($ac_try" in
3180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181   *) ac_try_echo=$ac_try;;
3182 esac
3183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184   (eval "$ac_compile") 2>conftest.er1
3185   ac_status=$?
3186   grep -v '^ *+' conftest.er1 >conftest.err
3187   rm -f conftest.er1
3188   cat conftest.err >&5
3189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190   (exit $ac_status); } && {
3191          test -z "$ac_c_werror_flag" ||
3192          test ! -s conftest.err
3193        } && test -s conftest.$ac_objext; then
3194   ac_compiler_gnu=yes
3195 else
3196   echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.$ac_ext >&5
3198
3199         ac_compiler_gnu=no
3200 fi
3201
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3204
3205 fi
3206 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3207 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3208 GCC=`test $ac_compiler_gnu = yes && echo yes`
3209 ac_test_CFLAGS=${CFLAGS+set}
3210 ac_save_CFLAGS=$CFLAGS
3211 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3212 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3213 if test "${ac_cv_prog_cc_g+set}" = set; then
3214   echo $ECHO_N "(cached) $ECHO_C" >&6
3215 else
3216   ac_save_c_werror_flag=$ac_c_werror_flag
3217    ac_c_werror_flag=yes
3218    ac_cv_prog_cc_g=no
3219    CFLAGS="-g"
3220    cat >conftest.$ac_ext <<_ACEOF
3221 /* confdefs.h.  */
3222 _ACEOF
3223 cat confdefs.h >>conftest.$ac_ext
3224 cat >>conftest.$ac_ext <<_ACEOF
3225 /* end confdefs.h.  */
3226
3227 int
3228 main ()
3229 {
3230
3231   ;
3232   return 0;
3233 }
3234 _ACEOF
3235 rm -f conftest.$ac_objext
3236 if { (ac_try="$ac_compile"
3237 case "(($ac_try" in
3238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239   *) ac_try_echo=$ac_try;;
3240 esac
3241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3242   (eval "$ac_compile") 2>conftest.er1
3243   ac_status=$?
3244   grep -v '^ *+' conftest.er1 >conftest.err
3245   rm -f conftest.er1
3246   cat conftest.err >&5
3247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248   (exit $ac_status); } && {
3249          test -z "$ac_c_werror_flag" ||
3250          test ! -s conftest.err
3251        } && test -s conftest.$ac_objext; then
3252   ac_cv_prog_cc_g=yes
3253 else
3254   echo "$as_me: failed program was:" >&5
3255 sed 's/^/| /' conftest.$ac_ext >&5
3256
3257         CFLAGS=""
3258       cat >conftest.$ac_ext <<_ACEOF
3259 /* confdefs.h.  */
3260 _ACEOF
3261 cat confdefs.h >>conftest.$ac_ext
3262 cat >>conftest.$ac_ext <<_ACEOF
3263 /* end confdefs.h.  */
3264
3265 int
3266 main ()
3267 {
3268
3269   ;
3270   return 0;
3271 }
3272 _ACEOF
3273 rm -f conftest.$ac_objext
3274 if { (ac_try="$ac_compile"
3275 case "(($ac_try" in
3276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277   *) ac_try_echo=$ac_try;;
3278 esac
3279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280   (eval "$ac_compile") 2>conftest.er1
3281   ac_status=$?
3282   grep -v '^ *+' conftest.er1 >conftest.err
3283   rm -f conftest.er1
3284   cat conftest.err >&5
3285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286   (exit $ac_status); } && {
3287          test -z "$ac_c_werror_flag" ||
3288          test ! -s conftest.err
3289        } && test -s conftest.$ac_objext; then
3290   :
3291 else
3292   echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.$ac_ext >&5
3294
3295         ac_c_werror_flag=$ac_save_c_werror_flag
3296          CFLAGS="-g"
3297          cat >conftest.$ac_ext <<_ACEOF
3298 /* confdefs.h.  */
3299 _ACEOF
3300 cat confdefs.h >>conftest.$ac_ext
3301 cat >>conftest.$ac_ext <<_ACEOF
3302 /* end confdefs.h.  */
3303
3304 int
3305 main ()
3306 {
3307
3308   ;
3309   return 0;
3310 }
3311 _ACEOF
3312 rm -f conftest.$ac_objext
3313 if { (ac_try="$ac_compile"
3314 case "(($ac_try" in
3315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316   *) ac_try_echo=$ac_try;;
3317 esac
3318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3319   (eval "$ac_compile") 2>conftest.er1
3320   ac_status=$?
3321   grep -v '^ *+' conftest.er1 >conftest.err
3322   rm -f conftest.er1
3323   cat conftest.err >&5
3324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325   (exit $ac_status); } && {
3326          test -z "$ac_c_werror_flag" ||
3327          test ! -s conftest.err
3328        } && test -s conftest.$ac_objext; then
3329   ac_cv_prog_cc_g=yes
3330 else
3331   echo "$as_me: failed program was:" >&5
3332 sed 's/^/| /' conftest.$ac_ext >&5
3333
3334
3335 fi
3336
3337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3338 fi
3339
3340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3341 fi
3342
3343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3344    ac_c_werror_flag=$ac_save_c_werror_flag
3345 fi
3346 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3347 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3348 if test "$ac_test_CFLAGS" = set; then
3349   CFLAGS=$ac_save_CFLAGS
3350 elif test $ac_cv_prog_cc_g = yes; then
3351   if test "$GCC" = yes; then
3352     CFLAGS="-g -O2"
3353   else
3354     CFLAGS="-g"
3355   fi
3356 else
3357   if test "$GCC" = yes; then
3358     CFLAGS="-O2"
3359   else
3360     CFLAGS=
3361   fi
3362 fi
3363 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3364 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3365 if test "${ac_cv_prog_cc_c89+set}" = set; then
3366   echo $ECHO_N "(cached) $ECHO_C" >&6
3367 else
3368   ac_cv_prog_cc_c89=no
3369 ac_save_CC=$CC
3370 cat >conftest.$ac_ext <<_ACEOF
3371 /* confdefs.h.  */
3372 _ACEOF
3373 cat confdefs.h >>conftest.$ac_ext
3374 cat >>conftest.$ac_ext <<_ACEOF
3375 /* end confdefs.h.  */
3376 #include <stdarg.h>
3377 #include <stdio.h>
3378 #include <sys/types.h>
3379 #include <sys/stat.h>
3380 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3381 struct buf { int x; };
3382 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3383 static char *e (p, i)
3384      char **p;
3385      int i;
3386 {
3387   return p[i];
3388 }
3389 static char *f (char * (*g) (char **, int), char **p, ...)
3390 {
3391   char *s;
3392   va_list v;
3393   va_start (v,p);
3394   s = g (p, va_arg (v,int));
3395   va_end (v);
3396   return s;
3397 }
3398
3399 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3400    function prototypes and stuff, but not '\xHH' hex character constants.
3401    These don't provoke an error unfortunately, instead are silently treated
3402    as 'x'.  The following induces an error, until -std is added to get
3403    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3404    array size at least.  It's necessary to write '\x00'==0 to get something
3405    that's true only with -std.  */
3406 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3407
3408 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3409    inside strings and character constants.  */
3410 #define FOO(x) 'x'
3411 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3412
3413 int test (int i, double x);
3414 struct s1 {int (*f) (int a);};
3415 struct s2 {int (*f) (double a);};
3416 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3417 int argc;
3418 char **argv;
3419 int
3420 main ()
3421 {
3422 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3423   ;
3424   return 0;
3425 }
3426 _ACEOF
3427 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3428         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3429 do
3430   CC="$ac_save_CC $ac_arg"
3431   rm -f conftest.$ac_objext
3432 if { (ac_try="$ac_compile"
3433 case "(($ac_try" in
3434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435   *) ac_try_echo=$ac_try;;
3436 esac
3437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438   (eval "$ac_compile") 2>conftest.er1
3439   ac_status=$?
3440   grep -v '^ *+' conftest.er1 >conftest.err
3441   rm -f conftest.er1
3442   cat conftest.err >&5
3443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444   (exit $ac_status); } && {
3445          test -z "$ac_c_werror_flag" ||
3446          test ! -s conftest.err
3447        } && test -s conftest.$ac_objext; then
3448   ac_cv_prog_cc_c89=$ac_arg
3449 else
3450   echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.$ac_ext >&5
3452
3453
3454 fi
3455
3456 rm -f core conftest.err conftest.$ac_objext
3457   test "x$ac_cv_prog_cc_c89" != "xno" && break
3458 done
3459 rm -f conftest.$ac_ext
3460 CC=$ac_save_CC
3461
3462 fi
3463 # AC_CACHE_VAL
3464 case "x$ac_cv_prog_cc_c89" in
3465   x)
3466     { echo "$as_me:$LINENO: result: none needed" >&5
3467 echo "${ECHO_T}none needed" >&6; } ;;
3468   xno)
3469     { echo "$as_me:$LINENO: result: unsupported" >&5
3470 echo "${ECHO_T}unsupported" >&6; } ;;
3471   *)
3472     CC="$CC $ac_cv_prog_cc_c89"
3473     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3474 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3475 esac
3476
3477
3478 ac_ext=c
3479 ac_cpp='$CPP $CPPFLAGS'
3480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3483 DEPDIR="${am__leading_dot}deps"
3484
3485 ac_config_commands="$ac_config_commands depfiles"
3486
3487
3488 am_make=${MAKE-make}
3489 cat > confinc << 'END'
3490 am__doit:
3491         @echo done
3492 .PHONY: am__doit
3493 END
3494 # If we don't find an include directive, just comment out the code.
3495 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3496 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3497 am__include="#"
3498 am__quote=
3499 _am_result=none
3500 # First try GNU make style include.
3501 echo "include confinc" > confmf
3502 # We grep out `Entering directory' and `Leaving directory'
3503 # messages which can occur if `w' ends up in MAKEFLAGS.
3504 # In particular we don't look at `^make:' because GNU make might
3505 # be invoked under some other name (usually "gmake"), in which
3506 # case it prints its new name instead of `make'.
3507 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3508    am__include=include
3509    am__quote=
3510    _am_result=GNU
3511 fi
3512 # Now try BSD make style include.
3513 if test "$am__include" = "#"; then
3514    echo '.include "confinc"' > confmf
3515    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3516       am__include=.include
3517       am__quote="\""
3518       _am_result=BSD
3519    fi
3520 fi
3521
3522
3523 { echo "$as_me:$LINENO: result: $_am_result" >&5
3524 echo "${ECHO_T}$_am_result" >&6; }
3525 rm -f confinc confmf
3526
3527 # Check whether --enable-dependency-tracking was given.
3528 if test "${enable_dependency_tracking+set}" = set; then
3529   enableval=$enable_dependency_tracking;
3530 fi
3531
3532 if test "x$enable_dependency_tracking" != xno; then
3533   am_depcomp="$ac_aux_dir/depcomp"
3534   AMDEPBACKSLASH='\'
3535 fi
3536  if test "x$enable_dependency_tracking" != xno; then
3537   AMDEP_TRUE=
3538   AMDEP_FALSE='#'
3539 else
3540   AMDEP_TRUE='#'
3541   AMDEP_FALSE=
3542 fi
3543
3544
3545
3546 depcc="$CC"   am_compiler_list=
3547
3548 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3549 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3550 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3551   echo $ECHO_N "(cached) $ECHO_C" >&6
3552 else
3553   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3554   # We make a subdir and do the tests there.  Otherwise we can end up
3555   # making bogus files that we don't know about and never remove.  For
3556   # instance it was reported that on HP-UX the gcc test will end up
3557   # making a dummy file named `D' -- because `-MD' means `put the output
3558   # in D'.
3559   mkdir conftest.dir
3560   # Copy depcomp to subdir because otherwise we won't find it if we're
3561   # using a relative directory.
3562   cp "$am_depcomp" conftest.dir
3563   cd conftest.dir
3564   # We will build objects and dependencies in a subdirectory because
3565   # it helps to detect inapplicable dependency modes.  For instance
3566   # both Tru64's cc and ICC support -MD to output dependencies as a
3567   # side effect of compilation, but ICC will put the dependencies in
3568   # the current directory while Tru64 will put them in the object
3569   # directory.
3570   mkdir sub
3571
3572   am_cv_CC_dependencies_compiler_type=none
3573   if test "$am_compiler_list" = ""; then
3574      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3575   fi
3576   for depmode in $am_compiler_list; do
3577     # Setup a source with many dependencies, because some compilers
3578     # like to wrap large dependency lists on column 80 (with \), and
3579     # we should not choose a depcomp mode which is confused by this.
3580     #
3581     # We need to recreate these files for each test, as the compiler may
3582     # overwrite some of them when testing with obscure command lines.
3583     # This happens at least with the AIX C compiler.
3584     : > sub/conftest.c
3585     for i in 1 2 3 4 5 6; do
3586       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3587       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3588       # Solaris 8's {/usr,}/bin/sh.
3589       touch sub/conftst$i.h
3590     done
3591     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3592
3593     case $depmode in
3594     nosideeffect)
3595       # after this tag, mechanisms are not by side-effect, so they'll
3596       # only be used when explicitly requested
3597       if test "x$enable_dependency_tracking" = xyes; then
3598         continue
3599       else
3600         break
3601       fi
3602       ;;
3603     none) break ;;
3604     esac
3605     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3606     # mode.  It turns out that the SunPro C++ compiler does not properly
3607     # handle `-M -o', and we need to detect this.
3608     if depmode=$depmode \
3609        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3610        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3611        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3612          >/dev/null 2>conftest.err &&
3613        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3614        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3615        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3616        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3617       # icc doesn't choke on unknown options, it will just issue warnings
3618       # or remarks (even with -Werror).  So we grep stderr for any message
3619       # that says an option was ignored or not supported.
3620       # When given -MP, icc 7.0 and 7.1 complain thusly:
3621       #   icc: Command line warning: ignoring option '-M'; no argument required
3622       # The diagnosis changed in icc 8.0:
3623       #   icc: Command line remark: option '-MP' not supported
3624       if (grep 'ignoring option' conftest.err ||
3625           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3626         am_cv_CC_dependencies_compiler_type=$depmode
3627         break
3628       fi
3629     fi
3630   done
3631
3632   cd ..
3633   rm -rf conftest.dir
3634 else
3635   am_cv_CC_dependencies_compiler_type=none
3636 fi
3637
3638 fi
3639 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3640 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3641 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3642
3643  if
3644   test "x$enable_dependency_tracking" != xno \
3645   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3646   am__fastdepCC_TRUE=
3647   am__fastdepCC_FALSE='#'
3648 else
3649   am__fastdepCC_TRUE='#'
3650   am__fastdepCC_FALSE=
3651 fi
3652
3653
3654 ac_ext=cpp
3655 ac_cpp='$CXXCPP $CPPFLAGS'
3656 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3657 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3658 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3659 if test -z "$CXX"; then
3660   if test -n "$CCC"; then
3661     CXX=$CCC
3662   else
3663     if test -n "$ac_tool_prefix"; then
3664   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3665   do
3666     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3667 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3670 if test "${ac_cv_prog_CXX+set}" = set; then
3671   echo $ECHO_N "(cached) $ECHO_C" >&6
3672 else
3673   if test -n "$CXX"; then
3674   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3675 else
3676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 for as_dir in $PATH
3678 do
3679   IFS=$as_save_IFS
3680   test -z "$as_dir" && as_dir=.
3681   for ac_exec_ext in '' $ac_executable_extensions; do
3682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3683     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3685     break 2
3686   fi
3687 done
3688 done
3689 IFS=$as_save_IFS
3690
3691 fi
3692 fi
3693 CXX=$ac_cv_prog_CXX
3694 if test -n "$CXX"; then
3695   { echo "$as_me:$LINENO: result: $CXX" >&5
3696 echo "${ECHO_T}$CXX" >&6; }
3697 else
3698   { echo "$as_me:$LINENO: result: no" >&5
3699 echo "${ECHO_T}no" >&6; }
3700 fi
3701
3702
3703     test -n "$CXX" && break
3704   done
3705 fi
3706 if test -z "$CXX"; then
3707   ac_ct_CXX=$CXX
3708   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3709 do
3710   # Extract the first word of "$ac_prog", so it can be a program name with args.
3711 set dummy $ac_prog; ac_word=$2
3712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3714 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3715   echo $ECHO_N "(cached) $ECHO_C" >&6
3716 else
3717   if test -n "$ac_ct_CXX"; then
3718   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3719 else
3720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3721 for as_dir in $PATH
3722 do
3723   IFS=$as_save_IFS
3724   test -z "$as_dir" && as_dir=.
3725   for ac_exec_ext in '' $ac_executable_extensions; do
3726   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3727     ac_cv_prog_ac_ct_CXX="$ac_prog"
3728     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3729     break 2
3730   fi
3731 done
3732 done
3733 IFS=$as_save_IFS
3734
3735 fi
3736 fi
3737 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3738 if test -n "$ac_ct_CXX"; then
3739   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3740 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3741 else
3742   { echo "$as_me:$LINENO: result: no" >&5
3743 echo "${ECHO_T}no" >&6; }
3744 fi
3745
3746
3747   test -n "$ac_ct_CXX" && break
3748 done
3749
3750   if test "x$ac_ct_CXX" = x; then
3751     CXX="g++"
3752   else
3753     case $cross_compiling:$ac_tool_warned in
3754 yes:)
3755 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3756 whose name does not start with the host triplet.  If you think this
3757 configuration is useful to you, please write to autoconf@gnu.org." >&5
3758 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3759 whose name does not start with the host triplet.  If you think this
3760 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3761 ac_tool_warned=yes ;;
3762 esac
3763     CXX=$ac_ct_CXX
3764   fi
3765 fi
3766
3767   fi
3768 fi
3769 # Provide some information about the compiler.
3770 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3771 ac_compiler=`set X $ac_compile; echo $2`
3772 { (ac_try="$ac_compiler --version >&5"
3773 case "(($ac_try" in
3774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3775   *) ac_try_echo=$ac_try;;
3776 esac
3777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3778   (eval "$ac_compiler --version >&5") 2>&5
3779   ac_status=$?
3780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781   (exit $ac_status); }
3782 { (ac_try="$ac_compiler -v >&5"
3783 case "(($ac_try" in
3784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785   *) ac_try_echo=$ac_try;;
3786 esac
3787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3788   (eval "$ac_compiler -v >&5") 2>&5
3789   ac_status=$?
3790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791   (exit $ac_status); }
3792 { (ac_try="$ac_compiler -V >&5"
3793 case "(($ac_try" in
3794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795   *) ac_try_echo=$ac_try;;
3796 esac
3797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3798   (eval "$ac_compiler -V >&5") 2>&5
3799   ac_status=$?
3800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801   (exit $ac_status); }
3802
3803 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3804 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3805 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3806   echo $ECHO_N "(cached) $ECHO_C" >&6
3807 else
3808   cat >conftest.$ac_ext <<_ACEOF
3809 /* confdefs.h.  */
3810 _ACEOF
3811 cat confdefs.h >>conftest.$ac_ext
3812 cat >>conftest.$ac_ext <<_ACEOF
3813 /* end confdefs.h.  */
3814
3815 int
3816 main ()
3817 {
3818 #ifndef __GNUC__
3819        choke me
3820 #endif
3821
3822   ;
3823   return 0;
3824 }
3825 _ACEOF
3826 rm -f conftest.$ac_objext
3827 if { (ac_try="$ac_compile"
3828 case "(($ac_try" in
3829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830   *) ac_try_echo=$ac_try;;
3831 esac
3832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3833   (eval "$ac_compile") 2>conftest.er1
3834   ac_status=$?
3835   grep -v '^ *+' conftest.er1 >conftest.err
3836   rm -f conftest.er1
3837   cat conftest.err >&5
3838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839   (exit $ac_status); } && {
3840          test -z "$ac_cxx_werror_flag" ||
3841          test ! -s conftest.err
3842        } && test -s conftest.$ac_objext; then
3843   ac_compiler_gnu=yes
3844 else
3845   echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.$ac_ext >&5
3847
3848         ac_compiler_gnu=no
3849 fi
3850
3851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3852 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3853
3854 fi
3855 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3856 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3857 GXX=`test $ac_compiler_gnu = yes && echo yes`
3858 ac_test_CXXFLAGS=${CXXFLAGS+set}
3859 ac_save_CXXFLAGS=$CXXFLAGS
3860 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3861 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3862 if test "${ac_cv_prog_cxx_g+set}" = set; then
3863   echo $ECHO_N "(cached) $ECHO_C" >&6
3864 else
3865   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3866    ac_cxx_werror_flag=yes
3867    ac_cv_prog_cxx_g=no
3868    CXXFLAGS="-g"
3869    cat >conftest.$ac_ext <<_ACEOF
3870 /* confdefs.h.  */
3871 _ACEOF
3872 cat confdefs.h >>conftest.$ac_ext
3873 cat >>conftest.$ac_ext <<_ACEOF
3874 /* end confdefs.h.  */
3875
3876 int
3877 main ()
3878 {
3879
3880   ;
3881   return 0;
3882 }
3883 _ACEOF
3884 rm -f conftest.$ac_objext
3885 if { (ac_try="$ac_compile"
3886 case "(($ac_try" in
3887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3888   *) ac_try_echo=$ac_try;;
3889 esac
3890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3891   (eval "$ac_compile") 2>conftest.er1
3892   ac_status=$?
3893   grep -v '^ *+' conftest.er1 >conftest.err
3894   rm -f conftest.er1
3895   cat conftest.err >&5
3896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897   (exit $ac_status); } && {
3898          test -z "$ac_cxx_werror_flag" ||
3899          test ! -s conftest.err
3900        } && test -s conftest.$ac_objext; then
3901   ac_cv_prog_cxx_g=yes
3902 else
3903   echo "$as_me: failed program was:" >&5
3904 sed 's/^/| /' conftest.$ac_ext >&5
3905
3906         CXXFLAGS=""
3907       cat >conftest.$ac_ext <<_ACEOF
3908 /* confdefs.h.  */
3909 _ACEOF
3910 cat confdefs.h >>conftest.$ac_ext
3911 cat >>conftest.$ac_ext <<_ACEOF
3912 /* end confdefs.h.  */
3913
3914 int
3915 main ()
3916 {
3917
3918   ;
3919   return 0;
3920 }
3921 _ACEOF
3922 rm -f conftest.$ac_objext
3923 if { (ac_try="$ac_compile"
3924 case "(($ac_try" in
3925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3926   *) ac_try_echo=$ac_try;;
3927 esac
3928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3929   (eval "$ac_compile") 2>conftest.er1
3930   ac_status=$?
3931   grep -v '^ *+' conftest.er1 >conftest.err
3932   rm -f conftest.er1
3933   cat conftest.err >&5
3934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935   (exit $ac_status); } && {
3936          test -z "$ac_cxx_werror_flag" ||
3937          test ! -s conftest.err
3938        } && test -s conftest.$ac_objext; then
3939   :
3940 else
3941   echo "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.$ac_ext >&5
3943
3944         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3945          CXXFLAGS="-g"
3946          cat >conftest.$ac_ext <<_ACEOF
3947 /* confdefs.h.  */
3948 _ACEOF
3949 cat confdefs.h >>conftest.$ac_ext
3950 cat >>conftest.$ac_ext <<_ACEOF
3951 /* end confdefs.h.  */
3952
3953 int
3954 main ()
3955 {
3956
3957   ;
3958   return 0;
3959 }
3960 _ACEOF
3961 rm -f conftest.$ac_objext
3962 if { (ac_try="$ac_compile"
3963 case "(($ac_try" in
3964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965   *) ac_try_echo=$ac_try;;
3966 esac
3967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3968   (eval "$ac_compile") 2>conftest.er1
3969   ac_status=$?
3970   grep -v '^ *+' conftest.er1 >conftest.err
3971   rm -f conftest.er1
3972   cat conftest.err >&5
3973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974   (exit $ac_status); } && {
3975          test -z "$ac_cxx_werror_flag" ||
3976          test ! -s conftest.err
3977        } && test -s conftest.$ac_objext; then
3978   ac_cv_prog_cxx_g=yes
3979 else
3980   echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3982
3983
3984 fi
3985
3986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3987 fi
3988
3989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3990 fi
3991
3992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3993    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3994 fi
3995 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3996 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3997 if test "$ac_test_CXXFLAGS" = set; then
3998   CXXFLAGS=$ac_save_CXXFLAGS
3999 elif test $ac_cv_prog_cxx_g = yes; then
4000   if test "$GXX" = yes; then
4001     CXXFLAGS="-g -O2"
4002   else
4003     CXXFLAGS="-g"
4004   fi
4005 else
4006   if test "$GXX" = yes; then
4007     CXXFLAGS="-O2"
4008   else
4009     CXXFLAGS=
4010   fi
4011 fi
4012 ac_ext=c
4013 ac_cpp='$CPP $CPPFLAGS'
4014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4017
4018 depcc="$CXX"  am_compiler_list=
4019
4020 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4021 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4022 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4023   echo $ECHO_N "(cached) $ECHO_C" >&6
4024 else
4025   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4026   # We make a subdir and do the tests there.  Otherwise we can end up
4027   # making bogus files that we don't know about and never remove.  For
4028   # instance it was reported that on HP-UX the gcc test will end up
4029   # making a dummy file named `D' -- because `-MD' means `put the output
4030   # in D'.
4031   mkdir conftest.dir
4032   # Copy depcomp to subdir because otherwise we won't find it if we're
4033   # using a relative directory.
4034   cp "$am_depcomp" conftest.dir
4035   cd conftest.dir
4036   # We will build objects and dependencies in a subdirectory because
4037   # it helps to detect inapplicable dependency modes.  For instance
4038   # both Tru64's cc and ICC support -MD to output dependencies as a
4039   # side effect of compilation, but ICC will put the dependencies in
4040   # the current directory while Tru64 will put them in the object
4041   # directory.
4042   mkdir sub
4043
4044   am_cv_CXX_dependencies_compiler_type=none
4045   if test "$am_compiler_list" = ""; then
4046      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4047   fi
4048   for depmode in $am_compiler_list; do
4049     # Setup a source with many dependencies, because some compilers
4050     # like to wrap large dependency lists on column 80 (with \), and
4051     # we should not choose a depcomp mode which is confused by this.
4052     #
4053     # We need to recreate these files for each test, as the compiler may
4054     # overwrite some of them when testing with obscure command lines.
4055     # This happens at least with the AIX C compiler.
4056     : > sub/conftest.c
4057     for i in 1 2 3 4 5 6; do
4058       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4059       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4060       # Solaris 8's {/usr,}/bin/sh.
4061       touch sub/conftst$i.h
4062     done
4063     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4064
4065     case $depmode in
4066     nosideeffect)
4067       # after this tag, mechanisms are not by side-effect, so they'll
4068       # only be used when explicitly requested
4069       if test "x$enable_dependency_tracking" = xyes; then
4070         continue
4071       else
4072         break
4073       fi
4074       ;;
4075     none) break ;;
4076     esac
4077     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4078     # mode.  It turns out that the SunPro C++ compiler does not properly
4079     # handle `-M -o', and we need to detect this.
4080     if depmode=$depmode \
4081        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4082        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4083        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4084          >/dev/null 2>conftest.err &&
4085        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4086        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4087        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4088        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4089       # icc doesn't choke on unknown options, it will just issue warnings
4090       # or remarks (even with -Werror).  So we grep stderr for any message
4091       # that says an option was ignored or not supported.
4092       # When given -MP, icc 7.0 and 7.1 complain thusly:
4093       #   icc: Command line warning: ignoring option '-M'; no argument required
4094       # The diagnosis changed in icc 8.0:
4095       #   icc: Command line remark: option '-MP' not supported
4096       if (grep 'ignoring option' conftest.err ||
4097           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4098         am_cv_CXX_dependencies_compiler_type=$depmode
4099         break
4100       fi
4101     fi
4102   done
4103
4104   cd ..
4105   rm -rf conftest.dir
4106 else
4107   am_cv_CXX_dependencies_compiler_type=none
4108 fi
4109
4110 fi
4111 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4112 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4113 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4114
4115  if
4116   test "x$enable_dependency_tracking" != xno \
4117   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4118   am__fastdepCXX_TRUE=
4119   am__fastdepCXX_FALSE='#'
4120 else
4121   am__fastdepCXX_TRUE='#'
4122   am__fastdepCXX_FALSE=
4123 fi
4124
4125
4126
4127
4128 if test "x$CC" != xcc; then
4129   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4130 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
4131 else
4132   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4133 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
4134 fi
4135 set dummy $CC; ac_cc=`echo $2 |
4136                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4137 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4138   echo $ECHO_N "(cached) $ECHO_C" >&6
4139 else
4140   cat >conftest.$ac_ext <<_ACEOF
4141 /* confdefs.h.  */
4142 _ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h.  */
4146
4147 int
4148 main ()
4149 {
4150
4151   ;
4152   return 0;
4153 }
4154 _ACEOF
4155 # Make sure it works both with $CC and with simple cc.
4156 # We do the test twice because some compilers refuse to overwrite an
4157 # existing .o file with -o, though they will create one.
4158 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4159 rm -f conftest2.*
4160 if { (case "(($ac_try" in
4161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162   *) ac_try_echo=$ac_try;;
4163 esac
4164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4165   (eval "$ac_try") 2>&5
4166   ac_status=$?
4167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168   (exit $ac_status); } &&
4169    test -f conftest2.$ac_objext && { (case "(($ac_try" in
4170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171   *) ac_try_echo=$ac_try;;
4172 esac
4173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174   (eval "$ac_try") 2>&5
4175   ac_status=$?
4176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177   (exit $ac_status); };
4178 then
4179   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4180   if test "x$CC" != xcc; then
4181     # Test first that cc exists at all.
4182     if { ac_try='cc -c conftest.$ac_ext >&5'
4183   { (case "(($ac_try" in
4184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4185   *) ac_try_echo=$ac_try;;
4186 esac
4187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4188   (eval "$ac_try") 2>&5
4189   ac_status=$?
4190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191   (exit $ac_status); }; }; then
4192       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4193       rm -f conftest2.*
4194       if { (case "(($ac_try" in
4195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196   *) ac_try_echo=$ac_try;;
4197 esac
4198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4199   (eval "$ac_try") 2>&5
4200   ac_status=$?
4201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202   (exit $ac_status); } &&
4203          test -f conftest2.$ac_objext && { (case "(($ac_try" in
4204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205   *) ac_try_echo=$ac_try;;
4206 esac
4207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4208   (eval "$ac_try") 2>&5
4209   ac_status=$?
4210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211   (exit $ac_status); };
4212       then
4213         # cc works too.
4214         :
4215       else
4216         # cc exists but doesn't like -o.
4217         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4218       fi
4219     fi
4220   fi
4221 else
4222   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4223 fi
4224 rm -f core conftest*
4225
4226 fi
4227 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4228   { echo "$as_me:$LINENO: result: yes" >&5
4229 echo "${ECHO_T}yes" >&6; }
4230 else
4231   { echo "$as_me:$LINENO: result: no" >&5
4232 echo "${ECHO_T}no" >&6; }
4233
4234 cat >>confdefs.h <<\_ACEOF
4235 #define NO_MINUS_C_MINUS_O 1
4236 _ACEOF
4237
4238 fi
4239
4240 # FIXME: we rely on the cache variable name because
4241 # there is no other way.
4242 set dummy $CC
4243 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4244 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4245    # Losing compiler, so override with the script.
4246    # FIXME: It is wrong to rewrite CC.
4247    # But if we don't then we get into trouble of one sort or another.
4248    # A longer-term fix would be to have automake use am__CC in this case,
4249    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4250    CC="$am_aux_dir/compile $CC"
4251 fi
4252
4253   # Needed for subdir-objects in AUTOMAKE_OPTIONS
4254
4255
4256 { echo "$as_me:$LINENO: checking maximum warning verbosity option" >&5
4257 echo $ECHO_N "checking maximum warning verbosity option... $ECHO_C" >&6; }
4258
4259
4260
4261
4262 # Check whether --with-maximum-compile-warnings was given.
4263 if test "${with_maximum_compile_warnings+set}" = set; then
4264   withval=$with_maximum_compile_warnings; ac_compile_warnings_on="$withval"
4265 else
4266   ac_compile_warnings_on=""
4267 fi
4268
4269
4270   if test x"$ac_compile_warnings_on" = xno
4271   then
4272     ac_compile_warnings_msg=no
4273   else
4274     if test -n "$CXX"
4275     then
4276       if test "$GXX" = "yes"
4277       then
4278         ac_compile_warnings_opt='-Wall -W -ansi -pedantic'
4279       fi
4280       CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
4281       ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
4282     fi
4283
4284   if test -n "$CC"
4285   then
4286     if test "$GCC" = "yes"
4287     then
4288       ac_compile_warnings_opt='-Wall -W -ansi -pedantic'
4289     fi
4290     CFLAGS="$CFLAGS $ac_compile_warnings_opt"
4291     ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C"
4292   fi
4293   fi
4294   { echo "$as_me:$LINENO: result: $ac_compile_warnings_msg" >&5
4295 echo "${ECHO_T}$ac_compile_warnings_msg" >&6; }
4296   unset ac_compile_warnings_msg
4297   unset ac_compile_warnings_opt
4298  # Increase warning levels
4299
4300
4301 cat >>confdefs.h <<_ACEOF
4302 #define SWIG_CXX "$CXX"
4303 _ACEOF
4304
4305
4306 cat >>confdefs.h <<_ACEOF
4307 #define SWIG_PLATFORM "$build"
4308 _ACEOF
4309
4310
4311
4312 ac_ext=c
4313 ac_cpp='$CPP $CPPFLAGS'
4314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4317 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4318 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4319 # On Suns, sometimes $CPP names a directory.
4320 if test -n "$CPP" && test -d "$CPP"; then
4321   CPP=
4322 fi
4323 if test -z "$CPP"; then
4324   if test "${ac_cv_prog_CPP+set}" = set; then
4325   echo $ECHO_N "(cached) $ECHO_C" >&6
4326 else
4327       # Double quotes because CPP needs to be expanded
4328     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4329     do
4330       ac_preproc_ok=false
4331 for ac_c_preproc_warn_flag in '' yes
4332 do
4333   # Use a header file that comes with gcc, so configuring glibc
4334   # with a fresh cross-compiler works.
4335   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4336   # <limits.h> exists even on freestanding compilers.
4337   # On the NeXT, cc -E runs the code through the compiler's parser,
4338   # not just through cpp. "Syntax error" is here to catch this case.
4339   cat >conftest.$ac_ext <<_ACEOF
4340 /* confdefs.h.  */
4341 _ACEOF
4342 cat confdefs.h >>conftest.$ac_ext
4343 cat >>conftest.$ac_ext <<_ACEOF
4344 /* end confdefs.h.  */
4345 #ifdef __STDC__
4346 # include <limits.h>
4347 #else
4348 # include <assert.h>
4349 #endif
4350                      Syntax error
4351 _ACEOF
4352 if { (ac_try="$ac_cpp conftest.$ac_ext"
4353 case "(($ac_try" in
4354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4355   *) ac_try_echo=$ac_try;;
4356 esac
4357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4358   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4359   ac_status=$?
4360   grep -v '^ *+' conftest.er1 >conftest.err
4361   rm -f conftest.er1
4362   cat conftest.err >&5
4363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364   (exit $ac_status); } >/dev/null && {
4365          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4366          test ! -s conftest.err
4367        }; then
4368   :
4369 else
4370   echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.$ac_ext >&5
4372
4373   # Broken: fails on valid input.
4374 continue
4375 fi
4376
4377 rm -f conftest.err conftest.$ac_ext
4378
4379   # OK, works on sane cases.  Now check whether nonexistent headers
4380   # can be detected and how.
4381   cat >conftest.$ac_ext <<_ACEOF
4382 /* confdefs.h.  */
4383 _ACEOF
4384 cat confdefs.h >>conftest.$ac_ext
4385 cat >>conftest.$ac_ext <<_ACEOF
4386 /* end confdefs.h.  */
4387 #include <ac_nonexistent.h>
4388 _ACEOF
4389 if { (ac_try="$ac_cpp conftest.$ac_ext"
4390 case "(($ac_try" in
4391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4392   *) ac_try_echo=$ac_try;;
4393 esac
4394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4395   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4396   ac_status=$?
4397   grep -v '^ *+' conftest.er1 >conftest.err
4398   rm -f conftest.er1
4399   cat conftest.err >&5
4400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401   (exit $ac_status); } >/dev/null && {
4402          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4403          test ! -s conftest.err
4404        }; then
4405   # Broken: success on invalid input.
4406 continue
4407 else
4408   echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.$ac_ext >&5
4410
4411   # Passes both tests.
4412 ac_preproc_ok=:
4413 break
4414 fi
4415
4416 rm -f conftest.err conftest.$ac_ext
4417
4418 done
4419 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4420 rm -f conftest.err conftest.$ac_ext
4421 if $ac_preproc_ok; then
4422   break
4423 fi
4424
4425     done
4426     ac_cv_prog_CPP=$CPP
4427
4428 fi
4429   CPP=$ac_cv_prog_CPP
4430 else
4431   ac_cv_prog_CPP=$CPP
4432 fi
4433 { echo "$as_me:$LINENO: result: $CPP" >&5
4434 echo "${ECHO_T}$CPP" >&6; }
4435 ac_preproc_ok=false
4436 for ac_c_preproc_warn_flag in '' yes
4437 do
4438   # Use a header file that comes with gcc, so configuring glibc
4439   # with a fresh cross-compiler works.
4440   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4441   # <limits.h> exists even on freestanding compilers.
4442   # On the NeXT, cc -E runs the code through the compiler's parser,
4443   # not just through cpp. "Syntax error" is here to catch this case.
4444   cat >conftest.$ac_ext <<_ACEOF
4445 /* confdefs.h.  */
4446 _ACEOF
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h.  */
4450 #ifdef __STDC__
4451 # include <limits.h>
4452 #else
4453 # include <assert.h>
4454 #endif
4455                      Syntax error
4456 _ACEOF
4457 if { (ac_try="$ac_cpp conftest.$ac_ext"
4458 case "(($ac_try" in
4459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460   *) ac_try_echo=$ac_try;;
4461 esac
4462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4463   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4464   ac_status=$?
4465   grep -v '^ *+' conftest.er1 >conftest.err
4466   rm -f conftest.er1
4467   cat conftest.err >&5
4468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469   (exit $ac_status); } >/dev/null && {
4470          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4471          test ! -s conftest.err
4472        }; then
4473   :
4474 else
4475   echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4477
4478   # Broken: fails on valid input.
4479 continue
4480 fi
4481
4482 rm -f conftest.err conftest.$ac_ext
4483
4484   # OK, works on sane cases.  Now check whether nonexistent headers
4485   # can be detected and how.
4486   cat >conftest.$ac_ext <<_ACEOF
4487 /* confdefs.h.  */
4488 _ACEOF
4489 cat confdefs.h >>conftest.$ac_ext
4490 cat >>conftest.$ac_ext <<_ACEOF
4491 /* end confdefs.h.  */
4492 #include <ac_nonexistent.h>
4493 _ACEOF
4494 if { (ac_try="$ac_cpp conftest.$ac_ext"
4495 case "(($ac_try" in
4496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497   *) ac_try_echo=$ac_try;;
4498 esac
4499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4500   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4501   ac_status=$?
4502   grep -v '^ *+' conftest.er1 >conftest.err
4503   rm -f conftest.er1
4504   cat conftest.err >&5
4505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506   (exit $ac_status); } >/dev/null && {
4507          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4508          test ! -s conftest.err
4509        }; then
4510   # Broken: success on invalid input.
4511 continue
4512 else
4513   echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.$ac_ext >&5
4515
4516   # Passes both tests.
4517 ac_preproc_ok=:
4518 break
4519 fi
4520
4521 rm -f conftest.err conftest.$ac_ext
4522
4523 done
4524 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4525 rm -f conftest.err conftest.$ac_ext
4526 if $ac_preproc_ok; then
4527   :
4528 else
4529   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4530 See \`config.log' for more details." >&5
4531 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4532 See \`config.log' for more details." >&2;}
4533    { (exit 1); exit 1; }; }
4534 fi
4535
4536 ac_ext=c
4537 ac_cpp='$CPP $CPPFLAGS'
4538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4541
4542
4543 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4544 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4545 if test "${ac_cv_path_GREP+set}" = set; then
4546   echo $ECHO_N "(cached) $ECHO_C" >&6
4547 else
4548   # Extract the first word of "grep ggrep" to use in msg output
4549 if test -z "$GREP"; then
4550 set dummy grep ggrep; ac_prog_name=$2
4551 if test "${ac_cv_path_GREP+set}" = set; then
4552   echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554   ac_path_GREP_found=false
4555 # Loop through the user's path and test for each of PROGNAME-LIST
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4558 do
4559   IFS=$as_save_IFS
4560   test -z "$as_dir" && as_dir=.
4561   for ac_prog in grep ggrep; do
4562   for ac_exec_ext in '' $ac_executable_extensions; do
4563     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4564     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4565     # Check for GNU ac_path_GREP and select it if it is found.
4566   # Check for GNU $ac_path_GREP
4567 case `"$ac_path_GREP" --version 2>&1` in
4568 *GNU*)
4569   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4570 *)
4571   ac_count=0
4572   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4573   while :
4574   do
4575     cat "conftest.in" "conftest.in" >"conftest.tmp"
4576     mv "conftest.tmp" "conftest.in"
4577     cp "conftest.in" "conftest.nl"
4578     echo 'GREP' >> "conftest.nl"
4579     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4580     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4581     ac_count=`expr $ac_count + 1`
4582     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4583       # Best one so far, save it but keep looking for a better one
4584       ac_cv_path_GREP="$ac_path_GREP"
4585       ac_path_GREP_max=$ac_count
4586     fi
4587     # 10*(2^10) chars as input seems more than enough
4588     test $ac_count -gt 10 && break
4589   done
4590   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4591 esac
4592
4593
4594     $ac_path_GREP_found && break 3
4595   done
4596 done
4597
4598 done
4599 IFS=$as_save_IFS
4600
4601
4602 fi
4603
4604 GREP="$ac_cv_path_GREP"
4605 if test -z "$GREP"; then
4606   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4607 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4608    { (exit 1); exit 1; }; }
4609 fi
4610
4611 else
4612   ac_cv_path_GREP=$GREP
4613 fi
4614
4615
4616 fi
4617 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4618 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4619  GREP="$ac_cv_path_GREP"
4620
4621
4622 { echo "$as_me:$LINENO: checking for egrep" >&5
4623 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4624 if test "${ac_cv_path_EGREP+set}" = set; then
4625   echo $ECHO_N "(cached) $ECHO_C" >&6
4626 else
4627   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4628    then ac_cv_path_EGREP="$GREP -E"
4629    else
4630      # Extract the first word of "egrep" to use in msg output
4631 if test -z "$EGREP"; then
4632 set dummy egrep; ac_prog_name=$2
4633 if test "${ac_cv_path_EGREP+set}" = set; then
4634   echo $ECHO_N "(cached) $ECHO_C" >&6
4635 else
4636   ac_path_EGREP_found=false
4637 # Loop through the user's path and test for each of PROGNAME-LIST
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4640 do
4641   IFS=$as_save_IFS
4642   test -z "$as_dir" && as_dir=.
4643   for ac_prog in egrep; do
4644   for ac_exec_ext in '' $ac_executable_extensions; do
4645     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4646     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4647     # Check for GNU ac_path_EGREP and select it if it is found.
4648   # Check for GNU $ac_path_EGREP
4649 case `"$ac_path_EGREP" --version 2>&1` in
4650 *GNU*)
4651   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4652 *)
4653   ac_count=0
4654   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4655   while :
4656   do
4657     cat "conftest.in" "conftest.in" >"conftest.tmp"
4658     mv "conftest.tmp" "conftest.in"
4659     cp "conftest.in" "conftest.nl"
4660     echo 'EGREP' >> "conftest.nl"
4661     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4662     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4663     ac_count=`expr $ac_count + 1`
4664     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4665       # Best one so far, save it but keep looking for a better one
4666       ac_cv_path_EGREP="$ac_path_EGREP"
4667       ac_path_EGREP_max=$ac_count
4668     fi
4669     # 10*(2^10) chars as input seems more than enough
4670     test $ac_count -gt 10 && break
4671   done
4672   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4673 esac
4674
4675
4676     $ac_path_EGREP_found && break 3
4677   done
4678 done
4679
4680 done
4681 IFS=$as_save_IFS
4682
4683
4684 fi
4685
4686 EGREP="$ac_cv_path_EGREP"
4687 if test -z "$EGREP"; then
4688   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4689 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4690    { (exit 1); exit 1; }; }
4691 fi
4692
4693 else
4694   ac_cv_path_EGREP=$EGREP
4695 fi
4696
4697
4698    fi
4699 fi
4700 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4701 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4702  EGREP="$ac_cv_path_EGREP"
4703
4704
4705 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4706 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4707 if test "${ac_cv_header_stdc+set}" = set; then
4708   echo $ECHO_N "(cached) $ECHO_C" >&6
4709 else
4710   cat >conftest.$ac_ext <<_ACEOF
4711 /* confdefs.h.  */
4712 _ACEOF
4713 cat confdefs.h >>conftest.$ac_ext
4714 cat >>conftest.$ac_ext <<_ACEOF
4715 /* end confdefs.h.  */
4716 #include <stdlib.h>
4717 #include <stdarg.h>
4718 #include <string.h>
4719 #include <float.h>
4720
4721 int
4722 main ()
4723 {
4724
4725   ;
4726   return 0;
4727 }
4728 _ACEOF
4729 rm -f conftest.$ac_objext
4730 if { (ac_try="$ac_compile"
4731 case "(($ac_try" in
4732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4733   *) ac_try_echo=$ac_try;;
4734 esac
4735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4736   (eval "$ac_compile") 2>conftest.er1
4737   ac_status=$?
4738   grep -v '^ *+' conftest.er1 >conftest.err
4739   rm -f conftest.er1
4740   cat conftest.err >&5
4741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742   (exit $ac_status); } && {
4743          test -z "$ac_c_werror_flag" ||
4744          test ! -s conftest.err
4745        } && test -s conftest.$ac_objext; then
4746   ac_cv_header_stdc=yes
4747 else
4748   echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4750
4751         ac_cv_header_stdc=no
4752 fi
4753
4754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4755
4756 if test $ac_cv_header_stdc = yes; then
4757   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4758   cat >conftest.$ac_ext <<_ACEOF
4759 /* confdefs.h.  */
4760 _ACEOF
4761 cat confdefs.h >>conftest.$ac_ext
4762 cat >>conftest.$ac_ext <<_ACEOF
4763 /* end confdefs.h.  */
4764 #include <string.h>
4765
4766 _ACEOF
4767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4768   $EGREP "memchr" >/dev/null 2>&1; then
4769   :
4770 else
4771   ac_cv_header_stdc=no
4772 fi
4773 rm -f conftest*
4774
4775 fi
4776
4777 if test $ac_cv_header_stdc = yes; then
4778   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4779   cat >conftest.$ac_ext <<_ACEOF
4780 /* confdefs.h.  */
4781 _ACEOF
4782 cat confdefs.h >>conftest.$ac_ext
4783 cat >>conftest.$ac_ext <<_ACEOF
4784 /* end confdefs.h.  */
4785 #include <stdlib.h>
4786
4787 _ACEOF
4788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4789   $EGREP "free" >/dev/null 2>&1; then
4790   :
4791 else
4792   ac_cv_header_stdc=no
4793 fi
4794 rm -f conftest*
4795
4796 fi
4797
4798 if test $ac_cv_header_stdc = yes; then
4799   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4800   if test "$cross_compiling" = yes; then
4801   :
4802 else
4803   cat >conftest.$ac_ext <<_ACEOF
4804 /* confdefs.h.  */
4805 _ACEOF
4806 cat confdefs.h >>conftest.$ac_ext
4807 cat >>conftest.$ac_ext <<_ACEOF
4808 /* end confdefs.h.  */
4809 #include <ctype.h>
4810 #include <stdlib.h>
4811 #if ((' ' & 0x0FF) == 0x020)
4812 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4813 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4814 #else
4815 # define ISLOWER(c) \
4816                    (('a' <= (c) && (c) <= 'i') \
4817                      || ('j' <= (c) && (c) <= 'r') \
4818                      || ('s' <= (c) && (c) <= 'z'))
4819 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4820 #endif
4821
4822 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4823 int
4824 main ()
4825 {
4826   int i;
4827   for (i = 0; i < 256; i++)
4828     if (XOR (islower (i), ISLOWER (i))
4829         || toupper (i) != TOUPPER (i))
4830       return 2;
4831   return 0;
4832 }
4833 _ACEOF
4834 rm -f conftest$ac_exeext
4835 if { (ac_try="$ac_link"
4836 case "(($ac_try" in
4837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4838   *) ac_try_echo=$ac_try;;
4839 esac
4840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4841   (eval "$ac_link") 2>&5
4842   ac_status=$?
4843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4845   { (case "(($ac_try" in
4846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4847   *) ac_try_echo=$ac_try;;
4848 esac
4849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4850   (eval "$ac_try") 2>&5
4851   ac_status=$?
4852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853   (exit $ac_status); }; }; then
4854   :
4855 else
4856   echo "$as_me: program exited with status $ac_status" >&5
4857 echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.$ac_ext >&5
4859
4860 ( exit $ac_status )
4861 ac_cv_header_stdc=no
4862 fi
4863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4864 fi
4865
4866
4867 fi
4868 fi
4869 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4870 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4871 if test $ac_cv_header_stdc = yes; then
4872
4873 cat >>confdefs.h <<\_ACEOF
4874 #define STDC_HEADERS 1
4875 _ACEOF
4876
4877 fi
4878
4879
4880 ac_ext=cpp
4881 ac_cpp='$CXXCPP $CPPFLAGS'
4882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4885
4886
4887 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4898                   inttypes.h stdint.h unistd.h
4899 do
4900 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4901 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4904   echo $ECHO_N "(cached) $ECHO_C" >&6
4905 else
4906   cat >conftest.$ac_ext <<_ACEOF
4907 /* confdefs.h.  */
4908 _ACEOF
4909 cat confdefs.h >>conftest.$ac_ext
4910 cat >>conftest.$ac_ext <<_ACEOF
4911 /* end confdefs.h.  */
4912 $ac_includes_default
4913
4914 #include <$ac_header>
4915 _ACEOF
4916 rm -f conftest.$ac_objext
4917 if { (ac_try="$ac_compile"
4918 case "(($ac_try" in
4919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4920   *) ac_try_echo=$ac_try;;
4921 esac
4922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4923   (eval "$ac_compile") 2>conftest.er1
4924   ac_status=$?
4925   grep -v '^ *+' conftest.er1 >conftest.err
4926   rm -f conftest.er1
4927   cat conftest.err >&5
4928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929   (exit $ac_status); } && {
4930          test -z "$ac_cxx_werror_flag" ||
4931          test ! -s conftest.err
4932        } && test -s conftest.$ac_objext; then
4933   eval "$as_ac_Header=yes"
4934 else
4935   echo "$as_me: failed program was:" >&5
4936 sed 's/^/| /' conftest.$ac_ext >&5
4937
4938         eval "$as_ac_Header=no"
4939 fi
4940
4941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4942 fi
4943 ac_res=`eval echo '${'$as_ac_Header'}'`
4944                { echo "$as_me:$LINENO: result: $ac_res" >&5
4945 echo "${ECHO_T}$ac_res" >&6; }
4946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4947   cat >>confdefs.h <<_ACEOF
4948 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4949 _ACEOF
4950
4951 fi
4952
4953 done
4954
4955
4956 { echo "$as_me:$LINENO: checking for bool" >&5
4957 echo $ECHO_N "checking for bool... $ECHO_C" >&6; }
4958 if test "${ac_cv_type_bool+set}" = set; then
4959   echo $ECHO_N "(cached) $ECHO_C" >&6
4960 else
4961   cat >conftest.$ac_ext <<_ACEOF
4962 /* confdefs.h.  */
4963 _ACEOF
4964 cat confdefs.h >>conftest.$ac_ext
4965 cat >>conftest.$ac_ext <<_ACEOF
4966 /* end confdefs.h.  */
4967 $ac_includes_default
4968 typedef bool ac__type_new_;
4969 int
4970 main ()
4971 {
4972 if ((ac__type_new_ *) 0)
4973   return 0;
4974 if (sizeof (ac__type_new_))
4975   return 0;
4976   ;
4977   return 0;
4978 }
4979 _ACEOF
4980 rm -f conftest.$ac_objext
4981 if { (ac_try="$ac_compile"
4982 case "(($ac_try" in
4983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4984   *) ac_try_echo=$ac_try;;
4985 esac
4986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4987   (eval "$ac_compile") 2>conftest.er1
4988   ac_status=$?
4989   grep -v '^ *+' conftest.er1 >conftest.err
4990   rm -f conftest.er1
4991   cat conftest.err >&5
4992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993   (exit $ac_status); } && {
4994          test -z "$ac_cxx_werror_flag" ||
4995          test ! -s conftest.err
4996        } && test -s conftest.$ac_objext; then
4997   ac_cv_type_bool=yes
4998 else
4999   echo "$as_me: failed program was:" >&5
5000 sed 's/^/| /' conftest.$ac_ext >&5
5001
5002         ac_cv_type_bool=no
5003 fi
5004
5005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5006 fi
5007 { echo "$as_me:$LINENO: result: $ac_cv_type_bool" >&5
5008 echo "${ECHO_T}$ac_cv_type_bool" >&6; }
5009 if test $ac_cv_type_bool = yes; then
5010
5011 cat >>confdefs.h <<_ACEOF
5012 #define HAVE_BOOL 1
5013 _ACEOF
5014
5015
5016 fi
5017
5018 ac_ext=c
5019 ac_cpp='$CPP $CPPFLAGS'
5020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5023
5024
5025
5026 # Check whether --with-popen was given.
5027 if test "${with_popen+set}" = set; then
5028   withval=$with_popen; with_popen="$withval"
5029 fi
5030
5031 if test x"${with_popen}" = xno ; then
5032 { echo "$as_me:$LINENO: Disabling popen" >&5
5033 echo "$as_me: Disabling popen" >&6;}
5034 else
5035 { echo "$as_me:$LINENO: checking for popen" >&5
5036 echo $ECHO_N "checking for popen... $ECHO_C" >&6; }
5037 if test "${ac_cv_func_popen+set}" = set; then
5038   echo $ECHO_N "(cached) $ECHO_C" >&6
5039 else
5040   cat >conftest.$ac_ext <<_ACEOF
5041 /* confdefs.h.  */
5042 _ACEOF
5043 cat confdefs.h >>conftest.$ac_ext
5044 cat >>conftest.$ac_ext <<_ACEOF
5045 /* end confdefs.h.  */
5046 /* Define popen to an innocuous variant, in case <limits.h> declares popen.
5047    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5048 #define popen innocuous_popen
5049
5050 /* System header to define __stub macros and hopefully few prototypes,
5051     which can conflict with char popen (); below.
5052     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5053     <limits.h> exists even on freestanding compilers.  */
5054
5055 #ifdef __STDC__
5056 # include <limits.h>
5057 #else
5058 # include <assert.h>
5059 #endif
5060
5061 #undef popen
5062
5063 /* Override any GCC internal prototype to avoid an error.
5064    Use char because int might match the return type of a GCC
5065    builtin and then its argument prototype would still apply.  */
5066 #ifdef __cplusplus
5067 extern "C"
5068 #endif
5069 char popen ();
5070 /* The GNU C library defines this for functions which it implements
5071     to always fail with ENOSYS.  Some functions are actually named
5072     something starting with __ and the normal name is an alias.  */
5073 #if defined __stub_popen || defined __stub___popen
5074 choke me
5075 #endif
5076
5077 int
5078 main ()
5079 {
5080 return popen ();
5081   ;
5082   return 0;
5083 }
5084 _ACEOF
5085 rm -f conftest.$ac_objext conftest$ac_exeext
5086 if { (ac_try="$ac_link"
5087 case "(($ac_try" in
5088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5089   *) ac_try_echo=$ac_try;;
5090 esac
5091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5092   (eval "$ac_link") 2>conftest.er1
5093   ac_status=$?
5094   grep -v '^ *+' conftest.er1 >conftest.err
5095   rm -f conftest.er1
5096   cat conftest.err >&5
5097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098   (exit $ac_status); } && {
5099          test -z "$ac_c_werror_flag" ||
5100          test ! -s conftest.err
5101        } && test -s conftest$ac_exeext &&
5102        $as_test_x conftest$ac_exeext; then
5103   ac_cv_func_popen=yes
5104 else
5105   echo "$as_me: failed program was:" >&5
5106 sed 's/^/| /' conftest.$ac_ext >&5
5107
5108         ac_cv_func_popen=no
5109 fi
5110
5111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5112       conftest$ac_exeext conftest.$ac_ext
5113 fi
5114 { echo "$as_me:$LINENO: result: $ac_cv_func_popen" >&5
5115 echo "${ECHO_T}$ac_cv_func_popen" >&6; }
5116 if test $ac_cv_func_popen = yes; then
5117
5118 cat >>confdefs.h <<\_ACEOF
5119 #define HAVE_POPEN 1
5120 _ACEOF
5121
5122 else
5123   { echo "$as_me:$LINENO: Disabling popen" >&5
5124 echo "$as_me: Disabling popen" >&6;}
5125 fi
5126
5127 fi
5128
5129
5130 # Check whether --with-rxspencer was given.
5131 if test "${with_rxspencer+set}" = set; then
5132   withval=$with_rxspencer; with_rxspencer="yes"
5133 fi
5134
5135 if test x"${with_rxspencer}" = xyes ; then
5136 #check first for the header
5137  if test "${ac_cv_header_rxspencer_regex_h+set}" = set; then
5138   { echo "$as_me:$LINENO: checking for rxspencer/regex.h" >&5
5139 echo $ECHO_N "checking for rxspencer/regex.h... $ECHO_C" >&6; }
5140 if test "${ac_cv_header_rxspencer_regex_h+set}" = set; then
5141   echo $ECHO_N "(cached) $ECHO_C" >&6
5142 fi
5143 { echo "$as_me:$LINENO: result: $ac_cv_header_rxspencer_regex_h" >&5
5144 echo "${ECHO_T}$ac_cv_header_rxspencer_regex_h" >&6; }
5145 else
5146   # Is the header compilable?
5147 { echo "$as_me:$LINENO: checking rxspencer/regex.h usability" >&5
5148 echo $ECHO_N "checking rxspencer/regex.h usability... $ECHO_C" >&6; }
5149 cat >conftest.$ac_ext <<_ACEOF
5150 /* confdefs.h.  */
5151 _ACEOF
5152 cat confdefs.h >>conftest.$ac_ext
5153 cat >>conftest.$ac_ext <<_ACEOF
5154 /* end confdefs.h.  */
5155 $ac_includes_default
5156 #include <rxspencer/regex.h>
5157 _ACEOF
5158 rm -f conftest.$ac_objext
5159 if { (ac_try="$ac_compile"
5160 case "(($ac_try" in
5161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5162   *) ac_try_echo=$ac_try;;
5163 esac
5164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5165   (eval "$ac_compile") 2>conftest.er1
5166   ac_status=$?
5167   grep -v '^ *+' conftest.er1 >conftest.err
5168   rm -f conftest.er1
5169   cat conftest.err >&5
5170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171   (exit $ac_status); } && {
5172          test -z "$ac_c_werror_flag" ||
5173          test ! -s conftest.err
5174        } && test -s conftest.$ac_objext; then
5175   ac_header_compiler=yes
5176 else
5177   echo "$as_me: failed program was:" >&5
5178 sed 's/^/| /' conftest.$ac_ext >&5
5179
5180         ac_header_compiler=no
5181 fi
5182
5183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5185 echo "${ECHO_T}$ac_header_compiler" >&6; }
5186
5187 # Is the header present?
5188 { echo "$as_me:$LINENO: checking rxspencer/regex.h presence" >&5
5189 echo $ECHO_N "checking rxspencer/regex.h presence... $ECHO_C" >&6; }
5190 cat >conftest.$ac_ext <<_ACEOF
5191 /* confdefs.h.  */
5192 _ACEOF
5193 cat confdefs.h >>conftest.$ac_ext
5194 cat >>conftest.$ac_ext <<_ACEOF
5195 /* end confdefs.h.  */
5196 #include <rxspencer/regex.h>
5197 _ACEOF
5198 if { (ac_try="$ac_cpp conftest.$ac_ext"
5199 case "(($ac_try" in
5200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5201   *) ac_try_echo=$ac_try;;
5202 esac
5203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5204   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5205   ac_status=$?
5206   grep -v '^ *+' conftest.er1 >conftest.err
5207   rm -f conftest.er1
5208   cat conftest.err >&5
5209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210   (exit $ac_status); } >/dev/null && {
5211          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5212          test ! -s conftest.err
5213        }; then
5214   ac_header_preproc=yes
5215 else
5216   echo "$as_me: failed program was:" >&5
5217 sed 's/^/| /' conftest.$ac_ext >&5
5218
5219   ac_header_preproc=no
5220 fi
5221
5222 rm -f conftest.err conftest.$ac_ext
5223 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5224 echo "${ECHO_T}$ac_header_preproc" >&6; }
5225
5226 # So?  What about this header?
5227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5228   yes:no: )
5229     { echo "$as_me:$LINENO: WARNING: rxspencer/regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
5230 echo "$as_me: WARNING: rxspencer/regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5231     { echo "$as_me:$LINENO: WARNING: rxspencer/regex.h: proceeding with the compiler's result" >&5
5232 echo "$as_me: WARNING: rxspencer/regex.h: proceeding with the compiler's result" >&2;}
5233     ac_header_preproc=yes
5234     ;;
5235   no:yes:* )
5236     { echo "$as_me:$LINENO: WARNING: rxspencer/regex.h: present but cannot be compiled" >&5
5237 echo "$as_me: WARNING: rxspencer/regex.h: present but cannot be compiled" >&2;}
5238     { echo "$as_me:$LINENO: WARNING: rxspencer/regex.h:     check for missing prerequisite headers?" >&5
5239 echo "$as_me: WARNING: rxspencer/regex.h:     check for missing prerequisite headers?" >&2;}
5240     { echo "$as_me:$LINENO: WARNING: rxspencer/regex.h: see the Autoconf documentation" >&5
5241 echo "$as_me: WARNING: rxspencer/regex.h: see the Autoconf documentation" >&2;}
5242     { echo "$as_me:$LINENO: WARNING: rxspencer/regex.h:     section \"Present But Cannot Be Compiled\"" >&5
5243 echo "$as_me: WARNING: rxspencer/regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5244     { echo "$as_me:$LINENO: WARNING: rxspencer/regex.h: proceeding with the preprocessor's result" >&5
5245 echo "$as_me: WARNING: rxspencer/regex.h: proceeding with the preprocessor's result" >&2;}
5246     { echo "$as_me:$LINENO: WARNING: rxspencer/regex.h: in the future, the compiler will take precedence" >&5
5247 echo "$as_me: WARNING: rxspencer/regex.h: in the future, the compiler will take precedence" >&2;}
5248     ( cat <<\_ASBOX
5249 ## ---------------------------------- ##
5250 ## Report this to http://www.swig.org ##
5251 ## ---------------------------------- ##
5252 _ASBOX
5253      ) | sed "s/^/$as_me: WARNING:     /" >&2
5254     ;;
5255 esac
5256 { echo "$as_me:$LINENO: checking for rxspencer/regex.h" >&5
5257 echo $ECHO_N "checking for rxspencer/regex.h... $ECHO_C" >&6; }
5258 if test "${ac_cv_header_rxspencer_regex_h+set}" = set; then
5259   echo $ECHO_N "(cached) $ECHO_C" >&6
5260 else
5261   ac_cv_header_rxspencer_regex_h=$ac_header_preproc
5262 fi
5263 { echo "$as_me:$LINENO: result: $ac_cv_header_rxspencer_regex_h" >&5
5264 echo "${ECHO_T}$ac_cv_header_rxspencer_regex_h" >&6; }
5265
5266 fi
5267 if test $ac_cv_header_rxspencer_regex_h = yes; then
5268   with_rxspencer="yes"
5269 else
5270   with_rxspencer="no"
5271 fi
5272
5273
5274  if test x"${with_rxspencer}" = xyes ; then
5275 # now check for the library
5276   { echo "$as_me:$LINENO: checking for regcomp in -lrxspencer" >&5
5277 echo $ECHO_N "checking for regcomp in -lrxspencer... $ECHO_C" >&6; }
5278 if test "${ac_cv_lib_rxspencer_regcomp+set}" = set; then
5279   echo $ECHO_N "(cached) $ECHO_C" >&6
5280 else
5281   ac_check_lib_save_LIBS=$LIBS
5282 LIBS="-lrxspencer  $LIBS"
5283 cat >conftest.$ac_ext <<_ACEOF
5284 /* confdefs.h.  */
5285 _ACEOF
5286 cat confdefs.h >>conftest.$ac_ext
5287 cat >>conftest.$ac_ext <<_ACEOF
5288 /* end confdefs.h.  */
5289
5290 /* Override any GCC internal prototype to avoid an error.
5291    Use char because int might match the return type of a GCC
5292    builtin and then its argument prototype would still apply.  */
5293 #ifdef __cplusplus
5294 extern "C"
5295 #endif
5296 char regcomp ();
5297 int
5298 main ()
5299 {
5300 return regcomp ();
5301   ;
5302   return 0;
5303 }
5304 _ACEOF
5305 rm -f conftest.$ac_objext conftest$ac_exeext
5306 if { (ac_try="$ac_link"
5307 case "(($ac_try" in
5308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5309   *) ac_try_echo=$ac_try;;
5310 esac
5311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5312   (eval "$ac_link") 2>conftest.er1
5313   ac_status=$?
5314   grep -v '^ *+' conftest.er1 >conftest.err
5315   rm -f conftest.er1
5316   cat conftest.err >&5
5317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318   (exit $ac_status); } && {
5319          test -z "$ac_c_werror_flag" ||
5320          test ! -s conftest.err
5321        } && test -s conftest$ac_exeext &&
5322        $as_test_x conftest$ac_exeext; then
5323   ac_cv_lib_rxspencer_regcomp=yes
5324 else
5325   echo "$as_me: failed program was:" >&5
5326 sed 's/^/| /' conftest.$ac_ext >&5
5327
5328         ac_cv_lib_rxspencer_regcomp=no
5329 fi
5330
5331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5332       conftest$ac_exeext conftest.$ac_ext
5333 LIBS=$ac_check_lib_save_LIBS
5334 fi
5335 { echo "$as_me:$LINENO: result: $ac_cv_lib_rxspencer_regcomp" >&5
5336 echo "${ECHO_T}$ac_cv_lib_rxspencer_regcomp" >&6; }
5337 if test $ac_cv_lib_rxspencer_regcomp = yes; then
5338   with_rxspencer="yes"
5339 else
5340   with_rxspencer="no"
5341 fi
5342
5343  fi
5344  if test x"${with_rxspencer}" = xyes ; then
5345 # library and header are available
5346
5347 cat >>confdefs.h <<\_ACEOF
5348 #define HAVE_RXSPENCER 1
5349 _ACEOF
5350
5351   LIBS="$LIBS -lrxspencer"
5352  else
5353   { echo "$as_me:$LINENO: RxSpencer not found. Obtain it at http://arglist.com/regex or http://gnuwin32.sourceforge.net/packages.html" >&5
5354 echo "$as_me: RxSpencer not found. Obtain it at http://arglist.com/regex or http://gnuwin32.sourceforge.net/packages.html" >&6;}
5355  fi
5356 fi
5357
5358 # Check whether --enable-ccache was given.
5359 if test "${enable_ccache+set}" = set; then
5360   enableval=$enable_ccache; enable_ccache=$enableval
5361 else
5362   enable_ccache=yes
5363 fi
5364
5365 { echo "$as_me:$LINENO: checking whether to enable ccache-swig" >&5
5366 echo $ECHO_N "checking whether to enable ccache-swig... $ECHO_C" >&6; }
5367 { echo "$as_me:$LINENO: result: $enable_ccache" >&5
5368 echo "${ECHO_T}$enable_ccache" >&6; }
5369
5370 if test "$enable_ccache" = yes; then
5371   subdirs="$subdirs CCache"
5372
5373   ENABLE_CCACHE=1
5374 fi
5375
5376
5377
5378 echo ""
5379 echo "Checking packages required for SWIG developers."
5380 echo "Note : None of the following packages are required for users to compile and install SWIG"
5381 echo ""
5382
5383 for ac_prog in 'bison -y' byacc
5384 do
5385   # Extract the first word of "$ac_prog", so it can be a program name with args.
5386 set dummy $ac_prog; ac_word=$2
5387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5389 if test "${ac_cv_prog_YACC+set}" = set; then
5390   echo $ECHO_N "(cached) $ECHO_C" >&6
5391 else
5392   if test -n "$YACC"; then
5393   ac_cv_prog_YACC="$YACC" # Let the user override the test.
5394 else
5395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396 for as_dir in $PATH
5397 do
5398   IFS=$as_save_IFS
5399   test -z "$as_dir" && as_dir=.
5400   for ac_exec_ext in '' $ac_executable_extensions; do
5401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5402     ac_cv_prog_YACC="$ac_prog"
5403     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5404     break 2
5405   fi
5406 done
5407 done
5408 IFS=$as_save_IFS
5409
5410 fi
5411 fi
5412 YACC=$ac_cv_prog_YACC
5413 if test -n "$YACC"; then
5414   { echo "$as_me:$LINENO: result: $YACC" >&5
5415 echo "${ECHO_T}$YACC" >&6; }
5416 else
5417   { echo "$as_me:$LINENO: result: no" >&5
5418 echo "${ECHO_T}no" >&6; }
5419 fi
5420
5421
5422   test -n "$YACC" && break
5423 done
5424 test -n "$YACC" || YACC="yacc"
5425
5426 if test -n "$ac_tool_prefix"; then
5427   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5428 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5431 if test "${ac_cv_prog_RANLIB+set}" = set; then
5432   echo $ECHO_N "(cached) $ECHO_C" >&6
5433 else
5434   if test -n "$RANLIB"; then
5435   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5436 else
5437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5438 for as_dir in $PATH
5439 do
5440   IFS=$as_save_IFS
5441   test -z "$as_dir" && as_dir=.
5442   for ac_exec_ext in '' $ac_executable_extensions; do
5443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5444     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5446     break 2
5447   fi
5448 done
5449 done
5450 IFS=$as_save_IFS
5451
5452 fi
5453 fi
5454 RANLIB=$ac_cv_prog_RANLIB
5455 if test -n "$RANLIB"; then
5456   { echo "$as_me:$LINENO: result: $RANLIB" >&5
5457 echo "${ECHO_T}$RANLIB" >&6; }
5458 else
5459   { echo "$as_me:$LINENO: result: no" >&5
5460 echo "${ECHO_T}no" >&6; }
5461 fi
5462
5463
5464 fi
5465 if test -z "$ac_cv_prog_RANLIB"; then
5466   ac_ct_RANLIB=$RANLIB
5467   # Extract the first word of "ranlib", so it can be a program name with args.
5468 set dummy ranlib; ac_word=$2
5469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5471 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5472   echo $ECHO_N "(cached) $ECHO_C" >&6
5473 else
5474   if test -n "$ac_ct_RANLIB"; then
5475   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5476 else
5477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5478 for as_dir in $PATH
5479 do
5480   IFS=$as_save_IFS
5481   test -z "$as_dir" && as_dir=.
5482   for ac_exec_ext in '' $ac_executable_extensions; do
5483   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5484     ac_cv_prog_ac_ct_RANLIB="ranlib"
5485     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5486     break 2
5487   fi
5488 done
5489 done
5490 IFS=$as_save_IFS
5491
5492 fi
5493 fi
5494 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5495 if test -n "$ac_ct_RANLIB"; then
5496   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5497 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5498 else
5499   { echo "$as_me:$LINENO: result: no" >&5
5500 echo "${ECHO_T}no" >&6; }
5501 fi
5502
5503   if test "x$ac_ct_RANLIB" = x; then
5504     RANLIB=":"
5505   else
5506     case $cross_compiling:$ac_tool_warned in
5507 yes:)
5508 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5509 whose name does not start with the host triplet.  If you think this
5510 configuration is useful to you, please write to autoconf@gnu.org." >&5
5511 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5512 whose name does not start with the host triplet.  If you think this
5513 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5514 ac_tool_warned=yes ;;
5515 esac
5516     RANLIB=$ac_ct_RANLIB
5517   fi
5518 else
5519   RANLIB="$ac_cv_prog_RANLIB"
5520 fi
5521
5522 for ac_prog in ar aal
5523 do
5524   # Extract the first word of "$ac_prog", so it can be a program name with args.
5525 set dummy $ac_prog; ac_word=$2
5526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5528 if test "${ac_cv_prog_AR+set}" = set; then
5529   echo $ECHO_N "(cached) $ECHO_C" >&6
5530 else
5531   if test -n "$AR"; then
5532   ac_cv_prog_AR="$AR" # Let the user override the test.
5533 else
5534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535 for as_dir in $PATH
5536 do
5537   IFS=$as_save_IFS
5538   test -z "$as_dir" && as_dir=.
5539   for ac_exec_ext in '' $ac_executable_extensions; do
5540   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5541     ac_cv_prog_AR="$ac_prog"
5542     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5543     break 2
5544   fi
5545 done
5546 done
5547 IFS=$as_save_IFS
5548
5549 fi
5550 fi
5551 AR=$ac_cv_prog_AR
5552 if test -n "$AR"; then
5553   { echo "$as_me:$LINENO: result: $AR" >&5
5554 echo "${ECHO_T}$AR" >&6; }
5555 else
5556   { echo "$as_me:$LINENO: result: no" >&5
5557 echo "${ECHO_T}no" >&6; }
5558 fi
5559
5560
5561   test -n "$AR" && break
5562 done
5563 test -n "$AR" || AR="ar"
5564
5565
5566 for ac_prog in yodl2man
5567 do
5568   # Extract the first word of "$ac_prog", so it can be a program name with args.
5569 set dummy $ac_prog; ac_word=$2
5570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5572 if test "${ac_cv_prog_YODL2MAN+set}" = set; then
5573   echo $ECHO_N "(cached) $ECHO_C" >&6
5574 else
5575   if test -n "$YODL2MAN"; then
5576   ac_cv_prog_YODL2MAN="$YODL2MAN" # Let the user override the test.
5577 else
5578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579 for as_dir in $PATH
5580 do
5581   IFS=$as_save_IFS
5582   test -z "$as_dir" && as_dir=.
5583   for ac_exec_ext in '' $ac_executable_extensions; do
5584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5585     ac_cv_prog_YODL2MAN="$ac_prog"
5586     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5587     break 2
5588   fi
5589 done
5590 done
5591 IFS=$as_save_IFS
5592
5593 fi
5594 fi
5595 YODL2MAN=$ac_cv_prog_YODL2MAN
5596 if test -n "$YODL2MAN"; then
5597   { echo "$as_me:$LINENO: result: $YODL2MAN" >&5
5598 echo "${ECHO_T}$YODL2MAN" >&6; }
5599 else
5600   { echo "$as_me:$LINENO: result: no" >&5
5601 echo "${ECHO_T}no" >&6; }
5602 fi
5603
5604
5605   test -n "$YODL2MAN" && break
5606 done
5607
5608 for ac_prog in yodl2html
5609 do
5610   # Extract the first word of "$ac_prog", so it can be a program name with args.
5611 set dummy $ac_prog; ac_word=$2
5612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5614 if test "${ac_cv_prog_YODL2HTML+set}" = set; then
5615   echo $ECHO_N "(cached) $ECHO_C" >&6
5616 else
5617   if test -n "$YODL2HTML"; then
5618   ac_cv_prog_YODL2HTML="$YODL2HTML" # Let the user override the test.
5619 else
5620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621 for as_dir in $PATH
5622 do
5623   IFS=$as_save_IFS
5624   test -z "$as_dir" && as_dir=.
5625   for ac_exec_ext in '' $ac_executable_extensions; do
5626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5627     ac_cv_prog_YODL2HTML="$ac_prog"
5628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5629     break 2
5630   fi
5631 done
5632 done
5633 IFS=$as_save_IFS
5634
5635 fi
5636 fi
5637 YODL2HTML=$ac_cv_prog_YODL2HTML
5638 if test -n "$YODL2HTML"; then
5639   { echo "$as_me:$LINENO: result: $YODL2HTML" >&5
5640 echo "${ECHO_T}$YODL2HTML" >&6; }
5641 else
5642   { echo "$as_me:$LINENO: result: no" >&5
5643 echo "${ECHO_T}no" >&6; }
5644 fi
5645
5646
5647   test -n "$YODL2HTML" && break
5648 done
5649
5650
5651
5652 echo ""
5653 echo "Checking for installed target languages and other information in order to compile and run the examples."
5654 echo "Note : None of the following packages are required for users to compile and install SWIG"
5655 echo ""
5656
5657
5658 # -I should not be used on system directories (GCC)
5659 if test "$GCC" = yes; then
5660     ISYSTEM="-isystem "
5661 else
5662     ISYSTEM="-I"
5663 fi
5664
5665
5666
5667 # SO is the extension of shared libraries (including the dot!)
5668 { echo "$as_me:$LINENO: checking SO" >&5
5669 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
5670 if test -z "$SO"
5671 then
5672         case $host in
5673         *-*-hp*) SO=.sl;;
5674         *-*-darwin*) SO=.bundle;;
5675         *-*-cygwin* | *-*-mingw*) SO=.dll;;
5676         *) SO=.so;;
5677         esac
5678 fi
5679 { echo "$as_me:$LINENO: result: $SO" >&5
5680 echo "${ECHO_T}$SO" >&6; }
5681
5682 # LDSHARED is the ld *command* used to create shared library
5683 # -- "ld" on SunOS 4.x.x, "ld -G" on SunOS 5.x, "ld -shared" on IRIX 5
5684 # (Shared libraries in this instance are shared modules to be loaded into
5685 # Python, as opposed to building Python itself as a shared library.)
5686 { echo "$as_me:$LINENO: checking LDSHARED" >&5
5687 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
5688 if test -z "$LDSHARED"
5689 then
5690         case $host in
5691         *-*-aix*) LDSHARED="\$(srcdir)/ld_so_aix \$(CC)";;
5692         *-*-cygwin* | *-*-mingw*)
5693             if test "$GCC" = yes; then
5694                 LDSHARED="$CC -shared"
5695             else
5696                 if test "cl" = $CC ;  then
5697                     # Microsoft Visual C++ (MSVC)
5698                     LDSHARED="$CC -nologo -LD"
5699                 else
5700                     # Unknown compiler try gcc approach
5701                     LDSHARED="$CC -shared"
5702                 fi
5703             fi ;;
5704         *-*-irix5*) LDSHARED="ld -shared";;
5705         *-*-irix6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
5706         *-*-sunos4*) LDSHARED="ld";;
5707         *-*-solaris*) LDSHARED="ld -G";;
5708         *-*-hp*) LDSHARED="ld -b";;
5709         *-*-osf*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
5710         *-sequent-sysv4) LDSHARED="ld -G";;
5711         *-*-next*)
5712                 if test "$ns_dyld"
5713                 then LDSHARED='$(CC) $(LDFLAGS) -bundle -prebind'
5714                 else LDSHARED='$(CC) $(CFLAGS) -nostdlib -r';
5715                 fi
5716                 if test "$with_next_framework" ; then
5717                     LDSHARED="$LDSHARED \$(LDLIBRARY)"
5718                 fi ;;
5719         *-*-linux*) LDSHARED="gcc -shared";;
5720         *-*-dgux*) LDSHARED="ld -G";;
5721         *-*-freebsd3*) LDSHARED="gcc -shared";;
5722         *-*-freebsd* | *-*-openbsd*) LDSHARED="ld -Bshareable";;
5723         *-*-netbsd*)
5724                 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
5725                 then
5726                         LDSHARED="cc -shared"
5727                 else
5728                         LDSHARED="ld -Bshareable"
5729                 fi;;
5730         *-sco-sysv*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";;
5731         *-*-darwin*) LDSHARED="cc -bundle -undefined suppress -flat_namespace";;
5732         *)      LDSHARED="ld";;
5733         esac
5734 fi
5735 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
5736 echo "${ECHO_T}$LDSHARED" >&6; }
5737 # CXXSHARED is the ld *command* used to create C++ shared library
5738 # -- "ld" on SunOS 4.x.x, "ld -G" on SunOS 5.x, "ld -shared" on IRIX 5
5739 # (Shared libraries in this instance are shared modules to be loaded into
5740 # Python, as opposed to building Python itself as a shared library.)
5741 { echo "$as_me:$LINENO: checking CXXSHARED" >&5
5742 echo $ECHO_N "checking CXXSHARED... $ECHO_C" >&6; }
5743 if test -z "$CXXSHARED"
5744 then
5745         CXXSHARED="$LDSHARED"
5746 fi
5747 { echo "$as_me:$LINENO: result: $CXXSHARED" >&5
5748 echo "${ECHO_T}$CXXSHARED" >&6; }
5749
5750 #
5751 { echo "$as_me:$LINENO: checking TRYLINKINGWITHCXX" >&5
5752 echo $ECHO_N "checking TRYLINKINGWITHCXX... $ECHO_C" >&6; }
5753 if test -z "$TRYLINKINGWITHCXX"
5754 then
5755         case $host in
5756         *-*-solaris*) if test "$GCC" = yes;
5757              then TRYLINKINGWITHCXX="CXXSHARED= $CXX -Wl,-G";
5758              else TRYLINKINGWITHCXX="CXXSHARED= $CXX -G -L/opt/SUNWspro/lib -lCrun -lCstd";
5759              fi;;
5760         *-*-hp*) TRYLINKINGWITHCXX="CXXSHARED= $CXX +z ";;
5761         *-*-darwin*) TRYLINKINGWITHCXX="CXXSHARED= $CXX -bundle -undefined suppress -flat_namespace";;
5762         *-*-cygwin* | *-*-mingw*)
5763             if test "$GCC" = yes; then
5764                 TRYLINKINGWITHCXX="CXXSHARED= $CXX -shared "
5765             else
5766                 if test "cl" = $CXX ;  then
5767                     # Microsoft Visual C++ (MSVC)
5768                     TRYLINKINGWITHCXX="CXXSHARED= $CXX -nologo -LD"
5769                 else
5770                     TRYLINKINGWITHCXX="#unknown Windows compiler"
5771                 fi
5772             fi ;;
5773         *)       TRYLINKINGWITHCXX="CXXSHARED= $CXX -shared ";;
5774         esac
5775 fi
5776 { echo "$as_me:$LINENO: result: $TRYLINKINGWITHCXX" >&5
5777 echo "${ECHO_T}$TRYLINKINGWITHCXX" >&6; }
5778 # CCSHARED are the C *flags* used to create objects to go into a shared
5779 # library (module) -- this is only needed for a few systems
5780 { echo "$as_me:$LINENO: checking CCSHARED" >&5
5781 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
5782 if test -z "$CCSHARED"
5783 then
5784         case $host in
5785         *-*-hp*) if test "$GCC" = yes;
5786                  then CCSHARED="-fpic";
5787                  else CCSHARED="+z";
5788                  fi;;
5789         *-*-linux*) CCSHARED="-fpic";;
5790         *-*-freebsd* | *-*-openbsd*) CCSHARED="-fpic";;
5791         *-*-netbsd*) CCSHARED="-fPIC";;
5792         *-sco-sysv*) CCSHARED="-KPIC -dy -Bdynamic";;
5793         *-*-irix6*)  case $CC in
5794                    *gcc*) CCSHARED="-shared";;
5795                    *) CCSHARED="";;
5796                    esac;;
5797         esac
5798 fi
5799 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
5800 echo "${ECHO_T}$CCSHARED" >&6; }
5801
5802 # RPATH is the path used to look for shared library files.
5803 { echo "$as_me:$LINENO: checking RPATH" >&5
5804 echo $ECHO_N "checking RPATH... $ECHO_C" >&6; }
5805 if test -z "$RPATH"
5806 then
5807         case $host in
5808         *-*-solaris*) RPATH='-R. -R$(exec_prefix)/lib';;
5809         *-*-irix*) RPATH='-rpath .:$(exec_prefix)/lib';;
5810         *-*-linux*) RPATH='-Xlinker -rpath $(exec_prefix)/lib -Xlinker -rpath .';;
5811         *)      RPATH='';;
5812         esac
5813 fi
5814 { echo "$as_me:$LINENO: result: $RPATH" >&5
5815 echo "${ECHO_T}$RPATH" >&6; }
5816
5817 # LINKFORSHARED are the flags passed to the $(CC) command that links
5818 # the a few executables -- this is only needed for a few systems
5819
5820 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
5821 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
5822 if test -z "$LINKFORSHARED"
5823 then
5824         case $host in
5825         *-*-aix*)       LINKFORSHARED='-Wl,-bE:$(srcdir)/python.exp -lld';;
5826         *-*-hp*)
5827             LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
5828         *-*-linux*) LINKFORSHARED="-Xlinker -export-dynamic";;
5829         *-*-next*) LINKFORSHARED="-u libsys_s";;
5830         *-sco-sysv*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";;
5831         *-*-irix6*) LINKFORSHARED="-all";;
5832         esac
5833 fi
5834 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
5835 echo "${ECHO_T}$LINKFORSHARED" >&6; }
5836
5837 # Set info about shared libraries.
5838
5839
5840
5841
5842
5843
5844
5845
5846 # This variation is needed on OS-X because there is no (apparent) consistency in shared library naming.
5847 # Sometimes .bundle works, but sometimes .so is needed.  It depends on the target language
5848
5849
5850 case $host in
5851    *-*-mingw*) PYTHON_SO=.pyd;;
5852    *-*-darwin*) PYTHON_SO=.so;;
5853    *) PYTHON_SO=$SO;;
5854 esac
5855
5856
5857 case $host in
5858    *-*-darwin*) TCL_SO=.dylib;;
5859    *) TCL_SO=$SO;;
5860 esac
5861
5862
5863 case $host in
5864    *-*-darwin*) GUILE_SO=.so;;
5865    *) GUILE_SO=$SO;;
5866 esac
5867
5868
5869 case $host in
5870    *-*-darwin*) PHP_SO=.so;;
5871    *) PHP_SO=$SO;;
5872 esac
5873
5874
5875 case $host in
5876    *) MZSCHEME_SO=.so;;
5877 esac
5878
5879
5880 case $host in
5881    *-*-darwin*) LUA_SO=.so;;
5882    *) LUA_SO=$SO;;
5883 esac
5884
5885 # Optional CFLAGS used to silence compiler warnings on some platforms.
5886
5887
5888 case $host in
5889    *-*-darwin*) PLATFLAGS="-Wno-long-double";;
5890    *) PLATFLAGS="";;
5891 esac
5892
5893
5894 # Check for specific libraries.   Used for SWIG examples
5895
5896 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5897 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
5898 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5899   echo $ECHO_N "(cached) $ECHO_C" >&6
5900 else
5901   ac_check_lib_save_LIBS=$LIBS
5902 LIBS="-ldl  $LIBS"
5903 cat >conftest.$ac_ext <<_ACEOF
5904 /* confdefs.h.  */
5905 _ACEOF
5906 cat confdefs.h >>conftest.$ac_ext
5907 cat >>conftest.$ac_ext <<_ACEOF
5908 /* end confdefs.h.  */
5909
5910 /* Override any GCC internal prototype to avoid an error.
5911    Use char because int might match the return type of a GCC
5912    builtin and then its argument prototype would still apply.  */
5913 #ifdef __cplusplus
5914 extern "C"
5915 #endif
5916 char dlopen ();
5917 int
5918 main ()
5919 {
5920 return dlopen ();
5921   ;
5922   return 0;
5923 }
5924 _ACEOF
5925 rm -f conftest.$ac_objext conftest$ac_exeext
5926 if { (ac_try="$ac_link"
5927 case "(($ac_try" in
5928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5929   *) ac_try_echo=$ac_try;;
5930 esac
5931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5932   (eval "$ac_link") 2>conftest.er1
5933   ac_status=$?
5934   grep -v '^ *+' conftest.er1 >conftest.err
5935   rm -f conftest.er1
5936   cat conftest.err >&5
5937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938   (exit $ac_status); } && {
5939          test -z "$ac_c_werror_flag" ||
5940          test ! -s conftest.err
5941        } && test -s conftest$ac_exeext &&
5942        $as_test_x conftest$ac_exeext; then
5943   ac_cv_lib_dl_dlopen=yes
5944 else
5945   echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5947
5948         ac_cv_lib_dl_dlopen=no
5949 fi
5950
5951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5952       conftest$ac_exeext conftest.$ac_ext
5953 LIBS=$ac_check_lib_save_LIBS
5954 fi
5955 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5956 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
5957 if test $ac_cv_lib_dl_dlopen = yes; then
5958   cat >>confdefs.h <<_ACEOF
5959 #define HAVE_LIBDL 1
5960 _ACEOF
5961
5962   LIBS="-ldl $LIBS"
5963
5964 fi
5965         # Dynamic linking for SunOS/Solaris and SYSV
5966
5967 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
5968 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
5969 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
5970   echo $ECHO_N "(cached) $ECHO_C" >&6
5971 else
5972   ac_check_lib_save_LIBS=$LIBS
5973 LIBS="-ldld  $LIBS"
5974 cat >conftest.$ac_ext <<_ACEOF
5975 /* confdefs.h.  */
5976 _ACEOF
5977 cat confdefs.h >>conftest.$ac_ext
5978 cat >>conftest.$ac_ext <<_ACEOF
5979 /* end confdefs.h.  */
5980
5981 /* Override any GCC internal prototype to avoid an error.
5982    Use char because int might match the return type of a GCC
5983    builtin and then its argument prototype would still apply.  */
5984 #ifdef __cplusplus
5985 extern "C"
5986 #endif
5987 char shl_load ();
5988 int
5989 main ()
5990 {
5991 return shl_load ();
5992   ;
5993   return 0;
5994 }
5995 _ACEOF
5996 rm -f conftest.$ac_objext conftest$ac_exeext
5997 if { (ac_try="$ac_link"
5998 case "(($ac_try" in
5999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6000   *) ac_try_echo=$ac_try;;
6001 esac
6002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6003   (eval "$ac_link") 2>conftest.er1
6004   ac_status=$?
6005   grep -v '^ *+' conftest.er1 >conftest.err
6006   rm -f conftest.er1
6007   cat conftest.err >&5
6008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009   (exit $ac_status); } && {
6010          test -z "$ac_c_werror_flag" ||
6011          test ! -s conftest.err
6012        } && test -s conftest$ac_exeext &&
6013        $as_test_x conftest$ac_exeext; then
6014   ac_cv_lib_dld_shl_load=yes
6015 else
6016   echo "$as_me: failed program was:" >&5
6017 sed 's/^/| /' conftest.$ac_ext >&5
6018
6019         ac_cv_lib_dld_shl_load=no
6020 fi
6021
6022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6023       conftest$ac_exeext conftest.$ac_ext
6024 LIBS=$ac_check_lib_save_LIBS
6025 fi
6026 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6027 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
6028 if test $ac_cv_lib_dld_shl_load = yes; then
6029   cat >>confdefs.h <<_ACEOF
6030 #define HAVE_LIBDLD 1
6031 _ACEOF
6032
6033   LIBS="-ldld $LIBS"
6034
6035 fi
6036         # Dynamic linking for HP-UX
6037
6038 { echo "$as_me:$LINENO: checking for library containing t_open" >&5
6039 echo $ECHO_N "checking for library containing t_open... $ECHO_C" >&6; }
6040 if test "${ac_cv_search_t_open+set}" = set; then
6041   echo $ECHO_N "(cached) $ECHO_C" >&6
6042 else
6043   ac_func_search_save_LIBS=$LIBS
6044 cat >conftest.$ac_ext <<_ACEOF
6045 /* confdefs.h.  */
6046 _ACEOF
6047 cat confdefs.h >>conftest.$ac_ext
6048 cat >>conftest.$ac_ext <<_ACEOF
6049 /* end confdefs.h.  */
6050
6051 /* Override any GCC internal prototype to avoid an error.
6052    Use char because int might match the return type of a GCC
6053    builtin and then its argument prototype would still apply.  */
6054 #ifdef __cplusplus
6055 extern "C"
6056 #endif
6057 char t_open ();
6058 int
6059 main ()
6060 {
6061 return t_open ();
6062   ;
6063   return 0;
6064 }
6065 _ACEOF
6066 for ac_lib in '' nsl; do
6067   if test -z "$ac_lib"; then
6068     ac_res="none required"
6069   else
6070     ac_res=-l$ac_lib
6071     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6072   fi
6073   rm -f conftest.$ac_objext conftest$ac_exeext
6074 if { (ac_try="$ac_link"
6075 case "(($ac_try" in
6076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6077   *) ac_try_echo=$ac_try;;
6078 esac
6079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6080   (eval "$ac_link") 2>conftest.er1
6081   ac_status=$?
6082   grep -v '^ *+' conftest.er1 >conftest.err
6083   rm -f conftest.er1
6084   cat conftest.err >&5
6085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086   (exit $ac_status); } && {
6087          test -z "$ac_c_werror_flag" ||
6088          test ! -s conftest.err
6089        } && test -s conftest$ac_exeext &&
6090        $as_test_x conftest$ac_exeext; then
6091   ac_cv_search_t_open=$ac_res
6092 else
6093   echo "$as_me: failed program was:" >&5
6094 sed 's/^/| /' conftest.$ac_ext >&5
6095
6096
6097 fi
6098
6099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6100       conftest$ac_exeext
6101   if test "${ac_cv_search_t_open+set}" = set; then
6102   break
6103 fi
6104 done
6105 if test "${ac_cv_search_t_open+set}" = set; then
6106   :
6107 else
6108   ac_cv_search_t_open=no
6109 fi
6110 rm conftest.$ac_ext
6111 LIBS=$ac_func_search_save_LIBS
6112 fi
6113 { echo "$as_me:$LINENO: result: $ac_cv_search_t_open" >&5
6114 echo "${ECHO_T}$ac_cv_search_t_open" >&6; }
6115 ac_res=$ac_cv_search_t_open
6116 if test "$ac_res" != no; then
6117   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6118
6119 fi
6120  # SVR4
6121 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
6122 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
6123 if test "${ac_cv_search_gethostbyname+set}" = set; then
6124   echo $ECHO_N "(cached) $ECHO_C" >&6
6125 else
6126   ac_func_search_save_LIBS=$LIBS
6127 cat >conftest.$ac_ext <<_ACEOF
6128 /* confdefs.h.  */
6129 _ACEOF
6130 cat confdefs.h >>conftest.$ac_ext
6131 cat >>conftest.$ac_ext <<_ACEOF
6132 /* end confdefs.h.  */
6133
6134 /* Override any GCC internal prototype to avoid an error.
6135    Use char because int might match the return type of a GCC
6136    builtin and then its argument prototype would still apply.  */
6137 #ifdef __cplusplus
6138 extern "C"
6139 #endif
6140 char gethostbyname ();
6141 int
6142 main ()
6143 {
6144 return gethostbyname ();
6145   ;
6146   return 0;
6147 }
6148 _ACEOF
6149 for ac_lib in '' inet; do
6150   if test -z "$ac_lib"; then
6151     ac_res="none required"
6152   else
6153     ac_res=-l$ac_lib
6154     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6155   fi
6156   rm -f conftest.$ac_objext conftest$ac_exeext
6157 if { (ac_try="$ac_link"
6158 case "(($ac_try" in
6159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6160   *) ac_try_echo=$ac_try;;
6161 esac
6162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6163   (eval "$ac_link") 2>conftest.er1
6164   ac_status=$?
6165   grep -v '^ *+' conftest.er1 >conftest.err
6166   rm -f conftest.er1
6167   cat conftest.err >&5
6168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169   (exit $ac_status); } && {
6170          test -z "$ac_c_werror_flag" ||
6171          test ! -s conftest.err
6172        } && test -s conftest$ac_exeext &&
6173        $as_test_x conftest$ac_exeext; then
6174   ac_cv_search_gethostbyname=$ac_res
6175 else
6176   echo "$as_me: failed program was:" >&5
6177 sed 's/^/| /' conftest.$ac_ext >&5
6178
6179
6180 fi
6181
6182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6183       conftest$ac_exeext
6184   if test "${ac_cv_search_gethostbyname+set}" = set; then
6185   break
6186 fi
6187 done
6188 if test "${ac_cv_search_gethostbyname+set}" = set; then
6189   :
6190 else
6191   ac_cv_search_gethostbyname=no
6192 fi
6193 rm conftest.$ac_ext
6194 LIBS=$ac_func_search_save_LIBS
6195 fi
6196 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
6197 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
6198 ac_res=$ac_cv_search_gethostbyname
6199 if test "$ac_res" != no; then
6200   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6201
6202 fi
6203  # Sequent
6204 { echo "$as_me:$LINENO: checking for library containing socket" >&5
6205 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6206 if test "${ac_cv_search_socket+set}" = set; then
6207   echo $ECHO_N "(cached) $ECHO_C" >&6
6208 else
6209   ac_func_search_save_LIBS=$LIBS
6210 cat >conftest.$ac_ext <<_ACEOF
6211 /* confdefs.h.  */
6212 _ACEOF
6213 cat confdefs.h >>conftest.$ac_ext
6214 cat >>conftest.$ac_ext <<_ACEOF
6215 /* end confdefs.h.  */
6216
6217 /* Override any GCC internal prototype to avoid an error.
6218    Use char because int might match the return type of a GCC
6219    builtin and then its argument prototype would still apply.  */
6220 #ifdef __cplusplus
6221 extern "C"
6222 #endif
6223 char socket ();
6224 int
6225 main ()
6226 {
6227 return socket ();
6228   ;
6229   return 0;
6230 }
6231 _ACEOF
6232 for ac_lib in '' socket; do
6233   if test -z "$ac_lib"; then
6234     ac_res="none required"
6235   else
6236     ac_res=-l$ac_lib
6237     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6238   fi
6239   rm -f conftest.$ac_objext conftest$ac_exeext
6240 if { (ac_try="$ac_link"
6241 case "(($ac_try" in
6242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6243   *) ac_try_echo=$ac_try;;
6244 esac
6245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6246   (eval "$ac_link") 2>conftest.er1
6247   ac_status=$?
6248   grep -v '^ *+' conftest.er1 >conftest.err
6249   rm -f conftest.er1
6250   cat conftest.err >&5
6251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252   (exit $ac_status); } && {
6253          test -z "$ac_c_werror_flag" ||
6254          test ! -s conftest.err
6255        } && test -s conftest$ac_exeext &&
6256        $as_test_x conftest$ac_exeext; then
6257   ac_cv_search_socket=$ac_res
6258 else
6259   echo "$as_me: failed program was:" >&5
6260 sed 's/^/| /' conftest.$ac_ext >&5
6261
6262
6263 fi
6264
6265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6266       conftest$ac_exeext
6267   if test "${ac_cv_search_socket+set}" = set; then
6268   break
6269 fi
6270 done
6271 if test "${ac_cv_search_socket+set}" = set; then
6272   :
6273 else
6274   ac_cv_search_socket=no
6275 fi
6276 rm conftest.$ac_ext
6277 LIBS=$ac_func_search_save_LIBS
6278 fi
6279 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6280 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6281 ac_res=$ac_cv_search_socket
6282 if test "$ac_res" != no; then
6283   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6284
6285 fi
6286  # SVR4 sockets
6287
6288 { echo "$as_me:$LINENO: checking for swill_init in -lswill" >&5
6289 echo $ECHO_N "checking for swill_init in -lswill... $ECHO_C" >&6; }
6290 if test "${ac_cv_lib_swill_swill_init+set}" = set; then
6291   echo $ECHO_N "(cached) $ECHO_C" >&6
6292 else
6293   ac_check_lib_save_LIBS=$LIBS
6294 LIBS="-lswill  $LIBS"
6295 cat >conftest.$ac_ext <<_ACEOF
6296 /* confdefs.h.  */
6297 _ACEOF
6298 cat confdefs.h >>conftest.$ac_ext
6299 cat >>conftest.$ac_ext <<_ACEOF
6300 /* end confdefs.h.  */
6301
6302 /* Override any GCC internal prototype to avoid an error.
6303    Use char because int might match the return type of a GCC
6304    builtin and then its argument prototype would still apply.  */
6305 #ifdef __cplusplus
6306 extern "C"
6307 #endif
6308 char swill_init ();
6309 int
6310 main ()
6311 {
6312 return swill_init ();
6313   ;
6314   return 0;
6315 }
6316 _ACEOF
6317 rm -f conftest.$ac_objext conftest$ac_exeext
6318 if { (ac_try="$ac_link"
6319 case "(($ac_try" in
6320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6321   *) ac_try_echo=$ac_try;;
6322 esac
6323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6324   (eval "$ac_link") 2>conftest.er1
6325   ac_status=$?
6326   grep -v '^ *+' conftest.er1 >conftest.err
6327   rm -f conftest.er1
6328   cat conftest.err >&5
6329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330   (exit $ac_status); } && {
6331          test -z "$ac_c_werror_flag" ||
6332          test ! -s conftest.err
6333        } && test -s conftest$ac_exeext &&
6334        $as_test_x conftest$ac_exeext; then
6335   ac_cv_lib_swill_swill_init=yes
6336 else
6337   echo "$as_me: failed program was:" >&5
6338 sed 's/^/| /' conftest.$ac_ext >&5
6339
6340         ac_cv_lib_swill_swill_init=no
6341 fi
6342
6343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6344       conftest$ac_exeext conftest.$ac_ext
6345 LIBS=$ac_check_lib_save_LIBS
6346 fi
6347 { echo "$as_me:$LINENO: result: $ac_cv_lib_swill_swill_init" >&5
6348 echo "${ECHO_T}$ac_cv_lib_swill_swill_init" >&6; }
6349 if test $ac_cv_lib_swill_swill_init = yes; then
6350   SWIGLIBS="-lswill $LIBS" SWILL="-DSWIG_SWILL"
6351 fi
6352
6353
6354
6355
6356 # check for --with-libm=...
6357
6358 LIBM=-lm
6359
6360 # Check whether --with-libm was given.
6361 if test "${with_libm+set}" = set; then
6362   withval=$with_libm;
6363 if test "$withval" != yes
6364 then LIBM=$withval
6365 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
6366 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
6367    { (exit 1); exit 1; }; }
6368 fi
6369 fi
6370
6371 { echo "$as_me:$LINENO: checking for main in -lieee" >&5
6372 echo $ECHO_N "checking for main in -lieee... $ECHO_C" >&6; }
6373 if test "${ac_cv_lib_ieee_main+set}" = set; then
6374   echo $ECHO_N "(cached) $ECHO_C" >&6
6375 else
6376   ac_check_lib_save_LIBS=$LIBS
6377 LIBS="-lieee  $LIBS"
6378 cat >conftest.$ac_ext <<_ACEOF
6379 /* confdefs.h.  */
6380 _ACEOF
6381 cat confdefs.h >>conftest.$ac_ext
6382 cat >>conftest.$ac_ext <<_ACEOF
6383 /* end confdefs.h.  */
6384
6385
6386 int
6387 main ()
6388 {
6389 return main ();
6390   ;
6391   return 0;
6392 }
6393 _ACEOF
6394 rm -f conftest.$ac_objext conftest$ac_exeext
6395 if { (ac_try="$ac_link"
6396 case "(($ac_try" in
6397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6398   *) ac_try_echo=$ac_try;;
6399 esac
6400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6401   (eval "$ac_link") 2>conftest.er1
6402   ac_status=$?
6403   grep -v '^ *+' conftest.er1 >conftest.err
6404   rm -f conftest.er1
6405   cat conftest.err >&5
6406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407   (exit $ac_status); } && {
6408          test -z "$ac_c_werror_flag" ||
6409          test ! -s conftest.err
6410        } && test -s conftest$ac_exeext &&
6411        $as_test_x conftest$ac_exeext; then
6412   ac_cv_lib_ieee_main=yes
6413 else
6414   echo "$as_me: failed program was:" >&5
6415 sed 's/^/| /' conftest.$ac_ext >&5
6416
6417         ac_cv_lib_ieee_main=no
6418 fi
6419
6420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6421       conftest$ac_exeext conftest.$ac_ext
6422 LIBS=$ac_check_lib_save_LIBS
6423 fi
6424 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_main" >&5
6425 echo "${ECHO_T}$ac_cv_lib_ieee_main" >&6; }
6426 if test $ac_cv_lib_ieee_main = yes; then
6427   LIBM="-lieee $LIBM"
6428 fi
6429
6430 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
6431 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
6432 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
6433   echo $ECHO_N "(cached) $ECHO_C" >&6
6434 else
6435   ac_check_lib_save_LIBS=$LIBS
6436 LIBS="-lcrypt  $LIBS"
6437 cat >conftest.$ac_ext <<_ACEOF
6438 /* confdefs.h.  */
6439 _ACEOF
6440 cat confdefs.h >>conftest.$ac_ext
6441 cat >>conftest.$ac_ext <<_ACEOF
6442 /* end confdefs.h.  */
6443
6444 /* Override any GCC internal prototype to avoid an error.
6445    Use char because int might match the return type of a GCC
6446    builtin and then its argument prototype would still apply.  */
6447 #ifdef __cplusplus
6448 extern "C"
6449 #endif
6450 char crypt ();
6451 int
6452 main ()
6453 {
6454 return crypt ();
6455   ;
6456   return 0;
6457 }
6458 _ACEOF
6459 rm -f conftest.$ac_objext conftest$ac_exeext
6460 if { (ac_try="$ac_link"
6461 case "(($ac_try" in
6462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6463   *) ac_try_echo=$ac_try;;
6464 esac
6465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6466   (eval "$ac_link") 2>conftest.er1
6467   ac_status=$?
6468   grep -v '^ *+' conftest.er1 >conftest.err
6469   rm -f conftest.er1
6470   cat conftest.err >&5
6471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472   (exit $ac_status); } && {
6473          test -z "$ac_c_werror_flag" ||
6474          test ! -s conftest.err
6475        } && test -s conftest$ac_exeext &&
6476        $as_test_x conftest$ac_exeext; then
6477   ac_cv_lib_crypt_crypt=yes
6478 else
6479   echo "$as_me: failed program was:" >&5
6480 sed 's/^/| /' conftest.$ac_ext >&5
6481
6482         ac_cv_lib_crypt_crypt=no
6483 fi
6484
6485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6486       conftest$ac_exeext conftest.$ac_ext
6487 LIBS=$ac_check_lib_save_LIBS
6488 fi
6489 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
6490 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
6491 if test $ac_cv_lib_crypt_crypt = yes; then
6492   LIBCRYPT="-lcrypt"
6493 fi
6494
6495
6496
6497 # check for --with-libc=...
6498
6499
6500 # Check whether --with-libc was given.
6501 if test "${with_libc+set}" = set; then
6502   withval=$with_libc;
6503 if test "$withval" != yes
6504 then LIBC=$withval
6505 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
6506 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
6507    { (exit 1); exit 1; }; }
6508 fi
6509 fi
6510
6511
6512 #--------------------------------------------------------------------
6513 #       Locate the X11 header files and the X11 library archive.  Try
6514 #       the ac_path_x macro first, but if it doesn't find the X stuff
6515 #       (e.g. because there's no xmkmf program) then check through
6516 #       a list of possible directories.  Under some conditions the
6517 #       autoconf macro will return an include directory that contains
6518 #       no include files, so double-check its result just to be safe.
6519 #--------------------------------------------------------------------
6520
6521 { echo "$as_me:$LINENO: checking for X" >&5
6522 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
6523
6524
6525 # Check whether --with-x was given.
6526 if test "${with_x+set}" = set; then
6527   withval=$with_x;
6528 fi
6529
6530 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6531 if test "x$with_x" = xno; then
6532   # The user explicitly disabled X.
6533   have_x=disabled
6534 else
6535   case $x_includes,$x_libraries in #(
6536     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
6537 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
6538    { (exit 1); exit 1; }; };; #(
6539     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
6540   echo $ECHO_N "(cached) $ECHO_C" >&6
6541 else
6542   # One or both of the vars are not set, and there is no cached value.
6543 ac_x_includes=no ac_x_libraries=no
6544 rm -f -r conftest.dir
6545 if mkdir conftest.dir; then
6546   cd conftest.dir
6547   cat >Imakefile <<'_ACEOF'
6548 incroot:
6549         @echo incroot='${INCROOT}'
6550 usrlibdir:
6551         @echo usrlibdir='${USRLIBDIR}'
6552 libdir:
6553         @echo libdir='${LIBDIR}'
6554 _ACEOF
6555   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6556     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6557     for ac_var in incroot usrlibdir libdir; do
6558       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6559     done
6560     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6561     for ac_extension in a so sl; do
6562       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6563          test -f "$ac_im_libdir/libX11.$ac_extension"; then
6564         ac_im_usrlibdir=$ac_im_libdir; break
6565       fi
6566     done
6567     # Screen out bogus values from the imake configuration.  They are
6568     # bogus both because they are the default anyway, and because
6569     # using them would break gcc on systems where it needs fixed includes.
6570     case $ac_im_incroot in
6571         /usr/include) ac_x_includes= ;;
6572         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6573     esac
6574     case $ac_im_usrlibdir in
6575         /usr/lib | /lib) ;;
6576         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6577     esac
6578   fi
6579   cd ..
6580   rm -f -r conftest.dir
6581 fi
6582
6583 # Standard set of common directories for X headers.
6584 # Check X11 before X11Rn because it is often a symlink to the current release.
6585 ac_x_header_dirs='
6586 /usr/X11/include
6587 /usr/X11R6/include
6588 /usr/X11R5/include
6589 /usr/X11R4/include
6590
6591 /usr/include/X11
6592 /usr/include/X11R6
6593 /usr/include/X11R5
6594 /usr/include/X11R4
6595
6596 /usr/local/X11/include
6597 /usr/local/X11R6/include
6598 /usr/local/X11R5/include
6599 /usr/local/X11R4/include
6600
6601 /usr/local/include/X11
6602 /usr/local/include/X11R6
6603 /usr/local/include/X11R5
6604 /usr/local/include/X11R4
6605
6606 /usr/X386/include
6607 /usr/x386/include
6608 /usr/XFree86/include/X11
6609
6610 /usr/include
6611 /usr/local/include
6612 /usr/unsupported/include
6613 /usr/athena/include
6614 /usr/local/x11r5/include
6615 /usr/lpp/Xamples/include
6616
6617 /usr/openwin/include
6618 /usr/openwin/share/include'
6619
6620 if test "$ac_x_includes" = no; then
6621   # Guess where to find include files, by looking for Xlib.h.
6622   # First, try using that file with no special directory specified.
6623   cat >conftest.$ac_ext <<_ACEOF
6624 /* confdefs.h.  */
6625 _ACEOF
6626 cat confdefs.h >>conftest.$ac_ext
6627 cat >>conftest.$ac_ext <<_ACEOF
6628 /* end confdefs.h.  */
6629 #include <X11/Xlib.h>
6630 _ACEOF
6631 if { (ac_try="$ac_cpp conftest.$ac_ext"
6632 case "(($ac_try" in
6633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6634   *) ac_try_echo=$ac_try;;
6635 esac
6636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6637   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6638   ac_status=$?
6639   grep -v '^ *+' conftest.er1 >conftest.err
6640   rm -f conftest.er1
6641   cat conftest.err >&5
6642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643   (exit $ac_status); } >/dev/null && {
6644          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6645          test ! -s conftest.err
6646        }; then
6647   # We can compile using X headers with no special include directory.
6648 ac_x_includes=
6649 else
6650   echo "$as_me: failed program was:" >&5
6651 sed 's/^/| /' conftest.$ac_ext >&5
6652
6653   for ac_dir in $ac_x_header_dirs; do
6654   if test -r "$ac_dir/X11/Xlib.h"; then
6655     ac_x_includes=$ac_dir
6656     break
6657   fi
6658 done
6659 fi
6660
6661 rm -f conftest.err conftest.$ac_ext
6662 fi # $ac_x_includes = no
6663
6664 if test "$ac_x_libraries" = no; then
6665   # Check for the libraries.
6666   # See if we find them without any special options.
6667   # Don't add to $LIBS permanently.
6668   ac_save_LIBS=$LIBS
6669   LIBS="-lX11 $LIBS"
6670   cat >conftest.$ac_ext <<_ACEOF
6671 /* confdefs.h.  */
6672 _ACEOF
6673 cat confdefs.h >>conftest.$ac_ext
6674 cat >>conftest.$ac_ext <<_ACEOF
6675 /* end confdefs.h.  */
6676 #include <X11/Xlib.h>
6677 int
6678 main ()
6679 {
6680 XrmInitialize ()
6681   ;
6682   return 0;
6683 }
6684 _ACEOF
6685 rm -f conftest.$ac_objext conftest$ac_exeext
6686 if { (ac_try="$ac_link"
6687 case "(($ac_try" in
6688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6689   *) ac_try_echo=$ac_try;;
6690 esac
6691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6692   (eval "$ac_link") 2>conftest.er1
6693   ac_status=$?
6694   grep -v '^ *+' conftest.er1 >conftest.err
6695   rm -f conftest.er1
6696   cat conftest.err >&5
6697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698   (exit $ac_status); } && {
6699          test -z "$ac_c_werror_flag" ||
6700          test ! -s conftest.err
6701        } && test -s conftest$ac_exeext &&
6702        $as_test_x conftest$ac_exeext; then
6703   LIBS=$ac_save_LIBS
6704 # We can link X programs with no special library path.
6705 ac_x_libraries=
6706 else
6707   echo "$as_me: failed program was:" >&5
6708 sed 's/^/| /' conftest.$ac_ext >&5
6709
6710         LIBS=$ac_save_LIBS
6711 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6712 do
6713   # Don't even attempt the hair of trying to link an X program!
6714   for ac_extension in a so sl; do
6715     if test -r "$ac_dir/libX11.$ac_extension"; then
6716       ac_x_libraries=$ac_dir
6717       break 2
6718     fi
6719   done
6720 done
6721 fi
6722
6723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6724       conftest$ac_exeext conftest.$ac_ext
6725 fi # $ac_x_libraries = no
6726
6727 case $ac_x_includes,$ac_x_libraries in #(
6728   no,* | *,no | *\'*)
6729     # Didn't find X, or a directory has "'" in its name.
6730     ac_cv_have_x="have_x=no";; #(
6731   *)
6732     # Record where we found X for the cache.
6733     ac_cv_have_x="have_x=yes\
6734         ac_x_includes='$ac_x_includes'\
6735         ac_x_libraries='$ac_x_libraries'"
6736 esac
6737 fi
6738 ;; #(
6739     *) have_x=yes;;
6740   esac
6741   eval "$ac_cv_have_x"
6742 fi # $with_x != no
6743
6744 if test "$have_x" != yes; then
6745   { echo "$as_me:$LINENO: result: $have_x" >&5
6746 echo "${ECHO_T}$have_x" >&6; }
6747   no_x=yes
6748 else
6749   # If each of the values was on the command line, it overrides each guess.
6750   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6751   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6752   # Update the cache value to reflect the command line values.
6753   ac_cv_have_x="have_x=yes\
6754         ac_x_includes='$x_includes'\
6755         ac_x_libraries='$x_libraries'"
6756   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6757 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
6758 fi
6759
6760 not_really_there=""
6761 if test "$no_x" = ""; then
6762     if test "$x_includes" = ""; then
6763         cat >conftest.$ac_ext <<_ACEOF
6764 /* confdefs.h.  */
6765 _ACEOF
6766 cat confdefs.h >>conftest.$ac_ext
6767 cat >>conftest.$ac_ext <<_ACEOF
6768 /* end confdefs.h.  */
6769 #include <X11/XIntrinsic.h>
6770 _ACEOF
6771 if { (ac_try="$ac_cpp conftest.$ac_ext"
6772 case "(($ac_try" in
6773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6774   *) ac_try_echo=$ac_try;;
6775 esac
6776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6777   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6778   ac_status=$?
6779   grep -v '^ *+' conftest.er1 >conftest.err
6780   rm -f conftest.er1
6781   cat conftest.err >&5
6782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783   (exit $ac_status); } >/dev/null && {
6784          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6785          test ! -s conftest.err
6786        }; then
6787   :
6788 else
6789   echo "$as_me: failed program was:" >&5
6790 sed 's/^/| /' conftest.$ac_ext >&5
6791
6792   not_really_there="yes"
6793 fi
6794
6795 rm -f conftest.err conftest.$ac_ext
6796     else
6797         if test ! -r $x_includes/X11/Intrinsic.h; then
6798             not_really_there="yes"
6799         fi
6800     fi
6801 fi
6802 if test "$no_x" = "yes" -o "$not_really_there" = "yes"; then
6803     { echo "$as_me:$LINENO: checking for X11 header files" >&5
6804 echo $ECHO_N "checking for X11 header files... $ECHO_C" >&6; }
6805     XINCLUDES="# no special path needed"
6806     cat >conftest.$ac_ext <<_ACEOF
6807 /* confdefs.h.  */
6808 _ACEOF
6809 cat confdefs.h >>conftest.$ac_ext
6810 cat >>conftest.$ac_ext <<_ACEOF
6811 /* end confdefs.h.  */
6812 #include <X11/Intrinsic.h>
6813 _ACEOF
6814 if { (ac_try="$ac_cpp conftest.$ac_ext"
6815 case "(($ac_try" in
6816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6817   *) ac_try_echo=$ac_try;;
6818 esac
6819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6820   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6821   ac_status=$?
6822   grep -v '^ *+' conftest.er1 >conftest.err
6823   rm -f conftest.er1
6824   cat conftest.err >&5
6825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826   (exit $ac_status); } >/dev/null && {
6827          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6828          test ! -s conftest.err
6829        }; then
6830   :
6831 else
6832   echo "$as_me: failed program was:" >&5
6833 sed 's/^/| /' conftest.$ac_ext >&5
6834
6835   XINCLUDES=""
6836 fi
6837
6838 rm -f conftest.err conftest.$ac_ext
6839     if test -z "$XINCLUDES"; then
6840         dirs="/usr/unsupported/include /usr/local/include /usr/X386/include /usr/include/X11R4 /usr/X11R5/include /usr/include/X11R5 /usr/openwin/include /usr/X11/include /usr/sww/include /usr/X11R6/include /usr/include/X11R6"
6841         for i in $dirs ; do
6842             if test -r $i/X11/Intrinsic.h; then
6843                 XINCLUDES=" -I$i"
6844                 break
6845             fi
6846         done
6847     fi
6848     { echo "$as_me:$LINENO: result: $XINCLUDES" >&5
6849 echo "${ECHO_T}$XINCLUDES" >&6; }
6850 else
6851     if test "$x_includes" != ""; then
6852         XINCLUDES=-I$x_includes
6853     else
6854         XINCLUDES="# no special path needed"
6855     fi
6856 fi
6857 if test -z "$XINCLUDES"; then
6858     { echo "$as_me:$LINENO: result: couldn't find any!" >&5
6859 echo "${ECHO_T}couldn't find any!" >&6; }
6860     XINCLUDES="# no include files found"
6861 fi
6862
6863 if test "$no_x" = yes; then
6864     { echo "$as_me:$LINENO: checking for X11 libraries" >&5
6865 echo $ECHO_N "checking for X11 libraries... $ECHO_C" >&6; }
6866     XLIBSW=
6867     dirs="/usr/unsupported/lib /usr/local/lib /usr/X386/lib /usr/lib/X11R4 /usr/X11R5/lib /usr/lib/X11R5 /usr/X11R6/lib /usr/lib/X11R6 /usr/openwin/lib /usr/X11/lib /usr/sww/X11/lib"
6868     for i in $dirs ; do
6869         if test -r $i/libX11.a -o -r $i/libX11.so -o -r $i/libX11.sl; then
6870             { echo "$as_me:$LINENO: result: $i" >&5
6871 echo "${ECHO_T}$i" >&6; }
6872             XLIBSW="-L$i -lX11"
6873             break
6874         fi
6875     done
6876 else
6877     if test "$x_libraries" = ""; then
6878         XLIBSW=-lX11
6879     else
6880         XLIBSW="-L$x_libraries -lX11"
6881     fi
6882 fi
6883 if test -z "$XLIBSW" ; then
6884     { echo "$as_me:$LINENO: checking for XCreateWindow in -lXwindow" >&5
6885 echo $ECHO_N "checking for XCreateWindow in -lXwindow... $ECHO_C" >&6; }
6886 if test "${ac_cv_lib_Xwindow_XCreateWindow+set}" = set; then
6887   echo $ECHO_N "(cached) $ECHO_C" >&6
6888 else
6889   ac_check_lib_save_LIBS=$LIBS
6890 LIBS="-lXwindow  $LIBS"
6891 cat >conftest.$ac_ext <<_ACEOF
6892 /* confdefs.h.  */
6893 _ACEOF
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h.  */
6897
6898 /* Override any GCC internal prototype to avoid an error.
6899    Use char because int might match the return type of a GCC
6900    builtin and then its argument prototype would still apply.  */
6901 #ifdef __cplusplus
6902 extern "C"
6903 #endif
6904 char XCreateWindow ();
6905 int
6906 main ()
6907 {
6908 return XCreateWindow ();
6909   ;
6910   return 0;
6911 }
6912 _ACEOF
6913 rm -f conftest.$ac_objext conftest$ac_exeext
6914 if { (ac_try="$ac_link"
6915 case "(($ac_try" in
6916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6917   *) ac_try_echo=$ac_try;;
6918 esac
6919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6920   (eval "$ac_link") 2>conftest.er1
6921   ac_status=$?
6922   grep -v '^ *+' conftest.er1 >conftest.err
6923   rm -f conftest.er1
6924   cat conftest.err >&5
6925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926   (exit $ac_status); } && {
6927          test -z "$ac_c_werror_flag" ||
6928          test ! -s conftest.err
6929        } && test -s conftest$ac_exeext &&
6930        $as_test_x conftest$ac_exeext; then
6931   ac_cv_lib_Xwindow_XCreateWindow=yes
6932 else
6933   echo "$as_me: failed program was:" >&5
6934 sed 's/^/| /' conftest.$ac_ext >&5
6935
6936         ac_cv_lib_Xwindow_XCreateWindow=no
6937 fi
6938
6939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6940       conftest$ac_exeext conftest.$ac_ext
6941 LIBS=$ac_check_lib_save_LIBS
6942 fi
6943 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xwindow_XCreateWindow" >&5
6944 echo "${ECHO_T}$ac_cv_lib_Xwindow_XCreateWindow" >&6; }
6945 if test $ac_cv_lib_Xwindow_XCreateWindow = yes; then
6946   XLIBSW=-lXwindow
6947 fi
6948
6949 fi
6950 if test -z "$XLIBSW" ; then
6951     { echo "$as_me:$LINENO: result: couldn't find any!  Using -lX11." >&5
6952 echo "${ECHO_T}couldn't find any!  Using -lX11." >&6; }
6953     XLIBSW=-lX11
6954 fi
6955
6956
6957
6958
6959
6960 # Check whether --with-alllang was given.
6961 if test "${with_alllang+set}" = set; then
6962   withval=$with_alllang; with_alllang="$withval"
6963 fi
6964
6965
6966 #--------------------------------------------------------------------
6967 # Look for Tcl
6968 #--------------------------------------------------------------------
6969
6970 TCLINCLUDE=
6971 TCLLIB=
6972 TCLPACKAGE=
6973
6974
6975 # Check whether --with-tclconfig was given.
6976 if test "${with_tclconfig+set}" = set; then
6977   withval=$with_tclconfig; with_tclconfig="$withval"
6978 else
6979   with_tclconfig=
6980 fi
6981
6982
6983 # Check whether --with-tcl was given.
6984 if test "${with_tcl+set}" = set; then
6985   withval=$with_tcl;
6986         TCLPACKAGE="$withval"
6987 else
6988   TCLPACKAGE=yes
6989 fi
6990
6991
6992 # Check whether --with-tclincl was given.
6993 if test "${with_tclincl+set}" = set; then
6994   withval=$with_tclincl;
6995         TCLINCLUDE="$ISYSTEM$withval"
6996 else
6997   TCLINCLUDE=
6998 fi
6999
7000
7001 # Check whether --with-tcllib was given.
7002 if test "${with_tcllib+set}" = set; then
7003   withval=$with_tcllib;
7004         TCLLIB="-L$withval"
7005 else
7006   TCLLIB=
7007 fi
7008
7009
7010 # First, check for "--without-tcl" or "--with-tcl=no".
7011 if test x"${TCLPACKAGE}" = xno -o x"${with_alllang}" = xno; then
7012 { echo "$as_me:$LINENO: Disabling Tcl" >&5
7013 echo "$as_me: Disabling Tcl" >&6;}
7014 else
7015 { echo "$as_me:$LINENO: checking for Tcl configuration" >&5
7016 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; }
7017 # First check to see if --with-tclconfig was specified.
7018 if test x"${with_tclconfig}" != x ; then
7019    if test -f "${with_tclconfig}/tclConfig.sh" ; then
7020       TCLCONFIG=`(cd ${with_tclconfig}; pwd)`
7021    else
7022       { { echo "$as_me:$LINENO: error: ${with_tcl} directory doesn't contain tclConfig.sh" >&5
7023 echo "$as_me: error: ${with_tcl} directory doesn't contain tclConfig.sh" >&2;}
7024    { (exit 1); exit 1; }; }
7025    fi
7026 fi
7027 # check in a few common install locations
7028 if test x"${TCLCONFIG}" = x ; then
7029     for i in `ls -d /usr/lib/ 2>/dev/null` \
7030              `ls -d -r /usr/lib/tcl*/ 2>/dev/null` \
7031              `ls -d /usr/local/lib/ 2>/dev/null` \
7032              `ls -d -r /usr/local/lib/tcl*/ 2>/dev/null` ; do
7033         if test -f $i"tclConfig.sh" ; then
7034             TCLCONFIG=`(cd $i; pwd)`
7035             break
7036         fi
7037     done
7038 fi
7039 if test x"${TCLCONFIG}" = x ; then
7040     { echo "$as_me:$LINENO: result: no" >&5
7041 echo "${ECHO_T}no" >&6; }
7042 else
7043     { echo "$as_me:$LINENO: result: found $TCLCONFIG/tclConfig.sh" >&5
7044 echo "${ECHO_T}found $TCLCONFIG/tclConfig.sh" >&6; }
7045     . $TCLCONFIG/tclConfig.sh
7046     if test -z "$TCLINCLUDE"; then
7047         TCLINCLUDE=`echo $TCL_INCLUDE_SPEC | sed "s/-I/$ISYSTEM/"`
7048     fi
7049     if test -z "$TCLLIB"; then
7050         TCLLIB=$TCL_LIB_SPEC
7051     fi
7052 fi
7053
7054 if test -z "$TCLINCLUDE"; then
7055    if test "x$TCLPACKAGE" != xyes; then
7056         TCLINCLUDE="$ISYSTEM$TCLPACKAGE/include"
7057    fi
7058 fi
7059
7060 if test -z "$TCLLIB"; then
7061    if test "x$TCLPACKAGE" != xyes; then
7062         TCLLIB="-L$TCLPACKAGE/lib -ltcl"
7063    fi
7064 fi
7065
7066 { echo "$as_me:$LINENO: checking for Tcl header files" >&5
7067 echo $ECHO_N "checking for Tcl header files... $ECHO_C" >&6; }
7068 if test -z "$TCLINCLUDE"; then
7069 cat >conftest.$ac_ext <<_ACEOF
7070 /* confdefs.h.  */
7071 _ACEOF
7072 cat confdefs.h >>conftest.$ac_ext
7073 cat >>conftest.$ac_ext <<_ACEOF
7074 /* end confdefs.h.  */
7075 #include <tcl.h>
7076 _ACEOF
7077 if { (ac_try="$ac_cpp conftest.$ac_ext"
7078 case "(($ac_try" in
7079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7080   *) ac_try_echo=$ac_try;;
7081 esac
7082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7083   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7084   ac_status=$?
7085   grep -v '^ *+' conftest.er1 >conftest.err
7086   rm -f conftest.er1
7087   cat conftest.err >&5
7088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089   (exit $ac_status); } >/dev/null && {
7090          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7091          test ! -s conftest.err
7092        }; then
7093   :
7094 else
7095   echo "$as_me: failed program was:" >&5
7096 sed 's/^/| /' conftest.$ac_ext >&5
7097
7098   TCLINCLUDE=""
7099 fi
7100
7101 rm -f conftest.err conftest.$ac_ext
7102 if test -z "$TCLINCLUDE"; then
7103         dirs="/usr/local/include /usr/include /opt/local/include"
7104         for i in $dirs ; do
7105                 if test -r $i/tcl.h; then
7106                         { echo "$as_me:$LINENO: result: $i" >&5
7107 echo "${ECHO_T}$i" >&6; }
7108                         TCLINCLUDE="$ISYSTEM$i"
7109                         break
7110                 fi
7111         done
7112 fi
7113 if test -z "$TCLINCLUDE"; then
7114         { echo "$as_me:$LINENO: result: not found" >&5
7115 echo "${ECHO_T}not found" >&6; }
7116 fi
7117 else
7118         { echo "$as_me:$LINENO: result: $TCLINCLUDE" >&5
7119 echo "${ECHO_T}$TCLINCLUDE" >&6; }
7120 fi
7121
7122 { echo "$as_me:$LINENO: checking for Tcl library" >&5
7123 echo $ECHO_N "checking for Tcl library... $ECHO_C" >&6; }
7124 if test -z "$TCLLIB"; then
7125 dirs="/usr/local/lib /usr/lib /opt/local/lib"
7126 for i in $dirs ; do
7127         if test -r $i/libtcl.a; then
7128             { echo "$as_me:$LINENO: result: $i" >&5
7129 echo "${ECHO_T}$i" >&6; }
7130             TCLLIB="-L$i -ltcl"
7131             break
7132         fi
7133 done
7134 if test -z "$TCLLIB"; then
7135         { echo "$as_me:$LINENO: result: not found" >&5
7136 echo "${ECHO_T}not found" >&6; }
7137 fi
7138 else
7139 { echo "$as_me:$LINENO: result: $TCLLIB" >&5
7140 echo "${ECHO_T}$TCLLIB" >&6; }
7141 fi
7142
7143 # Cygwin (Windows) needs the library for dynamic linking
7144 case $host in
7145 *-*-cygwin* | *-*-mingw*) TCLDYNAMICLINKING="$TCLLIB";;
7146 *)TCLDYNAMICLINKING="";;
7147 esac
7148
7149 case $host in
7150 *-*-darwin*)
7151     TCLLDSHARED='$(CC) -dynamiclib -undefined suppress -flat_namespace'
7152     TCLCXXSHARED='$(CXX) -dynamiclib -undefined suppress -flat_namespace'
7153     ;;
7154 *)
7155     TCLLDSHARED='$(LDSHARED)'
7156     TCLCXXSHARED='$(CXXSHARED)'
7157     ;;
7158 esac
7159
7160 fi
7161
7162
7163
7164
7165
7166
7167
7168 #----------------------------------------------------------------
7169 # Look for Python
7170 #----------------------------------------------------------------
7171
7172 PYINCLUDE=
7173 PYLIB=
7174 PYPACKAGE=
7175
7176
7177 # Check whether --with-python was given.
7178 if test "${with_python+set}" = set; then
7179   withval=$with_python;  PYBIN="$withval"
7180 else
7181   PYBIN=yes
7182 fi
7183
7184
7185 # First, check for "--without-python" or "--with-python=no".
7186 if test x"${PYBIN}" = xno -o x"${with_alllang}" = xno ; then
7187 { echo "$as_me:$LINENO: Disabling Python" >&5
7188 echo "$as_me: Disabling Python" >&6;}
7189 else
7190 # First figure out the name of the Python executable
7191
7192 if test "x$PYBIN" = xyes; then
7193 for ac_prog in python python2.8 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 python1.4 python
7194 do
7195   # Extract the first word of "$ac_prog", so it can be a program name with args.
7196 set dummy $ac_prog; ac_word=$2
7197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7199 if test "${ac_cv_prog_PYTHON+set}" = set; then
7200   echo $ECHO_N "(cached) $ECHO_C" >&6
7201 else
7202   if test -n "$PYTHON"; then
7203   ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
7204 else
7205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206 for as_dir in $PATH
7207 do
7208   IFS=$as_save_IFS
7209   test -z "$as_dir" && as_dir=.
7210   for ac_exec_ext in '' $ac_executable_extensions; do
7211   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7212     ac_cv_prog_PYTHON="$ac_prog"
7213     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7214     break 2
7215   fi
7216 done
7217 done
7218 IFS=$as_save_IFS
7219
7220 fi
7221 fi
7222 PYTHON=$ac_cv_prog_PYTHON
7223 if test -n "$PYTHON"; then
7224   { echo "$as_me:$LINENO: result: $PYTHON" >&5
7225 echo "${ECHO_T}$PYTHON" >&6; }
7226 else
7227   { echo "$as_me:$LINENO: result: no" >&5
7228 echo "${ECHO_T}no" >&6; }
7229 fi
7230
7231
7232   test -n "$PYTHON" && break
7233 done
7234
7235 else
7236 PYTHON="$PYBIN"
7237 fi
7238
7239 if test -n "$PYTHON"; then
7240     { echo "$as_me:$LINENO: checking for Python prefix" >&5
7241 echo $ECHO_N "checking for Python prefix... $ECHO_C" >&6; }
7242     PYPREFIX=`($PYTHON -c "import sys; print sys.prefix") 2>/dev/null`
7243     { echo "$as_me:$LINENO: result: $PYPREFIX" >&5
7244 echo "${ECHO_T}$PYPREFIX" >&6; }
7245     { echo "$as_me:$LINENO: checking for Python exec-prefix" >&5
7246 echo $ECHO_N "checking for Python exec-prefix... $ECHO_C" >&6; }
7247     PYEPREFIX=`($PYTHON -c "import sys; print sys.exec_prefix") 2>/dev/null`
7248     { echo "$as_me:$LINENO: result: $PYEPREFIX" >&5
7249 echo "${ECHO_T}$PYEPREFIX" >&6; }
7250
7251
7252     # Note: I could not think of a standard way to get the version string from different versions.
7253     # This trick pulls it out of the file location for a standard library file.
7254
7255     { echo "$as_me:$LINENO: checking for Python version" >&5
7256 echo $ECHO_N "checking for Python version... $ECHO_C" >&6; }
7257
7258     # Need to do this hack since autoconf replaces __file__ with the name of the configure file
7259     filehack="file__"
7260     PYVERSION=`($PYTHON -c "import string,operator,os.path; print operator.getitem(os.path.split(operator.getitem(os.path.split(string.__$filehack),0)),1)")`
7261     { echo "$as_me:$LINENO: result: $PYVERSION" >&5
7262 echo "${ECHO_T}$PYVERSION" >&6; }
7263
7264     # Find the directory for libraries this is necessary to deal with
7265     # platforms that can have apps built for multiple archs: e.g. x86_64
7266     { echo "$as_me:$LINENO: checking for Python lib dir" >&5
7267 echo $ECHO_N "checking for Python lib dir... $ECHO_C" >&6; }
7268     PYLIBDIR=`($PYTHON -c "import sys; print sys.lib") 2>/dev/null`
7269     if test -z "$PYLIBDIR"; then
7270       # older versions don't have sys.lib  so the best we can do is assume lib
7271       PYLIBDIR="lib"
7272     fi
7273     { echo "$as_me:$LINENO: result: $PYLIBDIR" >&5
7274 echo "${ECHO_T}$PYLIBDIR" >&6; }
7275
7276     # Set the include directory
7277
7278     { echo "$as_me:$LINENO: checking for Python header files" >&5
7279 echo $ECHO_N "checking for Python header files... $ECHO_C" >&6; }
7280     if test -r $PYPREFIX/include/$PYVERSION/Python.h; then
7281         PYINCLUDE="-I$PYPREFIX/include/$PYVERSION -I$PYEPREFIX/$PYLIBDIR/$PYVERSION/config"
7282     fi
7283     if test -z "$PYINCLUDE"; then
7284         if test -r $PYPREFIX/include/Py/Python.h; then
7285             PYINCLUDE="-I$PYPREFIX/include/Py -I$PYEPREFIX/$PYLIBDIR/python/lib"
7286         fi
7287     fi
7288     { echo "$as_me:$LINENO: result: $PYINCLUDE" >&5
7289 echo "${ECHO_T}$PYINCLUDE" >&6; }
7290
7291     # Set the library directory blindly.   This probably won't work with older versions
7292     { echo "$as_me:$LINENO: checking for Python library" >&5
7293 echo $ECHO_N "checking for Python library... $ECHO_C" >&6; }
7294     dirs="$PYVERSION/config $PYVERSION/$PYLIBDIR python/$PYLIBDIR"
7295     for i in $dirs; do
7296         if test -d $PYEPREFIX/$PYLIBDIR/$i; then
7297            PYLIB="$PYEPREFIX/$PYLIBDIR/$i"
7298            break
7299         fi
7300     done
7301     if test -z "$PYLIB"; then
7302         { echo "$as_me:$LINENO: result: Not found" >&5
7303 echo "${ECHO_T}Not found" >&6; }
7304     else
7305         { echo "$as_me:$LINENO: result: $PYLIB" >&5
7306 echo "${ECHO_T}$PYLIB" >&6; }
7307     fi
7308
7309     # Check for really old versions
7310     if test -r $PYLIB/libPython.a; then
7311          PYLINK="-lModules -lPython -lObjects -lParser"
7312     else
7313          PYLINK="-l$PYVERSION"
7314     fi
7315 fi
7316
7317 # Cygwin (Windows) needs the library for dynamic linking
7318 case $host in
7319 *-*-cygwin* | *-*-mingw*) PYTHONDYNAMICLINKING="-L$PYLIB $PYLINK"
7320          DEFS="-DUSE_DL_IMPORT $DEFS" PYINCLUDE="$PYINCLUDE"
7321          ;;
7322 *)PYTHONDYNAMICLINKING="";;
7323 esac
7324 fi
7325
7326
7327
7328
7329
7330
7331
7332 #----------------------------------------------------------------
7333 # Look for Python 3.x
7334 #----------------------------------------------------------------
7335
7336 # mostly copy & pasted from "Look for Python" section,
7337 # did some trim, fix and rename
7338
7339 PY3INCLUDE=
7340 PY3LIB=
7341 PY3PACKAGE=
7342
7343
7344 # Check whether --with-python3 was given.
7345 if test "${with_python3+set}" = set; then
7346   withval=$with_python3;  PY3BIN="$withval"
7347 else
7348   PY3BIN=yes
7349 fi
7350
7351
7352 # First, check for "--without-python3" or "--with-python3=no".
7353 if test x"${PY3BIN}" = xno -o x"${with_alllang}" = xno ; then
7354 { echo "$as_me:$LINENO: Disabling Python 3.x support" >&5
7355 echo "$as_me: Disabling Python 3.x support" >&6;}
7356 else
7357 # First figure out the name of the Python3 executable
7358
7359 if test "x$PY3BIN" = xyes; then
7360   for ac_prog in python3 python3.0 python3.1
7361 do
7362   # Extract the first word of "$ac_prog", so it can be a program name with args.
7363 set dummy $ac_prog; ac_word=$2
7364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7366 if test "${ac_cv_prog_PYTHON3+set}" = set; then
7367   echo $ECHO_N "(cached) $ECHO_C" >&6
7368 else
7369   if test -n "$PYTHON3"; then
7370   ac_cv_prog_PYTHON3="$PYTHON3" # Let the user override the test.
7371 else
7372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7373 for as_dir in $PATH
7374 do
7375   IFS=$as_save_IFS
7376   test -z "$as_dir" && as_dir=.
7377   for ac_exec_ext in '' $ac_executable_extensions; do
7378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7379     ac_cv_prog_PYTHON3="$ac_prog"
7380     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7381     break 2
7382   fi
7383 done
7384 done
7385 IFS=$as_save_IFS
7386
7387 fi
7388 fi
7389 PYTHON3=$ac_cv_prog_PYTHON3
7390 if test -n "$PYTHON3"; then
7391   { echo "$as_me:$LINENO: result: $PYTHON3" >&5
7392 echo "${ECHO_T}$PYTHON3" >&6; }
7393 else
7394   { echo "$as_me:$LINENO: result: no" >&5
7395 echo "${ECHO_T}no" >&6; }
7396 fi
7397
7398
7399   test -n "$PYTHON3" && break
7400 done
7401
7402 else
7403   PYTHON3="$PY3BIN"
7404 fi
7405
7406 # Check for Python 3.x development tools (header files, static library and python3-config)
7407 if test "x$PYTHON3" = x; then
7408   for ac_prog in python3-config python3.0-config python3.1-config
7409 do
7410   # Extract the first word of "$ac_prog", so it can be a program name with args.
7411 set dummy $ac_prog; ac_word=$2
7412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7414 if test "${ac_cv_prog_PY3CONFIG+set}" = set; then
7415   echo $ECHO_N "(cached) $ECHO_C" >&6
7416 else
7417   if test -n "$PY3CONFIG"; then
7418   ac_cv_prog_PY3CONFIG="$PY3CONFIG" # Let the user override the test.
7419 else
7420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421 for as_dir in $PATH
7422 do
7423   IFS=$as_save_IFS
7424   test -z "$as_dir" && as_dir=.
7425   for ac_exec_ext in '' $ac_executable_extensions; do
7426   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7427     ac_cv_prog_PY3CONFIG="$ac_prog"
7428     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7429     break 2
7430   fi
7431 done
7432 done
7433 IFS=$as_save_IFS
7434
7435 fi
7436 fi
7437 PY3CONFIG=$ac_cv_prog_PY3CONFIG
7438 if test -n "$PY3CONFIG"; then
7439   { echo "$as_me:$LINENO: result: $PY3CONFIG" >&5
7440 echo "${ECHO_T}$PY3CONFIG" >&6; }
7441 else
7442   { echo "$as_me:$LINENO: result: no" >&5
7443 echo "${ECHO_T}no" >&6; }
7444 fi
7445
7446
7447   test -n "$PY3CONFIG" && break
7448 done
7449
7450 else
7451   for ac_prog in $PYTHON3-config python3-config python3.0-config python3.1-config
7452 do
7453   # Extract the first word of "$ac_prog", so it can be a program name with args.
7454 set dummy $ac_prog; ac_word=$2
7455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7457 if test "${ac_cv_prog_PY3CONFIG+set}" = set; then
7458   echo $ECHO_N "(cached) $ECHO_C" >&6
7459 else
7460   if test -n "$PY3CONFIG"; then
7461   ac_cv_prog_PY3CONFIG="$PY3CONFIG" # Let the user override the test.
7462 else
7463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464 for as_dir in $PATH
7465 do
7466   IFS=$as_save_IFS
7467   test -z "$as_dir" && as_dir=.
7468   for ac_exec_ext in '' $ac_executable_extensions; do
7469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7470     ac_cv_prog_PY3CONFIG="$ac_prog"
7471     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7472     break 2
7473   fi
7474 done
7475 done
7476 IFS=$as_save_IFS
7477
7478 fi
7479 fi
7480 PY3CONFIG=$ac_cv_prog_PY3CONFIG
7481 if test -n "$PY3CONFIG"; then
7482   { echo "$as_me:$LINENO: result: $PY3CONFIG" >&5
7483 echo "${ECHO_T}$PY3CONFIG" >&6; }
7484 else
7485   { echo "$as_me:$LINENO: result: no" >&5
7486 echo "${ECHO_T}no" >&6; }
7487 fi
7488
7489
7490   test -n "$PY3CONFIG" && break
7491 done
7492
7493 fi
7494
7495 if test -n "$PYTHON3" -a -n "$PY3CONFIG"; then
7496     { echo "$as_me:$LINENO: checking for Python 3.x prefix" >&5
7497 echo $ECHO_N "checking for Python 3.x prefix... $ECHO_C" >&6; }
7498     PY3PREFIX=`($PY3CONFIG --prefix) 2>/dev/null`
7499     { echo "$as_me:$LINENO: result: $PY3PREFIX" >&5
7500 echo "${ECHO_T}$PY3PREFIX" >&6; }
7501     { echo "$as_me:$LINENO: checking for Python 3.x exec-prefix" >&5
7502 echo $ECHO_N "checking for Python 3.x exec-prefix... $ECHO_C" >&6; }
7503     PY3EPREFIX=`($PY3CONFIG --exec-prefix) 2>/dev/null`
7504     { echo "$as_me:$LINENO: result: $PY3EPREFIX" >&5
7505 echo "${ECHO_T}$PY3EPREFIX" >&6; }
7506
7507     # Note: I could not think of a standard way to get the version string from different versions.
7508     # This trick pulls it out of the file location for a standard library file.
7509
7510     { echo "$as_me:$LINENO: checking for Python 3.x version" >&5
7511 echo $ECHO_N "checking for Python 3.x version... $ECHO_C" >&6; }
7512
7513     # Need to do this hack since autoconf replaces __file__ with the name of the configure file
7514     filehack="file__"
7515     PY3VERSION=`($PYTHON3 -c "import string,operator,os.path; print(operator.getitem(os.path.split(operator.getitem(os.path.split(string.__$filehack),0)),1))")`
7516     { echo "$as_me:$LINENO: result: $PY3VERSION" >&5
7517 echo "${ECHO_T}$PY3VERSION" >&6; }
7518
7519     # Find the directory for libraries this is necessary to deal with
7520     # platforms that can have apps built for multiple archs: e.g. x86_64
7521     { echo "$as_me:$LINENO: checking for Python 3.x lib dir" >&5
7522 echo $ECHO_N "checking for Python 3.x lib dir... $ECHO_C" >&6; }
7523     PY3LIBDIR=`($PYTHON3 -c "import sys; print(sys.lib)") 2>/dev/null`
7524     if test -z "$PY3LIBDIR"; then
7525       # some dists don't have sys.lib  so the best we can do is assume lib
7526       PY3LIBDIR="lib"
7527     fi
7528     { echo "$as_me:$LINENO: result: $PY3LIBDIR" >&5
7529 echo "${ECHO_T}$PY3LIBDIR" >&6; }
7530
7531     # Set the include directory
7532
7533     { echo "$as_me:$LINENO: checking for Python 3.x header files" >&5
7534 echo $ECHO_N "checking for Python 3.x header files... $ECHO_C" >&6; }
7535     PY3INCLUDE=`($PY3CONFIG --includes) 2>/dev/null`
7536     { echo "$as_me:$LINENO: result: $PY3INCLUDE" >&5
7537 echo "${ECHO_T}$PY3INCLUDE" >&6; }
7538
7539     # Set the library directory blindly.   This probably won't work with older versions
7540     { echo "$as_me:$LINENO: checking for Python 3.x library" >&5
7541 echo $ECHO_N "checking for Python 3.x library... $ECHO_C" >&6; }
7542     dirs="$PY3VERSION/config $PY3VERSION/$PY3LIBDIR python/$PY3LIBDIR"
7543     for i in $dirs; do
7544         if test -d $PY3EPREFIX/$PY3LIBDIR/$i; then
7545            PY3LIB="$PY3EPREFIX/$PY3LIBDIR/$i"
7546            break
7547         fi
7548     done
7549     if test -z "$PY3LIB"; then
7550         { echo "$as_me:$LINENO: result: Not found" >&5
7551 echo "${ECHO_T}Not found" >&6; }
7552     else
7553         { echo "$as_me:$LINENO: result: $PY3LIB" >&5
7554 echo "${ECHO_T}$PY3LIB" >&6; }
7555     fi
7556
7557     PY3LINK="-l$PY3VERSION"
7558 fi
7559
7560 # Cygwin (Windows) needs the library for dynamic linking
7561 case $host in
7562 *-*-cygwin* | *-*-mingw*) PYTHON3DYNAMICLINKING="-L$PYLIB $PY3LINK"
7563          DEFS="-DUSE_DL_IMPORT $DEFS" PY3INCLUDE="$PY3INCLUDE"
7564          ;;
7565 *)PYTHON3DYNAMICLINKING="";;
7566 esac
7567 fi
7568
7569
7570
7571
7572
7573
7574
7575 #----------------------------------------------------------------
7576 # Look for Perl5
7577 #----------------------------------------------------------------
7578
7579 PERLBIN=
7580
7581
7582 # Check whether --with-perl5 was given.
7583 if test "${with_perl5+set}" = set; then
7584   withval=$with_perl5;  PERLBIN="$withval"
7585 else
7586   PERLBIN=yes
7587 fi
7588
7589
7590 # First, check for "--without-perl5" or "--with-perl5=no".
7591 if test x"${PERLBIN}" = xno -o x"${with_alllang}" = xno ; then
7592 { echo "$as_me:$LINENO: Disabling Perl5" >&5
7593 echo "$as_me: Disabling Perl5" >&6;}
7594 PERL=
7595 else
7596
7597 # First figure out what the name of Perl5 is
7598
7599 if test "x$PERLBIN" = xyes; then
7600 for ac_prog in perl perl5.6.1 perl5.6.0 perl5.004 perl5.003 perl5.002 perl5.001 perl5 perl
7601 do
7602   # Extract the first word of "$ac_prog", so it can be a program name with args.
7603 set dummy $ac_prog; ac_word=$2
7604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7606 if test "${ac_cv_prog_PERL+set}" = set; then
7607   echo $ECHO_N "(cached) $ECHO_C" >&6
7608 else
7609   if test -n "$PERL"; then
7610   ac_cv_prog_PERL="$PERL" # Let the user override the test.
7611 else
7612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613 for as_dir in $PATH
7614 do
7615   IFS=$as_save_IFS
7616   test -z "$as_dir" && as_dir=.
7617   for ac_exec_ext in '' $ac_executable_extensions; do
7618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7619     ac_cv_prog_PERL="$ac_prog"
7620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7621     break 2
7622   fi
7623 done
7624 done
7625 IFS=$as_save_IFS
7626
7627 fi
7628 fi
7629 PERL=$ac_cv_prog_PERL
7630 if test -n "$PERL"; then
7631   { echo "$as_me:$LINENO: result: $PERL" >&5
7632 echo "${ECHO_T}$PERL" >&6; }
7633 else
7634   { echo "$as_me:$LINENO: result: no" >&5
7635 echo "${ECHO_T}no" >&6; }
7636 fi
7637
7638
7639   test -n "$PERL" && break
7640 done
7641
7642 else
7643 PERL="$PERLBIN"
7644 fi
7645
7646
7647 # This could probably be simplified as for all platforms and all versions of Perl the following apparently should be run to get the compilation options:
7648 # perl -MExtUtils::Embed -e ccopts
7649 { echo "$as_me:$LINENO: checking for Perl5 header files" >&5
7650 echo $ECHO_N "checking for Perl5 header files... $ECHO_C" >&6; }
7651 if test -n "$PERL"; then
7652         PERL5DIR=`($PERL -e 'use Config; print $Config{archlib}, "\n";') 2>/dev/null`
7653         if test "$PERL5DIR" != ""; then
7654                 dirs="$PERL5DIR $PERL5DIR/CORE"
7655                 PERL5EXT=none
7656                 for i in $dirs; do
7657                         if test -r $i/perl.h; then
7658                                 { echo "$as_me:$LINENO: result: $i" >&5
7659 echo "${ECHO_T}$i" >&6; }
7660                                 PERL5EXT="$i"
7661                                 break;
7662                         fi
7663                 done
7664                 if test "$PERL5EXT" = none; then
7665                         PERL5EXT="$PERL5DIR/CORE"
7666                         { echo "$as_me:$LINENO: result: could not locate perl.h...using $PERL5EXT" >&5
7667 echo "${ECHO_T}could not locate perl.h...using $PERL5EXT" >&6; }
7668                 fi
7669
7670                 { echo "$as_me:$LINENO: checking for Perl5 library" >&5
7671 echo $ECHO_N "checking for Perl5 library... $ECHO_C" >&6; }
7672                 PERL5LIB=`($PERL -e 'use Config; $_=$Config{libperl}; s/^lib//; s/$Config{_a}$//; print $_, "\n"') 2>/dev/null`
7673                 if test "$PERL5LIB" = "" ; then
7674                         { echo "$as_me:$LINENO: result: not found" >&5
7675 echo "${ECHO_T}not found" >&6; }
7676                 else
7677                         { echo "$as_me:$LINENO: result: $PERL5LIB" >&5
7678 echo "${ECHO_T}$PERL5LIB" >&6; }
7679                 fi
7680     { echo "$as_me:$LINENO: checking for Perl5 compiler options" >&5
7681 echo $ECHO_N "checking for Perl5 compiler options... $ECHO_C" >&6; }
7682                 PERL5CCFLAGS=`($PERL -e 'use Config; print $Config{ccflags}, "\n"' | sed "s/-Wdeclaration-after-statement//" | sed "s/-I/$ISYSTEM/") 2>/dev/null`
7683                 if test "$PERL5CCFLAGS" = "" ; then
7684                         { echo "$as_me:$LINENO: result: not found" >&5
7685 echo "${ECHO_T}not found" >&6; }
7686                 else
7687                         { echo "$as_me:$LINENO: result: $PERL5CCFLAGS" >&5
7688 echo "${ECHO_T}$PERL5CCFLAGS" >&6; }
7689                 fi
7690         else
7691                 { echo "$as_me:$LINENO: result: unable to determine perl5 configuration" >&5
7692 echo "${ECHO_T}unable to determine perl5 configuration" >&6; }
7693                 PERL5EXT=$PERL5DIR
7694         fi
7695 else
7696         { echo "$as_me:$LINENO: result: could not figure out how to run perl5" >&5
7697 echo "${ECHO_T}could not figure out how to run perl5" >&6; }
7698 fi
7699
7700 # Cygwin (Windows) needs the library for dynamic linking
7701 case $host in
7702 *-*-cygwin* | *-*-mingw*) PERL5DYNAMICLINKING="-L$PERL5EXT -l$PERL5LIB";;
7703 *)PERL5DYNAMICLINKING="";;
7704 esac
7705 fi
7706
7707
7708
7709
7710
7711
7712
7713 #----------------------------------------------------------------
7714 # Look for Octave
7715 #----------------------------------------------------------------
7716
7717 OCTAVEBIN=
7718 OCTAVEDYNAMICLINKING=
7719 OCTAVE_SO=.oct
7720
7721
7722 # Check whether --with-octave was given.
7723 if test "${with_octave+set}" = set; then
7724   withval=$with_octave; OCTAVEBIN="$withval"
7725 else
7726   OCTAVEBIN=yes
7727 fi
7728
7729
7730 # First, check for "--without-octave" or "--with-octave=no".
7731 if test x"${OCTAVEBIN}" = xno -o x"${with_alllang}" = xno ; then
7732 { echo "$as_me:$LINENO: Disabling Octave" >&5
7733 echo "$as_me: Disabling Octave" >&6;}
7734 OCTAVE=
7735 else
7736
7737 # First figure out what the name of Octave is
7738
7739 if test "x$OCTAVEBIN" = xyes; then
7740 for ac_prog in octave
7741 do
7742   # Extract the first word of "$ac_prog", so it can be a program name with args.
7743 set dummy $ac_prog; ac_word=$2
7744 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7746 if test "${ac_cv_prog_OCTAVE+set}" = set; then
7747   echo $ECHO_N "(cached) $ECHO_C" >&6
7748 else
7749   if test -n "$OCTAVE"; then
7750   ac_cv_prog_OCTAVE="$OCTAVE" # Let the user override the test.
7751 else
7752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7753 for as_dir in $PATH
7754 do
7755   IFS=$as_save_IFS
7756   test -z "$as_dir" && as_dir=.
7757   for ac_exec_ext in '' $ac_executable_extensions; do
7758   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7759     ac_cv_prog_OCTAVE="$ac_prog"
7760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7761     break 2
7762   fi
7763 done
7764 done
7765 IFS=$as_save_IFS
7766
7767 fi
7768 fi
7769 OCTAVE=$ac_cv_prog_OCTAVE
7770 if test -n "$OCTAVE"; then
7771   { echo "$as_me:$LINENO: result: $OCTAVE" >&5
7772 echo "${ECHO_T}$OCTAVE" >&6; }
7773 else
7774   { echo "$as_me:$LINENO: result: no" >&5
7775 echo "${ECHO_T}no" >&6; }
7776 fi
7777
7778
7779   test -n "$OCTAVE" && break
7780 done
7781
7782 else
7783 OCTAVE="$OCTAVEBIN"
7784 fi
7785
7786
7787 { echo "$as_me:$LINENO: checking for Octave header files" >&5
7788 echo $ECHO_N "checking for Octave header files... $ECHO_C" >&6; }
7789 if test -n "$OCTAVE"; then
7790         OCTAVEDIR="/usr/include"
7791         if test "$OCTAVEDIR" != ""; then
7792                 dirs="$OCTAVEDIR"
7793                 OCTAVEEXT=""
7794                 for i in $dirs; do
7795                         if test -r $i/octave/oct.h; then
7796                                 OCTAVEEXT="$i"
7797                                 break;
7798                         fi
7799                         if test -r $i/octave/octave/oct.h; then
7800                                 OCTAVEEXT="$i/octave"
7801                                 break;
7802                         fi
7803                 done
7804                 if test "$OCTAVEEXT" = "" ; then
7805                         { echo "$as_me:$LINENO: result: not found" >&5
7806 echo "${ECHO_T}not found" >&6; }
7807                 else
7808                         { echo "$as_me:$LINENO: result: $OCTAVEEXT" >&5
7809 echo "${ECHO_T}$OCTAVEEXT" >&6; }
7810                 fi
7811
7812                 { echo "$as_me:$LINENO: checking for Octave compiler options" >&5
7813 echo $ECHO_N "checking for Octave compiler options... $ECHO_C" >&6; }
7814                 OCTAVECCFLAGS=""
7815                 { echo "$as_me:$LINENO: result: $OCTAVECCFLAGS" >&5
7816 echo "${ECHO_T}$OCTAVECCFLAGS" >&6; }
7817         fi
7818 else
7819         { echo "$as_me:$LINENO: result: could not figure out how to run octave" >&5
7820 echo "${ECHO_T}could not figure out how to run octave" >&6; }
7821 fi
7822
7823 fi
7824
7825
7826
7827
7828
7829
7830
7831
7832 #----------------------------------------------------------------
7833 # Look for java
7834 #----------------------------------------------------------------
7835
7836
7837 # Check whether --with-java was given.
7838 if test "${with_java+set}" = set; then
7839   withval=$with_java; JAVABIN="$withval"
7840 else
7841   JAVABIN=yes
7842 fi
7843
7844
7845 # Check whether --with-javac was given.
7846 if test "${with_javac+set}" = set; then
7847   withval=$with_javac; JAVACBIN="$withval"
7848 else
7849   JAVACBIN=
7850 fi
7851
7852
7853 # First, check for "--without-java" or "--with-java=no".
7854 if test x"${JAVABIN}" = xno -o x"${with_alllang}" = xno ; then
7855 { echo "$as_me:$LINENO: Disabling Java" >&5
7856 echo "$as_me: Disabling Java" >&6;}
7857 JAVA=
7858 else
7859
7860 if test "x$JAVABIN" = xyes; then
7861   for ac_prog in java kaffe guavac
7862 do
7863   # Extract the first word of "$ac_prog", so it can be a program name with args.
7864 set dummy $ac_prog; ac_word=$2
7865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7867 if test "${ac_cv_prog_JAVA+set}" = set; then
7868   echo $ECHO_N "(cached) $ECHO_C" >&6
7869 else
7870   if test -n "$JAVA"; then
7871   ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
7872 else
7873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874 for as_dir in $PATH
7875 do
7876   IFS=$as_save_IFS
7877   test -z "$as_dir" && as_dir=.
7878   for ac_exec_ext in '' $ac_executable_extensions; do
7879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7880     ac_cv_prog_JAVA="$ac_prog"
7881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7882     break 2
7883   fi
7884 done
7885 done
7886 IFS=$as_save_IFS
7887
7888 fi
7889 fi
7890 JAVA=$ac_cv_prog_JAVA
7891 if test -n "$JAVA"; then
7892   { echo "$as_me:$LINENO: result: $JAVA" >&5
7893 echo "${ECHO_T}$JAVA" >&6; }
7894 else
7895   { echo "$as_me:$LINENO: result: no" >&5
7896 echo "${ECHO_T}no" >&6; }
7897 fi
7898
7899
7900   test -n "$JAVA" && break
7901 done
7902
7903 else
7904   JAVA="$JAVABIN"
7905 fi
7906
7907 if test -z "$JAVACBIN"; then
7908   for ac_prog in javac
7909 do
7910   # Extract the first word of "$ac_prog", so it can be a program name with args.
7911 set dummy $ac_prog; ac_word=$2
7912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7914 if test "${ac_cv_prog_JAVAC+set}" = set; then
7915   echo $ECHO_N "(cached) $ECHO_C" >&6
7916 else
7917   if test -n "$JAVAC"; then
7918   ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
7919 else
7920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7921 for as_dir in $PATH
7922 do
7923   IFS=$as_save_IFS
7924   test -z "$as_dir" && as_dir=.
7925   for ac_exec_ext in '' $ac_executable_extensions; do
7926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7927     ac_cv_prog_JAVAC="$ac_prog"
7928     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7929     break 2
7930   fi
7931 done
7932 done
7933 IFS=$as_save_IFS
7934
7935 fi
7936 fi
7937 JAVAC=$ac_cv_prog_JAVAC
7938 if test -n "$JAVAC"; then
7939   { echo "$as_me:$LINENO: result: $JAVAC" >&5
7940 echo "${ECHO_T}$JAVAC" >&6; }
7941 else
7942   { echo "$as_me:$LINENO: result: no" >&5
7943 echo "${ECHO_T}no" >&6; }
7944 fi
7945
7946
7947   test -n "$JAVAC" && break
7948 done
7949
7950 else
7951   JAVAC="$JAVACBIN"
7952 fi
7953
7954 { echo "$as_me:$LINENO: checking for java include file jni.h" >&5
7955 echo $ECHO_N "checking for java include file jni.h... $ECHO_C" >&6; }
7956
7957 # Check whether --with-javaincl was given.
7958 if test "${with_javaincl+set}" = set; then
7959   withval=$with_javaincl; JAVAINCDIR="$withval"
7960 else
7961   JAVAINCDIR=
7962 fi
7963
7964
7965 if test -z "$JAVAINCDIR" ; then
7966   JAVAINCDIR="/usr/j2sdk*/include /usr/local/j2sdk*/include /usr/jdk*/include /usr/local/jdk*/include /opt/j2sdk*/include /opt/jdk*/include /usr/java/include /usr/java/j2sdk*/include /usr/java/jdk*/include /usr/local/java/include /opt/java/include /usr/include/java /usr/local/include/java /usr/lib/java/include /usr/lib/jvm/java*/include /usr/include/kaffe /usr/local/include/kaffe /usr/include"
7967
7968   # Add in default installation directory on Windows for Cygwin
7969   case $host in
7970   *-*-cygwin* | *-*-mingw*) JAVAINCDIR="c:/Program*Files/Java/jdk*/include d:/Program*Files/Java/jdk*/include c:/j2sdk*/include d:/j2sdk*/include c:/jdk*/include d:/jdk*/include $JAVAINCDIR";;
7971   *-*-darwin*) JAVAINCDIR="/System/Library/Frameworks/JavaVM.framework/Headers $JAVAINCDIR";;
7972   *);;
7973   esac
7974 fi
7975
7976 JAVAINC=""
7977 for d in $JAVAINCDIR ; do
7978   if test -r "$d/jni.h" ; then
7979     { echo "$as_me:$LINENO: result: $d" >&5
7980 echo "${ECHO_T}$d" >&6; }
7981     JAVAINCDIR=$d
7982     JAVAINC=-I\"$d\"
7983     break
7984   fi
7985 done
7986
7987 if test "$JAVAINC" = "" ; then
7988   { echo "$as_me:$LINENO: result: not found" >&5
7989 echo "${ECHO_T}not found" >&6; }
7990 else
7991   # now look for <arch>/jni_md.h
7992   { echo "$as_me:$LINENO: checking for java include file jni_md.h" >&5
7993 echo $ECHO_N "checking for java include file jni_md.h... $ECHO_C" >&6; }
7994   JAVAMDDIR=`find "$JAVAINCDIR" -follow -name jni_md.h -print`
7995   if test "$JAVAMDDIR" = "" ; then
7996     { echo "$as_me:$LINENO: result: not found" >&5
7997 echo "${ECHO_T}not found" >&6; }
7998   else
7999     JAVAMDDIR=`dirname "$JAVAMDDIR" | tail -1`
8000     JAVAINC="${JAVAINC} -I\"$JAVAMDDIR\""
8001     { echo "$as_me:$LINENO: result: $JAVAMDDIR" >&5
8002 echo "${ECHO_T}$JAVAMDDIR" >&6; }
8003   fi
8004 fi
8005
8006 # java.exe on Cygwin requires the Windows standard (Pascal) calling convention as it is a normal Windows executable and not a Cygwin built executable
8007 case $host in
8008 *-*-cygwin* | *-*-mingw*)
8009     if test "$GCC" = yes; then
8010         JAVADYNAMICLINKING=" -mno-cygwin -mthreads -Wl,--add-stdcall-alias"
8011         JAVACFLAGS="-mno-cygwin -mthreads"
8012     else
8013         JAVADYNAMICLINKING=""
8014         JAVACFLAGS=""
8015     fi ;;
8016 *-*-darwin*)
8017         JAVADYNAMICLINKING="-dynamiclib -framework JavaVM"
8018         JAVACFLAGS=""
8019         ;;
8020 *)
8021         JAVADYNAMICLINKING=""
8022         JAVACFLAGS=""
8023         ;;
8024 esac
8025
8026 # Java on Windows platforms including Cygwin doesn't use libname.dll, rather name.dll when loading dlls
8027 case $host in
8028 *-*-cygwin* | *-*-mingw*) JAVALIBRARYPREFIX="";;
8029 *)JAVALIBRARYPREFIX="lib";;
8030 esac
8031
8032 # Java on Mac OS X tweaks
8033 case $host in
8034 *-*-darwin*)
8035     JAVASO=".jnilib"
8036     JAVALDSHARED='$(CC)'
8037     JAVACXXSHARED='$(CXX)'
8038     ;;
8039 *)
8040     JAVASO=$SO
8041     JAVALDSHARED='$(LDSHARED)'
8042     JAVACXXSHARED='$(CXXSHARED)'
8043     ;;
8044 esac
8045 fi
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057 #----------------------------------------------------------------
8058 # Look for gcj
8059 #----------------------------------------------------------------
8060
8061
8062 # Check whether --with-gcj was given.
8063 if test "${with_gcj+set}" = set; then
8064   withval=$with_gcj; GCJBIN="$withval"
8065 else
8066   GCJBIN=yes
8067 fi
8068
8069
8070 # Check whether --with-gcjh was given.
8071 if test "${with_gcjh+set}" = set; then
8072   withval=$with_gcjh; GCJHBIN="$withval"
8073 else
8074   GCJHBIN=
8075 fi
8076
8077
8078 # First, check for "--without-gcj" or "--with-gcj=no".
8079 if test x"${GCJBIN}" = xno -o x"${with_alllang}" = xno ; then
8080   { echo "$as_me:$LINENO: Disabling GCJ" >&5
8081 echo "$as_me: Disabling GCJ" >&6;}
8082 else
8083   if test "x$GCJBIN" = xyes; then
8084     for ac_prog in gcj
8085 do
8086   # Extract the first word of "$ac_prog", so it can be a program name with args.
8087 set dummy $ac_prog; ac_word=$2
8088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8090 if test "${ac_cv_prog_GCJ+set}" = set; then
8091   echo $ECHO_N "(cached) $ECHO_C" >&6
8092 else
8093   if test -n "$GCJ"; then
8094   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
8095 else
8096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8097 for as_dir in $PATH
8098 do
8099   IFS=$as_save_IFS
8100   test -z "$as_dir" && as_dir=.
8101   for ac_exec_ext in '' $ac_executable_extensions; do
8102   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8103     ac_cv_prog_GCJ="$ac_prog"
8104     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8105     break 2
8106   fi
8107 done
8108 done
8109 IFS=$as_save_IFS
8110
8111 fi
8112 fi
8113 GCJ=$ac_cv_prog_GCJ
8114 if test -n "$GCJ"; then
8115   { echo "$as_me:$LINENO: result: $GCJ" >&5
8116 echo "${ECHO_T}$GCJ" >&6; }
8117 else
8118   { echo "$as_me:$LINENO: result: no" >&5
8119 echo "${ECHO_T}no" >&6; }
8120 fi
8121
8122
8123   test -n "$GCJ" && break
8124 done
8125
8126   else
8127     GCJ="$GCJBIN"
8128   fi
8129
8130   if test -z "$GCJCBIN"; then
8131     for ac_prog in gcjh
8132 do
8133   # Extract the first word of "$ac_prog", so it can be a program name with args.
8134 set dummy $ac_prog; ac_word=$2
8135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8137 if test "${ac_cv_prog_GCJH+set}" = set; then
8138   echo $ECHO_N "(cached) $ECHO_C" >&6
8139 else
8140   if test -n "$GCJH"; then
8141   ac_cv_prog_GCJH="$GCJH" # Let the user override the test.
8142 else
8143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8144 for as_dir in $PATH
8145 do
8146   IFS=$as_save_IFS
8147   test -z "$as_dir" && as_dir=.
8148   for ac_exec_ext in '' $ac_executable_extensions; do
8149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8150     ac_cv_prog_GCJH="$ac_prog"
8151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8152     break 2
8153   fi
8154 done
8155 done
8156 IFS=$as_save_IFS
8157
8158 fi
8159 fi
8160 GCJH=$ac_cv_prog_GCJH
8161 if test -n "$GCJH"; then
8162   { echo "$as_me:$LINENO: result: $GCJH" >&5
8163 echo "${ECHO_T}$GCJH" >&6; }
8164 else
8165   { echo "$as_me:$LINENO: result: no" >&5
8166 echo "${ECHO_T}no" >&6; }
8167 fi
8168
8169
8170   test -n "$GCJH" && break
8171 done
8172
8173   else
8174     GCJH="$GCJHBIN"
8175   fi
8176 fi
8177
8178
8179
8180
8181 #----------------------------------------------------------------
8182 # Look for Guile
8183 #----------------------------------------------------------------
8184
8185 GUILEPACKAGE=
8186 GUILEINCLUDE=
8187 GUILE=
8188 GUILELIB=
8189 GUILELINK=
8190 GUILEPKGDATADIR=
8191
8192
8193 # Check whether --with-guile-config was given.
8194 if test "${with_guile_config+set}" = set; then
8195   withval=$with_guile_config;  GUILE_CONFIG="$withval"
8196 else
8197   GUILE_CONFIG=
8198 fi
8199
8200
8201 # Check whether --with-guilepackage was given.
8202 if test "${with_guilepackage+set}" = set; then
8203   withval=$with_guilepackage;
8204         GUILEPACKAGE="$withval"
8205 fi
8206
8207
8208 # Check whether --with-guile was given.
8209 if test "${with_guile+set}" = set; then
8210   withval=$with_guile;
8211         GUILE="$withval"
8212 else
8213   GUILE=yes
8214 fi
8215
8216
8217 # Check whether --with-guileincl was given.
8218 if test "${with_guileincl+set}" = set; then
8219   withval=$with_guileincl;
8220         GUILEINCLUDE="$withval"
8221 fi
8222
8223
8224 # Check whether --with-guilelib was given.
8225 if test "${with_guilelib+set}" = set; then
8226   withval=$with_guilelib;
8227         GUILELIB="$withval"
8228 fi
8229
8230
8231 # First, check for "--without-guile" or "--with-guile=no".
8232 if test x"${GUILE}" = xno -o x"${with_alllang}" = xno ; then
8233 { echo "$as_me:$LINENO: Disabling Guile" >&5
8234 echo "$as_me: Disabling Guile" >&6;}
8235 else
8236
8237 if test -z "$GUILE_CONFIG" ; then
8238   # Extract the first word of "guile-config", so it can be a program name with args.
8239 set dummy guile-config; ac_word=$2
8240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8242 if test "${ac_cv_path_GUILE_CONFIG+set}" = set; then
8243   echo $ECHO_N "(cached) $ECHO_C" >&6
8244 else
8245   case $GUILE_CONFIG in
8246   [\\/]* | ?:[\\/]*)
8247   ac_cv_path_GUILE_CONFIG="$GUILE_CONFIG" # Let the user override the test with a path.
8248   ;;
8249   *)
8250   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8251 for as_dir in $PATH
8252 do
8253   IFS=$as_save_IFS
8254   test -z "$as_dir" && as_dir=.
8255   for ac_exec_ext in '' $ac_executable_extensions; do
8256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8257     ac_cv_path_GUILE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8259     break 2
8260   fi
8261 done
8262 done
8263 IFS=$as_save_IFS
8264
8265   ;;
8266 esac
8267 fi
8268 GUILE_CONFIG=$ac_cv_path_GUILE_CONFIG
8269 if test -n "$GUILE_CONFIG"; then
8270   { echo "$as_me:$LINENO: result: $GUILE_CONFIG" >&5
8271 echo "${ECHO_T}$GUILE_CONFIG" >&6; }
8272 else
8273   { echo "$as_me:$LINENO: result: no" >&5
8274 echo "${ECHO_T}no" >&6; }
8275 fi
8276
8277
8278 fi
8279
8280 if test -n "$GUILE_CONFIG" ; then
8281   GUILEPACKAGE="`$GUILE_CONFIG info prefix`"
8282   GUILEINCLUDE="`$GUILE_CONFIG info includedir`"
8283   GUILELIB="`$GUILE_CONFIG info libdir`"
8284   GUILE="`$GUILE_CONFIG info bindir`/guile"
8285   GUILELINK="`$GUILE_CONFIG link`"
8286   GUILEPKGDATADIR="`$GUILE_CONFIG info pkgdatadir`"
8287 fi
8288
8289   if test -z "$GUILE" -o "x$GUILE" = xyes; then
8290      if test -n "$GUILEPACKAGE"; then
8291         GUILE="$GUILEPACKAGE/bin/guile"
8292      else
8293         GUILE=
8294      fi
8295   fi
8296
8297   if test -z "$GUILEINCLUDE"; then
8298      if test -n "$GUILEPACKAGE"; then
8299         GUILEINCLUDE="$GUILEPACKAGE/include"
8300      fi
8301   fi
8302
8303   if test -z "$GUILELIB"; then
8304      if test -n "$GUILEPACKAGE"; then
8305         GUILELIB="$GUILEPACKAGE/lib"
8306      fi
8307   fi
8308
8309
8310 { echo "$as_me:$LINENO: checking for Guile header files" >&5
8311 echo $ECHO_N "checking for Guile header files... $ECHO_C" >&6; }
8312
8313   dirs="$GUILEINCLUDE"
8314   for i in $dirs ; do
8315         if test -r $i/guile/gh.h; then
8316                 { echo "$as_me:$LINENO: result: $i" >&5
8317 echo "${ECHO_T}$i" >&6; }
8318                 GUILEINCLUDE="$ISYSTEM$i"
8319                 break
8320         fi
8321   done
8322   if test -z "$GUILEINCLUDE"; then
8323         { echo "$as_me:$LINENO: result: not found" >&5
8324 echo "${ECHO_T}not found" >&6; }
8325   fi
8326
8327   { echo "$as_me:$LINENO: checking for Guile library" >&5
8328 echo $ECHO_N "checking for Guile library... $ECHO_C" >&6; }
8329   dirs="$GUILELIB"
8330   for i in $dirs ; do
8331         if test -r $i/libguile.so; then
8332             { echo "$as_me:$LINENO: result: $i" >&5
8333 echo "${ECHO_T}$i" >&6; }
8334             GUILELIB="$i"
8335             break
8336         fi
8337   done
8338   if test -z "$GUILELIB"; then
8339         { echo "$as_me:$LINENO: result: not found" >&5
8340 echo "${ECHO_T}not found" >&6; }
8341   fi
8342
8343 if test -z "$GUILELINK"; then
8344   GUILELINK="-L$GUILELIB -lguile"
8345 fi
8346
8347 guilesafe_CFLAGS=$CFLAGS
8348 guilesafe_LIBS=$LIBS
8349 # Filter out "-ansi -pedantic" because Guile header files will not compile with these flags.
8350 # (The flags -ansi -pedantic are automatically added by ac_compile_warnings.m4)
8351 CFLAGS="`echo $CFLAGS | sed 's/-ansi//g;s/-pedantic//g;'` $GUILEINCLUDE"
8352 LIBS="$LIBS $GUILELINK"
8353
8354 { echo "$as_me:$LINENO: checking whether Guile's gh_ API works" >&5
8355 echo $ECHO_N "checking whether Guile's gh_ API works... $ECHO_C" >&6; }
8356 cat >conftest.$ac_ext <<_ACEOF
8357 #include <guile/gh.h>
8358   int main() { SCM s; return gh_scm2int(s); }
8359 _ACEOF
8360 rm -f conftest.$ac_objext conftest$ac_exeext
8361 if { (ac_try="$ac_link"
8362 case "(($ac_try" in
8363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8364   *) ac_try_echo=$ac_try;;
8365 esac
8366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8367   (eval "$ac_link") 2>conftest.er1
8368   ac_status=$?
8369   grep -v '^ *+' conftest.er1 >conftest.err
8370   rm -f conftest.er1
8371   cat conftest.err >&5
8372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373   (exit $ac_status); } && {
8374          test -z "$ac_c_werror_flag" ||
8375          test ! -s conftest.err
8376        } && test -s conftest$ac_exeext &&
8377        $as_test_x conftest$ac_exeext; then
8378   GUILE_GH_INTERFACE=1
8379 else
8380   echo "$as_me: failed program was:" >&5
8381 sed 's/^/| /' conftest.$ac_ext >&5
8382
8383
8384 fi
8385
8386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8387       conftest$ac_exeext conftest.$ac_ext
8388 if test -n "$GUILE_GH_INTERFACE" ; then
8389         { echo "$as_me:$LINENO: result: yes" >&5
8390 echo "${ECHO_T}yes" >&6; }
8391 else
8392         { echo "$as_me:$LINENO: result: no" >&5
8393 echo "${ECHO_T}no" >&6; }
8394 fi
8395 { echo "$as_me:$LINENO: checking whether Guile's SCM_ API works" >&5
8396 echo $ECHO_N "checking whether Guile's SCM_ API works... $ECHO_C" >&6; }
8397 cat >conftest.$ac_ext <<_ACEOF
8398 #include <libguile.h>
8399   int main() { SCM s; scm_slot_exists_p(SCM_BOOL_F, SCM_BOOL_F); return SCM_STRING_LENGTH(s); }
8400 _ACEOF
8401 rm -f conftest.$ac_objext conftest$ac_exeext
8402 if { (ac_try="$ac_link"
8403 case "(($ac_try" in
8404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8405   *) ac_try_echo=$ac_try;;
8406 esac
8407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8408   (eval "$ac_link") 2>conftest.er1
8409   ac_status=$?
8410   grep -v '^ *+' conftest.er1 >conftest.err
8411   rm -f conftest.er1
8412   cat conftest.err >&5
8413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414   (exit $ac_status); } && {
8415          test -z "$ac_c_werror_flag" ||
8416          test ! -s conftest.err
8417        } && test -s conftest$ac_exeext &&
8418        $as_test_x conftest$ac_exeext; then
8419   GUILE_SCM_INTERFACE=1
8420 else
8421   echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8423
8424
8425 fi
8426
8427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8428       conftest$ac_exeext conftest.$ac_ext
8429 if test -n "$GUILE_SCM_INTERFACE" ; then
8430         { echo "$as_me:$LINENO: result: yes" >&5
8431 echo "${ECHO_T}yes" >&6; }
8432 else
8433         { echo "$as_me:$LINENO: result: no" >&5
8434 echo "${ECHO_T}no" >&6; }
8435 fi
8436 CFLAGS=$guilesafe_CFLAGS
8437 LIBS=$guilesafe_LIBS
8438 fi
8439
8440
8441
8442
8443
8444
8445
8446
8447 #----------------------------------------------------------------
8448 # Look for MzScheme
8449 #----------------------------------------------------------------
8450
8451
8452 # Check whether --with-mzscheme was given.
8453 if test "${with_mzscheme+set}" = set; then
8454   withval=$with_mzscheme;  MZSCHEMEBIN="$withval"
8455 else
8456   MZSCHEMEBIN=yes
8457 fi
8458
8459
8460 # Check whether --with-mzc was given.
8461 if test "${with_mzc+set}" = set; then
8462   withval=$with_mzc;  MZCBIN="$withval"
8463 else
8464   MZCBIN=
8465 fi
8466
8467
8468 # First, check for "--without-mzscheme" or "--with-mzscheme=no".
8469 if test x"${MZSCHEMEBIN}" = xno -o x"${with_alllang}" = xno ; then
8470   { echo "$as_me:$LINENO: Disabling MzScheme" >&5
8471 echo "$as_me: Disabling MzScheme" >&6;}
8472   MZC=
8473 else
8474   if test "x$MZSCHEMEBIN" = xyes; then
8475      # Extract the first word of "mzscheme", so it can be a program name with args.
8476 set dummy mzscheme; ac_word=$2
8477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8479 if test "${ac_cv_path_MZSCHEME+set}" = set; then
8480   echo $ECHO_N "(cached) $ECHO_C" >&6
8481 else
8482   case $MZSCHEME in
8483   [\\/]* | ?:[\\/]*)
8484   ac_cv_path_MZSCHEME="$MZSCHEME" # Let the user override the test with a path.
8485   ;;
8486   *)
8487   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8488 for as_dir in $PATH
8489 do
8490   IFS=$as_save_IFS
8491   test -z "$as_dir" && as_dir=.
8492   for ac_exec_ext in '' $ac_executable_extensions; do
8493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8494     ac_cv_path_MZSCHEME="$as_dir/$ac_word$ac_exec_ext"
8495     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8496     break 2
8497   fi
8498 done
8499 done
8500 IFS=$as_save_IFS
8501
8502   ;;
8503 esac
8504 fi
8505 MZSCHEME=$ac_cv_path_MZSCHEME
8506 if test -n "$MZSCHEME"; then
8507   { echo "$as_me:$LINENO: result: $MZSCHEME" >&5
8508 echo "${ECHO_T}$MZSCHEME" >&6; }
8509 else
8510   { echo "$as_me:$LINENO: result: no" >&5
8511 echo "${ECHO_T}no" >&6; }
8512 fi
8513
8514
8515   else
8516      MZSCHEME="$MZSCHEMEBIN"
8517   fi
8518
8519   if test -z "$MZCBIN"; then
8520      # Extract the first word of "mzc", so it can be a program name with args.
8521 set dummy mzc; ac_word=$2
8522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8524 if test "${ac_cv_path_MZC+set}" = set; then
8525   echo $ECHO_N "(cached) $ECHO_C" >&6
8526 else
8527   case $MZC in
8528   [\\/]* | ?:[\\/]*)
8529   ac_cv_path_MZC="$MZC" # Let the user override the test with a path.
8530   ;;
8531   *)
8532   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8533 for as_dir in $PATH
8534 do
8535   IFS=$as_save_IFS
8536   test -z "$as_dir" && as_dir=.
8537   for ac_exec_ext in '' $ac_executable_extensions; do
8538   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8539     ac_cv_path_MZC="$as_dir/$ac_word$ac_exec_ext"
8540     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8541     break 2
8542   fi
8543 done
8544 done
8545 IFS=$as_save_IFS
8546
8547   ;;
8548 esac
8549 fi
8550 MZC=$ac_cv_path_MZC
8551 if test -n "$MZC"; then
8552   { echo "$as_me:$LINENO: result: $MZC" >&5
8553 echo "${ECHO_T}$MZC" >&6; }
8554 else
8555   { echo "$as_me:$LINENO: result: no" >&5
8556 echo "${ECHO_T}no" >&6; }
8557 fi
8558
8559
8560   fi
8561
8562   if test -n "$MZSCHEME"; then
8563     { echo "$as_me:$LINENO: checking for MzScheme dynext object" >&5
8564 echo $ECHO_N "checking for MzScheme dynext object... $ECHO_C" >&6; }
8565     MZDYNOBJ=`$MZSCHEME --eval '(begin (require dynext/link) (with-handlers (((lambda args #t) (lambda args #f))) (for-each (lambda (x) (printf "~a" x)) (expand-for-link-variant (current-standard-link-libraries)))))' 2>/dev/null`
8566     if test -f "$MZDYNOBJ"; then
8567       MZDYNOBJ="$MZDYNOBJ"
8568     else
8569       # older versions (3.72 approx and earlier)
8570       MZDYNOBJ=`$MZSCHEME --mute-banner --version --eval '(begin (require (lib "link.ss" "dynext")) (with-handlers (((lambda args #t) (lambda args #f))) (for-each (lambda (x) (display x) (display " ")) ((current-make-standard-link-libraries)))) (with-handlers (((lambda args #t) (lambda args #f))) (for-each (lambda (x) (display x)) (expand-for-link-variant (current-standard-link-libraries)))))' 2>/dev/null`
8571     fi
8572     if test -f "$MZDYNOBJ"; then
8573       { echo "$as_me:$LINENO: result: $MZDYNOBJ" >&5
8574 echo "${ECHO_T}$MZDYNOBJ" >&6; }
8575     else
8576       { echo "$as_me:$LINENO: result: not found" >&5
8577 echo "${ECHO_T}not found" >&6; }
8578       MZDYNOBJ=""
8579     fi
8580   fi
8581 fi
8582
8583
8584 #----------------------------------------------------------------
8585 # Look for Ruby
8586 #----------------------------------------------------------------
8587
8588 RUBYBIN=
8589
8590
8591 # Check whether --with-ruby was given.
8592 if test "${with_ruby+set}" = set; then
8593   withval=$with_ruby;  RUBYBIN="$withval"
8594 else
8595   RUBYBIN=yes
8596 fi
8597
8598
8599 # First, check for "--without-ruby" or "--with-ruby=no".
8600 if test x"${RUBYBIN}" = xno -o x"${with_alllang}" = xno ; then
8601 { echo "$as_me:$LINENO: Disabling Ruby" >&5
8602 echo "$as_me: Disabling Ruby" >&6;}
8603 RUBY=
8604 else
8605
8606 # First figure out what the name of Ruby is
8607
8608 if test "x$RUBYBIN" = xyes; then
8609         for ac_prog in ruby
8610 do
8611   # Extract the first word of "$ac_prog", so it can be a program name with args.
8612 set dummy $ac_prog; ac_word=$2
8613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8615 if test "${ac_cv_prog_RUBY+set}" = set; then
8616   echo $ECHO_N "(cached) $ECHO_C" >&6
8617 else
8618   if test -n "$RUBY"; then
8619   ac_cv_prog_RUBY="$RUBY" # Let the user override the test.
8620 else
8621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8622 for as_dir in $PATH
8623 do
8624   IFS=$as_save_IFS
8625   test -z "$as_dir" && as_dir=.
8626   for ac_exec_ext in '' $ac_executable_extensions; do
8627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8628     ac_cv_prog_RUBY="$ac_prog"
8629     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8630     break 2
8631   fi
8632 done
8633 done
8634 IFS=$as_save_IFS
8635
8636 fi
8637 fi
8638 RUBY=$ac_cv_prog_RUBY
8639 if test -n "$RUBY"; then
8640   { echo "$as_me:$LINENO: result: $RUBY" >&5
8641 echo "${ECHO_T}$RUBY" >&6; }
8642 else
8643   { echo "$as_me:$LINENO: result: no" >&5
8644 echo "${ECHO_T}no" >&6; }
8645 fi
8646
8647
8648   test -n "$RUBY" && break
8649 done
8650
8651 else
8652         RUBY="$RUBYBIN"
8653 fi
8654
8655 { echo "$as_me:$LINENO: checking for Ruby header files" >&5
8656 echo $ECHO_N "checking for Ruby header files... $ECHO_C" >&6; }
8657 if test -n "$RUBY"; then
8658         RUBYDIR=`($RUBY -rmkmf -e 'print Config::CONFIG["archdir"] || $archdir') 2>/dev/null`
8659         if test x"$RUBYDIR" != x""; then
8660                 dirs="$RUBYDIR"
8661                 RUBYINCLUDE=none
8662                 for i in $dirs; do
8663                         if test -r $i/ruby.h; then
8664                                 { echo "$as_me:$LINENO: result: $i" >&5
8665 echo "${ECHO_T}$i" >&6; }
8666                                 RUBYINCLUDE="-I$i"
8667                                 break;
8668                         fi
8669                 done
8670                 if test "$RUBYINCLUDE" = none; then
8671                         RUBYINCLUDE="-I$RUBYDIR"
8672                         { echo "$as_me:$LINENO: result: could not locate ruby.h...using $RUBYINCLUDE" >&5
8673 echo "${ECHO_T}could not locate ruby.h...using $RUBYINCLUDE" >&6; }
8674                 fi
8675
8676                 # Find library and path for linking.
8677                 { echo "$as_me:$LINENO: checking for Ruby library" >&5
8678 echo $ECHO_N "checking for Ruby library... $ECHO_C" >&6; }
8679                 RUBYLIB=""
8680                 rb_libdir=`($RUBY -rrbconfig -e 'print Config::CONFIG["libdir"]') 2>/dev/null`
8681                 rb_bindir=`($RUBY -rrbconfig -e 'print Config::CONFIG["bindir"]') 2>/dev/null`
8682                 dirs="$dirs $rb_libdir $rb_bindir"
8683
8684         rb_libruby=`($RUBY -rrbconfig -e 'print Config::CONFIG["LIBRUBY_A"]') 2>/dev/null`
8685         RUBYLINK=`($RUBY -rrbconfig -e '
8686             c = Config::CONFIG
8687             if c.has_key? "LIBRUBYARG_STATIC" # 1.8.x
8688                 if c["LIBRUBY"] == c["LIBRUBY_A"]
8689                     link = c["LIBRUBYARG_STATIC"]
8690                 else
8691                     link = c["LIBRUBYARG_SHARED"]
8692                 end
8693             else # 1.6.x
8694                 link = "-l" + c["RUBY_INSTALL_NAME"]
8695             end
8696
8697             # Get the target Ruby was built for
8698             target = c["target"]
8699
8700             if target == "i386-pc-mswin32"
8701               # Need to change msvcrt-ruby*.lib to -lmsvcrt-ruby*
8702               ext = File.extname(link)
8703               # Get index that counts backwards from end of string
8704               index = -1 - ext.size
8705               # Strip off the extension
8706               link = link.slice(0..index)
8707               puts "-l#{link}"
8708             else
8709               puts link
8710             end') 2>/dev/null`
8711
8712                 if test "$rb_libruby" != ""; then
8713                         for i in $dirs; do
8714                                 if (test -r $i/$rb_libruby;) then
8715                                         RUBYLIB="$i"
8716                                         break;
8717                                 fi
8718                         done
8719                 fi
8720                 if test "$RUBYLIB" = ""; then
8721                         RUBYLIB="$RUBYDIR"
8722                         { echo "$as_me:$LINENO: result: not found... using $RUBYDIR" >&5
8723 echo "${ECHO_T}not found... using $RUBYDIR" >&6; }
8724                 else
8725                         { echo "$as_me:$LINENO: result: $RUBYLINK in $RUBYLIB" >&5
8726 echo "${ECHO_T}$RUBYLINK in $RUBYLIB" >&6; }
8727                 fi
8728         else
8729                 { echo "$as_me:$LINENO: result: unable to determine ruby configuration" >&5
8730 echo "${ECHO_T}unable to determine ruby configuration" >&6; }
8731                 RUBYINCLUDE="-I$RUBYDIR"
8732                 RUBYLIB="$RUBYDIR"
8733         fi
8734
8735         case $host in
8736                 *-*-mingw*) ;; # do nothing, the default windows libraries are already included
8737                 *) RUBYLINK="$RUBYLINK `($RUBY -rrbconfig -e 'print Config::CONFIG["LIBS"]') 2>/dev/null`";;
8738         esac
8739
8740         RUBYCCDLFLAGS=`($RUBY -rrbconfig -e 'print Config::CONFIG["CCDLFLAGS"]') 2>/dev/null`
8741 else
8742         { echo "$as_me:$LINENO: result: could not figure out how to run ruby" >&5
8743 echo "${ECHO_T}could not figure out how to run ruby" >&6; }
8744         RUBYINCLUDE="-I/usr/local/lib/ruby/1.4/arch"
8745         RUBYLIB="/usr/local/lib/ruby/1.4/arch"
8746         RUBYLINK="-lruby -lm"
8747 fi
8748
8749 case $host in
8750 *-*-cygwin* | *-*-mingw*)       RUBYDYNAMICLINKING="-L$RUBYLIB $RUBYLINK";;
8751 *)              RUBYDYNAMICLINKING="";;
8752 esac
8753 fi
8754
8755
8756
8757
8758
8759
8760
8761 #-------------------------------------------------------------------------
8762 # Look for PHP
8763 #-------------------------------------------------------------------------
8764
8765 PHPBIN=
8766
8767
8768 # Check whether --with-php was given.
8769 if test "${with_php+set}" = set; then
8770   withval=$with_php;  PHPBIN="$withval"
8771 else
8772   PHPBIN=yes
8773 fi
8774
8775
8776 # First, check for "--without-php" or "--with-php=no".
8777 if test x"${PHPBIN}" = xno -o x"${with_alllang}" = xno ; then
8778     { echo "$as_me:$LINENO: Disabling PHP" >&5
8779 echo "$as_me: Disabling PHP" >&6;}
8780     PHP=
8781 else
8782
8783     if test "x$PHPBIN" = xyes; then
8784       for ac_prog in php5 php
8785 do
8786   # Extract the first word of "$ac_prog", so it can be a program name with args.
8787 set dummy $ac_prog; ac_word=$2
8788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8790 if test "${ac_cv_prog_PHP+set}" = set; then
8791   echo $ECHO_N "(cached) $ECHO_C" >&6
8792 else
8793   if test -n "$PHP"; then
8794   ac_cv_prog_PHP="$PHP" # Let the user override the test.
8795 else
8796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8797 for as_dir in $PATH
8798 do
8799   IFS=$as_save_IFS
8800   test -z "$as_dir" && as_dir=.
8801   for ac_exec_ext in '' $ac_executable_extensions; do
8802   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8803     ac_cv_prog_PHP="$ac_prog"
8804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8805     break 2
8806   fi
8807 done
8808 done
8809 IFS=$as_save_IFS
8810
8811 fi
8812 fi
8813 PHP=$ac_cv_prog_PHP
8814 if test -n "$PHP"; then
8815   { echo "$as_me:$LINENO: result: $PHP" >&5
8816 echo "${ECHO_T}$PHP" >&6; }
8817 else
8818   { echo "$as_me:$LINENO: result: no" >&5
8819 echo "${ECHO_T}no" >&6; }
8820 fi
8821
8822
8823   test -n "$PHP" && break
8824 done
8825
8826     else
8827       PHP=$PHPBIN
8828     fi
8829
8830     { echo "$as_me:$LINENO: checking for PHP header files" >&5
8831 echo $ECHO_N "checking for PHP header files... $ECHO_C" >&6; }
8832         case $PHP in
8833       *5)
8834         PHPCONFIG=`echo "$PHP"|sed 's/5$/-config5/'` ;;
8835       *)
8836         PHPCONFIG=$PHP-config ;;
8837     esac
8838     php_version=`$PHPCONFIG --version 2>/dev/null`
8839     case $php_version in
8840     5*)
8841         PHPINC=`$PHPCONFIG --includes 2>/dev/null`
8842         if test -n "$PHPINC"; then
8843           { echo "$as_me:$LINENO: result: $PHPINC" >&5
8844 echo "${ECHO_T}$PHPINC" >&6; }
8845         else
8846           { echo "$as_me:$LINENO: result: not found" >&5
8847 echo "${ECHO_T}not found" >&6; }
8848         fi
8849         ;;
8850     *)
8851         { echo "$as_me:$LINENO: result: found PHP $version, but only PHP 5 is supported" >&5
8852 echo "${ECHO_T}found PHP $version, but only PHP 5 is supported" >&6; } ;;
8853     esac
8854 fi
8855
8856
8857
8858 #----------------------------------------------------------------
8859 # Look for ocaml
8860 #----------------------------------------------------------------
8861
8862
8863 # Check whether --with-ocaml was given.
8864 if test "${with_ocaml+set}" = set; then
8865   withval=$with_ocaml;  OCAMLBIN="$withval"
8866 else
8867   OCAMLBIN=yes
8868 fi
8869
8870
8871 # Check whether --with-ocamlc was given.
8872 if test "${with_ocamlc+set}" = set; then
8873   withval=$with_ocamlc;  OCAMLC="$withval"
8874 else
8875   OCAMLC=
8876 fi
8877
8878
8879 # Check whether --with-ocamldlgen was given.
8880 if test "${with_ocamldlgen+set}" = set; then
8881   withval=$with_ocamldlgen;  OCAMLDLGEN="$withval"
8882 else
8883   OCAMLDLGEN=
8884 fi
8885
8886
8887 # Check whether --with-ocamlfind was given.
8888 if test "${with_ocamlfind+set}" = set; then
8889   withval=$with_ocamlfind; OCAMLFIND="$withval"
8890 else
8891   OCAMLFIND=
8892 fi
8893
8894
8895 # Check whether --with-ocamlmktop was given.
8896 if test "${with_ocamlmktop+set}" = set; then
8897   withval=$with_ocamlmktop;  OCAMLMKTOP="$withval"
8898 else
8899   OCAMLMKTOP=
8900 fi
8901
8902
8903 # First, check for "--without-ocaml" or "--with-ocaml=no".
8904 if test x"${OCAMLBIN}" = xno -o x"${with_alllang}" = xno ; then
8905 { echo "$as_me:$LINENO: Disabling OCaml" >&5
8906 echo "$as_me: Disabling OCaml" >&6;}
8907 OCAMLBIN=
8908 else
8909
8910 { echo "$as_me:$LINENO: checking for Ocaml DL load generator" >&5
8911 echo $ECHO_N "checking for Ocaml DL load generator... $ECHO_C" >&6; }
8912 if test -z "$OCAMLDLGEN"; then
8913 for ac_prog in ocamldlgen
8914 do
8915   # Extract the first word of "$ac_prog", so it can be a program name with args.
8916 set dummy $ac_prog; ac_word=$2
8917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8919 if test "${ac_cv_prog_OCAMLDLGEN+set}" = set; then
8920   echo $ECHO_N "(cached) $ECHO_C" >&6
8921 else
8922   if test -n "$OCAMLDLGEN"; then
8923   ac_cv_prog_OCAMLDLGEN="$OCAMLDLGEN" # Let the user override the test.
8924 else
8925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8926 for as_dir in $PATH
8927 do
8928   IFS=$as_save_IFS
8929   test -z "$as_dir" && as_dir=.
8930   for ac_exec_ext in '' $ac_executable_extensions; do
8931   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8932     ac_cv_prog_OCAMLDLGEN="$ac_prog"
8933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8934     break 2
8935   fi
8936 done
8937 done
8938 IFS=$as_save_IFS
8939
8940 fi
8941 fi
8942 OCAMLDLGEN=$ac_cv_prog_OCAMLDLGEN
8943 if test -n "$OCAMLDLGEN"; then
8944   { echo "$as_me:$LINENO: result: $OCAMLDLGEN" >&5
8945 echo "${ECHO_T}$OCAMLDLGEN" >&6; }
8946 else
8947   { echo "$as_me:$LINENO: result: no" >&5
8948 echo "${ECHO_T}no" >&6; }
8949 fi
8950
8951
8952   test -n "$OCAMLDLGEN" && break
8953 done
8954 test -n "$OCAMLDLGEN" || OCAMLDLGEN=":"
8955
8956 else
8957 OCAMLDLGEN="$OCAMLDLGEN"
8958 fi
8959
8960 { echo "$as_me:$LINENO: checking for Ocaml package tool" >&5
8961 echo $ECHO_N "checking for Ocaml package tool... $ECHO_C" >&6; }
8962 if test -z "$OCAMLFIND"; then
8963 for ac_prog in ocamlfind
8964 do
8965   # Extract the first word of "$ac_prog", so it can be a program name with args.
8966 set dummy $ac_prog; ac_word=$2
8967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8969 if test "${ac_cv_prog_OCAMLFIND+set}" = set; then
8970   echo $ECHO_N "(cached) $ECHO_C" >&6
8971 else
8972   if test -n "$OCAMLFIND"; then
8973   ac_cv_prog_OCAMLFIND="$OCAMLFIND" # Let the user override the test.
8974 else
8975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8976 for as_dir in $PATH
8977 do
8978   IFS=$as_save_IFS
8979   test -z "$as_dir" && as_dir=.
8980   for ac_exec_ext in '' $ac_executable_extensions; do
8981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8982     ac_cv_prog_OCAMLFIND="$ac_prog"
8983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8984     break 2
8985   fi
8986 done
8987 done
8988 IFS=$as_save_IFS
8989
8990 fi
8991 fi
8992 OCAMLFIND=$ac_cv_prog_OCAMLFIND
8993 if test -n "$OCAMLFIND"; then
8994   { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5
8995 echo "${ECHO_T}$OCAMLFIND" >&6; }
8996 else
8997   { echo "$as_me:$LINENO: result: no" >&5
8998 echo "${ECHO_T}no" >&6; }
8999 fi
9000
9001
9002   test -n "$OCAMLFIND" && break
9003 done
9004 test -n "$OCAMLFIND" || OCAMLFIND=":"
9005
9006 else
9007 OCAMLFIND="$OCAMLFIND"
9008 fi
9009
9010 { echo "$as_me:$LINENO: checking for Ocaml compiler" >&5
9011 echo $ECHO_N "checking for Ocaml compiler... $ECHO_C" >&6; }
9012 if test -z "$OCAMLC"; then
9013 for ac_prog in ocamlc
9014 do
9015   # Extract the first word of "$ac_prog", so it can be a program name with args.
9016 set dummy $ac_prog; ac_word=$2
9017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9019 if test "${ac_cv_prog_OCAMLC+set}" = set; then
9020   echo $ECHO_N "(cached) $ECHO_C" >&6
9021 else
9022   if test -n "$OCAMLC"; then
9023   ac_cv_prog_OCAMLC="$OCAMLC" # Let the user override the test.
9024 else
9025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9026 for as_dir in $PATH
9027 do
9028   IFS=$as_save_IFS
9029   test -z "$as_dir" && as_dir=.
9030   for ac_exec_ext in '' $ac_executable_extensions; do
9031   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9032     ac_cv_prog_OCAMLC="$ac_prog"
9033     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9034     break 2
9035   fi
9036 done
9037 done
9038 IFS=$as_save_IFS
9039
9040 fi
9041 fi
9042 OCAMLC=$ac_cv_prog_OCAMLC
9043 if test -n "$OCAMLC"; then
9044   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
9045 echo "${ECHO_T}$OCAMLC" >&6; }
9046 else
9047   { echo "$as_me:$LINENO: result: no" >&5
9048 echo "${ECHO_T}no" >&6; }
9049 fi
9050
9051
9052   test -n "$OCAMLC" && break
9053 done
9054 test -n "$OCAMLC" || OCAMLC=":"
9055
9056 else
9057 OCAMLC="$OCAMLC"
9058 fi
9059
9060 { echo "$as_me:$LINENO: checking for Ocaml interpreter" >&5
9061 echo $ECHO_N "checking for Ocaml interpreter... $ECHO_C" >&6; }
9062 if test "x$OCAMLBIN" = xyes; then
9063 for ac_prog in ocaml
9064 do
9065   # Extract the first word of "$ac_prog", so it can be a program name with args.
9066 set dummy $ac_prog; ac_word=$2
9067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9069 if test "${ac_cv_prog_OCAMLBIN+set}" = set; then
9070   echo $ECHO_N "(cached) $ECHO_C" >&6
9071 else
9072   if test -n "$OCAMLBIN"; then
9073   ac_cv_prog_OCAMLBIN="$OCAMLBIN" # Let the user override the test.
9074 else
9075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9076 for as_dir in $PATH
9077 do
9078   IFS=$as_save_IFS
9079   test -z "$as_dir" && as_dir=.
9080   for ac_exec_ext in '' $ac_executable_extensions; do
9081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9082     ac_cv_prog_OCAMLBIN="$ac_prog"
9083     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9084     break 2
9085   fi
9086 done
9087 done
9088 IFS=$as_save_IFS
9089
9090 fi
9091 fi
9092 OCAMLBIN=$ac_cv_prog_OCAMLBIN
9093 if test -n "$OCAMLBIN"; then
9094   { echo "$as_me:$LINENO: result: $OCAMLBIN" >&5
9095 echo "${ECHO_T}$OCAMLBIN" >&6; }
9096 else
9097   { echo "$as_me:$LINENO: result: no" >&5
9098 echo "${ECHO_T}no" >&6; }
9099 fi
9100
9101
9102   test -n "$OCAMLBIN" && break
9103 done
9104 test -n "$OCAMLBIN" || OCAMLBIN=":"
9105
9106 else
9107 OCAMLBIN="$OCAMLBIN"
9108 fi
9109
9110 { echo "$as_me:$LINENO: checking for Ocaml toplevel creator" >&5
9111 echo $ECHO_N "checking for Ocaml toplevel creator... $ECHO_C" >&6; }
9112 if test -z "$OCAMLMKTOP"; then
9113 for ac_prog in ocamlmktop
9114 do
9115   # Extract the first word of "$ac_prog", so it can be a program name with args.
9116 set dummy $ac_prog; ac_word=$2
9117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9119 if test "${ac_cv_prog_OCAMLMKTOP+set}" = set; then
9120   echo $ECHO_N "(cached) $ECHO_C" >&6
9121 else
9122   if test -n "$OCAMLMKTOP"; then
9123   ac_cv_prog_OCAMLMKTOP="$OCAMLMKTOP" # Let the user override the test.
9124 else
9125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9126 for as_dir in $PATH
9127 do
9128   IFS=$as_save_IFS
9129   test -z "$as_dir" && as_dir=.
9130   for ac_exec_ext in '' $ac_executable_extensions; do
9131   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9132     ac_cv_prog_OCAMLMKTOP="$ac_prog"
9133     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9134     break 2
9135   fi
9136 done
9137 done
9138 IFS=$as_save_IFS
9139
9140 fi
9141 fi
9142 OCAMLMKTOP=$ac_cv_prog_OCAMLMKTOP
9143 if test -n "$OCAMLMKTOP"; then
9144   { echo "$as_me:$LINENO: result: $OCAMLMKTOP" >&5
9145 echo "${ECHO_T}$OCAMLMKTOP" >&6; }
9146 else
9147   { echo "$as_me:$LINENO: result: no" >&5
9148 echo "${ECHO_T}no" >&6; }
9149 fi
9150
9151
9152   test -n "$OCAMLMKTOP" && break
9153 done
9154 test -n "$OCAMLMKTOP" || OCAMLMKTOP=":"
9155
9156 else
9157 OCAMLMKTOP="$OCAMLMKTOP"
9158 fi
9159
9160 OCAMLLOC=loc
9161 if test "$OCAMLC" != ":" ; then
9162         { echo "$as_me:$LINENO: checking for Ocaml header files" >&5
9163 echo $ECHO_N "checking for Ocaml header files... $ECHO_C" >&6; }
9164         dirs="/usr/lib/ocaml/caml /usr/local/lib/ocaml/caml"
9165         dir="`$OCAMLC -where 2>/dev/null`"
9166         if test "$dir"; then
9167                 dirs="$dir/caml $dirs"
9168         fi
9169         for i in $dirs; do
9170                 if test -r $i/mlvalues.h; then
9171                         { echo "$as_me:$LINENO: result: $i" >&5
9172 echo "${ECHO_T}$i" >&6; }
9173                         OCAMLEXT="$i"
9174                         OCAMLINC="-I$OCAMLEXT"
9175                         break;
9176                 fi
9177         done
9178         if test -z "$OCAMLINC"; then
9179                 { echo "$as_me:$LINENO: result: not found" >&5
9180 echo "${ECHO_T}not found" >&6; }
9181         fi
9182
9183         { echo "$as_me:$LINENO: checking for Ocaml version 3.08.2 or higher" >&5
9184 echo $ECHO_N "checking for Ocaml version 3.08.2 or higher... $ECHO_C" >&6; }
9185         OCAMLVER=`$OCAMLC -version | sed -e 's/.*version //g'`
9186
9187         # Split the version into units.
9188         ver_a="$OCAMLVER"
9189         ver_b="3.08.2"
9190         nodots_a=`echo $ver_a | sed -e 's/\./ /g'`
9191         condition="equal"
9192         isolate_b_regex='\([0-9]\+\).*'
9193         for ver_part in $nodots_a ; do
9194                 b_ver_part=`echo "$ver_b" | sed -e 's/'"$isolate_b_regex"'/\1/'`
9195                 if test \( "$ver_part" -lt "$b_ver_part" \) -a \( "x$condition" == "xequal" \) ; then
9196                         condition=less
9197                 elif test \( "$ver_part" -gt "$b_ver_part" \) -a \( "x$condition" == "xequal" \) ; then
9198                         condition=greater
9199                 fi
9200                 isolate_b_regex='[0-9]\+\.'"$isolate_b_regex"
9201         done
9202
9203         if test "x$condition" == "xequal" ; then
9204                 :
9205         elif test "x$condition" == "xless" ; then
9206                 :
9207         elif test "x$condition" == "xgreater" ; then
9208                 OCAMLLOC=_loc
9209         fi
9210
9211         { echo "$as_me:$LINENO: result: $OCAMLVER" >&5
9212 echo "${ECHO_T}$OCAMLVER" >&6; }
9213 fi
9214 fi # Disabling ocaml
9215
9216 export OCAMLLOC
9217 export OCAMLVER
9218 export OCAMLINC
9219 export OCAMLBIN
9220 export OCAMLC
9221 export OCAMLDLGEN
9222 export OCAMLFIND
9223 export OCAMLMKTOP
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234 #----------------------------------------------------------------
9235 # Look for Pike
9236 #----------------------------------------------------------------
9237
9238 # Identify the name of the Pike executable
9239 # Priority: configure option, automatic search
9240 PIKEBIN=
9241
9242 # Check whether --with-pike was given.
9243 if test "${with_pike+set}" = set; then
9244   withval=$with_pike; PIKEBIN="$withval"
9245 else
9246   PIKEBIN=yes
9247 fi
9248
9249
9250 # First, check for "--without-pike" or "--with-pike=no".
9251 if test x"${PIKEBIN}" = xno -o x"${with_alllang}" = xno ; then
9252 { echo "$as_me:$LINENO: Disabling Pike" >&5
9253 echo "$as_me: Disabling Pike" >&6;}
9254 PIKEBIN=
9255 else
9256
9257 if test "x$PIKEBIN" = xyes; then
9258         for ac_prog in pike pike7.6 pike7.4 pike7.2
9259 do
9260   # Extract the first word of "$ac_prog", so it can be a program name with args.
9261 set dummy $ac_prog; ac_word=$2
9262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9264 if test "${ac_cv_prog_PIKE+set}" = set; then
9265   echo $ECHO_N "(cached) $ECHO_C" >&6
9266 else
9267   if test -n "$PIKE"; then
9268   ac_cv_prog_PIKE="$PIKE" # Let the user override the test.
9269 else
9270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9271 for as_dir in $PATH
9272 do
9273   IFS=$as_save_IFS
9274   test -z "$as_dir" && as_dir=.
9275   for ac_exec_ext in '' $ac_executable_extensions; do
9276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9277     ac_cv_prog_PIKE="$ac_prog"
9278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9279     break 2
9280   fi
9281 done
9282 done
9283 IFS=$as_save_IFS
9284
9285 fi
9286 fi
9287 PIKE=$ac_cv_prog_PIKE
9288 if test -n "$PIKE"; then
9289   { echo "$as_me:$LINENO: result: $PIKE" >&5
9290 echo "${ECHO_T}$PIKE" >&6; }
9291 else
9292   { echo "$as_me:$LINENO: result: no" >&5
9293 echo "${ECHO_T}no" >&6; }
9294 fi
9295
9296
9297   test -n "$PIKE" && break
9298 done
9299
9300 else
9301         PIKE="$PIKEBIN"
9302 fi
9303
9304
9305 # Check for pike-config
9306 # Priority: configure option, guessed from $PIKE, search from list
9307
9308 # Check whether --with-pike-config was given.
9309 if test "${with_pike_config+set}" = set; then
9310   withval=$with_pike_config; PIKECONFIG="$withval"
9311 else
9312   PIKECONFIG=""
9313 fi
9314
9315
9316 if test -z "$PIKECONFIG" -a -n "$PIKE"; then
9317         for ac_prog in $PIKE-config pike-config \
9318                 pike7.6-config pike7.4-config pike7.2-config
9319 do
9320   # Extract the first word of "$ac_prog", so it can be a program name with args.
9321 set dummy $ac_prog; ac_word=$2
9322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9324 if test "${ac_cv_prog_PIKECONFIG+set}" = set; then
9325   echo $ECHO_N "(cached) $ECHO_C" >&6
9326 else
9327   if test -n "$PIKECONFIG"; then
9328   ac_cv_prog_PIKECONFIG="$PIKECONFIG" # Let the user override the test.
9329 else
9330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9331 for as_dir in $PATH
9332 do
9333   IFS=$as_save_IFS
9334   test -z "$as_dir" && as_dir=.
9335   for ac_exec_ext in '' $ac_executable_extensions; do
9336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9337     ac_cv_prog_PIKECONFIG="$ac_prog"
9338     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9339     break 2
9340   fi
9341 done
9342 done
9343 IFS=$as_save_IFS
9344
9345 fi
9346 fi
9347 PIKECONFIG=$ac_cv_prog_PIKECONFIG
9348 if test -n "$PIKECONFIG"; then
9349   { echo "$as_me:$LINENO: result: $PIKECONFIG" >&5
9350 echo "${ECHO_T}$PIKECONFIG" >&6; }
9351 else
9352   { echo "$as_me:$LINENO: result: no" >&5
9353 echo "${ECHO_T}no" >&6; }
9354 fi
9355
9356
9357   test -n "$PIKECONFIG" && break
9358 done
9359
9360 fi
9361
9362 # Check for a --with-pikeincl option to configure
9363 # Priority: configure option, info from $PIKECONFIG, guessed by pike script
9364
9365 # Check whether --with-pikeincl was given.
9366 if test "${with_pikeincl+set}" = set; then
9367   withval=$with_pikeincl; PIKEINCLUDE="-I$withval"
9368 else
9369   PIKEINCLUDE=
9370 fi
9371
9372
9373 if test -n "$PIKE"; then
9374       { echo "$as_me:$LINENO: checking for Pike header files" >&5
9375 echo $ECHO_N "checking for Pike header files... $ECHO_C" >&6; }
9376       if test -z "$PIKEINCLUDE" -a -n "$PIKECONFIG"; then
9377               PIKEINCLUDE=`$PIKECONFIG --cflags`
9378       fi
9379       if test -z "$PIKEINCLUDE" -a -n "$PIKE"; then
9380               PIKEPATH=`which $PIKE`
9381               PIKEINCLUDE=`$PIKE Tools/check-include-path.pike $PIKEPATH`
9382               PIKEINCLUDE="-I$PIKEINCLUDE"
9383       fi
9384
9385       if test -z "$PIKEINCLUDE"; then
9386               { echo "$as_me:$LINENO: result: not found" >&5
9387 echo "${ECHO_T}not found" >&6; }
9388       else
9389               { echo "$as_me:$LINENO: result: $PIKEINCLUDE" >&5
9390 echo "${ECHO_T}$PIKEINCLUDE" >&6; }
9391       fi
9392 fi
9393 fi
9394
9395
9396
9397 #----------------------------------------------------------------
9398 # Look for CHICKEN
9399 #----------------------------------------------------------------
9400
9401 CHICKEN=
9402 CHICKEN_CONFIG=
9403 CHICKENHOME=
9404 CHICKENOPTS=
9405 CHICKENLIB=
9406
9407
9408
9409 # Check whether --with-chicken was given.
9410 if test "${with_chicken+set}" = set; then
9411   withval=$with_chicken;  CHICKENBIN="$withval"
9412 else
9413   CHICKENBIN=yes
9414 fi
9415
9416
9417 # First, check for "--without-chicken" or "--with-chicken=no".
9418 if test x"${CHICKENBIN}" = xno -o x"${with_alllang}" = xno ; then
9419 { echo "$as_me:$LINENO: Disabling CHICKEN" >&5
9420 echo "$as_me: Disabling CHICKEN" >&6;}
9421 else
9422
9423 if test "x$CHICKENBIN" = xyes; then
9424 for ac_prog in chicken
9425 do
9426   # Extract the first word of "$ac_prog", so it can be a program name with args.
9427 set dummy $ac_prog; ac_word=$2
9428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9430 if test "${ac_cv_prog_CHICKEN+set}" = set; then
9431   echo $ECHO_N "(cached) $ECHO_C" >&6
9432 else
9433   if test -n "$CHICKEN"; then
9434   ac_cv_prog_CHICKEN="$CHICKEN" # Let the user override the test.
9435 else
9436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9437 for as_dir in $PATH
9438 do
9439   IFS=$as_save_IFS
9440   test -z "$as_dir" && as_dir=.
9441   for ac_exec_ext in '' $ac_executable_extensions; do
9442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9443     ac_cv_prog_CHICKEN="$ac_prog"
9444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9445     break 2
9446   fi
9447 done
9448 done
9449 IFS=$as_save_IFS
9450
9451 fi
9452 fi
9453 CHICKEN=$ac_cv_prog_CHICKEN
9454 if test -n "$CHICKEN"; then
9455   { echo "$as_me:$LINENO: result: $CHICKEN" >&5
9456 echo "${ECHO_T}$CHICKEN" >&6; }
9457 else
9458   { echo "$as_me:$LINENO: result: no" >&5
9459 echo "${ECHO_T}no" >&6; }
9460 fi
9461
9462
9463   test -n "$CHICKEN" && break
9464 done
9465
9466 else
9467 CHICKEN="$CHICKENBIN"
9468 fi
9469
9470
9471 # Check whether --with-chickencsc was given.
9472 if test "${with_chickencsc+set}" = set; then
9473   withval=$with_chickencsc;  CHICKEN_CSC="$withval"
9474 else
9475   CHICKEN_CSC=
9476 fi
9477
9478
9479 if test -z "$CHICKEN_CSC"; then
9480   for ac_prog in csc
9481 do
9482   # Extract the first word of "$ac_prog", so it can be a program name with args.
9483 set dummy $ac_prog; ac_word=$2
9484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9486 if test "${ac_cv_prog_CHICKEN_CSC+set}" = set; then
9487   echo $ECHO_N "(cached) $ECHO_C" >&6
9488 else
9489   if test -n "$CHICKEN_CSC"; then
9490   ac_cv_prog_CHICKEN_CSC="$CHICKEN_CSC" # Let the user override the test.
9491 else
9492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9493 for as_dir in $PATH
9494 do
9495   IFS=$as_save_IFS
9496   test -z "$as_dir" && as_dir=.
9497   for ac_exec_ext in '' $ac_executable_extensions; do
9498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9499     ac_cv_prog_CHICKEN_CSC="$ac_prog"
9500     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9501     break 2
9502   fi
9503 done
9504 done
9505 IFS=$as_save_IFS
9506
9507 fi
9508 fi
9509 CHICKEN_CSC=$ac_cv_prog_CHICKEN_CSC
9510 if test -n "$CHICKEN_CSC"; then
9511   { echo "$as_me:$LINENO: result: $CHICKEN_CSC" >&5
9512 echo "${ECHO_T}$CHICKEN_CSC" >&6; }
9513 else
9514   { echo "$as_me:$LINENO: result: no" >&5
9515 echo "${ECHO_T}no" >&6; }
9516 fi
9517
9518
9519   test -n "$CHICKEN_CSC" && break
9520 done
9521
9522   # Both the Microsoft C# compiler and chicken have an executable called csc, so check that this csc is really the chicken one
9523   if test -n "$CHICKEN_CSC" ; then
9524     { echo "$as_me:$LINENO: checking whether csc is the chicken compiler" >&5
9525 echo $ECHO_N "checking whether csc is the chicken compiler... $ECHO_C" >&6; }
9526     $CHICKEN_CSC -version 2>/dev/null | grep "chicken" > /dev/null || CHICKEN_CSC=""
9527     if test -z "$CHICKEN_CSC"; then
9528       { echo "$as_me:$LINENO: result: no" >&5
9529 echo "${ECHO_T}no" >&6; }
9530     else
9531       { echo "$as_me:$LINENO: result: yes" >&5
9532 echo "${ECHO_T}yes" >&6; }
9533     fi
9534   fi
9535 fi
9536
9537
9538 # Check whether --with-chickencsi was given.
9539 if test "${with_chickencsi+set}" = set; then
9540   withval=$with_chickencsi;  CHICKEN_CSI="$withval"
9541 else
9542   CHICKEN_CSI=
9543 fi
9544
9545
9546 if test -z "$CHICKEN_CSI"; then
9547 for ac_prog in csi
9548 do
9549   # Extract the first word of "$ac_prog", so it can be a program name with args.
9550 set dummy $ac_prog; ac_word=$2
9551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9553 if test "${ac_cv_prog_CHICKEN_CSI+set}" = set; then
9554   echo $ECHO_N "(cached) $ECHO_C" >&6
9555 else
9556   if test -n "$CHICKEN_CSI"; then
9557   ac_cv_prog_CHICKEN_CSI="$CHICKEN_CSI" # Let the user override the test.
9558 else
9559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9560 for as_dir in $PATH
9561 do
9562   IFS=$as_save_IFS
9563   test -z "$as_dir" && as_dir=.
9564   for ac_exec_ext in '' $ac_executable_extensions; do
9565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9566     ac_cv_prog_CHICKEN_CSI="$ac_prog"
9567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9568     break 2
9569   fi
9570 done
9571 done
9572 IFS=$as_save_IFS
9573
9574 fi
9575 fi
9576 CHICKEN_CSI=$ac_cv_prog_CHICKEN_CSI
9577 if test -n "$CHICKEN_CSI"; then
9578   { echo "$as_me:$LINENO: result: $CHICKEN_CSI" >&5
9579 echo "${ECHO_T}$CHICKEN_CSI" >&6; }
9580 else
9581   { echo "$as_me:$LINENO: result: no" >&5
9582 echo "${ECHO_T}no" >&6; }
9583 fi
9584
9585
9586   test -n "$CHICKEN_CSI" && break
9587 done
9588
9589 fi
9590
9591 if test -n "$CHICKEN_CSC" ; then
9592
9593
9594 # Check whether --with-chickenopts was given.
9595 if test "${with_chickenopts+set}" = set; then
9596   withval=$with_chickenopts;
9597         CHICKENOPTS="$withval"
9598 else
9599   CHICKENOPTS=
9600 fi
9601
9602
9603 # Check whether --with-chickensharedlib was given.
9604 if test "${with_chickensharedlib+set}" = set; then
9605   withval=$with_chickensharedlib;
9606         CHICKENSHAREDLIB="$withval"
9607 else
9608   CHICKENSHAREDLIB=
9609 fi
9610
9611
9612 # Check whether --with-chickenlib was given.
9613 if test "${with_chickenlib+set}" = set; then
9614   withval=$with_chickenlib;
9615         CHICKENLIB="$withval"
9616 else
9617   CHICKENLIB=
9618 fi
9619
9620
9621   { echo "$as_me:$LINENO: checking for compiler options for static CHICKEN generated code" >&5
9622 echo $ECHO_N "checking for compiler options for static CHICKEN generated code... $ECHO_C" >&6; }
9623   if test -z "$CHICKENOPTS"; then
9624         CHICKENOPTS="`$CHICKEN_CSC -cflags`"
9625   else
9626         CHICKENOPTS="`$CHICKEN_CSC -cflags` $CHICKENOPTS"
9627   fi
9628   if test -z "$CHICKENOPTS"; then
9629         { echo "$as_me:$LINENO: result: not found" >&5
9630 echo "${ECHO_T}not found" >&6; }
9631   else
9632         { echo "$as_me:$LINENO: result: $CHICKENOPTS" >&5
9633 echo "${ECHO_T}$CHICKENOPTS" >&6; }
9634   fi
9635
9636   { echo "$as_me:$LINENO: checking for linker options for shared CHICKEN generated code" >&5
9637 echo $ECHO_N "checking for linker options for shared CHICKEN generated code... $ECHO_C" >&6; }
9638   if test -z "$CHICKENSHAREDLIB"; then
9639         CHICKENSHAREDLIB="`$CHICKEN_CSC -shared -libs`"
9640   else
9641         CHICKENSHAREDLIB="`$CHICKEN_CSC -shared -libs` $CHICKENSHAREDLIB"
9642   fi
9643   if test -z "$CHICKENSHAREDLIB"; then
9644         { echo "$as_me:$LINENO: result: not found" >&5
9645 echo "${ECHO_T}not found" >&6; }
9646   else
9647         { echo "$as_me:$LINENO: result: $CHICKENSHAREDLIB" >&5
9648 echo "${ECHO_T}$CHICKENSHAREDLIB" >&6; }
9649   fi
9650
9651   { echo "$as_me:$LINENO: checking for linker options for static CHICKEN generated code" >&5
9652 echo $ECHO_N "checking for linker options for static CHICKEN generated code... $ECHO_C" >&6; }
9653   if test -z "$CHICKENLIB"; then
9654         CHICKENLIB="`$CHICKEN_CSC -libs`"
9655   else
9656         CHICKENLIB="`$CHICKEN_CSC -libs` $CHICKENLIB"
9657   fi
9658   if test -z "$CHICKENLIB"; then
9659         { echo "$as_me:$LINENO: result: not found" >&5
9660 echo "${ECHO_T}not found" >&6; }
9661   else
9662         { echo "$as_me:$LINENO: result: $CHICKENLIB" >&5
9663 echo "${ECHO_T}$CHICKENLIB" >&6; }
9664   fi
9665
9666 fi # have CHICKEN_CONFIG
9667 fi # Check for --without-chicken
9668
9669
9670
9671
9672
9673
9674
9675
9676 #----------------------------------------------------------------
9677 # Look for C#
9678 #----------------------------------------------------------------
9679
9680
9681 # Check whether --with-csharp was given.
9682 if test "${with_csharp+set}" = set; then
9683   withval=$with_csharp; with_csharp="$withval"
9684 else
9685   with_csharp=yes
9686 fi
9687
9688
9689 # Check whether --with-cil-interpreter was given.
9690 if test "${with_cil_interpreter+set}" = set; then
9691   withval=$with_cil_interpreter; CSHARPBIN="$withval"
9692 else
9693   CSHARPBIN=
9694 fi
9695
9696
9697 # Check whether --with-csharp-compiler was given.
9698 if test "${with_csharp_compiler+set}" = set; then
9699   withval=$with_csharp_compiler; CSHARPCOMPILERBIN="$withval"
9700 else
9701   CSHARPCOMPILERBIN=
9702 fi
9703
9704
9705 # First, check for "--without-csharp" or "--with-csharp=no".
9706 if test x"${with_csharp}" = xno -o x"${with_alllang}" = xno ; then
9707 { echo "$as_me:$LINENO: Disabling CSharp" >&5
9708 echo "$as_me: Disabling CSharp" >&6;}
9709 CSHARPCOMPILER=
9710 else
9711
9712 if test -z "$CSHARPCOMPILERBIN" ; then
9713   case $host in
9714   *-*-cygwin* | *-*-mingw*)
9715     # prefer Mono gmcs (.NET 2.0) over mcs (.NET 1.1) - note mcs-1.2.3 has major pinvoke bug
9716     for ac_prog in csc gmcs mcs cscc
9717 do
9718   # Extract the first word of "$ac_prog", so it can be a program name with args.
9719 set dummy $ac_prog; ac_word=$2
9720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9722 if test "${ac_cv_prog_CSHARPCOMPILER+set}" = set; then
9723   echo $ECHO_N "(cached) $ECHO_C" >&6
9724 else
9725   if test -n "$CSHARPCOMPILER"; then
9726   ac_cv_prog_CSHARPCOMPILER="$CSHARPCOMPILER" # Let the user override the test.
9727 else
9728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9729 for as_dir in $PATH
9730 do
9731   IFS=$as_save_IFS
9732   test -z "$as_dir" && as_dir=.
9733   for ac_exec_ext in '' $ac_executable_extensions; do
9734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9735     ac_cv_prog_CSHARPCOMPILER="$ac_prog"
9736     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9737     break 2
9738   fi
9739 done
9740 done
9741 IFS=$as_save_IFS
9742
9743 fi
9744 fi
9745 CSHARPCOMPILER=$ac_cv_prog_CSHARPCOMPILER
9746 if test -n "$CSHARPCOMPILER"; then
9747   { echo "$as_me:$LINENO: result: $CSHARPCOMPILER" >&5
9748 echo "${ECHO_T}$CSHARPCOMPILER" >&6; }
9749 else
9750   { echo "$as_me:$LINENO: result: no" >&5
9751 echo "${ECHO_T}no" >&6; }
9752 fi
9753
9754
9755   test -n "$CSHARPCOMPILER" && break
9756 done
9757
9758     if test -n "$CSHARPCOMPILER" && test "$CSHARPCOMPILER" = "csc" ; then
9759       { echo "$as_me:$LINENO: checking whether csc is the Microsoft CSharp compiler" >&5
9760 echo $ECHO_N "checking whether csc is the Microsoft CSharp compiler... $ECHO_C" >&6; }
9761       csc 2>/dev/null | grep "C#" > /dev/null || CSHARPCOMPILER=""
9762       if test -z "$CSHARPCOMPILER" ; then
9763         { echo "$as_me:$LINENO: result: no" >&5
9764 echo "${ECHO_T}no" >&6; }
9765         for ac_prog in gmcs mcs cscc
9766 do
9767   # Extract the first word of "$ac_prog", so it can be a program name with args.
9768 set dummy $ac_prog; ac_word=$2
9769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9771 if test "${ac_cv_prog_CSHARPCOMPILER+set}" = set; then
9772   echo $ECHO_N "(cached) $ECHO_C" >&6
9773 else
9774   if test -n "$CSHARPCOMPILER"; then
9775   ac_cv_prog_CSHARPCOMPILER="$CSHARPCOMPILER" # Let the user override the test.
9776 else
9777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9778 for as_dir in $PATH
9779 do
9780   IFS=$as_save_IFS
9781   test -z "$as_dir" && as_dir=.
9782   for ac_exec_ext in '' $ac_executable_extensions; do
9783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9784     ac_cv_prog_CSHARPCOMPILER="$ac_prog"
9785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9786     break 2
9787   fi
9788 done
9789 done
9790 IFS=$as_save_IFS
9791
9792 fi
9793 fi
9794 CSHARPCOMPILER=$ac_cv_prog_CSHARPCOMPILER
9795 if test -n "$CSHARPCOMPILER"; then
9796   { echo "$as_me:$LINENO: result: $CSHARPCOMPILER" >&5
9797 echo "${ECHO_T}$CSHARPCOMPILER" >&6; }
9798 else
9799   { echo "$as_me:$LINENO: result: no" >&5
9800 echo "${ECHO_T}no" >&6; }
9801 fi
9802
9803
9804   test -n "$CSHARPCOMPILER" && break
9805 done
9806
9807       else
9808         { echo "$as_me:$LINENO: result: yes" >&5
9809 echo "${ECHO_T}yes" >&6; }
9810       fi
9811     fi
9812     ;;
9813   *)for ac_prog in gmcs mcs cscc
9814 do
9815   # Extract the first word of "$ac_prog", so it can be a program name with args.
9816 set dummy $ac_prog; ac_word=$2
9817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9819 if test "${ac_cv_prog_CSHARPCOMPILER+set}" = set; then
9820   echo $ECHO_N "(cached) $ECHO_C" >&6
9821 else
9822   if test -n "$CSHARPCOMPILER"; then
9823   ac_cv_prog_CSHARPCOMPILER="$CSHARPCOMPILER" # Let the user override the test.
9824 else
9825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9826 for as_dir in $PATH
9827 do
9828   IFS=$as_save_IFS
9829   test -z "$as_dir" && as_dir=.
9830   for ac_exec_ext in '' $ac_executable_extensions; do
9831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9832     ac_cv_prog_CSHARPCOMPILER="$ac_prog"
9833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9834     break 2
9835   fi
9836 done
9837 done
9838 IFS=$as_save_IFS
9839
9840 fi
9841 fi
9842 CSHARPCOMPILER=$ac_cv_prog_CSHARPCOMPILER
9843 if test -n "$CSHARPCOMPILER"; then
9844   { echo "$as_me:$LINENO: result: $CSHARPCOMPILER" >&5
9845 echo "${ECHO_T}$CSHARPCOMPILER" >&6; }
9846 else
9847   { echo "$as_me:$LINENO: result: no" >&5
9848 echo "${ECHO_T}no" >&6; }
9849 fi
9850
9851
9852   test -n "$CSHARPCOMPILER" && break
9853 done
9854 ;;
9855   esac
9856 else
9857   CSHARPCOMPILER="$CSHARPCOMPILERBIN"
9858 fi
9859
9860 CSHARPPATHSEPARATOR="/"
9861 CSHARPCYGPATH_W=echo
9862 if test -z "$CSHARPBIN" ; then
9863   CSHARPCILINTERPRETER=""
9864   if test "cscc" = "$CSHARPCOMPILER" ; then
9865     for ac_prog in ilrun
9866 do
9867   # Extract the first word of "$ac_prog", so it can be a program name with args.
9868 set dummy $ac_prog; ac_word=$2
9869 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9871 if test "${ac_cv_prog_CSHARPCILINTERPRETER+set}" = set; then
9872   echo $ECHO_N "(cached) $ECHO_C" >&6
9873 else
9874   if test -n "$CSHARPCILINTERPRETER"; then
9875   ac_cv_prog_CSHARPCILINTERPRETER="$CSHARPCILINTERPRETER" # Let the user override the test.
9876 else
9877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9878 for as_dir in $PATH
9879 do
9880   IFS=$as_save_IFS
9881   test -z "$as_dir" && as_dir=.
9882   for ac_exec_ext in '' $ac_executable_extensions; do
9883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9884     ac_cv_prog_CSHARPCILINTERPRETER="$ac_prog"
9885     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9886     break 2
9887   fi
9888 done
9889 done
9890 IFS=$as_save_IFS
9891
9892 fi
9893 fi
9894 CSHARPCILINTERPRETER=$ac_cv_prog_CSHARPCILINTERPRETER
9895 if test -n "$CSHARPCILINTERPRETER"; then
9896   { echo "$as_me:$LINENO: result: $CSHARPCILINTERPRETER" >&5
9897 echo "${ECHO_T}$CSHARPCILINTERPRETER" >&6; }
9898 else
9899   { echo "$as_me:$LINENO: result: no" >&5
9900 echo "${ECHO_T}no" >&6; }
9901 fi
9902
9903
9904   test -n "$CSHARPCILINTERPRETER" && break
9905 done
9906
9907   else
9908     if test "mcs" = "$CSHARPCOMPILER"; then
9909       # Check that mcs is the C# compiler and not the Unix mcs utility by examining the output of 'mcs --version'
9910       # The Mono compiler should emit: Mono C# compiler version a.b.c.d
9911       csharp_version_raw=`(mcs --version) 2>/dev/null`
9912       csharp_version_searched=`(mcs --version | sed -e "/C#/b" -e "/Mono/b" -e d) 2>/dev/null` # return string if contains 'Mono' or 'C#'
9913       CSHARPCOMPILER="";
9914       if test -n "$csharp_version_raw" ; then
9915         if test "$csharp_version_raw" = "$csharp_version_searched" ; then
9916           CSHARPCOMPILER="mcs"
9917         fi
9918       fi
9919       if test "mcs" != "$CSHARPCOMPILER" ; then
9920         echo "mcs is not a working Mono C# compiler"
9921       fi
9922     fi
9923     if test "mcs" = "$CSHARPCOMPILER" || test "gmcs" = "$CSHARPCOMPILER"; then
9924         for ac_prog in mono
9925 do
9926   # Extract the first word of "$ac_prog", so it can be a program name with args.
9927 set dummy $ac_prog; ac_word=$2
9928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9930 if test "${ac_cv_prog_CSHARPCILINTERPRETER+set}" = set; then
9931   echo $ECHO_N "(cached) $ECHO_C" >&6
9932 else
9933   if test -n "$CSHARPCILINTERPRETER"; then
9934   ac_cv_prog_CSHARPCILINTERPRETER="$CSHARPCILINTERPRETER" # Let the user override the test.
9935 else
9936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9937 for as_dir in $PATH
9938 do
9939   IFS=$as_save_IFS
9940   test -z "$as_dir" && as_dir=.
9941   for ac_exec_ext in '' $ac_executable_extensions; do
9942   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9943     ac_cv_prog_CSHARPCILINTERPRETER="$ac_prog"
9944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9945     break 2
9946   fi
9947 done
9948 done
9949 IFS=$as_save_IFS
9950
9951 fi
9952 fi
9953 CSHARPCILINTERPRETER=$ac_cv_prog_CSHARPCILINTERPRETER
9954 if test -n "$CSHARPCILINTERPRETER"; then
9955   { echo "$as_me:$LINENO: result: $CSHARPCILINTERPRETER" >&5
9956 echo "${ECHO_T}$CSHARPCILINTERPRETER" >&6; }
9957 else
9958   { echo "$as_me:$LINENO: result: no" >&5
9959 echo "${ECHO_T}no" >&6; }
9960 fi
9961
9962
9963   test -n "$CSHARPCILINTERPRETER" && break
9964 done
9965  # Mono JIT
9966     else
9967       if test "csc" = "$CSHARPCOMPILER"; then
9968           CSHARPPATHSEPARATOR="\\\\"
9969           CSHARPCYGPATH_W='cygpath -w'
9970       fi
9971     fi
9972   fi
9973 else
9974   CSHARPCILINTERPRETER="$CSHARPBIN"
9975 fi
9976
9977 # Cygwin requires the Windows standard (Pascal) calling convention as it is a Windows executable and not a Cygwin built executable
9978 case $host in
9979 *-*-cygwin* | *-*-mingw*)
9980     if test "$GCC" = yes; then
9981         CSHARPDYNAMICLINKING=" -mno-cygwin -mthreads -Wl,--add-stdcall-alias"
9982         CSHARPCFLAGS="-mno-cygwin -mthreads"
9983     else
9984         CSHARPDYNAMICLINKING=""
9985         CSHARPCFLAGS=""
9986     fi ;;
9987 *)
9988         CSHARPDYNAMICLINKING=""
9989         CSHARPCFLAGS=""
9990         ;;
9991 esac
9992
9993 # CSharp on Windows platforms including Cygwin doesn't use libname.dll, rather name.dll when loading dlls
9994 case $host in
9995 *-*-cygwin* | *-*-mingw*) CSHARPLIBRARYPREFIX="";;
9996 *)CSHARPLIBRARYPREFIX="lib";;
9997 esac
9998
9999 # C#/Mono on Mac OS X tweaks
10000 case $host in
10001 *-*-darwin*)
10002     CSHARPSO=".so"
10003     ;;
10004 *)
10005     CSHARPSO=$SO
10006     ;;
10007 esac
10008 fi
10009
10010
10011
10012
10013
10014
10015  # Is this going to be used?
10016
10017
10018
10019 #----------------------------------------------------------------
10020 # Look for Lua
10021 #----------------------------------------------------------------
10022
10023 LUABIN=
10024 LUAINCLUDE=
10025 LUALIB=
10026 LUADYNAMICLOADLIB=
10027 LUAFLAGS=
10028 LUALINK=
10029 # note: if LUABIN is empty then lua tests will not be done
10030 # LUABIN will be cleared if certain dependencies cannot be found
10031
10032
10033 # Check whether --with-lua was given.
10034 if test "${with_lua+set}" = set; then
10035   withval=$with_lua;  LUABIN="$withval"
10036 else
10037   LUABIN=yes
10038 fi
10039
10040
10041 # Check whether --with-luaincl was given.
10042 if test "${with_luaincl+set}" = set; then
10043   withval=$with_luaincl;
10044         LUAINCLUDE="$withval"
10045 else
10046   LUAINCLUDE=
10047 fi
10048
10049
10050 # Check whether --with-lualib was given.
10051 if test "${with_lualib+set}" = set; then
10052   withval=$with_lualib;
10053         LUALIB="$withval"
10054 else
10055   LUALIB=
10056 fi
10057
10058
10059 # First, check for "--without-lua" or "--with-lua=no".
10060 if test x"${LUABIN}" = xno -o x"${with_alllang}" = xno ; then
10061 { echo "$as_me:$LINENO: Disabling Lua" >&5
10062 echo "$as_me: Disabling Lua" >&6;}
10063 else
10064
10065 # can we find lua?
10066 if test "x$LUABIN" = xyes; then
10067    # Extract the first word of "lua", so it can be a program name with args.
10068 set dummy lua; ac_word=$2
10069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10071 if test "${ac_cv_path_LUABIN+set}" = set; then
10072   echo $ECHO_N "(cached) $ECHO_C" >&6
10073 else
10074   case $LUABIN in
10075   [\\/]* | ?:[\\/]*)
10076   ac_cv_path_LUABIN="$LUABIN" # Let the user override the test with a path.
10077   ;;
10078   *)
10079   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10080 for as_dir in $PATH
10081 do
10082   IFS=$as_save_IFS
10083   test -z "$as_dir" && as_dir=.
10084   for ac_exec_ext in '' $ac_executable_extensions; do
10085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10086     ac_cv_path_LUABIN="$as_dir/$ac_word$ac_exec_ext"
10087     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10088     break 2
10089   fi
10090 done
10091 done
10092 IFS=$as_save_IFS
10093
10094   ;;
10095 esac
10096 fi
10097 LUABIN=$ac_cv_path_LUABIN
10098 if test -n "$LUABIN"; then
10099   { echo "$as_me:$LINENO: result: $LUABIN" >&5
10100 echo "${ECHO_T}$LUABIN" >&6; }
10101 else
10102   { echo "$as_me:$LINENO: result: no" >&5
10103 echo "${ECHO_T}no" >&6; }
10104 fi
10105
10106
10107 fi
10108
10109 # check version: we need Lua 5.x
10110 if test "$LUABIN"; then
10111    { echo "$as_me:$LINENO: checking Lua version" >&5
10112 echo $ECHO_N "checking Lua version... $ECHO_C" >&6; }
10113    # if version 5.x
10114    LUAV5=`$LUABIN -e 'if string.sub(_VERSION,5,5)=="5" then print "1" end'`
10115    # if not version 5.0
10116    LUAV51=`$LUABIN -e 'if string.sub(_VERSION,5,7)~="5.0" then print "1" end'`
10117
10118    if test -z "$LUAV5"; then
10119      { echo "$as_me:$LINENO: WARNING: Not Lua 5.x" >&5
10120 echo "$as_me: WARNING: Not Lua 5.x" >&2;}
10121      LUABIN=""
10122    elif test -z "$LUAV51"; then
10123      { echo "$as_me:$LINENO: result: Lua 5.0.x" >&5
10124 echo "${ECHO_T}Lua 5.0.x" >&6; }
10125    else
10126      { echo "$as_me:$LINENO: result: Lua 5.1 or later" >&5
10127 echo "${ECHO_T}Lua 5.1 or later" >&6; }
10128    fi
10129 fi
10130
10131 if test "$LUABIN"; then
10132    { echo "$as_me:$LINENO: checking whether Lua dynamic loading is enabled" >&5
10133 echo $ECHO_N "checking whether Lua dynamic loading is enabled... $ECHO_C" >&6; }
10134    # using Lua to check Lua
10135    # lua 5.0 & 5.1 have different fn names
10136    if test -z "$LUAV51"; then
10137      LUADYNAMICLOADLIB=`$LUABIN -e '_,_,c=loadlib("no_such_lib","") if c~="absent" then print "1" end'`
10138    else
10139      LUADYNAMICLOADLIB=`$LUABIN -e '_,_,c=package.loadlib("no_such_lib","") if c~="absent" then print "1" end'`
10140    fi
10141
10142    if test -z "$LUADYNAMICLOADLIB"; then
10143      { echo "$as_me:$LINENO: result: no" >&5
10144 echo "${ECHO_T}no" >&6; }
10145    else
10146      { echo "$as_me:$LINENO: result: yes" >&5
10147 echo "${ECHO_T}yes" >&6; }
10148    fi
10149 fi
10150
10151 # look for the header files & set LUAFLAGS accordingly
10152 # will clear LUABIN if not present
10153 if test -n "$LUAINCLUDE"; then
10154   as_ac_File=`echo "ac_cv_file_$LUAINCLUDE/lua.h" | $as_tr_sh`
10155 { echo "$as_me:$LINENO: checking for $LUAINCLUDE/lua.h" >&5
10156 echo $ECHO_N "checking for $LUAINCLUDE/lua.h... $ECHO_C" >&6; }
10157 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
10158   echo $ECHO_N "(cached) $ECHO_C" >&6
10159 else
10160   test "$cross_compiling" = yes &&
10161   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10162 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10163    { (exit 1); exit 1; }; }
10164 if test -r "$LUAINCLUDE/lua.h"; then
10165   eval "$as_ac_File=yes"
10166 else
10167   eval "$as_ac_File=no"
10168 fi
10169 fi
10170 ac_res=`eval echo '${'$as_ac_File'}'`
10171                { echo "$as_me:$LINENO: result: $ac_res" >&5
10172 echo "${ECHO_T}$ac_res" >&6; }
10173 if test `eval echo '${'$as_ac_File'}'` = yes; then
10174   LUAFLAGS="$ISYSTEM$LUAINCLUDE"
10175 else
10176   LUABIN=
10177 fi
10178
10179 else
10180   LUA_OK="1"
10181   if test "${ac_cv_header_lua_h+set}" = set; then
10182   { echo "$as_me:$LINENO: checking for lua.h" >&5
10183 echo $ECHO_N "checking for lua.h... $ECHO_C" >&6; }
10184 if test "${ac_cv_header_lua_h+set}" = set; then
10185   echo $ECHO_N "(cached) $ECHO_C" >&6
10186 fi
10187 { echo "$as_me:$LINENO: result: $ac_cv_header_lua_h" >&5
10188 echo "${ECHO_T}$ac_cv_header_lua_h" >&6; }
10189 else
10190   # Is the header compilable?
10191 { echo "$as_me:$LINENO: checking lua.h usability" >&5
10192 echo $ECHO_N "checking lua.h usability... $ECHO_C" >&6; }
10193 cat >conftest.$ac_ext <<_ACEOF
10194 /* confdefs.h.  */
10195 _ACEOF
10196 cat confdefs.h >>conftest.$ac_ext
10197 cat >>conftest.$ac_ext <<_ACEOF
10198 /* end confdefs.h.  */
10199 $ac_includes_default
10200 #include <lua.h>
10201 _ACEOF
10202 rm -f conftest.$ac_objext
10203 if { (ac_try="$ac_compile"
10204 case "(($ac_try" in
10205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10206   *) ac_try_echo=$ac_try;;
10207 esac
10208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10209   (eval "$ac_compile") 2>conftest.er1
10210   ac_status=$?
10211   grep -v '^ *+' conftest.er1 >conftest.err
10212   rm -f conftest.er1
10213   cat conftest.err >&5
10214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215   (exit $ac_status); } && {
10216          test -z "$ac_c_werror_flag" ||
10217          test ! -s conftest.err
10218        } && test -s conftest.$ac_objext; then
10219   ac_header_compiler=yes
10220 else
10221   echo "$as_me: failed program was:" >&5
10222 sed 's/^/| /' conftest.$ac_ext >&5
10223
10224         ac_header_compiler=no
10225 fi
10226
10227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10228 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10229 echo "${ECHO_T}$ac_header_compiler" >&6; }
10230
10231 # Is the header present?
10232 { echo "$as_me:$LINENO: checking lua.h presence" >&5
10233 echo $ECHO_N "checking lua.h presence... $ECHO_C" >&6; }
10234 cat >conftest.$ac_ext <<_ACEOF
10235 /* confdefs.h.  */
10236 _ACEOF
10237 cat confdefs.h >>conftest.$ac_ext
10238 cat >>conftest.$ac_ext <<_ACEOF
10239 /* end confdefs.h.  */
10240 #include <lua.h>
10241 _ACEOF
10242 if { (ac_try="$ac_cpp conftest.$ac_ext"
10243 case "(($ac_try" in
10244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10245   *) ac_try_echo=$ac_try;;
10246 esac
10247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10248   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10249   ac_status=$?
10250   grep -v '^ *+' conftest.er1 >conftest.err
10251   rm -f conftest.er1
10252   cat conftest.err >&5
10253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254   (exit $ac_status); } >/dev/null && {
10255          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10256          test ! -s conftest.err
10257        }; then
10258   ac_header_preproc=yes
10259 else
10260   echo "$as_me: failed program was:" >&5
10261 sed 's/^/| /' conftest.$ac_ext >&5
10262
10263   ac_header_preproc=no
10264 fi
10265
10266 rm -f conftest.err conftest.$ac_ext
10267 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10268 echo "${ECHO_T}$ac_header_preproc" >&6; }
10269
10270 # So?  What about this header?
10271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10272   yes:no: )
10273     { echo "$as_me:$LINENO: WARNING: lua.h: accepted by the compiler, rejected by the preprocessor!" >&5
10274 echo "$as_me: WARNING: lua.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10275     { echo "$as_me:$LINENO: WARNING: lua.h: proceeding with the compiler's result" >&5
10276 echo "$as_me: WARNING: lua.h: proceeding with the compiler's result" >&2;}
10277     ac_header_preproc=yes
10278     ;;
10279   no:yes:* )
10280     { echo "$as_me:$LINENO: WARNING: lua.h: present but cannot be compiled" >&5
10281 echo "$as_me: WARNING: lua.h: present but cannot be compiled" >&2;}
10282     { echo "$as_me:$LINENO: WARNING: lua.h:     check for missing prerequisite headers?" >&5
10283 echo "$as_me: WARNING: lua.h:     check for missing prerequisite headers?" >&2;}
10284     { echo "$as_me:$LINENO: WARNING: lua.h: see the Autoconf documentation" >&5
10285 echo "$as_me: WARNING: lua.h: see the Autoconf documentation" >&2;}
10286     { echo "$as_me:$LINENO: WARNING: lua.h:     section \"Present But Cannot Be Compiled\"" >&5
10287 echo "$as_me: WARNING: lua.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10288     { echo "$as_me:$LINENO: WARNING: lua.h: proceeding with the preprocessor's result" >&5
10289 echo "$as_me: WARNING: lua.h: proceeding with the preprocessor's result" >&2;}
10290     { echo "$as_me:$LINENO: WARNING: lua.h: in the future, the compiler will take precedence" >&5
10291 echo "$as_me: WARNING: lua.h: in the future, the compiler will take precedence" >&2;}
10292     ( cat <<\_ASBOX
10293 ## ---------------------------------- ##
10294 ## Report this to http://www.swig.org ##
10295 ## ---------------------------------- ##
10296 _ASBOX
10297      ) | sed "s/^/$as_me: WARNING:     /" >&2
10298     ;;
10299 esac
10300 { echo "$as_me:$LINENO: checking for lua.h" >&5
10301 echo $ECHO_N "checking for lua.h... $ECHO_C" >&6; }
10302 if test "${ac_cv_header_lua_h+set}" = set; then
10303   echo $ECHO_N "(cached) $ECHO_C" >&6
10304 else
10305   ac_cv_header_lua_h=$ac_header_preproc
10306 fi
10307 { echo "$as_me:$LINENO: result: $ac_cv_header_lua_h" >&5
10308 echo "${ECHO_T}$ac_cv_header_lua_h" >&6; }
10309
10310 fi
10311 if test $ac_cv_header_lua_h = yes; then
10312   LUAFLAGS=""
10313 else
10314   LUA_OK=""
10315 fi
10316
10317
10318   # if we didn't get it, going to have to look elsewhere (the hard way)
10319   if test -z "$LUA_OK"; then
10320     { echo "$as_me:$LINENO: checking for lua.h in other locations" >&5
10321 echo $ECHO_N "checking for lua.h in other locations... $ECHO_C" >&6; }
10322     # note: ubuntu seems to like /usr/include/lua5.1/lua.h
10323     dirs="/usr/include/lua* /usr/local/include"
10324     for i in $dirs; do
10325       #echo "$i"
10326       if test -r $i/lua.h; then
10327         { echo "$as_me:$LINENO: result: $i/lua.h" >&5
10328 echo "${ECHO_T}$i/lua.h" >&6; }
10329         LUAFLAGS="$ISYSTEM$i"
10330         break;
10331       fi
10332     done
10333     if test -z "$LUAFLAGS"; then
10334       { echo "$as_me:$LINENO: result: not found" >&5
10335 echo "${ECHO_T}not found" >&6; }
10336       LUABIN="" # clear the bin
10337     fi
10338   fi
10339 fi
10340
10341 # look for the library files & set LUALINK accordingly
10342 # will clear LUABIN if not present
10343 lua_save_LIBS=$LIBS # the code seems to disrupt LIBS, so saving
10344
10345 if test -n "$LUALIB"; then
10346   as_ac_File=`echo "ac_cv_file_$LUALIB/liblua.a" | $as_tr_sh`
10347 { echo "$as_me:$LINENO: checking for $LUALIB/liblua.a" >&5
10348 echo $ECHO_N "checking for $LUALIB/liblua.a... $ECHO_C" >&6; }
10349 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
10350   echo $ECHO_N "(cached) $ECHO_C" >&6
10351 else
10352   test "$cross_compiling" = yes &&
10353   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10354 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10355    { (exit 1); exit 1; }; }
10356 if test -r "$LUALIB/liblua.a"; then
10357   eval "$as_ac_File=yes"
10358 else
10359   eval "$as_ac_File=no"
10360 fi
10361 fi
10362 ac_res=`eval echo '${'$as_ac_File'}'`
10363                { echo "$as_me:$LINENO: result: $ac_res" >&5
10364 echo "${ECHO_T}$ac_res" >&6; }
10365 if test `eval echo '${'$as_ac_File'}'` = yes; then
10366   LUALINK="-L$LUALIB -llua"
10367 else
10368   LUABIN=
10369 fi
10370
10371 else
10372   { echo "$as_me:$LINENO: checking for library containing lua_close" >&5
10373 echo $ECHO_N "checking for library containing lua_close... $ECHO_C" >&6; }
10374 if test "${ac_cv_search_lua_close+set}" = set; then
10375   echo $ECHO_N "(cached) $ECHO_C" >&6
10376 else
10377   ac_func_search_save_LIBS=$LIBS
10378 cat >conftest.$ac_ext <<_ACEOF
10379 /* confdefs.h.  */
10380 _ACEOF
10381 cat confdefs.h >>conftest.$ac_ext
10382 cat >>conftest.$ac_ext <<_ACEOF
10383 /* end confdefs.h.  */
10384
10385 /* Override any GCC internal prototype to avoid an error.
10386    Use char because int might match the return type of a GCC
10387    builtin and then its argument prototype would still apply.  */
10388 #ifdef __cplusplus
10389 extern "C"
10390 #endif
10391 char lua_close ();
10392 int
10393 main ()
10394 {
10395 return lua_close ();
10396   ;
10397   return 0;
10398 }
10399 _ACEOF
10400 for ac_lib in '' lua lua51 lua5.1 lua50 lua5.0; do
10401   if test -z "$ac_lib"; then
10402     ac_res="none required"
10403   else
10404     ac_res=-l$ac_lib
10405     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10406   fi
10407   rm -f conftest.$ac_objext conftest$ac_exeext
10408 if { (ac_try="$ac_link"
10409 case "(($ac_try" in
10410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10411   *) ac_try_echo=$ac_try;;
10412 esac
10413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10414   (eval "$ac_link") 2>conftest.er1
10415   ac_status=$?
10416   grep -v '^ *+' conftest.er1 >conftest.err
10417   rm -f conftest.er1
10418   cat conftest.err >&5
10419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420   (exit $ac_status); } && {
10421          test -z "$ac_c_werror_flag" ||
10422          test ! -s conftest.err
10423        } && test -s conftest$ac_exeext &&
10424        $as_test_x conftest$ac_exeext; then
10425   ac_cv_search_lua_close=$ac_res
10426 else
10427   echo "$as_me: failed program was:" >&5
10428 sed 's/^/| /' conftest.$ac_ext >&5
10429
10430
10431 fi
10432
10433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10434       conftest$ac_exeext
10435   if test "${ac_cv_search_lua_close+set}" = set; then
10436   break
10437 fi
10438 done
10439 if test "${ac_cv_search_lua_close+set}" = set; then
10440   :
10441 else
10442   ac_cv_search_lua_close=no
10443 fi
10444 rm conftest.$ac_ext
10445 LIBS=$ac_func_search_save_LIBS
10446 fi
10447 { echo "$as_me:$LINENO: result: $ac_cv_search_lua_close" >&5
10448 echo "${ECHO_T}$ac_cv_search_lua_close" >&6; }
10449 ac_res=$ac_cv_search_lua_close
10450 if test "$ac_res" != no; then
10451   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10452   LUALINK="-l$ac_lib"
10453 else
10454   LUABIN=
10455 fi
10456
10457 fi
10458
10459 # adding lualib for lua 5.0
10460 if test -z "$LUAV51"; then # extra for lua 5.0
10461   LUALINK="$LUALINK -llualib"
10462 fi
10463
10464 LIBS=$lua_save_LIBS     # restore LIBS
10465
10466 fi # if not disabled
10467
10468
10469
10470
10471
10472
10473 #----------------------------------------------------------------
10474 # Look for Allegro Common Lisp
10475 #----------------------------------------------------------------
10476
10477 ALLEGROCLBIN=
10478
10479
10480 # Check whether --with-allegrocl was given.
10481 if test "${with_allegrocl+set}" = set; then
10482   withval=$with_allegrocl;  ALLEGROCLBIN="$withval"
10483 else
10484   ALLEGROCLBIN=yes
10485 fi
10486
10487
10488 # First, check for "--without-allegrocl" or "--with-allegrocl=no".
10489 if test x"${ALLEGROCLBIN}" = xno -o x"${with_alllang}" = xno ; then
10490 { echo "$as_me:$LINENO: Disabling Allegro CL" >&5
10491 echo "$as_me: Disabling Allegro CL" >&6;}
10492 ALLEGROCLBIN=
10493 else
10494
10495 # can we find allegrocl?
10496 if test "x$ALLEGROCLBIN" = xyes; then
10497    # Extract the first word of "alisp", so it can be a program name with args.
10498 set dummy alisp; ac_word=$2
10499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10501 if test "${ac_cv_path_ALLEGROCLBIN+set}" = set; then
10502   echo $ECHO_N "(cached) $ECHO_C" >&6
10503 else
10504   case $ALLEGROCLBIN in
10505   [\\/]* | ?:[\\/]*)
10506   ac_cv_path_ALLEGROCLBIN="$ALLEGROCLBIN" # Let the user override the test with a path.
10507   ;;
10508   *)
10509   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10510 for as_dir in $PATH
10511 do
10512   IFS=$as_save_IFS
10513   test -z "$as_dir" && as_dir=.
10514   for ac_exec_ext in '' $ac_executable_extensions; do
10515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10516     ac_cv_path_ALLEGROCLBIN="$as_dir/$ac_word$ac_exec_ext"
10517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10518     break 2
10519   fi
10520 done
10521 done
10522 IFS=$as_save_IFS
10523
10524   ;;
10525 esac
10526 fi
10527 ALLEGROCLBIN=$ac_cv_path_ALLEGROCLBIN
10528 if test -n "$ALLEGROCLBIN"; then
10529   { echo "$as_me:$LINENO: result: $ALLEGROCLBIN" >&5
10530 echo "${ECHO_T}$ALLEGROCLBIN" >&6; }
10531 else
10532   { echo "$as_me:$LINENO: result: no" >&5
10533 echo "${ECHO_T}no" >&6; }
10534 fi
10535
10536
10537 fi
10538 fi
10539
10540
10541
10542 #----------------------------------------------------------------
10543 # Look for GNU CLISP
10544 #----------------------------------------------------------------
10545
10546 CLISPBIN=
10547
10548
10549 # Check whether --with-clisp was given.
10550 if test "${with_clisp+set}" = set; then
10551   withval=$with_clisp;  CLISPBIN="$withval"
10552 else
10553   CLISPBIN=yes
10554 fi
10555
10556
10557 # First, check for "--without-clisp" or "--with-clisp=no".
10558 if test x"${CLISPBIN}" = xno -o x"${with_alllang}" = xno ; then
10559 { echo "$as_me:$LINENO: Disabling CLISP" >&5
10560 echo "$as_me: Disabling CLISP" >&6;}
10561 CLISPBIN=
10562 else
10563
10564 # can we find clisp?
10565 if test "x$CLISPBIN" = xyes; then
10566    # Extract the first word of "clisp", so it can be a program name with args.
10567 set dummy clisp; ac_word=$2
10568 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10570 if test "${ac_cv_path_CLISPBIN+set}" = set; then
10571   echo $ECHO_N "(cached) $ECHO_C" >&6
10572 else
10573   case $CLISPBIN in
10574   [\\/]* | ?:[\\/]*)
10575   ac_cv_path_CLISPBIN="$CLISPBIN" # Let the user override the test with a path.
10576   ;;
10577   *)
10578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10579 for as_dir in $PATH
10580 do
10581   IFS=$as_save_IFS
10582   test -z "$as_dir" && as_dir=.
10583   for ac_exec_ext in '' $ac_executable_extensions; do
10584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10585     ac_cv_path_CLISPBIN="$as_dir/$ac_word$ac_exec_ext"
10586     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10587     break 2
10588   fi
10589 done
10590 done
10591 IFS=$as_save_IFS
10592
10593   ;;
10594 esac
10595 fi
10596 CLISPBIN=$ac_cv_path_CLISPBIN
10597 if test -n "$CLISPBIN"; then
10598   { echo "$as_me:$LINENO: result: $CLISPBIN" >&5
10599 echo "${ECHO_T}$CLISPBIN" >&6; }
10600 else
10601   { echo "$as_me:$LINENO: result: no" >&5
10602 echo "${ECHO_T}no" >&6; }
10603 fi
10604
10605
10606 fi
10607 fi
10608
10609
10610
10611 #----------------------------------------------------------------
10612 # Look for GNU R
10613 #----------------------------------------------------------------
10614
10615 RBIN=
10616
10617
10618 # Check whether --with-r was given.
10619 if test "${with_r+set}" = set; then
10620   withval=$with_r;  RBIN="$withval"
10621 else
10622   RBIN=yes
10623 fi
10624
10625
10626 # First, check for "--without-r" or "--with-r=no".
10627 if test x"${RBIN}" = xno -o x"${with_alllang}" = xno ; then
10628 { echo "$as_me:$LINENO: Disabling R" >&5
10629 echo "$as_me: Disabling R" >&6;}
10630 RBIN=
10631 else
10632
10633 # can we find R?
10634 if test "x$RBIN" = xyes; then
10635    # Extract the first word of "R", so it can be a program name with args.
10636 set dummy R; ac_word=$2
10637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10639 if test "${ac_cv_path_RBIN+set}" = set; then
10640   echo $ECHO_N "(cached) $ECHO_C" >&6
10641 else
10642   case $RBIN in
10643   [\\/]* | ?:[\\/]*)
10644   ac_cv_path_RBIN="$RBIN" # Let the user override the test with a path.
10645   ;;
10646   *)
10647   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10648 for as_dir in $PATH
10649 do
10650   IFS=$as_save_IFS
10651   test -z "$as_dir" && as_dir=.
10652   for ac_exec_ext in '' $ac_executable_extensions; do
10653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10654     ac_cv_path_RBIN="$as_dir/$ac_word$ac_exec_ext"
10655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10656     break 2
10657   fi
10658 done
10659 done
10660 IFS=$as_save_IFS
10661
10662   ;;
10663 esac
10664 fi
10665 RBIN=$ac_cv_path_RBIN
10666 if test -n "$RBIN"; then
10667   { echo "$as_me:$LINENO: result: $RBIN" >&5
10668 echo "${ECHO_T}$RBIN" >&6; }
10669 else
10670   { echo "$as_me:$LINENO: result: no" >&5
10671 echo "${ECHO_T}no" >&6; }
10672 fi
10673
10674
10675 fi
10676 fi
10677
10678
10679
10680 #----------------------------------------------------------------
10681 # Determine which languages to use for examples/test-suite
10682 #----------------------------------------------------------------
10683
10684 SKIP_TCL=
10685 if test -z "$TCLINCLUDE" || test -z "$TCLLIB" ; then
10686     SKIP_TCL="1"
10687 fi
10688
10689
10690
10691 SKIP_PERL5=
10692 if test -z "$PERL" || test -z "$PERL5EXT" ; then
10693     SKIP_PERL5="1"
10694 fi
10695
10696
10697
10698 SKIP_OCTAVE=
10699 if test -z "$OCTAVE" || test -z "$OCTAVEEXT" ; then
10700     SKIP_OCTAVE="1"
10701 fi
10702
10703
10704
10705 SKIP_PYTHON=
10706 if (test -z "$PYINCLUDE" || test -z "$PYLIB") &&
10707    (test -z "$PY3INCLUDE" || test -z "PY3LIB") ; then
10708     SKIP_PYTHON="1"
10709 fi
10710
10711
10712 SKIP_PYTHON3=
10713 if test -z "$PY3INCLUDE" || test -z "$PY3LIB" ; then
10714     SKIP_PYTHON3="1"
10715 fi
10716
10717
10718 SKIP_JAVA=
10719 if test -z "$JAVA" || test -z "$JAVAC" || test -z "$JAVAINC" ; then
10720     SKIP_JAVA="1"
10721 fi
10722
10723
10724
10725 SKIP_GUILE=
10726 if test -z "$GUILEINCLUDE" || test -z "$GUILELIB" || test -z "$GUILE_GH_INTERFACE"; then
10727     SKIP_GUILE="1"
10728 fi
10729
10730
10731 SKIP_GUILESCM=
10732 if test -z "$GUILEINCLUDE" || test -z "$GUILELIB" || test -z "$GUILE_SCM_INTERFACE"; then
10733     SKIP_GUILESCM="1"
10734 fi
10735
10736
10737
10738 SKIP_MZSCHEME=
10739 if test -z "$MZC" || test -z "$MZDYNOBJ" ; then
10740     SKIP_MZSCHEME="1"
10741 fi
10742
10743
10744
10745 SKIP_RUBY=
10746 if test -z "$RUBY" || test -z "$RUBYINCLUDE" || test -z "$RUBYLIB" ; then
10747     SKIP_RUBY="1"
10748 fi
10749
10750
10751
10752 SKIP_PHP=
10753 if test -z "$PHP" || test -z "$PHPINC" ; then
10754     SKIP_PHP="1"
10755 fi
10756
10757
10758
10759 SKIP_OCAML=
10760 if test -z "$OCAMLBIN" || test -z "$OCAMLINC" ; then
10761     SKIP_OCAML="1"
10762 fi
10763
10764
10765
10766 SKIP_PIKE="1" # Always skipped!
10767 if test -z "$PIKE" || test -z "$PIKEINCLUDE" ; then
10768     SKIP_PIKE="1"
10769 fi
10770
10771
10772
10773 SKIP_CHICKEN=
10774 if test -z "$CHICKEN_CSC" || test -z "$CHICKEN"; then
10775     SKIP_CHICKEN="1"
10776 fi
10777
10778
10779
10780 SKIP_CSHARP=
10781 if test -z "$CSHARPCOMPILER" ; then
10782     SKIP_CSHARP="1"
10783 else
10784     if test "cscc" = "$CSHARPCOMPILER" && test -z "$CSHARPCILINTERPRETER" ; then
10785       SKIP_CSHARP="1"
10786     fi
10787 fi
10788
10789
10790 SKIP_MODULA3="1" # Always skipped!
10791
10792
10793 SKIP_LUA=
10794 # we need LUABIN & dynamic loading
10795 if test -z "$LUABIN" || test -z "$LUADYNAMICLOADLIB"; then
10796     SKIP_LUA="1"
10797 fi
10798
10799
10800 SKIP_ALLEGROCL=
10801 if test -z "$ALLEGROCLBIN" ; then
10802     SKIP_ALLEGROCL="1"
10803 fi
10804
10805
10806 SKIP_CLISP=
10807 if test -z "$CLISPBIN" ; then
10808     SKIP_CLISP="1"
10809 fi
10810
10811
10812 SKIP_R=
10813 if test -z "$RBIN" ; then
10814     SKIP_R="1"
10815 fi
10816
10817
10818 SKIP_CFFI=
10819 #if test -z "$CFFIBIN" ; then
10820     SKIP_CFFI="1"
10821 #fi
10822
10823
10824 SKIP_UFFI=
10825 #if test -z "$UFFIBIN" ; then
10826     SKIP_UFFI="1"
10827 #fi
10828
10829
10830 #----------------------------------------------------------------
10831 # Additional language dependencies
10832 #----------------------------------------------------------------
10833 SKIP_GCJ=
10834 if test -z "$GCJ" || test -z "$GCJH" ; then
10835   SKIP_GCJ="1"
10836 else
10837   if test "$GCC" != yes; then
10838     SKIP_GCJ="1"
10839   fi
10840 fi
10841
10842
10843
10844 #----------------------------------------------------------------
10845 # Miscellaneous
10846 #----------------------------------------------------------------
10847
10848
10849 # Root directory
10850 # Translate path for native Windows compilers for use with 'make check'
10851 ROOT_DIR=`pwd`
10852 case $host in
10853 *-*-cygwin* | *-*-mingw*)
10854   if (cygpath --mixed $ROOT_DIR) >/dev/null 2>/dev/null; then
10855     ROOT_DIR=`cygpath --mixed $ROOT_DIR`
10856   fi
10857   # Extra files generated by some Windows compilers
10858   EXTRA_CLEAN="*.stackdump *.exp *.lib *.pdb *.ilk"
10859   ;;
10860 esac
10861
10862
10863
10864
10865
10866 # Configure SWIG_LIB path
10867
10868
10869 # Check whether --with-swiglibdir was given.
10870 if test "${with_swiglibdir+set}" = set; then
10871   withval=$with_swiglibdir; swig_lib="$withval"
10872 else
10873   swig_lib="${datadir}/swig/${PACKAGE_VERSION}"
10874 fi
10875
10876
10877
10878   prefix_NONE=
10879   exec_prefix_NONE=
10880   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
10881   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
10882   eval ac_define_dir="\"$swig_lib\""
10883   eval ac_define_dir="\"$ac_define_dir\""
10884   SWIG_LIB="$ac_define_dir"
10885
10886
10887 cat >>confdefs.h <<_ACEOF
10888 #define SWIG_LIB "$ac_define_dir"
10889 _ACEOF
10890
10891   test "$prefix_NONE" && prefix=NONE
10892   test "$exec_prefix_NONE" && exec_prefix=NONE
10893
10894
10895 case $host in
10896         # Windows does not understand unix directories. Convert into a windows directory with drive letter.
10897         *-*-mingw*) SWIG_LIB_WIN_UNIX=`cmd //c echo $SWIG_LIB | sed -e "s/ *$//"`;; # This echo converts unix to mixed paths. Then zap unexpected trailing space.
10898         *-*-cygwin*) SWIG_LIB_WIN_UNIX=`cygpath --mixed "$SWIG_LIB"`;;
10899         *) SWIG_LIB_WIN_UNIX="";;
10900 esac
10901
10902 cat >>confdefs.h <<_ACEOF
10903 #define SWIG_LIB_WIN_UNIX "$SWIG_LIB_WIN_UNIX"
10904 _ACEOF
10905
10906
10907 ac_config_files="$ac_config_files Makefile swig.spec Source/Makefile Examples/Makefile Examples/guile/Makefile Examples/xml/Makefile Examples/GIFPlot/Makefile Examples/GIFPlot/Lib/Makefile Examples/test-suite/chicken/Makefile Examples/test-suite/csharp/Makefile Examples/test-suite/guile/Makefile Examples/test-suite/guilescm/Makefile Examples/test-suite/java/Makefile Examples/test-suite/mzscheme/Makefile Examples/test-suite/ocaml/Makefile Examples/test-suite/octave/Makefile Examples/test-suite/perl5/Makefile Examples/test-suite/php/Makefile Examples/test-suite/pike/Makefile Examples/test-suite/python/Makefile Examples/test-suite/ruby/Makefile Examples/test-suite/tcl/Makefile Examples/test-suite/lua/Makefile Examples/test-suite/allegrocl/Makefile Examples/test-suite/clisp/Makefile Examples/test-suite/cffi/Makefile Examples/test-suite/uffi/Makefile Examples/test-suite/r/Makefile Lib/ocaml/swigp4.ml"
10908
10909 ac_config_files="$ac_config_files preinst-swig"
10910
10911 ac_config_files="$ac_config_files CCache/ccache_swig_config.h"
10912
10913
10914 cat >confcache <<\_ACEOF
10915 # This file is a shell script that caches the results of configure
10916 # tests run on this system so they can be shared between configure
10917 # scripts and configure runs, see configure's option --config-cache.
10918 # It is not useful on other systems.  If it contains results you don't
10919 # want to keep, you may remove or edit it.
10920 #
10921 # config.status only pays attention to the cache file if you give it
10922 # the --recheck option to rerun configure.
10923 #
10924 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10925 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10926 # following values.
10927
10928 _ACEOF
10929
10930 # The following way of writing the cache mishandles newlines in values,
10931 # but we know of no workaround that is simple, portable, and efficient.
10932 # So, we kill variables containing newlines.
10933 # Ultrix sh set writes to stderr and can't be redirected directly,
10934 # and sets the high bit in the cache file unless we assign to the vars.
10935 (
10936   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10937     eval ac_val=\$$ac_var
10938     case $ac_val in #(
10939     *${as_nl}*)
10940       case $ac_var in #(
10941       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10942 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10943       esac
10944       case $ac_var in #(
10945       _ | IFS | as_nl) ;; #(
10946       *) $as_unset $ac_var ;;
10947       esac ;;
10948     esac
10949   done
10950
10951   (set) 2>&1 |
10952     case $as_nl`(ac_space=' '; set) 2>&1` in #(
10953     *${as_nl}ac_space=\ *)
10954       # `set' does not quote correctly, so add quotes (double-quote
10955       # substitution turns \\\\ into \\, and sed turns \\ into \).
10956       sed -n \
10957         "s/'/'\\\\''/g;
10958           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10959       ;; #(
10960     *)
10961       # `set' quotes correctly as required by POSIX, so do not add quotes.
10962       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10963       ;;
10964     esac |
10965     sort
10966 ) |
10967   sed '
10968      /^ac_cv_env_/b end
10969      t clear
10970      :clear
10971      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10972      t end
10973      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10974      :end' >>confcache
10975 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10976   if test -w "$cache_file"; then
10977     test "x$cache_file" != "x/dev/null" &&
10978       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10979 echo "$as_me: updating cache $cache_file" >&6;}
10980     cat confcache >$cache_file
10981   else
10982     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10983 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10984   fi
10985 fi
10986 rm -f confcache
10987
10988 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10989 # Let make expand exec_prefix.
10990 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10991
10992 DEFS=-DHAVE_CONFIG_H
10993
10994 ac_libobjs=
10995 ac_ltlibobjs=
10996 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10997   # 1. Remove the extension, and $U if already installed.
10998   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10999   ac_i=`echo "$ac_i" | sed "$ac_script"`
11000   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11001   #    will be set to the directory where LIBOBJS objects are built.
11002   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11003   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11004 done
11005 LIBOBJS=$ac_libobjs
11006
11007 LTLIBOBJS=$ac_ltlibobjs
11008
11009
11010 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11011   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11012 Usually this means the macro was only invoked conditionally." >&5
11013 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11014 Usually this means the macro was only invoked conditionally." >&2;}
11015    { (exit 1); exit 1; }; }
11016 fi
11017 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11018   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11019 Usually this means the macro was only invoked conditionally." >&5
11020 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11021 Usually this means the macro was only invoked conditionally." >&2;}
11022    { (exit 1); exit 1; }; }
11023 fi
11024 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
11025   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
11026 Usually this means the macro was only invoked conditionally." >&5
11027 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
11028 Usually this means the macro was only invoked conditionally." >&2;}
11029    { (exit 1); exit 1; }; }
11030 fi
11031
11032 : ${CONFIG_STATUS=./config.status}
11033 ac_clean_files_save=$ac_clean_files
11034 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11035 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11036 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11037 cat >$CONFIG_STATUS <<_ACEOF
11038 #! $SHELL
11039 # Generated by $as_me.
11040 # Run this file to recreate the current configuration.
11041 # Compiler output produced by configure, useful for debugging
11042 # configure, is in config.log if it exists.
11043
11044 debug=false
11045 ac_cs_recheck=false
11046 ac_cs_silent=false
11047 SHELL=\${CONFIG_SHELL-$SHELL}
11048 _ACEOF
11049
11050 cat >>$CONFIG_STATUS <<\_ACEOF
11051 ## --------------------- ##
11052 ## M4sh Initialization.  ##
11053 ## --------------------- ##
11054
11055 # Be more Bourne compatible
11056 DUALCASE=1; export DUALCASE # for MKS sh
11057 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11058   emulate sh
11059   NULLCMD=:
11060   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11061   # is contrary to our usage.  Disable this feature.
11062   alias -g '${1+"$@"}'='"$@"'
11063   setopt NO_GLOB_SUBST
11064 else
11065   case `(set -o) 2>/dev/null` in
11066   *posix*) set -o posix ;;
11067 esac
11068
11069 fi
11070
11071
11072
11073
11074 # PATH needs CR
11075 # Avoid depending upon Character Ranges.
11076 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11077 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11078 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11079 as_cr_digits='0123456789'
11080 as_cr_alnum=$as_cr_Letters$as_cr_digits
11081
11082 # The user is always right.
11083 if test "${PATH_SEPARATOR+set}" != set; then
11084   echo "#! /bin/sh" >conf$$.sh
11085   echo  "exit 0"   >>conf$$.sh
11086   chmod +x conf$$.sh
11087   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11088     PATH_SEPARATOR=';'
11089   else
11090     PATH_SEPARATOR=:
11091   fi
11092   rm -f conf$$.sh
11093 fi
11094
11095 # Support unset when possible.
11096 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11097   as_unset=unset
11098 else
11099   as_unset=false
11100 fi
11101
11102
11103 # IFS
11104 # We need space, tab and new line, in precisely that order.  Quoting is
11105 # there to prevent editors from complaining about space-tab.
11106 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11107 # splitting by setting IFS to empty value.)
11108 as_nl='
11109 '
11110 IFS=" ""        $as_nl"
11111
11112 # Find who we are.  Look in the path if we contain no directory separator.
11113 case $0 in
11114   *[\\/]* ) as_myself=$0 ;;
11115   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11116 for as_dir in $PATH
11117 do
11118   IFS=$as_save_IFS
11119   test -z "$as_dir" && as_dir=.
11120   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11121 done
11122 IFS=$as_save_IFS
11123
11124      ;;
11125 esac
11126 # We did not find ourselves, most probably we were run as `sh COMMAND'
11127 # in which case we are not to be found in the path.
11128 if test "x$as_myself" = x; then
11129   as_myself=$0
11130 fi
11131 if test ! -f "$as_myself"; then
11132   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11133   { (exit 1); exit 1; }
11134 fi
11135
11136 # Work around bugs in pre-3.0 UWIN ksh.
11137 for as_var in ENV MAIL MAILPATH
11138 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11139 done
11140 PS1='$ '
11141 PS2='> '
11142 PS4='+ '
11143
11144 # NLS nuisances.
11145 for as_var in \
11146   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11147   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11148   LC_TELEPHONE LC_TIME
11149 do
11150   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11151     eval $as_var=C; export $as_var
11152   else
11153     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11154   fi
11155 done
11156
11157 # Required to use basename.
11158 if expr a : '\(a\)' >/dev/null 2>&1 &&
11159    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11160   as_expr=expr
11161 else
11162   as_expr=false
11163 fi
11164
11165 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11166   as_basename=basename
11167 else
11168   as_basename=false
11169 fi
11170
11171
11172 # Name of the executable.
11173 as_me=`$as_basename -- "$0" ||
11174 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11175          X"$0" : 'X\(//\)$' \| \
11176          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11177 echo X/"$0" |
11178     sed '/^.*\/\([^/][^/]*\)\/*$/{
11179             s//\1/
11180             q
11181           }
11182           /^X\/\(\/\/\)$/{
11183             s//\1/
11184             q
11185           }
11186           /^X\/\(\/\).*/{
11187             s//\1/
11188             q
11189           }
11190           s/.*/./; q'`
11191
11192 # CDPATH.
11193 $as_unset CDPATH
11194
11195
11196
11197   as_lineno_1=$LINENO
11198   as_lineno_2=$LINENO
11199   test "x$as_lineno_1" != "x$as_lineno_2" &&
11200   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11201
11202   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11203   # uniformly replaced by the line number.  The first 'sed' inserts a
11204   # line-number line after each line using $LINENO; the second 'sed'
11205   # does the real work.  The second script uses 'N' to pair each
11206   # line-number line with the line containing $LINENO, and appends
11207   # trailing '-' during substitution so that $LINENO is not a special
11208   # case at line end.
11209   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11210   # scripts with optimization help from Paolo Bonzini.  Blame Lee
11211   # E. McMahon (1931-1989) for sed's syntax.  :-)
11212   sed -n '
11213     p
11214     /[$]LINENO/=
11215   ' <$as_myself |
11216     sed '
11217       s/[$]LINENO.*/&-/
11218       t lineno
11219       b
11220       :lineno
11221       N
11222       :loop
11223       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11224       t loop
11225       s/-\n.*//
11226     ' >$as_me.lineno &&
11227   chmod +x "$as_me.lineno" ||
11228     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11229    { (exit 1); exit 1; }; }
11230
11231   # Don't try to exec as it changes $[0], causing all sort of problems
11232   # (the dirname of $[0] is not the place where we might find the
11233   # original and so on.  Autoconf is especially sensitive to this).
11234   . "./$as_me.lineno"
11235   # Exit status is that of the last command.
11236   exit
11237 }
11238
11239
11240 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11241   as_dirname=dirname
11242 else
11243   as_dirname=false
11244 fi
11245
11246 ECHO_C= ECHO_N= ECHO_T=
11247 case `echo -n x` in
11248 -n*)
11249   case `echo 'x\c'` in
11250   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11251   *)   ECHO_C='\c';;
11252   esac;;
11253 *)
11254   ECHO_N='-n';;
11255 esac
11256
11257 if expr a : '\(a\)' >/dev/null 2>&1 &&
11258    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11259   as_expr=expr
11260 else
11261   as_expr=false
11262 fi
11263
11264 rm -f conf$$ conf$$.exe conf$$.file
11265 if test -d conf$$.dir; then
11266   rm -f conf$$.dir/conf$$.file
11267 else
11268   rm -f conf$$.dir
11269   mkdir conf$$.dir
11270 fi
11271 echo >conf$$.file
11272 if ln -s conf$$.file conf$$ 2>/dev/null; then
11273   as_ln_s='ln -s'
11274   # ... but there are two gotchas:
11275   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11276   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11277   # In both cases, we have to default to `cp -p'.
11278   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11279     as_ln_s='cp -p'
11280 elif ln conf$$.file conf$$ 2>/dev/null; then
11281   as_ln_s=ln
11282 else
11283   as_ln_s='cp -p'
11284 fi
11285 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11286 rmdir conf$$.dir 2>/dev/null
11287
11288 if mkdir -p . 2>/dev/null; then
11289   as_mkdir_p=:
11290 else
11291   test -d ./-p && rmdir ./-p
11292   as_mkdir_p=false
11293 fi
11294
11295 if test -x / >/dev/null 2>&1; then
11296   as_test_x='test -x'
11297 else
11298   if ls -dL / >/dev/null 2>&1; then
11299     as_ls_L_option=L
11300   else
11301     as_ls_L_option=
11302   fi
11303   as_test_x='
11304     eval sh -c '\''
11305       if test -d "$1"; then
11306         test -d "$1/.";
11307       else
11308         case $1 in
11309         -*)set "./$1";;
11310         esac;
11311         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11312         ???[sx]*):;;*)false;;esac;fi
11313     '\'' sh
11314   '
11315 fi
11316 as_executable_p=$as_test_x
11317
11318 # Sed expression to map a string onto a valid CPP name.
11319 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11320
11321 # Sed expression to map a string onto a valid variable name.
11322 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11323
11324
11325 exec 6>&1
11326
11327 # Save the log message, to keep $[0] and so on meaningful, and to
11328 # report actual input values of CONFIG_FILES etc. instead of their
11329 # values after options handling.
11330 ac_log="
11331 This file was extended by swig $as_me 1.3.40, which was
11332 generated by GNU Autoconf 2.61.  Invocation command line was
11333
11334   CONFIG_FILES    = $CONFIG_FILES
11335   CONFIG_HEADERS  = $CONFIG_HEADERS
11336   CONFIG_LINKS    = $CONFIG_LINKS
11337   CONFIG_COMMANDS = $CONFIG_COMMANDS
11338   $ $0 $@
11339
11340 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11341 "
11342
11343 _ACEOF
11344
11345 cat >>$CONFIG_STATUS <<_ACEOF
11346 # Files that config.status was made for.
11347 config_files="$ac_config_files"
11348 config_headers="$ac_config_headers"
11349 config_commands="$ac_config_commands"
11350
11351 _ACEOF
11352
11353 cat >>$CONFIG_STATUS <<\_ACEOF
11354 ac_cs_usage="\
11355 \`$as_me' instantiates files from templates according to the
11356 current configuration.
11357
11358 Usage: $0 [OPTIONS] [FILE]...
11359
11360   -h, --help       print this help, then exit
11361   -V, --version    print version number and configuration settings, then exit
11362   -q, --quiet      do not print progress messages
11363   -d, --debug      don't remove temporary files
11364       --recheck    update $as_me by reconfiguring in the same conditions
11365   --file=FILE[:TEMPLATE]
11366                    instantiate the configuration file FILE
11367   --header=FILE[:TEMPLATE]
11368                    instantiate the configuration header FILE
11369
11370 Configuration files:
11371 $config_files
11372
11373 Configuration headers:
11374 $config_headers
11375
11376 Configuration commands:
11377 $config_commands
11378
11379 Report bugs to <bug-autoconf@gnu.org>."
11380
11381 _ACEOF
11382 cat >>$CONFIG_STATUS <<_ACEOF
11383 ac_cs_version="\\
11384 swig config.status 1.3.40
11385 configured by $0, generated by GNU Autoconf 2.61,
11386   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11387
11388 Copyright (C) 2006 Free Software Foundation, Inc.
11389 This config.status script is free software; the Free Software Foundation
11390 gives unlimited permission to copy, distribute and modify it."
11391
11392 ac_pwd='$ac_pwd'
11393 srcdir='$srcdir'
11394 INSTALL='$INSTALL'
11395 MKDIR_P='$MKDIR_P'
11396 _ACEOF
11397
11398 cat >>$CONFIG_STATUS <<\_ACEOF
11399 # If no file are specified by the user, then we need to provide default
11400 # value.  By we need to know if files were specified by the user.
11401 ac_need_defaults=:
11402 while test $# != 0
11403 do
11404   case $1 in
11405   --*=*)
11406     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11407     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11408     ac_shift=:
11409     ;;
11410   *)
11411     ac_option=$1
11412     ac_optarg=$2
11413     ac_shift=shift
11414     ;;
11415   esac
11416
11417   case $ac_option in
11418   # Handling of the options.
11419   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11420     ac_cs_recheck=: ;;
11421   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11422     echo "$ac_cs_version"; exit ;;
11423   --debug | --debu | --deb | --de | --d | -d )
11424     debug=: ;;
11425   --file | --fil | --fi | --f )
11426     $ac_shift
11427     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11428     ac_need_defaults=false;;
11429   --header | --heade | --head | --hea )
11430     $ac_shift
11431     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11432     ac_need_defaults=false;;
11433   --he | --h)
11434     # Conflict between --help and --header
11435     { echo "$as_me: error: ambiguous option: $1
11436 Try \`$0 --help' for more information." >&2
11437    { (exit 1); exit 1; }; };;
11438   --help | --hel | -h )
11439     echo "$ac_cs_usage"; exit ;;
11440   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11441   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11442     ac_cs_silent=: ;;
11443
11444   # This is an error.
11445   -*) { echo "$as_me: error: unrecognized option: $1
11446 Try \`$0 --help' for more information." >&2
11447    { (exit 1); exit 1; }; } ;;
11448
11449   *) ac_config_targets="$ac_config_targets $1"
11450      ac_need_defaults=false ;;
11451
11452   esac
11453   shift
11454 done
11455
11456 ac_configure_extra_args=
11457
11458 if $ac_cs_silent; then
11459   exec 6>/dev/null
11460   ac_configure_extra_args="$ac_configure_extra_args --silent"
11461 fi
11462
11463 _ACEOF
11464 cat >>$CONFIG_STATUS <<_ACEOF
11465 if \$ac_cs_recheck; then
11466   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11467   CONFIG_SHELL=$SHELL
11468   export CONFIG_SHELL
11469   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11470 fi
11471
11472 _ACEOF
11473 cat >>$CONFIG_STATUS <<\_ACEOF
11474 exec 5>>config.log
11475 {
11476   echo
11477   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11478 ## Running $as_me. ##
11479 _ASBOX
11480   echo "$ac_log"
11481 } >&5
11482
11483 _ACEOF
11484 cat >>$CONFIG_STATUS <<_ACEOF
11485 #
11486 # INIT-COMMANDS
11487 #
11488 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11489
11490 _ACEOF
11491
11492 cat >>$CONFIG_STATUS <<\_ACEOF
11493
11494 # Handling of arguments.
11495 for ac_config_target in $ac_config_targets
11496 do
11497   case $ac_config_target in
11498     "Source/Include/swigconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS Source/Include/swigconfig.h" ;;
11499     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11500     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11501     "swig.spec") CONFIG_FILES="$CONFIG_FILES swig.spec" ;;
11502     "Source/Makefile") CONFIG_FILES="$CONFIG_FILES Source/Makefile" ;;
11503     "Examples/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/Makefile" ;;
11504     "Examples/guile/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/guile/Makefile" ;;
11505     "Examples/xml/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/xml/Makefile" ;;
11506     "Examples/GIFPlot/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/GIFPlot/Makefile" ;;
11507     "Examples/GIFPlot/Lib/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/GIFPlot/Lib/Makefile" ;;
11508     "Examples/test-suite/chicken/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/chicken/Makefile" ;;
11509     "Examples/test-suite/csharp/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/csharp/Makefile" ;;
11510     "Examples/test-suite/guile/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/guile/Makefile" ;;
11511     "Examples/test-suite/guilescm/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/guilescm/Makefile" ;;
11512     "Examples/test-suite/java/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/java/Makefile" ;;
11513     "Examples/test-suite/mzscheme/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/mzscheme/Makefile" ;;
11514     "Examples/test-suite/ocaml/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/ocaml/Makefile" ;;
11515     "Examples/test-suite/octave/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/octave/Makefile" ;;
11516     "Examples/test-suite/perl5/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/perl5/Makefile" ;;
11517     "Examples/test-suite/php/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/php/Makefile" ;;
11518     "Examples/test-suite/pike/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/pike/Makefile" ;;
11519     "Examples/test-suite/python/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/python/Makefile" ;;
11520     "Examples/test-suite/ruby/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/ruby/Makefile" ;;
11521     "Examples/test-suite/tcl/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/tcl/Makefile" ;;
11522     "Examples/test-suite/lua/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/lua/Makefile" ;;
11523     "Examples/test-suite/allegrocl/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/allegrocl/Makefile" ;;
11524     "Examples/test-suite/clisp/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/clisp/Makefile" ;;
11525     "Examples/test-suite/cffi/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/cffi/Makefile" ;;
11526     "Examples/test-suite/uffi/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/uffi/Makefile" ;;
11527     "Examples/test-suite/r/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/r/Makefile" ;;
11528     "Lib/ocaml/swigp4.ml") CONFIG_FILES="$CONFIG_FILES Lib/ocaml/swigp4.ml" ;;
11529     "preinst-swig") CONFIG_FILES="$CONFIG_FILES preinst-swig" ;;
11530     "CCache/ccache_swig_config.h") CONFIG_FILES="$CONFIG_FILES CCache/ccache_swig_config.h" ;;
11531
11532   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11533 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11534    { (exit 1); exit 1; }; };;
11535   esac
11536 done
11537
11538
11539 # If the user did not use the arguments to specify the items to instantiate,
11540 # then the envvar interface is used.  Set only those that are not.
11541 # We use the long form for the default assignment because of an extremely
11542 # bizarre bug on SunOS 4.1.3.
11543 if $ac_need_defaults; then
11544   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11545   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11546   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11547 fi
11548
11549 # Have a temporary directory for convenience.  Make it in the build tree
11550 # simply because there is no reason against having it here, and in addition,
11551 # creating and moving files from /tmp can sometimes cause problems.
11552 # Hook for its removal unless debugging.
11553 # Note that there is a small window in which the directory will not be cleaned:
11554 # after its creation but before its name has been assigned to `$tmp'.
11555 $debug ||
11556 {
11557   tmp=
11558   trap 'exit_status=$?
11559   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11560 ' 0
11561   trap '{ (exit 1); exit 1; }' 1 2 13 15
11562 }
11563 # Create a (secure) tmp directory for tmp files.
11564
11565 {
11566   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11567   test -n "$tmp" && test -d "$tmp"
11568 }  ||
11569 {
11570   tmp=./conf$$-$RANDOM
11571   (umask 077 && mkdir "$tmp")
11572 } ||
11573 {
11574    echo "$me: cannot create a temporary directory in ." >&2
11575    { (exit 1); exit 1; }
11576 }
11577
11578 #
11579 # Set up the sed scripts for CONFIG_FILES section.
11580 #
11581
11582 # No need to generate the scripts if there are no CONFIG_FILES.
11583 # This happens for instance when ./config.status config.h
11584 if test -n "$CONFIG_FILES"; then
11585
11586 _ACEOF
11587
11588
11589
11590 ac_delim='%!_!# '
11591 for ac_last_try in false false false false false :; do
11592   cat >conf$$subs.sed <<_ACEOF
11593 SHELL!$SHELL$ac_delim
11594 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11595 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11596 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11597 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11598 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11599 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11600 exec_prefix!$exec_prefix$ac_delim
11601 prefix!$prefix$ac_delim
11602 program_transform_name!$program_transform_name$ac_delim
11603 bindir!$bindir$ac_delim
11604 sbindir!$sbindir$ac_delim
11605 libexecdir!$libexecdir$ac_delim
11606 datarootdir!$datarootdir$ac_delim
11607 datadir!$datadir$ac_delim
11608 sysconfdir!$sysconfdir$ac_delim
11609 sharedstatedir!$sharedstatedir$ac_delim
11610 localstatedir!$localstatedir$ac_delim
11611 includedir!$includedir$ac_delim
11612 oldincludedir!$oldincludedir$ac_delim
11613 docdir!$docdir$ac_delim
11614 infodir!$infodir$ac_delim
11615 htmldir!$htmldir$ac_delim
11616 dvidir!$dvidir$ac_delim
11617 pdfdir!$pdfdir$ac_delim
11618 psdir!$psdir$ac_delim
11619 libdir!$libdir$ac_delim
11620 localedir!$localedir$ac_delim
11621 mandir!$mandir$ac_delim
11622 DEFS!$DEFS$ac_delim
11623 ECHO_C!$ECHO_C$ac_delim
11624 ECHO_N!$ECHO_N$ac_delim
11625 ECHO_T!$ECHO_T$ac_delim
11626 LIBS!$LIBS$ac_delim
11627 build_alias!$build_alias$ac_delim
11628 host_alias!$host_alias$ac_delim
11629 target_alias!$target_alias$ac_delim
11630 build!$build$ac_delim
11631 build_cpu!$build_cpu$ac_delim
11632 build_vendor!$build_vendor$ac_delim
11633 build_os!$build_os$ac_delim
11634 host!$host$ac_delim
11635 host_cpu!$host_cpu$ac_delim
11636 host_vendor!$host_vendor$ac_delim
11637 host_os!$host_os$ac_delim
11638 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
11639 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
11640 INSTALL_DATA!$INSTALL_DATA$ac_delim
11641 am__isrc!$am__isrc$ac_delim
11642 CYGPATH_W!$CYGPATH_W$ac_delim
11643 PACKAGE!$PACKAGE$ac_delim
11644 VERSION!$VERSION$ac_delim
11645 ACLOCAL!$ACLOCAL$ac_delim
11646 AUTOCONF!$AUTOCONF$ac_delim
11647 AUTOMAKE!$AUTOMAKE$ac_delim
11648 AUTOHEADER!$AUTOHEADER$ac_delim
11649 MAKEINFO!$MAKEINFO$ac_delim
11650 install_sh!$install_sh$ac_delim
11651 STRIP!$STRIP$ac_delim
11652 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
11653 mkdir_p!$mkdir_p$ac_delim
11654 AWK!$AWK$ac_delim
11655 SET_MAKE!$SET_MAKE$ac_delim
11656 am__leading_dot!$am__leading_dot$ac_delim
11657 AMTAR!$AMTAR$ac_delim
11658 am__tar!$am__tar$ac_delim
11659 am__untar!$am__untar$ac_delim
11660 CC!$CC$ac_delim
11661 CFLAGS!$CFLAGS$ac_delim
11662 LDFLAGS!$LDFLAGS$ac_delim
11663 CPPFLAGS!$CPPFLAGS$ac_delim
11664 ac_ct_CC!$ac_ct_CC$ac_delim
11665 EXEEXT!$EXEEXT$ac_delim
11666 OBJEXT!$OBJEXT$ac_delim
11667 DEPDIR!$DEPDIR$ac_delim
11668 am__include!$am__include$ac_delim
11669 am__quote!$am__quote$ac_delim
11670 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
11671 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
11672 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
11673 CCDEPMODE!$CCDEPMODE$ac_delim
11674 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
11675 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
11676 CXX!$CXX$ac_delim
11677 CXXFLAGS!$CXXFLAGS$ac_delim
11678 ac_ct_CXX!$ac_ct_CXX$ac_delim
11679 CXXDEPMODE!$CXXDEPMODE$ac_delim
11680 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
11681 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
11682 CPP!$CPP$ac_delim
11683 GREP!$GREP$ac_delim
11684 EGREP!$EGREP$ac_delim
11685 subdirs!$subdirs$ac_delim
11686 ENABLE_CCACHE!$ENABLE_CCACHE$ac_delim
11687 YACC!$YACC$ac_delim
11688 YFLAGS!$YFLAGS$ac_delim
11689 RANLIB!$RANLIB$ac_delim
11690 _ACEOF
11691
11692   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
11693     break
11694   elif $ac_last_try; then
11695     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11696 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11697    { (exit 1); exit 1; }; }
11698   else
11699     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11700   fi
11701 done
11702
11703 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11704 if test -n "$ac_eof"; then
11705   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11706   ac_eof=`expr $ac_eof + 1`
11707 fi
11708
11709 cat >>$CONFIG_STATUS <<_ACEOF
11710 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11711 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11712 _ACEOF
11713 sed '
11714 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11715 s/^/s,@/; s/!/@,|#_!!_#|/
11716 :n
11717 t n
11718 s/'"$ac_delim"'$/,g/; t
11719 s/$/\\/; p
11720 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11721 ' >>$CONFIG_STATUS <conf$$subs.sed
11722 rm -f conf$$subs.sed
11723 cat >>$CONFIG_STATUS <<_ACEOF
11724 CEOF$ac_eof
11725 _ACEOF
11726
11727
11728 ac_delim='%!_!# '
11729 for ac_last_try in false false false false false :; do
11730   cat >conf$$subs.sed <<_ACEOF
11731 AR!$AR$ac_delim
11732 YODL2MAN!$YODL2MAN$ac_delim
11733 YODL2HTML!$YODL2HTML$ac_delim
11734 SO!$SO$ac_delim
11735 LDSHARED!$LDSHARED$ac_delim
11736 CCSHARED!$CCSHARED$ac_delim
11737 CXXSHARED!$CXXSHARED$ac_delim
11738 TRYLINKINGWITHCXX!$TRYLINKINGWITHCXX$ac_delim
11739 LINKFORSHARED!$LINKFORSHARED$ac_delim
11740 RPATH!$RPATH$ac_delim
11741 PYTHON_SO!$PYTHON_SO$ac_delim
11742 TCL_SO!$TCL_SO$ac_delim
11743 GUILE_SO!$GUILE_SO$ac_delim
11744 PHP_SO!$PHP_SO$ac_delim
11745 MZSCHEME_SO!$MZSCHEME_SO$ac_delim
11746 LUA_SO!$LUA_SO$ac_delim
11747 PLATFLAGS!$PLATFLAGS$ac_delim
11748 SWIGLIBS!$SWIGLIBS$ac_delim
11749 SWILL!$SWILL$ac_delim
11750 LIBM!$LIBM$ac_delim
11751 LIBCRYPT!$LIBCRYPT$ac_delim
11752 LIBC!$LIBC$ac_delim
11753 XMKMF!$XMKMF$ac_delim
11754 XINCLUDES!$XINCLUDES$ac_delim
11755 XLIBSW!$XLIBSW$ac_delim
11756 TCLINCLUDE!$TCLINCLUDE$ac_delim
11757 TCLLIB!$TCLLIB$ac_delim
11758 TCLDYNAMICLINKING!$TCLDYNAMICLINKING$ac_delim
11759 TCLLDSHARED!$TCLLDSHARED$ac_delim
11760 TCLCXXSHARED!$TCLCXXSHARED$ac_delim
11761 PYTHON!$PYTHON$ac_delim
11762 PYINCLUDE!$PYINCLUDE$ac_delim
11763 PYLIB!$PYLIB$ac_delim
11764 PYLINK!$PYLINK$ac_delim
11765 PYTHONDYNAMICLINKING!$PYTHONDYNAMICLINKING$ac_delim
11766 PYTHON3!$PYTHON3$ac_delim
11767 PY3CONFIG!$PY3CONFIG$ac_delim
11768 PY3INCLUDE!$PY3INCLUDE$ac_delim
11769 PY3LIB!$PY3LIB$ac_delim
11770 PY3LINK!$PY3LINK$ac_delim
11771 PYTHON3DYNAMICLINKING!$PYTHON3DYNAMICLINKING$ac_delim
11772 PERL!$PERL$ac_delim
11773 PERL5EXT!$PERL5EXT$ac_delim
11774 PERL5DYNAMICLINKING!$PERL5DYNAMICLINKING$ac_delim
11775 PERL5LIB!$PERL5LIB$ac_delim
11776 PERL5CCFLAGS!$PERL5CCFLAGS$ac_delim
11777 OCTAVE!$OCTAVE$ac_delim
11778 OCTAVEEXT!$OCTAVEEXT$ac_delim
11779 OCTAVE_SO!$OCTAVE_SO$ac_delim
11780 OCTAVEDYNAMICLINKING!$OCTAVEDYNAMICLINKING$ac_delim
11781 OCTAVELIB!$OCTAVELIB$ac_delim
11782 OCTAVECCFLAGS!$OCTAVECCFLAGS$ac_delim
11783 JAVA!$JAVA$ac_delim
11784 JAVAC!$JAVAC$ac_delim
11785 JAVAINC!$JAVAINC$ac_delim
11786 JAVADYNAMICLINKING!$JAVADYNAMICLINKING$ac_delim
11787 JAVALIBRARYPREFIX!$JAVALIBRARYPREFIX$ac_delim
11788 JAVASO!$JAVASO$ac_delim
11789 JAVALDSHARED!$JAVALDSHARED$ac_delim
11790 JAVACXXSHARED!$JAVACXXSHARED$ac_delim
11791 JAVACFLAGS!$JAVACFLAGS$ac_delim
11792 GCJ!$GCJ$ac_delim
11793 GCJH!$GCJH$ac_delim
11794 GUILE_CONFIG!$GUILE_CONFIG$ac_delim
11795 GUILE!$GUILE$ac_delim
11796 GUILEINCLUDE!$GUILEINCLUDE$ac_delim
11797 GUILELIB!$GUILELIB$ac_delim
11798 GUILELINK!$GUILELINK$ac_delim
11799 GUILE_GH_INTERFACE!$GUILE_GH_INTERFACE$ac_delim
11800 GUILE_SCM_INTERFACE!$GUILE_SCM_INTERFACE$ac_delim
11801 MZSCHEME!$MZSCHEME$ac_delim
11802 MZC!$MZC$ac_delim
11803 MZDYNOBJ!$MZDYNOBJ$ac_delim
11804 RUBY!$RUBY$ac_delim
11805 RUBYINCLUDE!$RUBYINCLUDE$ac_delim
11806 RUBYLIB!$RUBYLIB$ac_delim
11807 RUBYLINK!$RUBYLINK$ac_delim
11808 RUBYCCDLFLAGS!$RUBYCCDLFLAGS$ac_delim
11809 RUBYDYNAMICLINKING!$RUBYDYNAMICLINKING$ac_delim
11810 PHP!$PHP$ac_delim
11811 PHPINC!$PHPINC$ac_delim
11812 OCAMLDLGEN!$OCAMLDLGEN$ac_delim
11813 OCAMLFIND!$OCAMLFIND$ac_delim
11814 OCAMLC!$OCAMLC$ac_delim
11815 OCAMLBIN!$OCAMLBIN$ac_delim
11816 OCAMLMKTOP!$OCAMLMKTOP$ac_delim
11817 OCAMLLOC!$OCAMLLOC$ac_delim
11818 OCAMLVER!$OCAMLVER$ac_delim
11819 OCAMLINC!$OCAMLINC$ac_delim
11820 PIKE!$PIKE$ac_delim
11821 PIKECONFIG!$PIKECONFIG$ac_delim
11822 PIKEINCLUDE!$PIKEINCLUDE$ac_delim
11823 PIKECCDLFLAGS!$PIKECCDLFLAGS$ac_delim
11824 PIKEDYNAMICLINKING!$PIKEDYNAMICLINKING$ac_delim
11825 CHICKEN!$CHICKEN$ac_delim
11826 CHICKEN_CSC!$CHICKEN_CSC$ac_delim
11827 CHICKEN_CSI!$CHICKEN_CSI$ac_delim
11828 _ACEOF
11829
11830   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
11831     break
11832   elif $ac_last_try; then
11833     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11834 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11835    { (exit 1); exit 1; }; }
11836   else
11837     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11838   fi
11839 done
11840
11841 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11842 if test -n "$ac_eof"; then
11843   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11844   ac_eof=`expr $ac_eof + 1`
11845 fi
11846
11847 cat >>$CONFIG_STATUS <<_ACEOF
11848 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
11849 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11850 _ACEOF
11851 sed '
11852 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11853 s/^/s,@/; s/!/@,|#_!!_#|/
11854 :n
11855 t n
11856 s/'"$ac_delim"'$/,g/; t
11857 s/$/\\/; p
11858 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11859 ' >>$CONFIG_STATUS <conf$$subs.sed
11860 rm -f conf$$subs.sed
11861 cat >>$CONFIG_STATUS <<_ACEOF
11862 CEOF$ac_eof
11863 _ACEOF
11864
11865
11866 ac_delim='%!_!# '
11867 for ac_last_try in false false false false false :; do
11868   cat >conf$$subs.sed <<_ACEOF
11869 CHICKENOPTS!$CHICKENOPTS$ac_delim
11870 CHICKENLIB!$CHICKENLIB$ac_delim
11871 CHICKENSHAREDLIB!$CHICKENSHAREDLIB$ac_delim
11872 CSHARPCOMPILER!$CSHARPCOMPILER$ac_delim
11873 CSHARPCILINTERPRETER!$CSHARPCILINTERPRETER$ac_delim
11874 CSHARPPATHSEPARATOR!$CSHARPPATHSEPARATOR$ac_delim
11875 CSHARPCYGPATH_W!$CSHARPCYGPATH_W$ac_delim
11876 CSHARPDYNAMICLINKING!$CSHARPDYNAMICLINKING$ac_delim
11877 CSHARPLIBRARYPREFIX!$CSHARPLIBRARYPREFIX$ac_delim
11878 CSHARPCFLAGS!$CSHARPCFLAGS$ac_delim
11879 CSHARPSO!$CSHARPSO$ac_delim
11880 LUABIN!$LUABIN$ac_delim
11881 LUADYNAMICLINKING!$LUADYNAMICLINKING$ac_delim
11882 LUAFLAGS!$LUAFLAGS$ac_delim
11883 LUALINK!$LUALINK$ac_delim
11884 ALLEGROCLBIN!$ALLEGROCLBIN$ac_delim
11885 CLISPBIN!$CLISPBIN$ac_delim
11886 RBIN!$RBIN$ac_delim
11887 SKIP_TCL!$SKIP_TCL$ac_delim
11888 SKIP_PERL5!$SKIP_PERL5$ac_delim
11889 SKIP_OCTAVE!$SKIP_OCTAVE$ac_delim
11890 SKIP_PYTHON!$SKIP_PYTHON$ac_delim
11891 SKIP_PYTHON3!$SKIP_PYTHON3$ac_delim
11892 SKIP_JAVA!$SKIP_JAVA$ac_delim
11893 SKIP_GUILE!$SKIP_GUILE$ac_delim
11894 SKIP_GUILESCM!$SKIP_GUILESCM$ac_delim
11895 SKIP_MZSCHEME!$SKIP_MZSCHEME$ac_delim
11896 SKIP_RUBY!$SKIP_RUBY$ac_delim
11897 SKIP_PHP!$SKIP_PHP$ac_delim
11898 SKIP_OCAML!$SKIP_OCAML$ac_delim
11899 SKIP_PIKE!$SKIP_PIKE$ac_delim
11900 SKIP_CHICKEN!$SKIP_CHICKEN$ac_delim
11901 SKIP_CSHARP!$SKIP_CSHARP$ac_delim
11902 SKIP_MODULA3!$SKIP_MODULA3$ac_delim
11903 SKIP_LUA!$SKIP_LUA$ac_delim
11904 SKIP_ALLEGROCL!$SKIP_ALLEGROCL$ac_delim
11905 SKIP_CLISP!$SKIP_CLISP$ac_delim
11906 SKIP_R!$SKIP_R$ac_delim
11907 SKIP_CFFI!$SKIP_CFFI$ac_delim
11908 SKIP_UFFI!$SKIP_UFFI$ac_delim
11909 SKIP_GCJ!$SKIP_GCJ$ac_delim
11910 ROOT_DIR!$ROOT_DIR$ac_delim
11911 EXTRA_CLEAN!$EXTRA_CLEAN$ac_delim
11912 ac_aux_dir!$ac_aux_dir$ac_delim
11913 swig_lib!$swig_lib$ac_delim
11914 SWIG_LIB!$SWIG_LIB$ac_delim
11915 LIBOBJS!$LIBOBJS$ac_delim
11916 LTLIBOBJS!$LTLIBOBJS$ac_delim
11917 _ACEOF
11918
11919   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 48; then
11920     break
11921   elif $ac_last_try; then
11922     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11923 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11924    { (exit 1); exit 1; }; }
11925   else
11926     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11927   fi
11928 done
11929
11930 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11931 if test -n "$ac_eof"; then
11932   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11933   ac_eof=`expr $ac_eof + 1`
11934 fi
11935
11936 cat >>$CONFIG_STATUS <<_ACEOF
11937 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
11938 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11939 _ACEOF
11940 sed '
11941 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11942 s/^/s,@/; s/!/@,|#_!!_#|/
11943 :n
11944 t n
11945 s/'"$ac_delim"'$/,g/; t
11946 s/$/\\/; p
11947 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11948 ' >>$CONFIG_STATUS <conf$$subs.sed
11949 rm -f conf$$subs.sed
11950 cat >>$CONFIG_STATUS <<_ACEOF
11951 :end
11952 s/|#_!!_#|//g
11953 CEOF$ac_eof
11954 _ACEOF
11955
11956
11957 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11958 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11959 # trailing colons and then remove the whole line if VPATH becomes empty
11960 # (actually we leave an empty line to preserve line numbers).
11961 if test "x$srcdir" = x.; then
11962   ac_vpsub='/^[  ]*VPATH[        ]*=/{
11963 s/:*\$(srcdir):*/:/
11964 s/:*\${srcdir}:*/:/
11965 s/:*@srcdir@:*/:/
11966 s/^\([^=]*=[     ]*\):*/\1/
11967 s/:*$//
11968 s/^[^=]*=[       ]*$//
11969 }'
11970 fi
11971
11972 cat >>$CONFIG_STATUS <<\_ACEOF
11973 fi # test -n "$CONFIG_FILES"
11974
11975
11976 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
11977 do
11978   case $ac_tag in
11979   :[FHLC]) ac_mode=$ac_tag; continue;;
11980   esac
11981   case $ac_mode$ac_tag in
11982   :[FHL]*:*);;
11983   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11984 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11985    { (exit 1); exit 1; }; };;
11986   :[FH]-) ac_tag=-:-;;
11987   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11988   esac
11989   ac_save_IFS=$IFS
11990   IFS=:
11991   set x $ac_tag
11992   IFS=$ac_save_IFS
11993   shift
11994   ac_file=$1
11995   shift
11996
11997   case $ac_mode in
11998   :L) ac_source=$1;;
11999   :[FH])
12000     ac_file_inputs=
12001     for ac_f
12002     do
12003       case $ac_f in
12004       -) ac_f="$tmp/stdin";;
12005       *) # Look for the file first in the build tree, then in the source tree
12006          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12007          # because $ac_f cannot contain `:'.
12008          test -f "$ac_f" ||
12009            case $ac_f in
12010            [\\/$]*) false;;
12011            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12012            esac ||
12013            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12014 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12015    { (exit 1); exit 1; }; };;
12016       esac
12017       ac_file_inputs="$ac_file_inputs $ac_f"
12018     done
12019
12020     # Let's still pretend it is `configure' which instantiates (i.e., don't
12021     # use $as_me), people would be surprised to read:
12022     #    /* config.h.  Generated by config.status.  */
12023     configure_input="Generated from "`IFS=:
12024           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12025     if test x"$ac_file" != x-; then
12026       configure_input="$ac_file.  $configure_input"
12027       { echo "$as_me:$LINENO: creating $ac_file" >&5
12028 echo "$as_me: creating $ac_file" >&6;}
12029     fi
12030
12031     case $ac_tag in
12032     *:-:* | *:-) cat >"$tmp/stdin";;
12033     esac
12034     ;;
12035   esac
12036
12037   ac_dir=`$as_dirname -- "$ac_file" ||
12038 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12039          X"$ac_file" : 'X\(//\)[^/]' \| \
12040          X"$ac_file" : 'X\(//\)$' \| \
12041          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12042 echo X"$ac_file" |
12043     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12044             s//\1/
12045             q
12046           }
12047           /^X\(\/\/\)[^/].*/{
12048             s//\1/
12049             q
12050           }
12051           /^X\(\/\/\)$/{
12052             s//\1/
12053             q
12054           }
12055           /^X\(\/\).*/{
12056             s//\1/
12057             q
12058           }
12059           s/.*/./; q'`
12060   { as_dir="$ac_dir"
12061   case $as_dir in #(
12062   -*) as_dir=./$as_dir;;
12063   esac
12064   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12065     as_dirs=
12066     while :; do
12067       case $as_dir in #(
12068       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12069       *) as_qdir=$as_dir;;
12070       esac
12071       as_dirs="'$as_qdir' $as_dirs"
12072       as_dir=`$as_dirname -- "$as_dir" ||
12073 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12074          X"$as_dir" : 'X\(//\)[^/]' \| \
12075          X"$as_dir" : 'X\(//\)$' \| \
12076          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12077 echo X"$as_dir" |
12078     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12079             s//\1/
12080             q
12081           }
12082           /^X\(\/\/\)[^/].*/{
12083             s//\1/
12084             q
12085           }
12086           /^X\(\/\/\)$/{
12087             s//\1/
12088             q
12089           }
12090           /^X\(\/\).*/{
12091             s//\1/
12092             q
12093           }
12094           s/.*/./; q'`
12095       test -d "$as_dir" && break
12096     done
12097     test -z "$as_dirs" || eval "mkdir $as_dirs"
12098   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12099 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12100    { (exit 1); exit 1; }; }; }
12101   ac_builddir=.
12102
12103 case "$ac_dir" in
12104 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12105 *)
12106   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12107   # A ".." for each directory in $ac_dir_suffix.
12108   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12109   case $ac_top_builddir_sub in
12110   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12111   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12112   esac ;;
12113 esac
12114 ac_abs_top_builddir=$ac_pwd
12115 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12116 # for backward compatibility:
12117 ac_top_builddir=$ac_top_build_prefix
12118
12119 case $srcdir in
12120   .)  # We are building in place.
12121     ac_srcdir=.
12122     ac_top_srcdir=$ac_top_builddir_sub
12123     ac_abs_top_srcdir=$ac_pwd ;;
12124   [\\/]* | ?:[\\/]* )  # Absolute name.
12125     ac_srcdir=$srcdir$ac_dir_suffix;
12126     ac_top_srcdir=$srcdir
12127     ac_abs_top_srcdir=$srcdir ;;
12128   *) # Relative name.
12129     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12130     ac_top_srcdir=$ac_top_build_prefix$srcdir
12131     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12132 esac
12133 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12134
12135
12136   case $ac_mode in
12137   :F)
12138   #
12139   # CONFIG_FILE
12140   #
12141
12142   case $INSTALL in
12143   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12144   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12145   esac
12146   ac_MKDIR_P=$MKDIR_P
12147   case $MKDIR_P in
12148   [\\/$]* | ?:[\\/]* ) ;;
12149   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12150   esac
12151 _ACEOF
12152
12153 cat >>$CONFIG_STATUS <<\_ACEOF
12154 # If the template does not know about datarootdir, expand it.
12155 # FIXME: This hack should be removed a few years after 2.60.
12156 ac_datarootdir_hack=; ac_datarootdir_seen=
12157
12158 case `sed -n '/datarootdir/ {
12159   p
12160   q
12161 }
12162 /@datadir@/p
12163 /@docdir@/p
12164 /@infodir@/p
12165 /@localedir@/p
12166 /@mandir@/p
12167 ' $ac_file_inputs` in
12168 *datarootdir*) ac_datarootdir_seen=yes;;
12169 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12170   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12171 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12172 _ACEOF
12173 cat >>$CONFIG_STATUS <<_ACEOF
12174   ac_datarootdir_hack='
12175   s&@datadir@&$datadir&g
12176   s&@docdir@&$docdir&g
12177   s&@infodir@&$infodir&g
12178   s&@localedir@&$localedir&g
12179   s&@mandir@&$mandir&g
12180     s&\\\${datarootdir}&$datarootdir&g' ;;
12181 esac
12182 _ACEOF
12183
12184 # Neutralize VPATH when `$srcdir' = `.'.
12185 # Shell code in configure.ac might set extrasub.
12186 # FIXME: do we really want to maintain this feature?
12187 cat >>$CONFIG_STATUS <<_ACEOF
12188   sed "$ac_vpsub
12189 $extrasub
12190 _ACEOF
12191 cat >>$CONFIG_STATUS <<\_ACEOF
12192 :t
12193 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12194 s&@configure_input@&$configure_input&;t t
12195 s&@top_builddir@&$ac_top_builddir_sub&;t t
12196 s&@srcdir@&$ac_srcdir&;t t
12197 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12198 s&@top_srcdir@&$ac_top_srcdir&;t t
12199 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12200 s&@builddir@&$ac_builddir&;t t
12201 s&@abs_builddir@&$ac_abs_builddir&;t t
12202 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12203 s&@INSTALL@&$ac_INSTALL&;t t
12204 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12205 $ac_datarootdir_hack
12206 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
12207
12208 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12209   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12210   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12211   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12212 which seems to be undefined.  Please make sure it is defined." >&5
12213 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12214 which seems to be undefined.  Please make sure it is defined." >&2;}
12215
12216   rm -f "$tmp/stdin"
12217   case $ac_file in
12218   -) cat "$tmp/out"; rm -f "$tmp/out";;
12219   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12220   esac
12221  ;;
12222   :H)
12223   #
12224   # CONFIG_HEADER
12225   #
12226 _ACEOF
12227
12228 # Transform confdefs.h into a sed script `conftest.defines', that
12229 # substitutes the proper values into config.h.in to produce config.h.
12230 rm -f conftest.defines conftest.tail
12231 # First, append a space to every undef/define line, to ease matching.
12232 echo 's/$/ /' >conftest.defines
12233 # Then, protect against being on the right side of a sed subst, or in
12234 # an unquoted here document, in config.status.  If some macros were
12235 # called several times there might be several #defines for the same
12236 # symbol, which is useless.  But do not sort them, since the last
12237 # AC_DEFINE must be honored.
12238 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12239 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12240 # NAME is the cpp macro being defined, VALUE is the value it is being given.
12241 # PARAMS is the parameter list in the macro definition--in most cases, it's
12242 # just an empty string.
12243 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
12244 ac_dB='\\)[      (].*,\\1define\\2'
12245 ac_dC=' '
12246 ac_dD=' ,'
12247
12248 uniq confdefs.h |
12249   sed -n '
12250         t rset
12251         :rset
12252         s/^[     ]*#[    ]*define[       ][      ]*//
12253         t ok
12254         d
12255         :ok
12256         s/[\\&,]/\\&/g
12257         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12258         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12259   ' >>conftest.defines
12260
12261 # Remove the space that was appended to ease matching.
12262 # Then replace #undef with comments.  This is necessary, for
12263 # example, in the case of _POSIX_SOURCE, which is predefined and required
12264 # on some systems where configure will not decide to define it.
12265 # (The regexp can be short, since the line contains either #define or #undef.)
12266 echo 's/ $//
12267 s,^[     #]*u.*,/* & */,' >>conftest.defines
12268
12269 # Break up conftest.defines:
12270 ac_max_sed_lines=50
12271
12272 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12273 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12274 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12275 # et cetera.
12276 ac_in='$ac_file_inputs'
12277 ac_out='"$tmp/out1"'
12278 ac_nxt='"$tmp/out2"'
12279
12280 while :
12281 do
12282   # Write a here document:
12283     cat >>$CONFIG_STATUS <<_ACEOF
12284     # First, check the format of the line:
12285     cat >"\$tmp/defines.sed" <<\\CEOF
12286 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
12287 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
12288 b
12289 :def
12290 _ACEOF
12291   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12292   echo 'CEOF
12293     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12294   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12295   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12296   grep . conftest.tail >/dev/null || break
12297   rm -f conftest.defines
12298   mv conftest.tail conftest.defines
12299 done
12300 rm -f conftest.defines conftest.tail
12301
12302 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12303 cat >>$CONFIG_STATUS <<\_ACEOF
12304   if test x"$ac_file" != x-; then
12305     echo "/* $configure_input  */" >"$tmp/config.h"
12306     cat "$ac_result" >>"$tmp/config.h"
12307     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12308       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12309 echo "$as_me: $ac_file is unchanged" >&6;}
12310     else
12311       rm -f $ac_file
12312       mv "$tmp/config.h" $ac_file
12313     fi
12314   else
12315     echo "/* $configure_input  */"
12316     cat "$ac_result"
12317   fi
12318   rm -f "$tmp/out12"
12319 # Compute $ac_file's index in $config_headers.
12320 _am_arg=$ac_file
12321 _am_stamp_count=1
12322 for _am_header in $config_headers :; do
12323   case $_am_header in
12324     $_am_arg | $_am_arg:* )
12325       break ;;
12326     * )
12327       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12328   esac
12329 done
12330 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12331 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12332          X"$_am_arg" : 'X\(//\)[^/]' \| \
12333          X"$_am_arg" : 'X\(//\)$' \| \
12334          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12335 echo X"$_am_arg" |
12336     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12337             s//\1/
12338             q
12339           }
12340           /^X\(\/\/\)[^/].*/{
12341             s//\1/
12342             q
12343           }
12344           /^X\(\/\/\)$/{
12345             s//\1/
12346             q
12347           }
12348           /^X\(\/\).*/{
12349             s//\1/
12350             q
12351           }
12352           s/.*/./; q'`/stamp-h$_am_stamp_count
12353  ;;
12354
12355   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
12356 echo "$as_me: executing $ac_file commands" >&6;}
12357  ;;
12358   esac
12359
12360
12361   case $ac_file$ac_mode in
12362     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12363   # Strip MF so we end up with the name of the file.
12364   mf=`echo "$mf" | sed -e 's/:.*$//'`
12365   # Check whether this is an Automake generated Makefile or not.
12366   # We used to match only the files named `Makefile.in', but
12367   # some people rename them; so instead we look at the file content.
12368   # Grep'ing the first line is not enough: some people post-process
12369   # each Makefile.in and add a new line on top of each file to say so.
12370   # Grep'ing the whole file is not good either: AIX grep has a line
12371   # limit of 2048, but all sed's we know have understand at least 4000.
12372   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12373     dirpart=`$as_dirname -- "$mf" ||
12374 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12375          X"$mf" : 'X\(//\)[^/]' \| \
12376          X"$mf" : 'X\(//\)$' \| \
12377          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12378 echo X"$mf" |
12379     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12380             s//\1/
12381             q
12382           }
12383           /^X\(\/\/\)[^/].*/{
12384             s//\1/
12385             q
12386           }
12387           /^X\(\/\/\)$/{
12388             s//\1/
12389             q
12390           }
12391           /^X\(\/\).*/{
12392             s//\1/
12393             q
12394           }
12395           s/.*/./; q'`
12396   else
12397     continue
12398   fi
12399   # Extract the definition of DEPDIR, am__include, and am__quote
12400   # from the Makefile without running `make'.
12401   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12402   test -z "$DEPDIR" && continue
12403   am__include=`sed -n 's/^am__include = //p' < "$mf"`
12404   test -z "am__include" && continue
12405   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12406   # When using ansi2knr, U may be empty or an underscore; expand it
12407   U=`sed -n 's/^U = //p' < "$mf"`
12408   # Find all dependency output files, they are included files with
12409   # $(DEPDIR) in their names.  We invoke sed twice because it is the
12410   # simplest approach to changing $(DEPDIR) to its actual value in the
12411   # expansion.
12412   for file in `sed -n "
12413     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12414        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12415     # Make sure the directory exists.
12416     test -f "$dirpart/$file" && continue
12417     fdir=`$as_dirname -- "$file" ||
12418 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12419          X"$file" : 'X\(//\)[^/]' \| \
12420          X"$file" : 'X\(//\)$' \| \
12421          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12422 echo X"$file" |
12423     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12424             s//\1/
12425             q
12426           }
12427           /^X\(\/\/\)[^/].*/{
12428             s//\1/
12429             q
12430           }
12431           /^X\(\/\/\)$/{
12432             s//\1/
12433             q
12434           }
12435           /^X\(\/\).*/{
12436             s//\1/
12437             q
12438           }
12439           s/.*/./; q'`
12440     { as_dir=$dirpart/$fdir
12441   case $as_dir in #(
12442   -*) as_dir=./$as_dir;;
12443   esac
12444   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12445     as_dirs=
12446     while :; do
12447       case $as_dir in #(
12448       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12449       *) as_qdir=$as_dir;;
12450       esac
12451       as_dirs="'$as_qdir' $as_dirs"
12452       as_dir=`$as_dirname -- "$as_dir" ||
12453 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12454          X"$as_dir" : 'X\(//\)[^/]' \| \
12455          X"$as_dir" : 'X\(//\)$' \| \
12456          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12457 echo X"$as_dir" |
12458     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12459             s//\1/
12460             q
12461           }
12462           /^X\(\/\/\)[^/].*/{
12463             s//\1/
12464             q
12465           }
12466           /^X\(\/\/\)$/{
12467             s//\1/
12468             q
12469           }
12470           /^X\(\/\).*/{
12471             s//\1/
12472             q
12473           }
12474           s/.*/./; q'`
12475       test -d "$as_dir" && break
12476     done
12477     test -z "$as_dirs" || eval "mkdir $as_dirs"
12478   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12479 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12480    { (exit 1); exit 1; }; }; }
12481     # echo "creating $dirpart/$file"
12482     echo '# dummy' > "$dirpart/$file"
12483   done
12484 done
12485  ;;
12486     "preinst-swig":F) chmod +x preinst-swig ;;
12487
12488   esac
12489 done # for ac_tag
12490
12491
12492 { (exit 0); exit 0; }
12493 _ACEOF
12494 chmod +x $CONFIG_STATUS
12495 ac_clean_files=$ac_clean_files_save
12496
12497
12498 # configure is writing to config.log, and then calls config.status.
12499 # config.status does its own redirection, appending to config.log.
12500 # Unfortunately, on DOS this fails, as config.log is still kept open
12501 # by configure, so config.status won't be able to write to it; its
12502 # output is simply discarded.  So we exec the FD to /dev/null,
12503 # effectively closing config.log, so it can be properly (re)opened and
12504 # appended to by config.status.  When coming back to configure, we
12505 # need to make the FD available again.
12506 if test "$no_create" != yes; then
12507   ac_cs_success=:
12508   ac_config_status_args=
12509   test "$silent" = yes &&
12510     ac_config_status_args="$ac_config_status_args --quiet"
12511   exec 5>/dev/null
12512   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12513   exec 5>>config.log
12514   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12515   # would make configure fail if this is the last instruction.
12516   $ac_cs_success || { (exit 1); exit 1; }
12517 fi
12518
12519 #
12520 # CONFIG_SUBDIRS section.
12521 #
12522 if test "$no_recursion" != yes; then
12523
12524   # Remove --cache-file and --srcdir arguments so they do not pile up.
12525   ac_sub_configure_args=
12526   ac_prev=
12527   eval "set x $ac_configure_args"
12528   shift
12529   for ac_arg
12530   do
12531     if test -n "$ac_prev"; then
12532       ac_prev=
12533       continue
12534     fi
12535     case $ac_arg in
12536     -cache-file | --cache-file | --cache-fil | --cache-fi \
12537     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
12538       ac_prev=cache_file ;;
12539     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
12540     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
12541     | --c=*)
12542       ;;
12543     --config-cache | -C)
12544       ;;
12545     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
12546       ac_prev=srcdir ;;
12547     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
12548       ;;
12549     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
12550       ac_prev=prefix ;;
12551     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
12552       ;;
12553     *)
12554       case $ac_arg in
12555       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
12556       esac
12557       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
12558     esac
12559   done
12560
12561   # Always prepend --prefix to ensure using the same prefix
12562   # in subdir configurations.
12563   ac_arg="--prefix=$prefix"
12564   case $ac_arg in
12565   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
12566   esac
12567   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
12568
12569   # Pass --silent
12570   if test "$silent" = yes; then
12571     ac_sub_configure_args="--silent $ac_sub_configure_args"
12572   fi
12573
12574   ac_popdir=`pwd`
12575   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
12576
12577     # Do not complain, so a configure script can configure whichever
12578     # parts of a large source tree are present.
12579     test -d "$srcdir/$ac_dir" || continue
12580
12581     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
12582     echo "$as_me:$LINENO: $ac_msg" >&5
12583     echo "$ac_msg" >&6
12584     { as_dir="$ac_dir"
12585   case $as_dir in #(
12586   -*) as_dir=./$as_dir;;
12587   esac
12588   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12589     as_dirs=
12590     while :; do
12591       case $as_dir in #(
12592       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12593       *) as_qdir=$as_dir;;
12594       esac
12595       as_dirs="'$as_qdir' $as_dirs"
12596       as_dir=`$as_dirname -- "$as_dir" ||
12597 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12598          X"$as_dir" : 'X\(//\)[^/]' \| \
12599          X"$as_dir" : 'X\(//\)$' \| \
12600          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12601 echo X"$as_dir" |
12602     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12603             s//\1/
12604             q
12605           }
12606           /^X\(\/\/\)[^/].*/{
12607             s//\1/
12608             q
12609           }
12610           /^X\(\/\/\)$/{
12611             s//\1/
12612             q
12613           }
12614           /^X\(\/\).*/{
12615             s//\1/
12616             q
12617           }
12618           s/.*/./; q'`
12619       test -d "$as_dir" && break
12620     done
12621     test -z "$as_dirs" || eval "mkdir $as_dirs"
12622   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12623 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12624    { (exit 1); exit 1; }; }; }
12625     ac_builddir=.
12626
12627 case "$ac_dir" in
12628 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12629 *)
12630   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12631   # A ".." for each directory in $ac_dir_suffix.
12632   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12633   case $ac_top_builddir_sub in
12634   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12635   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12636   esac ;;
12637 esac
12638 ac_abs_top_builddir=$ac_pwd
12639 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12640 # for backward compatibility:
12641 ac_top_builddir=$ac_top_build_prefix
12642
12643 case $srcdir in
12644   .)  # We are building in place.
12645     ac_srcdir=.
12646     ac_top_srcdir=$ac_top_builddir_sub
12647     ac_abs_top_srcdir=$ac_pwd ;;
12648   [\\/]* | ?:[\\/]* )  # Absolute name.
12649     ac_srcdir=$srcdir$ac_dir_suffix;
12650     ac_top_srcdir=$srcdir
12651     ac_abs_top_srcdir=$srcdir ;;
12652   *) # Relative name.
12653     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12654     ac_top_srcdir=$ac_top_build_prefix$srcdir
12655     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12656 esac
12657 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12658
12659
12660     cd "$ac_dir"
12661
12662     # Check for guested configure; otherwise get Cygnus style configure.
12663     if test -f "$ac_srcdir/configure.gnu"; then
12664       ac_sub_configure=$ac_srcdir/configure.gnu
12665     elif test -f "$ac_srcdir/configure"; then
12666       ac_sub_configure=$ac_srcdir/configure
12667     elif test -f "$ac_srcdir/configure.in"; then
12668       # This should be Cygnus configure.
12669       ac_sub_configure=$ac_aux_dir/configure
12670     else
12671       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
12672 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
12673       ac_sub_configure=
12674     fi
12675
12676     # The recursion is here.
12677     if test -n "$ac_sub_configure"; then
12678       # Make the cache file name correct relative to the subdirectory.
12679       case $cache_file in
12680       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
12681       *) # Relative name.
12682         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
12683       esac
12684
12685       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
12686 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
12687       # The eval makes quoting arguments work.
12688       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
12689            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
12690         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
12691 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
12692    { (exit 1); exit 1; }; }
12693     fi
12694
12695     cd "$ac_popdir"
12696   done
12697 fi
12698