~ubuntu-branches/ubuntu/hardy/swig1.3/hardy

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-12-05 01:16:04 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051205011604-ygx904it6413k3go
Tags: 1.3.27-1ubuntu1
Resynchronise with Debian again, for the new subversion packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.59 for swig 1.3.24.
 
3
# Generated by GNU Autoconf 2.59 for swig 1.3.27.
4
4
#
5
5
# Report bugs to <http://www.swig.org>.
6
6
#
269
269
# Identity of this package.
270
270
PACKAGE_NAME='swig'
271
271
PACKAGE_TARNAME='swig'
272
 
PACKAGE_VERSION='1.3.24'
273
 
PACKAGE_STRING='swig 1.3.24'
 
272
PACKAGE_VERSION='1.3.27'
 
273
PACKAGE_STRING='swig 1.3.27'
274
274
PACKAGE_BUGREPORT='http://www.swig.org'
275
275
 
276
276
ac_unique_file="Source/Swig/swig.h"
311
311
# include <unistd.h>
312
312
#endif"
313
313
 
314
 
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE YACC RANLIB ac_ct_RANLIB AR CPP EGREP SO LDSHARED CCSHARED CXXSHARED TRYLINKINGWITHCXX LINKFORSHARED RPATH PYTHON_SO TCL_SO GUILE_SO PHP4_SO MZSCHEME_SO TCL_LDSHARED TCL_CXXSHARED PLATFLAGS SWIGLIBS SWILL LIBM LIBCRYPT LIBC XINCLUDES XLIBSW TCLINCLUDE TCLLIB TCLDYNAMICLINKING PYTHON PYINCLUDE PYLIB PYLINK PYTHONDYNAMICLINKING PERL PERL5EXT PERL5DYNAMICLINKING PERL5LIB PERL5CCFLAGS JAVA JAVAC JAVAINC JAVADYNAMICLINKING JAVALIBRARYPREFIX JAVASO JAVALDSHARED JAVACXXSHARED JAVACFLAGS GUILE_CONFIG GUILE GUILEINCLUDE GUILELIB GUILELINK GUILE_GH_INTERFACE GUILE_SCM_INTERFACE MZC MZSCHEME MZDYNOBJ RUBY RUBYINCLUDE RUBYLIB RUBYLINK RUBYCCDLFLAGS RUBYDYNAMICLINKING PHP4 PHP4INC OCAMLDLGEN OCAMLFIND OCAMLC OCAMLBIN OCAMLMKTOP OCAMLINC PIKE PIKEINCLUDE PIKECCDLFLAGS PIKEDYNAMICLINKING CHICKEN CHICKEN_CSC CHICKEN_CSI CHICKEN_CONFIG CHICKENHOME CHICKENOPTS CHICKENSHAREDOPTS CHICKENLIB CHICKENSHAREDLIB CSHARPCOMPILER CSHARPCILINTERPRETER CSHARPPATHSEPARATOR CSHARPCYGPATH_W CSHARPDYNAMICLINKING CSHARPLIBRARYPREFIX CSHARPCFLAGS CSHARPSO SKIP_TCL SKIP_PERL5 SKIP_PYTHON SKIP_JAVA SKIP_GUILE SKIP_GUILESCM SKIP_MZSCHEME SKIP_RUBY SKIP_PHP4 SKIP_OCAML SKIP_PIKE SKIP_CHICKEN SKIP_CSHARP SKIP_MODULA3 ROOT_DIR EXTRA_CLEAN ac_aux_dir swig_lib release_suffix LIBOBJS LTLIBOBJS'
 
314
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE YACC RANLIB ac_ct_RANLIB AR CPP EGREP SO LDSHARED CCSHARED CXXSHARED TRYLINKINGWITHCXX LINKFORSHARED RPATH PYTHON_SO TCL_SO GUILE_SO PHP4_SO MZSCHEME_SO TCL_LDSHARED TCL_CXXSHARED LUA_SO PLATFLAGS SWIGLIBS SWILL LIBM LIBCRYPT LIBC XINCLUDES XLIBSW TCLINCLUDE TCLLIB TCLDYNAMICLINKING PYTHON PYINCLUDE PYLIB PYLINK PYTHONDYNAMICLINKING PERL PERL5EXT PERL5DYNAMICLINKING PERL5LIB PERL5CCFLAGS JAVA JAVAC JAVAINC JAVADYNAMICLINKING JAVALIBRARYPREFIX JAVASO JAVALDSHARED JAVACXXSHARED JAVACFLAGS GUILE_CONFIG GUILE GUILEINCLUDE GUILELIB GUILELINK GUILE_GH_INTERFACE GUILE_SCM_INTERFACE MZSCHEME MZC MZDYNOBJ RUBY RUBYINCLUDE RUBYLIB RUBYLINK RUBYCCDLFLAGS RUBYDYNAMICLINKING PHP4 PHP4INC OCAMLDLGEN OCAMLFIND OCAMLC OCAMLBIN OCAMLMKTOP OCAMLINC PIKE PIKECONFIG PIKEINCLUDE PIKECCDLFLAGS PIKEDYNAMICLINKING CHICKEN CHICKEN_CSC CHICKEN_CSI CHICKEN_CONFIG CHICKENHOME CHICKENOPTS CHICKENSHAREDOPTS CHICKENLIB CHICKENSHAREDLIB CSHARPCOMPILER CSHARPCILINTERPRETER CSHARPPATHSEPARATOR CSHARPCYGPATH_W CSHARPDYNAMICLINKING CSHARPLIBRARYPREFIX CSHARPCFLAGS CSHARPSO LUABIN LUADYNAMICLINKING LUAINCLUDE LUALIB LUALIBRARY SKIP_TCL SKIP_PERL5 SKIP_PYTHON SKIP_JAVA SKIP_GUILE SKIP_GUILESCM SKIP_MZSCHEME SKIP_RUBY SKIP_PHP4 SKIP_OCAML SKIP_PIKE SKIP_CHICKEN SKIP_CSHARP SKIP_MODULA3 SKIP_LUA ROOT_DIR EXTRA_CLEAN ac_aux_dir swig_lib release_suffix LIBOBJS LTLIBOBJS'
315
315
ac_subst_files=''
316
316
 
317
317
# Initialize some variables set by options.
788
788
  # Omit some internal or obsolete options to make the list less imposing.
789
789
  # This message is too long to be a string in the A/UX 3.1 sh.
790
790
  cat <<_ACEOF
791
 
\`configure' configures swig 1.3.24 to adapt to many kinds of systems.
 
791
\`configure' configures swig 1.3.27 to adapt to many kinds of systems.
792
792
 
793
793
Usage: $0 [OPTION]... [VAR=VALUE]...
794
794
 
858
858
 
859
859
if test -n "$ac_init_help"; then
860
860
  case $ac_init_help in
861
 
     short | recursive ) echo "Configuration of swig 1.3.24:";;
 
861
     short | recursive ) echo "Configuration of swig 1.3.27:";;
862
862
   esac
863
863
  cat <<\_ACEOF
864
864
 
871
871
Optional Packages:
872
872
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
873
873
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
874
  --without-maximum-compile-warnings
 
875
                          Disable maximum warning verbosity
874
876
  --with-libm=STRING      math library
875
877
  --with-libc=STRING      C library
876
878
  --with-x                use the X Window System
 
879
  --without-alllang       Disable all languages
 
880
  --without-tcl           Disable Tcl
877
881
  --with-tclconfig=path   Set location of tclConfig.sh
878
882
  --with-tcl=path         Set location of Tcl package
879
883
  --with-tclincl=path     Set location of Tcl include directory
880
884
  --with-tcllib=path      Set location of Tcl library directory
 
885
  --without-python        Disable Python
881
886
  --with-python=path      Set location of Python executable
 
887
  --without-perl5         Disable Perl5
882
888
  --with-perl5=path       Set location of Perl5 executable
 
889
  --without-java          Disable Java
883
890
  --with-java=path        Set location of Java executable
884
891
  --with-javac=path       Set location of Javac executable
885
892
  --with-javaincl=path    Set location of Java include directory
886
 
  --with-guile-config=path   Set location of guile-config
887
 
  --with-guile-prefix=path       Set location of Guile tree
 
893
  --without-guile         Disable Guile
 
894
  --with-guile-config=path
 
895
                          Set location of guile-config
 
896
  --with-guile-prefix=path
 
897
                          Set location of Guile tree
888
898
  --with-guile=path       Set location of Guile executable
889
899
  --with-guileincl=path   Set location of Guile include directory
890
900
  --with-guilelib=path    Set location of Guile library directory
 
901
  --without-mzscheme      Disable MzScheme
 
902
  --with-mzscheme=path    Set location of MzScheme executable
 
903
  --with-mzc=path         Set location of MzScheme's mzc
 
904
  --without-ruby          Disable Ruby
891
905
  --with-ruby=path        Set location of Ruby executable
892
 
  --with-php4=path        Set location of PHP4 executable
 
906
  --without-php4          Disable PHP4
 
907
  --with-php4=path        Set location of PHP4 executable
 
908
  --without-ocaml         Disable OCaml
893
909
  --with-ocaml=path       Set location of ocaml executable
894
910
  --with-ocamlc=path      Set location of ocamlc executable
895
911
  --with-ocamldlgen=path  Set location of ocamldlgen
896
912
  --with-ocamlfind=path   Set location of ocamlfind
897
913
  --with-ocamlmktop=path  Set location of ocamlmktop executable
 
914
  --without-pike          Disable Pike
898
915
  --with-pike=path        Set location of Pike executable
 
916
  --with-pike-config=path Set location of pike-config script
899
917
  --with-pikeincl=path    Set location of Pike include directory
 
918
  --without-chicken       Disable CHICKEN
900
919
  --with-chicken=path     Set location of CHICKEN executable
901
920
  --with-chickencsc=path  Set location of csc executable
902
921
  --with-chickencsi=path  Set location of csi executable
906
925
  --with-chickenopts=path Set compiler options for static CHICKEN generated code
907
926
  --with-chickensharedlib=path    Set linker options for shared CHICKEN generated code
908
927
  --with-chickenlib=path  Set linker options for static CHICKEN generated code
 
928
  --without-csharp        Disable CSharp
909
929
  --with-cil-interpreter=path     Set location of CIL interpreter for CSharp
910
930
  --with-csharp-compiler=path     Set location of CSharp compiler
 
931
  --without-lua           Disable Lua
 
932
  --with-lua=path         Set location of Lua executable
 
933
  --with-luaincl=path     Set location of Lua include directory
 
934
  --with-lualib=path      Set location of Lua library directory
911
935
  --with-swiglibdir=DIR   Put SWIG system-independent libraries into DIR.
912
936
  --with-release-suffix=SUFFIX    Attach SUFFIX to the binary.
913
937
 
1021
1045
test -n "$ac_init_help" && exit 0
1022
1046
if $ac_init_version; then
1023
1047
  cat <<\_ACEOF
1024
 
swig configure 1.3.24
 
1048
swig configure 1.3.27
1025
1049
generated by GNU Autoconf 2.59
1026
1050
 
1027
1051
Copyright (C) 2003 Free Software Foundation, Inc.
1035
1059
This file contains any messages produced by compilers while
1036
1060
running configure, to aid debugging if configure makes a mistake.
1037
1061
 
1038
 
It was created by swig $as_me 1.3.24, which was
 
1062
It was created by swig $as_me 1.3.27, which was
1039
1063
generated by GNU Autoconf 2.59.  Invocation command line was
1040
1064
 
1041
1065
  $ $0 $@
1454
1478
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1455
1479
 
1456
1480
 
1457
 
am__api_version="1.8"
 
1481
am__api_version="1.9"
1458
1482
# Find a good install program.  We prefer a C program (faster),
1459
1483
# so one script is as good as another.  But avoid the broken or
1460
1484
# incompatible versions:
1606
1630
fi
1607
1631
 
1608
1632
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1609
 
  # Keeping the `.' argument allows $(mkdir_p) to be used without
1610
 
  # argument.  Indeed, we sometimes output rules like
 
1633
  # We used to keeping the `.' as first argument, in order to
 
1634
  # allow $(mkdir_p) to be used without argument.  As in
1611
1635
  #   $(mkdir_p) $(somedir)
1612
 
  # where $(somedir) is conditionally defined.
1613
 
  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1614
 
  # expensive solution, as it forces Make to start a sub-shell.)
1615
 
  mkdir_p='mkdir -p -- .'
 
1636
  # where $(somedir) is conditionally defined.  However this is wrong
 
1637
  # for two reasons:
 
1638
  #  1. if the package is installed by a user who cannot write `.'
 
1639
  #     make install will fail,
 
1640
  #  2. the above comment should most certainly read
 
1641
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
1642
  #     so it does not work when $(somedir) is undefined and
 
1643
  #     $(DESTDIR) is not.
 
1644
  #  To support the latter case, we have to write
 
1645
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
1646
  #  so the `.' trick is pointless.
 
1647
  mkdir_p='mkdir -p --'
1616
1648
else
1617
1649
  # On NextStep and OpenStep, the `mkdir' command does not
1618
1650
  # recognize any option.  It will interpret all options as
1728
1760
 
1729
1761
# Define the identity of the package.
1730
1762
 PACKAGE='swig'
1731
 
 VERSION='1.3.24'
 
1763
 VERSION='1.3.27'
1732
1764
 
1733
1765
 
1734
1766
cat >>confdefs.h <<_ACEOF
1756
1788
 
1757
1789
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1758
1790
 
1759
 
 
1760
 
AMTAR=${AMTAR-"${am_missing_run}tar"}
1761
 
 
1762
1791
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1763
1792
 
1764
1793
# Installed binaries are usually stripped using `strip' when the user
1851
1880
 
1852
1881
# We need awk for the "check" target.  The system "awk" is bad on
1853
1882
# some platforms.
 
1883
# Always define AMTAR for backward compatibility.
 
1884
 
 
1885
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1886
 
 
1887
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
1888
 
 
1889
 
1854
1890
 
1855
1891
 
1856
1892
 
2924
2960
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2925
2961
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2926
2962
      # icc doesn't choke on unknown options, it will just issue warnings
2927
 
      # (even with -Werror).  So we grep stderr for any message
2928
 
      # that says an option was ignored.
2929
 
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
2963
      # or remarks (even with -Werror).  So we grep stderr for any message
 
2964
      # that says an option was ignored or not supported.
 
2965
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
2966
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
2967
      # The diagnosis changed in icc 8.0:
 
2968
      #   icc: Command line remark: option '-MP' not supported
 
2969
      if (grep 'ignoring option' conftest.err ||
 
2970
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2930
2971
        am_cv_CC_dependencies_compiler_type=$depmode
2931
2972
        break
2932
2973
      fi
3383
3424
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3384
3425
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3385
3426
      # icc doesn't choke on unknown options, it will just issue warnings
3386
 
      # (even with -Werror).  So we grep stderr for any message
3387
 
      # that says an option was ignored.
3388
 
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
3427
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3428
      # that says an option was ignored or not supported.
 
3429
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3430
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3431
      # The diagnosis changed in icc 8.0:
 
3432
      #   icc: Command line remark: option '-MP' not supported
 
3433
      if (grep 'ignoring option' conftest.err ||
 
3434
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3389
3435
        am_cv_CXX_dependencies_compiler_type=$depmode
3390
3436
        break
3391
3437
      fi
3685
3731
 
3686
3732
 
3687
3733
 
 
3734
 
3688
3735
echo "$as_me:$LINENO: checking maximum warning verbosity option" >&5
3689
3736
echo $ECHO_N "checking maximum warning verbosity option... $ECHO_C" >&6
3690
 
if test -n "$CXX"
3691
 
then
3692
 
  if test "$GXX" = "yes"
3693
 
  then
3694
 
    ac_compile_warnings_opt='-Wall -ansi -pedantic'
3695
 
  fi
3696
 
  CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
3697
 
  ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
3698
 
fi
3699
 
 
3700
 
if test -n "$CC"
3701
 
then
3702
 
  if test "$GCC" = "yes"
3703
 
  then
3704
 
    ac_compile_warnings_opt='-Wall -ansi -pedantic'
3705
 
  fi
3706
 
  CFLAGS="$CFLAGS $ac_compile_warnings_opt"
3707
 
  ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C"
3708
 
fi
3709
 
echo "$as_me:$LINENO: result: $ac_compile_warnings_msg" >&5
 
3737
 
 
3738
 
 
3739
 
 
3740
 
 
3741
# Check whether --with-maximum-compile-warnings or --without-maximum-compile-warnings was given.
 
3742
if test "${with_maximum_compile_warnings+set}" = set; then
 
3743
  withval="$with_maximum_compile_warnings"
 
3744
  ac_compile_warnings_on="$withval"
 
3745
else
 
3746
  ac_compile_warnings_on=""
 
3747
fi;
 
3748
 
 
3749
  if test x"$ac_compile_warnings_on" = xno
 
3750
  then
 
3751
    ac_compile_warnings_msg=no
 
3752
  else
 
3753
    if test -n "$CXX"
 
3754
    then
 
3755
      if test "$GXX" = "yes"
 
3756
      then
 
3757
        ac_compile_warnings_opt='-Wall -W -ansi -pedantic'
 
3758
      fi
 
3759
      CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
 
3760
      ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
 
3761
    fi
 
3762
 
 
3763
  if test -n "$CC"
 
3764
  then
 
3765
    if test "$GCC" = "yes"
 
3766
    then
 
3767
      ac_compile_warnings_opt='-Wall -W -ansi -pedantic'
 
3768
    fi
 
3769
    CFLAGS="$CFLAGS $ac_compile_warnings_opt"
 
3770
    ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C"
 
3771
  fi
 
3772
  fi
 
3773
  echo "$as_me:$LINENO: result: $ac_compile_warnings_msg" >&5
3710
3774
echo "${ECHO_T}$ac_compile_warnings_msg" >&6
3711
 
unset ac_compile_warnings_msg
3712
 
unset ac_compile_warnings_opt
 
3775
  unset ac_compile_warnings_msg
 
3776
  unset ac_compile_warnings_opt
3713
3777
 # Increase warning levels
3714
3778
 
3715
3779
 
4525
4589
   *) TCL_CXXSHARED=$TRYLINKINGWITHCXX;;
4526
4590
esac
4527
4591
 
 
4592
 
 
4593
case $host in
 
4594
   *-*-darwin*) LUA_SO=.so;;
 
4595
   *) LUA_SO=$SO;;
 
4596
esac
 
4597
 
4528
4598
# Optional CFLAGS used to silence compiler warnings on some platforms.
4529
4599
 
4530
4600
 
5587
5657
 
5588
5658
 
5589
5659
 
 
5660
# Check whether --with-alllang or --without-alllang was given.
 
5661
if test "${with_alllang+set}" = set; then
 
5662
  withval="$with_alllang"
 
5663
  with_alllang="$withval"
 
5664
fi;
 
5665
 
5590
5666
#--------------------------------------------------------------------
5591
5667
#       Try to locate the Tcl package
5592
5668
#--------------------------------------------------------------------
5629
5705
  TCLLIB=
5630
5706
fi;
5631
5707
 
 
5708
# First, check for "--without-tcl" or "--with-tcl=no".
 
5709
if test x"${TCLPACKAGE}" = xno -o x"${with_alllang}" = xno; then
 
5710
{ echo "$as_me:$LINENO: Disabling Tcl" >&5
 
5711
echo "$as_me: Disabling Tcl" >&6;}
 
5712
else
5632
5713
echo "$as_me:$LINENO: checking for Tcl configuration" >&5
5633
5714
echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
5634
5715
# First check to see if --with-tclconfig was specified.
5760
5841
case $host in
5761
5842
*-*-cygwin* | *-*-mingw*) TCLDYNAMICLINKING="$TCLLIB";;
5762
5843
esac
 
5844
fi
5763
5845
 
5764
5846
 
5765
5847
 
5773
5855
PYLIB=
5774
5856
PYPACKAGE=
5775
5857
 
5776
 
# I don't think any of this commented stuff works anymore
5777
 
 
5778
 
#PYLINK="-lModules -lPython -lObjects -lParser"
5779
 
 
5780
 
#AC_ARG_WITH(py,[  --with-py=path          Set location of Python],[
5781
 
#       PYPACKAGE="$withval"], [PYPACKAGE=])
5782
 
#AC_ARG_WITH(pyincl,[  --with-pyincl=path      Set location of Python include directory],[
5783
 
#       PYINCLUDE="$withval"], [PYINCLUDE=])
5784
 
#AC_ARG_WITH(pylib,[  --with-pylib=path       Set location of Python library directory],[
5785
 
#       PYLIB="$withval"], [PYLIB=])
5786
 
 
5787
 
#if test -z "$PYINCLUDE"; then
5788
 
#   if test -n "$PYPACKAGE"; then
5789
 
#       PYINCLUDE="$PYPACKAGE/include"
5790
 
#   fi
5791
 
#fi
5792
 
 
5793
 
#if test -z "$PYLIB"; then
5794
 
#   if test -n "$PYPACKAGE"; then
5795
 
#       PYLIB="$PYPACKAGE/lib"
5796
 
#   fi
5797
 
#fi
5798
 
 
5799
5858
 
5800
5859
# Check whether --with-python or --without-python was given.
5801
5860
if test "${with_python+set}" = set; then
5805
5864
  PYBIN=
5806
5865
fi;
5807
5866
 
 
5867
# First, check for "--without-python" or "--with-python=no".
 
5868
if test x"${PYBIN}" = xno -o x"${with_alllang}" = xno ; then
 
5869
{ echo "$as_me:$LINENO: Disabling Python" >&5
 
5870
echo "$as_me: Disabling Python" >&6;}
 
5871
else
5808
5872
# First figure out the name of the Python executable
5809
5873
 
5810
5874
if test -z "$PYBIN"; then
5936
6000
         PYINCLUDE="-DUSE_DL_IMPORT $PYINCLUDE"
5937
6001
         ;;
5938
6002
esac
5939
 
 
 
6003
fi
5940
6004
 
5941
6005
 
5942
6006
 
5958
6022
  PERLBIN=
5959
6023
fi;
5960
6024
 
 
6025
# First, check for "--without-perl5" or "--with-perl5=no".
 
6026
if test x"${PERLBIN}" = xno -o x"${with_alllang}" = xno ; then
 
6027
{ echo "$as_me:$LINENO: Disabling Perl5" >&5
 
6028
echo "$as_me: Disabling Perl5" >&6;}
 
6029
else
 
6030
 
5961
6031
# First figure out what the name of Perl5 is
5962
6032
 
5963
6033
if test -z "$PERLBIN"; then
6061
6131
case $host in
6062
6132
*-*-cygwin* | *-*-mingw*) PERL5DYNAMICLINKING="-L$PERL5EXT -l$PERL5LIB";;
6063
6133
esac
 
6134
fi
6064
6135
 
6065
6136
 
6066
6137
 
6089
6160
  JAVACBIN=
6090
6161
fi;
6091
6162
 
 
6163
# First, check for "--without-java" or "--with-java=no".
 
6164
if test x"${JAVABIN}" = xno -o x"${with_alllang}" = xno ; then
 
6165
{ echo "$as_me:$LINENO: Disabling Java" >&5
 
6166
echo "$as_me: Disabling Java" >&6;}
 
6167
else
 
6168
 
6092
6169
if test -z "$JAVABIN" ; then
6093
6170
  for ac_prog in java kaffe guavac
6094
6171
do
6235
6312
case $host in
6236
6313
*-*-cygwin* | *-*-mingw*)
6237
6314
    if test "$GCC" = yes; then
6238
 
        JAVADYNAMICLINKING=" -mno-cygwin -Wl,--add-stdcall-alias"
6239
 
        JAVACFLAGS="-mno-cygwin"
 
6315
        JAVADYNAMICLINKING=" -mno-cygwin -mthreads -Wl,--add-stdcall-alias"
 
6316
        JAVACFLAGS="-mno-cygwin -mthreads"
6240
6317
    else
6241
6318
        JAVADYNAMICLINKING=""
6242
6319
        JAVACFLAGS=""
6270
6347
    JAVACXXSHARED='$(CXXSHARED)'
6271
6348
    ;;
6272
6349
esac
 
6350
fi
6273
6351
 
6274
6352
 
6275
6353
 
6290
6368
GUILE=
6291
6369
GUILELIB=
6292
6370
GUILELINK=
 
6371
GUILEPKGDATADIR=
6293
6372
 
6294
6373
 
6295
6374
# Check whether --with-guile-config or --without-guile-config was given.
6300
6379
  GUILE_CONFIG=
6301
6380
fi;
6302
6381
 
 
6382
# Check whether --with-guilepackage or --without-guilepackage was given.
 
6383
if test "${with_guilepackage+set}" = set; then
 
6384
  withval="$with_guilepackage"
 
6385
 
 
6386
        GUILEPACKAGE="$withval"
 
6387
fi;
 
6388
 
 
6389
# Check whether --with-guile or --without-guile was given.
 
6390
if test "${with_guile+set}" = set; then
 
6391
  withval="$with_guile"
 
6392
 
 
6393
        GUILE="$withval"
 
6394
fi;
 
6395
 
 
6396
# Check whether --with-guileincl or --without-guileincl was given.
 
6397
if test "${with_guileincl+set}" = set; then
 
6398
  withval="$with_guileincl"
 
6399
 
 
6400
        GUILEINCLUDE="$withval"
 
6401
fi;
 
6402
 
 
6403
# Check whether --with-guilelib or --without-guilelib was given.
 
6404
if test "${with_guilelib+set}" = set; then
 
6405
  withval="$with_guilelib"
 
6406
 
 
6407
        GUILELIB="$withval"
 
6408
fi;
 
6409
 
 
6410
# First, check for "--without-guile" or "--with-guile=no".
 
6411
if test x"${GUILE}" = xno -o x"${with_alllang}" = xno ; then
 
6412
{ echo "$as_me:$LINENO: Disabling Guile" >&5
 
6413
echo "$as_me: Disabling Guile" >&6;}
 
6414
else
 
6415
 
6303
6416
if test -z "$GUILE_CONFIG" ; then
6304
6417
  # Extract the first word of "guile-config", so it can be a program name with args.
6305
6418
set dummy guile-config; ac_word=$2
6348
6461
  GUILELIB="`$GUILE_CONFIG info libdir`"
6349
6462
  GUILE="`$GUILE_CONFIG info bindir`/guile"
6350
6463
  GUILELINK="`$GUILE_CONFIG link`"
 
6464
  GUILEPKGDATADIR="`$GUILE_CONFIG info pkgdatadir`"
6351
6465
fi
6352
6466
 
6353
 
 
6354
 
# Check whether --with-guilepackage or --without-guilepackage was given.
6355
 
if test "${with_guilepackage+set}" = set; then
6356
 
  withval="$with_guilepackage"
6357
 
 
6358
 
        GUILEPACKAGE="$withval"
6359
 
fi;
6360
 
 
6361
6467
  if test -z "$GUILE"; then
6362
6468
     if test -n "$GUILEPACKAGE"; then
6363
6469
        GUILE="$GUILEPACKAGE/bin/guile"
6377
6483
  fi
6378
6484
 
6379
6485
 
6380
 
# Check whether --with-guile or --without-guile was given.
6381
 
if test "${with_guile+set}" = set; then
6382
 
  withval="$with_guile"
6383
 
 
6384
 
        GUILE="$withval"
6385
 
fi;
6386
 
 
6387
 
# Check whether --with-guileincl or --without-guileincl was given.
6388
 
if test "${with_guileincl+set}" = set; then
6389
 
  withval="$with_guileincl"
6390
 
 
6391
 
        GUILEINCLUDE="$withval"
6392
 
fi;
6393
 
 
6394
 
# Check whether --with-guilelib or --without-guilelib was given.
6395
 
if test "${with_guilelib+set}" = set; then
6396
 
  withval="$with_guilelib"
6397
 
 
6398
 
        GUILELIB="$withval"
6399
 
fi;
6400
 
 
6401
6486
echo "$as_me:$LINENO: checking for Guile header files" >&5
6402
6487
echo $ECHO_N "checking for Guile header files... $ECHO_C" >&6
6403
6488
 
6435
6520
  GUILELINK="-L$GUILELIB -lguile"
6436
6521
fi
6437
6522
 
6438
 
 
6439
 
 
6440
 
 
6441
 
 
6442
 
 
6443
6523
guilesafe_CFLAGS=$CFLAGS
6444
6524
guilesafe_LDFLAGS=$LDFLAGS
6445
6525
CFLAGS="$CFLAGS $GUILEINCLUDE"
6533
6613
fi
6534
6614
CFLAGS=$guilesafe_CFLAGS
6535
6615
LDFLAGS=$guilesafe_LDFLAGS
 
6616
fi
 
6617
 
 
6618
 
 
6619
 
 
6620
 
6536
6621
 
6537
6622
 
6538
6623
 
6541
6626
# Look for MzScheme
6542
6627
#----------------------------------------------------------------
6543
6628
 
6544
 
# Extract the first word of "mzc", so it can be a program name with args.
 
6629
 
 
6630
# Check whether --with-mzscheme or --without-mzscheme was given.
 
6631
if test "${with_mzscheme+set}" = set; then
 
6632
  withval="$with_mzscheme"
 
6633
   MZSCHEMEBIN="$withval"
 
6634
else
 
6635
  MZSCHEMEBIN=
 
6636
fi;
 
6637
 
 
6638
# Check whether --with-mzc or --without-mzc was given.
 
6639
if test "${with_mzc+set}" = set; then
 
6640
  withval="$with_mzc"
 
6641
   MZCBIN="$withval"
 
6642
else
 
6643
  MZCBIN=
 
6644
fi;
 
6645
 
 
6646
# First, check for "--without-mzscheme" or "--with-mzscheme=no".
 
6647
if test x"${MZSCHEMEBIN}" = xno -o x"${with_alllang}" = xno ; then
 
6648
{ echo "$as_me:$LINENO: Disabling MzScheme" >&5
 
6649
echo "$as_me: Disabling MzScheme" >&6;}
 
6650
else
 
6651
 
 
6652
if test -z "$MZSCHEMEBIN"; then
 
6653
   # Extract the first word of "mzscheme", so it can be a program name with args.
 
6654
set dummy mzscheme; ac_word=$2
 
6655
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6656
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6657
if test "${ac_cv_path_MZSCHEME+set}" = set; then
 
6658
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6659
else
 
6660
  case $MZSCHEME in
 
6661
  [\\/]* | ?:[\\/]*)
 
6662
  ac_cv_path_MZSCHEME="$MZSCHEME" # Let the user override the test with a path.
 
6663
  ;;
 
6664
  *)
 
6665
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6666
for as_dir in $PATH
 
6667
do
 
6668
  IFS=$as_save_IFS
 
6669
  test -z "$as_dir" && as_dir=.
 
6670
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6671
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6672
    ac_cv_path_MZSCHEME="$as_dir/$ac_word$ac_exec_ext"
 
6673
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6674
    break 2
 
6675
  fi
 
6676
done
 
6677
done
 
6678
 
 
6679
  ;;
 
6680
esac
 
6681
fi
 
6682
MZSCHEME=$ac_cv_path_MZSCHEME
 
6683
 
 
6684
if test -n "$MZSCHEME"; then
 
6685
  echo "$as_me:$LINENO: result: $MZSCHEME" >&5
 
6686
echo "${ECHO_T}$MZSCHEME" >&6
 
6687
else
 
6688
  echo "$as_me:$LINENO: result: no" >&5
 
6689
echo "${ECHO_T}no" >&6
 
6690
fi
 
6691
 
 
6692
else
 
6693
   MZSCHEME="$MZSCHEMEBIN"
 
6694
fi
 
6695
 
 
6696
if test -z "$MZCBIN"; then
 
6697
   # Extract the first word of "mzc", so it can be a program name with args.
6545
6698
set dummy mzc; ac_word=$2
6546
6699
echo "$as_me:$LINENO: checking for $ac_word" >&5
6547
6700
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6580
6733
echo "${ECHO_T}no" >&6
6581
6734
fi
6582
6735
 
6583
 
# Extract the first word of "mzscheme", so it can be a program name with args.
6584
 
set dummy mzscheme; ac_word=$2
6585
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
6586
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6587
 
if test "${ac_cv_path_MZSCHEME+set}" = set; then
6588
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6589
 
else
6590
 
  case $MZSCHEME in
6591
 
  [\\/]* | ?:[\\/]*)
6592
 
  ac_cv_path_MZSCHEME="$MZSCHEME" # Let the user override the test with a path.
6593
 
  ;;
6594
 
  *)
6595
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596
 
for as_dir in $PATH
6597
 
do
6598
 
  IFS=$as_save_IFS
6599
 
  test -z "$as_dir" && as_dir=.
6600
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6601
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6602
 
    ac_cv_path_MZSCHEME="$as_dir/$ac_word$ac_exec_ext"
6603
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6604
 
    break 2
6605
 
  fi
6606
 
done
6607
 
done
6608
 
 
6609
 
  ;;
6610
 
esac
6611
 
fi
6612
 
MZSCHEME=$ac_cv_path_MZSCHEME
6613
 
 
6614
 
if test -n "$MZSCHEME"; then
6615
 
  echo "$as_me:$LINENO: result: $MZSCHEME" >&5
6616
 
echo "${ECHO_T}$MZSCHEME" >&6
6617
 
else
6618
 
  echo "$as_me:$LINENO: result: no" >&5
6619
 
echo "${ECHO_T}no" >&6
6620
 
fi
6621
 
 
 
6736
else
 
6737
   MZC="$MZC"
 
6738
fi
6622
6739
 
6623
6740
if test -n "$MZSCHEME"; then
6624
6741
echo "$as_me:$LINENO: checking for MzScheme dynext object" >&5
6627
6744
echo "$as_me:$LINENO: result: $MZDYNOBJ" >&5
6628
6745
echo "${ECHO_T}$MZDYNOBJ" >&6
6629
6746
fi
 
6747
fi
6630
6748
 
6631
6749
 
6632
6750
#----------------------------------------------------------------
6644
6762
  RUBYBIN=
6645
6763
fi;
6646
6764
 
 
6765
# First, check for "--without-ruby" or "--with-ruby=no".
 
6766
if test x"${RUBYBIN}" = xno -o x"${with_alllang}" = xno ; then
 
6767
{ echo "$as_me:$LINENO: Disabling Ruby" >&5
 
6768
echo "$as_me: Disabling Ruby" >&6;}
 
6769
else
 
6770
 
6647
6771
# First figure out what the name of Ruby is
6648
6772
 
6649
6773
if test -z "$RUBYBIN"; then
6732
6856
            else # 1.6.x
6733
6857
                link = "-l" + c["RUBY_INSTALL_NAME"]
6734
6858
            end
6735
 
            puts link') 2>/dev/null`
 
6859
 
 
6860
            # Get the target Ruby was built for
 
6861
            target = c["target"]
 
6862
 
 
6863
            if target == "i386-pc-mswin32"
 
6864
              # Need to change msvcrt-ruby*.lib to -lmsvcrt-ruby*
 
6865
              ext = File.extname(link)
 
6866
              # Get index that counts backwards from end of string
 
6867
              index = -1 - ext.size
 
6868
              # Strip off the extension
 
6869
              link = link.slice(0..index)
 
6870
              puts "-l#{link}"
 
6871
            else
 
6872
              puts link
 
6873
            end') 2>/dev/null`
6736
6874
 
6737
6875
                if test "$rb_libruby" != ""; then
6738
6876
                        for i in $dirs; do
6756
6894
                RUBYINCLUDE="-I$RUBYDIR"
6757
6895
                RUBYLIB="$RUBYDIR"
6758
6896
        fi
6759
 
        RUBYLINK="$RUBYLINK `($RUBY -rrbconfig -e 'print Config::CONFIG["LIBS"]') 2>/dev/null`"
 
6897
 
 
6898
        case $host in
 
6899
                *-*-mingw*) ;; # do nothing, the default windows libraries are already included
 
6900
                *) RUBYLINK="$RUBYLINK `($RUBY -rrbconfig -e 'print Config::CONFIG["LIBS"]') 2>/dev/null`";;
 
6901
        esac
 
6902
 
6760
6903
        RUBYCCDLFLAGS=`($RUBY -rrbconfig -e 'print Config::CONFIG["CCDLFLAGS"]') 2>/dev/null`
6761
6904
else
6762
6905
        echo "$as_me:$LINENO: result: could not figure out how to run ruby" >&5
6769
6912
case $host in
6770
6913
*-*-cygwin* | *-*-mingw*)       RUBYDYNAMICLINKING="-L$RUBYLIB $RUBYLINK";;
6771
6914
esac
6772
 
 
 
6915
fi
6773
6916
 
6774
6917
 
6775
6918
 
6792
6935
  PHP4BIN=
6793
6936
fi;
6794
6937
 
 
6938
# First, check for "--without-php4" or "--with-php4=no".
 
6939
if test x"${PHP4BIN}" = xno -o x"${with_alllang}" = xno ; then
 
6940
{ echo "$as_me:$LINENO: Disabling PHP4" >&5
 
6941
echo "$as_me: Disabling PHP4" >&6;}
 
6942
else
 
6943
 
6795
6944
if test -z "$PHP4BIN"; then
6796
6945
for ac_prog in php php4
6797
6946
do
6837
6986
PHP4="$PHP4BIN"
6838
6987
fi
6839
6988
 
6840
 
 
6841
 
 
6842
6989
echo "$as_me:$LINENO: checking for PHP4 header files" >&5
6843
6990
echo $ECHO_N "checking for PHP4 header files... $ECHO_C" >&6
6844
6991
PHP4CONFIG="${PHP4}-config"
6864
7011
echo "${ECHO_T}not found" >&6
6865
7012
fi
6866
7013
 
6867
 
 
6868
 
 
6869
 
( cd $srcdir/Examples/php4 ; for dir in `sed '/^#/d' check.list` ; do
6870
 
    test -f $dir/Makefile || ( cd $dir ; ln -s ../Makefile.php Makefile )
6871
 
  done )
 
7014
fi
 
7015
 
 
7016
 
6872
7017
 
6873
7018
#----------------------------------------------------------------
6874
7019
# Look for ocaml
6915
7060
  OCAMLMKTOP=
6916
7061
fi;
6917
7062
 
 
7063
# First, check for "--without-ocaml" or "--with-ocaml=no".
 
7064
if test x"${OCAMLBIN}" = xno -o x"${with_alllang}" = xno ; then
 
7065
{ echo "$as_me:$LINENO: Disabling OCaml" >&5
 
7066
echo "$as_me: Disabling OCaml" >&6;}
 
7067
else
 
7068
 
6918
7069
echo "$as_me:$LINENO: checking for Ocaml DL load generator" >&5
6919
7070
echo $ECHO_N "checking for Ocaml DL load generator... $ECHO_C" >&6
6920
7071
if test -z "$OCAMLDLGEN"; then
7175
7326
        echo "$as_me:$LINENO: result: not found" >&5
7176
7327
echo "${ECHO_T}not found" >&6
7177
7328
fi
 
7329
fi
7178
7330
 
7179
7331
export OCAMLINC
7180
7332
export OCAMLBIN
7195
7347
#----------------------------------------------------------------
7196
7348
 
7197
7349
# Identify the name of the Pike executable
 
7350
# Priority: configure option, automatic search
7198
7351
PIKEBIN=
7199
7352
 
7200
7353
# Check whether --with-pike or --without-pike was given.
7204
7357
else
7205
7358
  PIKEBIN=
7206
7359
fi;
 
7360
 
 
7361
# First, check for "--without-pike" or "--with-pike=no".
 
7362
if test x"${PIKEBIN}" = xno -o x"${with_alllang}" = xno ; then
 
7363
{ echo "$as_me:$LINENO: Disabling Pike" >&5
 
7364
echo "$as_me: Disabling Pike" >&6;}
 
7365
else
 
7366
 
7207
7367
if test -z "$PIKEBIN"; then
7208
 
        for ac_prog in pike
 
7368
        for ac_prog in pike pike7.6 pike7.4 pike7.2
7209
7369
do
7210
7370
  # Extract the first word of "$ac_prog", so it can be a program name with args.
7211
7371
set dummy $ac_prog; ac_word=$2
7249
7409
        PIKE="$PIKEBIN"
7250
7410
fi
7251
7411
 
 
7412
 
 
7413
# Check for pike-config
 
7414
# Priority: configure option, guessed from $PIKE, search from list
 
7415
 
 
7416
# Check whether --with-pike-config or --without-pike-config was given.
 
7417
if test "${with_pike_config+set}" = set; then
 
7418
  withval="$with_pike_config"
 
7419
  PIKECONFIG="$withval"
 
7420
else
 
7421
  PIKECONFIG=""
 
7422
fi;
 
7423
 
 
7424
if test -z "$PIKECONFIG" -a -n "$PIKE"; then
 
7425
        for ac_prog in $PIKE-config pike-config \
 
7426
                pike7.6-config pike7.4-config pike7.2-config
 
7427
do
 
7428
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
7429
set dummy $ac_prog; ac_word=$2
 
7430
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7431
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7432
if test "${ac_cv_prog_PIKECONFIG+set}" = set; then
 
7433
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7434
else
 
7435
  if test -n "$PIKECONFIG"; then
 
7436
  ac_cv_prog_PIKECONFIG="$PIKECONFIG" # Let the user override the test.
 
7437
else
 
7438
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7439
for as_dir in $PATH
 
7440
do
 
7441
  IFS=$as_save_IFS
 
7442
  test -z "$as_dir" && as_dir=.
 
7443
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7444
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7445
    ac_cv_prog_PIKECONFIG="$ac_prog"
 
7446
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7447
    break 2
 
7448
  fi
 
7449
done
 
7450
done
 
7451
 
 
7452
fi
 
7453
fi
 
7454
PIKECONFIG=$ac_cv_prog_PIKECONFIG
 
7455
if test -n "$PIKECONFIG"; then
 
7456
  echo "$as_me:$LINENO: result: $PIKECONFIG" >&5
 
7457
echo "${ECHO_T}$PIKECONFIG" >&6
 
7458
else
 
7459
  echo "$as_me:$LINENO: result: no" >&5
 
7460
echo "${ECHO_T}no" >&6
 
7461
fi
 
7462
 
 
7463
  test -n "$PIKECONFIG" && break
 
7464
done
 
7465
 
 
7466
fi
 
7467
 
7252
7468
# Check for a --with-pikeincl option to configure
7253
 
PIKEINCLUDE=
 
7469
# Priority: configure option, info from $PIKECONFIG, guessed by pike script
7254
7470
 
7255
7471
# Check whether --with-pikeincl or --without-pikeincl was given.
7256
7472
if test "${with_pikeincl+set}" = set; then
7257
7473
  withval="$with_pikeincl"
7258
 
 
7259
 
        PIKEINCLUDE="-I$withval"
 
7474
  PIKEINCLUDE="-I$withval"
7260
7475
else
7261
7476
  PIKEINCLUDE=
7262
7477
fi;
7263
7478
 
7264
7479
echo "$as_me:$LINENO: checking for Pike header files" >&5
7265
7480
echo $ECHO_N "checking for Pike header files... $ECHO_C" >&6
7266
 
if test -z "$PIKEINCLUDE"; then
7267
 
if test -n "$PIKE"; then
 
7481
if test -z "$PIKEINCLUDE" -a -n "$PIKECONFIG"; then
 
7482
        PIKEINCLUDE=`$PIKECONFIG --cflags`
 
7483
fi
 
7484
if test -z "$PIKEINCLUDE" -a -n "$PIKE"; then
7268
7485
        PIKEPATH=`which $PIKE`
7269
7486
        PIKEINCLUDE=`$PIKE Tools/check-include-path.pike $PIKEPATH`
7270
 
        echo "$as_me:$LINENO: result: $PIKEINCLUDE" >&5
7271
 
echo "${ECHO_T}$PIKEINCLUDE" >&6
7272
7487
        PIKEINCLUDE="-I$PIKEINCLUDE"
7273
7488
fi
 
7489
 
7274
7490
if test -z "$PIKEINCLUDE"; then
7275
7491
        echo "$as_me:$LINENO: result: not found" >&5
7276
7492
echo "${ECHO_T}not found" >&6
7277
 
fi
7278
7493
else
7279
7494
        echo "$as_me:$LINENO: result: $PIKEINCLUDE" >&5
7280
7495
echo "${ECHO_T}$PIKEINCLUDE" >&6
7281
7496
fi
7282
 
 
7283
 
 
 
7497
fi
7284
7498
 
7285
7499
 
7286
7500
 
7304
7518
  CHICKEN=
7305
7519
fi;
7306
7520
 
 
7521
# First, check for "--without-chicken" or "--with-chicken=no".
 
7522
if test x"${CHICKEN}" = xno -o x"${with_alllang}" = xno ; then
 
7523
{ echo "$as_me:$LINENO: Disabling CHICKEN" >&5
 
7524
echo "$as_me: Disabling CHICKEN" >&6;}
 
7525
else
 
7526
 
7307
7527
if test -z "$CHICKEN"; then
7308
7528
for ac_prog in chicken
7309
7529
do
7640
7860
  fi
7641
7861
 
7642
7862
fi # have CHICKEN_CONFIG
 
7863
fi # Check for --without-chicken
7643
7864
 
7644
7865
 
7645
7866
 
7656
7877
#----------------------------------------------------------------
7657
7878
 
7658
7879
 
 
7880
# Check whether --with-csharp or --without-csharp was given.
 
7881
if test "${with_csharp+set}" = set; then
 
7882
  withval="$with_csharp"
 
7883
  with_csharp="$withval"
 
7884
else
 
7885
  with_csharp=
 
7886
fi;
 
7887
 
7659
7888
# Check whether --with-cil-interpreter or --without-cil-interpreter was given.
7660
7889
if test "${with_cil_interpreter+set}" = set; then
7661
7890
  withval="$with_cil_interpreter"
7672
7901
  CSHARPCOMPILERBIN=
7673
7902
fi;
7674
7903
 
 
7904
# First, check for "--without-csharp" or "--with-csharp=no".
 
7905
if test x"${with_csharp}" = xno -o x"${with_alllang}" = xno ; then
 
7906
{ echo "$as_me:$LINENO: Disabling CSharp" >&5
 
7907
echo "$as_me: Disabling CSharp" >&6;}
 
7908
else
 
7909
 
7675
7910
if test -z "$CSHARPCOMPILERBIN" ; then
7676
7911
  case $host in
7677
7912
  *-*-cygwin* | *-*-mingw*)
7859
8094
done
7860
8095
 # Mono JIT
7861
8096
      else
7862
 
        echo "mcs is not the Mono C# compiler"
 
8097
        echo "mcs is not a working Mono C# compiler"
7863
8098
      fi
7864
8099
    else
7865
8100
      if test "csc" = "$CSHARPCOMPILER"; then
7876
8111
case $host in
7877
8112
*-*-cygwin* | *-*-mingw*)
7878
8113
    if test "$GCC" = yes; then
7879
 
        CSHARPDYNAMICLINKING=" -mno-cygwin -Wl,--add-stdcall-alias"
7880
 
        CSHARPCFLAGS="-mno-cygwin"
 
8114
        CSHARPDYNAMICLINKING=" -mno-cygwin -mthreads -Wl,--add-stdcall-alias"
 
8115
        CSHARPCFLAGS="-mno-cygwin -mthreads"
7881
8116
    else
7882
8117
        CSHARPDYNAMICLINKING=""
7883
8118
        CSHARPCFLAGS=""
7903
8138
    CSHARPSO=$SO
7904
8139
    ;;
7905
8140
esac
 
8141
fi
7906
8142
 
7907
8143
 
7908
8144
 
7914
8150
 
7915
8151
 
7916
8152
#----------------------------------------------------------------
 
8153
# Look for Lua
 
8154
#----------------------------------------------------------------
 
8155
 
 
8156
LUABIN=
 
8157
LUAINCLUDE=
 
8158
LUALIB=
 
8159
LUADYNAMICLOADLIB=
 
8160
 
 
8161
 
 
8162
# Check whether --with-lua or --without-lua was given.
 
8163
if test "${with_lua+set}" = set; then
 
8164
  withval="$with_lua"
 
8165
   LUABIN="$withval"
 
8166
else
 
8167
  LUABIN=
 
8168
fi;
 
8169
 
 
8170
# Check whether --with-luaincl or --without-luaincl was given.
 
8171
if test "${with_luaincl+set}" = set; then
 
8172
  withval="$with_luaincl"
 
8173
 
 
8174
        LUAINCLUDE="$ISYSTEM$withval"
 
8175
else
 
8176
  LUAINCLUDE=
 
8177
fi;
 
8178
 
 
8179
# Check whether --with-lualib or --without-lualib was given.
 
8180
if test "${with_lualib+set}" = set; then
 
8181
  withval="$with_lualib"
 
8182
 
 
8183
        LUALIB="-L$withval"
 
8184
else
 
8185
  LUALIB=
 
8186
fi;
 
8187
 
 
8188
# First, check for "--without-lua" or "--with-lua=no".
 
8189
if test x"${LUABIN}" = xno -o x"${with_alllang}" = xno ; then
 
8190
{ echo "$as_me:$LINENO: Disabling Lua" >&5
 
8191
echo "$as_me: Disabling Lua" >&6;}
 
8192
else
 
8193
 
 
8194
# can we find lua?
 
8195
if test -z "$LUABIN"; then
 
8196
   # Extract the first word of "lua", so it can be a program name with args.
 
8197
set dummy lua; ac_word=$2
 
8198
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8199
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
8200
if test "${ac_cv_path_LUABIN+set}" = set; then
 
8201
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8202
else
 
8203
  case $LUABIN in
 
8204
  [\\/]* | ?:[\\/]*)
 
8205
  ac_cv_path_LUABIN="$LUABIN" # Let the user override the test with a path.
 
8206
  ;;
 
8207
  *)
 
8208
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8209
for as_dir in $PATH
 
8210
do
 
8211
  IFS=$as_save_IFS
 
8212
  test -z "$as_dir" && as_dir=.
 
8213
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8214
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8215
    ac_cv_path_LUABIN="$as_dir/$ac_word$ac_exec_ext"
 
8216
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8217
    break 2
 
8218
  fi
 
8219
done
 
8220
done
 
8221
 
 
8222
  ;;
 
8223
esac
 
8224
fi
 
8225
LUABIN=$ac_cv_path_LUABIN
 
8226
 
 
8227
if test -n "$LUABIN"; then
 
8228
  echo "$as_me:$LINENO: result: $LUABIN" >&5
 
8229
echo "${ECHO_T}$LUABIN" >&6
 
8230
else
 
8231
  echo "$as_me:$LINENO: result: no" >&5
 
8232
echo "${ECHO_T}no" >&6
 
8233
fi
 
8234
 
 
8235
fi
 
8236
 
 
8237
# check version: we need Lua 5.x
 
8238
if test "$LUABIN"; then
 
8239
   echo "$as_me:$LINENO: checking Lua version" >&5
 
8240
echo $ECHO_N "checking Lua version... $ECHO_C" >&6
 
8241
   # if version 5.x
 
8242
   LUAV5=`$LUABIN -e 'if string.sub(_VERSION,5,5)=="5" then print "1" end'`
 
8243
   # if not version 5.0
 
8244
   LUAV51=`$LUABIN -e 'if string.sub(_VERSION,5,7)~="5.0" then print "1" end'`
 
8245
 
 
8246
   if test -z "$LUAV5"; then
 
8247
     { echo "$as_me:$LINENO: WARNING: Not Lua 5.x" >&5
 
8248
echo "$as_me: WARNING: Not Lua 5.x" >&2;}
 
8249
     LUABIN=""
 
8250
   elif test -z "$LUAV51"; then
 
8251
     echo "$as_me:$LINENO: result: Lua 5.0.x" >&5
 
8252
echo "${ECHO_T}Lua 5.0.x" >&6
 
8253
     # note: different versions of lua use different libs
 
8254
     LUALIBRARY="-llua -llualib"
 
8255
   else
 
8256
     echo "$as_me:$LINENO: result: Lua 5.1 or later" >&5
 
8257
echo "${ECHO_T}Lua 5.1 or later" >&6
 
8258
     # note: different versions of lua use different libs
 
8259
     LUALIBRARY="-llua"
 
8260
   fi
 
8261
fi
 
8262
 
 
8263
if test "$LUABIN"; then
 
8264
   echo "$as_me:$LINENO: checking whether Lua dynamic loading is enabled" >&5
 
8265
echo $ECHO_N "checking whether Lua dynamic loading is enabled... $ECHO_C" >&6
 
8266
   # using Lua to check Lua
 
8267
   # lua 5.0 & 5.1 have different fn names
 
8268
   if test -z "$LUAV51"; then
 
8269
     LUADYNAMICLOADLIB=`$LUABIN -e '_,_,c=loadlib("no_such_lib","") if c~="absent" then print "1" end'`
 
8270
   else
 
8271
     LUADYNAMICLOADLIB=`$LUABIN -e '_,_,c=package.loadlib("no_such_lib","") if c~="absent" then print "1" end'`
 
8272
   fi
 
8273
 
 
8274
   if test -z "$LUADYNAMICLOADLIB"; then
 
8275
     echo "$as_me:$LINENO: result: no" >&5
 
8276
echo "${ECHO_T}no" >&6
 
8277
   else
 
8278
     echo "$as_me:$LINENO: result: yes" >&5
 
8279
echo "${ECHO_T}yes" >&6
 
8280
   fi
 
8281
fi
 
8282
 
 
8283
# look for the header files
 
8284
echo "$as_me:$LINENO: checking for Lua header files" >&5
 
8285
echo $ECHO_N "checking for Lua header files... $ECHO_C" >&6
 
8286
if test -z "$LUAINCLUDE"; then
 
8287
#AC_TRY_CPP([#include <lua.h>], , LUAINCLUDE="")
 
8288
cat >conftest.$ac_ext <<_ACEOF
 
8289
/* confdefs.h.  */
 
8290
_ACEOF
 
8291
cat confdefs.h >>conftest.$ac_ext
 
8292
cat >>conftest.$ac_ext <<_ACEOF
 
8293
/* end confdefs.h.  */
 
8294
#include <lua.h>
 
8295
_ACEOF
 
8296
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
8297
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
8298
  ac_status=$?
 
8299
  grep -v '^ *+' conftest.er1 >conftest.err
 
8300
  rm -f conftest.er1
 
8301
  cat conftest.err >&5
 
8302
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8303
  (exit $ac_status); } >/dev/null; then
 
8304
  if test -s conftest.err; then
 
8305
    ac_cpp_err=$ac_c_preproc_warn_flag
 
8306
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
8307
  else
 
8308
    ac_cpp_err=
 
8309
  fi
 
8310
else
 
8311
  ac_cpp_err=yes
 
8312
fi
 
8313
if test -z "$ac_cpp_err"; then
 
8314
  :
 
8315
else
 
8316
  echo "$as_me: failed program was:" >&5
 
8317
sed 's/^/| /' conftest.$ac_ext >&5
 
8318
 
 
8319
  LUAINCLUDE=""
 
8320
fi
 
8321
rm -f conftest.err conftest.$ac_ext
 
8322
if test -z "$LUAINCLUDE"; then
 
8323
        dirs="/usr/local/include /usr/include /opt/local/include"
 
8324
        for i in $dirs ; do
 
8325
                if test -r $i/lua.h; then
 
8326
                        echo "$as_me:$LINENO: result: $i" >&5
 
8327
echo "${ECHO_T}$i" >&6
 
8328
                        LUAINCLUDE="$ISYSTEM$i"
 
8329
                        break
 
8330
                fi
 
8331
        done
 
8332
fi
 
8333
fi
 
8334
if test -z "$LUAINCLUDE"; then
 
8335
        echo "$as_me:$LINENO: result: not found" >&5
 
8336
echo "${ECHO_T}not found" >&6
 
8337
else
 
8338
        echo "$as_me:$LINENO: result: $LUAINCLUDE" >&5
 
8339
echo "${ECHO_T}$LUAINCLUDE" >&6
 
8340
fi
 
8341
 
 
8342
# look for the library files
 
8343
echo "$as_me:$LINENO: checking for Lua library" >&5
 
8344
echo $ECHO_N "checking for Lua library... $ECHO_C" >&6
 
8345
if test -z "$LUALIB"; then
 
8346
dirs="/usr/local/lib /usr/lib /opt/local/lib"
 
8347
for i in $dirs ; do
 
8348
        if test -r $i/liblua.a; then
 
8349
            echo "$as_me:$LINENO: result: $i" >&5
 
8350
echo "${ECHO_T}$i" >&6
 
8351
            LUALIB="-L$i"
 
8352
            break
 
8353
        fi
 
8354
done
 
8355
fi
 
8356
if test -z "$LUALIB"; then
 
8357
   echo "$as_me:$LINENO: result: not found" >&5
 
8358
echo "${ECHO_T}not found" >&6
 
8359
else
 
8360
   echo "$as_me:$LINENO: result: $LUALIB" >&5
 
8361
echo "${ECHO_T}$LUALIB" >&6
 
8362
fi
 
8363
 
 
8364
# copied from PYTHON code, but I think this is not needed for lua...
 
8365
# Cygwin (Windows) needs the library for dynamic linking
 
8366
#case $host in
 
8367
#*-*-cygwin* | *-*-mingw*) LUADYNAMICLINKING="-L$LUALIB $PYLINK"
 
8368
#         PYINCLUDE="-DUSE_DL_IMPORT $PYINCLUDE"
 
8369
#         ;;
 
8370
#*)LUADYNAMICLINKING="";;
 
8371
#esac
 
8372
 
 
8373
fi # if not disabled
 
8374
 
 
8375
 
 
8376
 
 
8377
 
 
8378
 
 
8379
 
 
8380
 
 
8381
#----------------------------------------------------------------
7917
8382
# Determine which languages to use for examples/test-suite
7918
8383
#----------------------------------------------------------------
7919
8384
 
8013
8478
SKIP_MODULA3="1" # Always skipped!
8014
8479
 
8015
8480
 
 
8481
SKIP_LUA=
 
8482
# do we really need the LUABIN?
 
8483
if test -z "$LUABIN" || test -z "$LUAINCLUDE" || test -z "$LUALIB" || test -z "$LUADYNAMICLOADLIB"; then
 
8484
    SKIP_LUA="1"
 
8485
fi
 
8486
 
8016
8487
 
8017
8488
#----------------------------------------------------------------
8018
8489
# Miscellaneous
8075
8546
_ACEOF
8076
8547
 
8077
8548
 
8078
 
                                                                                                                                                                                                        ac_config_files="$ac_config_files Makefile swig.spec Source/Makefile Examples/Makefile Examples/guile/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/perl5/Makefile Examples/test-suite/php4/Makefile Examples/test-suite/pike/Makefile Examples/test-suite/python/Makefile Examples/test-suite/ruby/Makefile Examples/test-suite/tcl/Makefile"
 
8549
                                                                                                                                                                                                                  ac_config_files="$ac_config_files Makefile swig.spec Source/Makefile Examples/Makefile Examples/guile/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/perl5/Makefile Examples/test-suite/php4/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"
8079
8550
 
8080
8551
          ac_config_files="$ac_config_files preinst-swig"
8081
8552
 
8462
8933
} >&5
8463
8934
cat >&5 <<_CSEOF
8464
8935
 
8465
 
This file was extended by swig $as_me 1.3.24, which was
 
8936
This file was extended by swig $as_me 1.3.27, which was
8466
8937
generated by GNU Autoconf 2.59.  Invocation command line was
8467
8938
 
8468
8939
  CONFIG_FILES    = $CONFIG_FILES
8525
8996
 
8526
8997
cat >>$CONFIG_STATUS <<_ACEOF
8527
8998
ac_cs_version="\\
8528
 
swig config.status 1.3.24
 
8999
swig config.status 1.3.27
8529
9000
configured by $0, generated by GNU Autoconf 2.59,
8530
9001
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8531
9002
 
8655
9126
  "Examples/test-suite/python/Makefile" ) CONFIG_FILES="$CONFIG_FILES Examples/test-suite/python/Makefile" ;;
8656
9127
  "Examples/test-suite/ruby/Makefile" ) CONFIG_FILES="$CONFIG_FILES Examples/test-suite/ruby/Makefile" ;;
8657
9128
  "Examples/test-suite/tcl/Makefile" ) CONFIG_FILES="$CONFIG_FILES Examples/test-suite/tcl/Makefile" ;;
 
9129
  "Examples/test-suite/lua/Makefile" ) CONFIG_FILES="$CONFIG_FILES Examples/test-suite/lua/Makefile" ;;
8658
9130
  "preinst-swig" ) CONFIG_FILES="$CONFIG_FILES preinst-swig" ;;
8659
9131
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8660
9132
  "Source/Include/swigconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS Source/Include/swigconfig.h" ;;
8762
9234
s,@AUTOMAKE@,$AUTOMAKE,;t t
8763
9235
s,@AUTOHEADER@,$AUTOHEADER,;t t
8764
9236
s,@MAKEINFO@,$MAKEINFO,;t t
8765
 
s,@AMTAR@,$AMTAR,;t t
8766
9237
s,@install_sh@,$install_sh,;t t
8767
9238
s,@STRIP@,$STRIP,;t t
8768
9239
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8771
9242
s,@AWK@,$AWK,;t t
8772
9243
s,@SET_MAKE@,$SET_MAKE,;t t
8773
9244
s,@am__leading_dot@,$am__leading_dot,;t t
 
9245
s,@AMTAR@,$AMTAR,;t t
 
9246
s,@am__tar@,$am__tar,;t t
 
9247
s,@am__untar@,$am__untar,;t t
8774
9248
s,@CC@,$CC,;t t
8775
9249
s,@CFLAGS@,$CFLAGS,;t t
8776
9250
s,@LDFLAGS@,$LDFLAGS,;t t
8813
9287
s,@MZSCHEME_SO@,$MZSCHEME_SO,;t t
8814
9288
s,@TCL_LDSHARED@,$TCL_LDSHARED,;t t
8815
9289
s,@TCL_CXXSHARED@,$TCL_CXXSHARED,;t t
 
9290
s,@LUA_SO@,$LUA_SO,;t t
8816
9291
s,@PLATFLAGS@,$PLATFLAGS,;t t
8817
9292
s,@SWIGLIBS@,$SWIGLIBS,;t t
8818
9293
s,@SWILL@,$SWILL,;t t
8850
9325
s,@GUILELINK@,$GUILELINK,;t t
8851
9326
s,@GUILE_GH_INTERFACE@,$GUILE_GH_INTERFACE,;t t
8852
9327
s,@GUILE_SCM_INTERFACE@,$GUILE_SCM_INTERFACE,;t t
 
9328
s,@MZSCHEME@,$MZSCHEME,;t t
8853
9329
s,@MZC@,$MZC,;t t
8854
 
s,@MZSCHEME@,$MZSCHEME,;t t
8855
9330
s,@MZDYNOBJ@,$MZDYNOBJ,;t t
8856
9331
s,@RUBY@,$RUBY,;t t
8857
9332
s,@RUBYINCLUDE@,$RUBYINCLUDE,;t t
8868
9343
s,@OCAMLMKTOP@,$OCAMLMKTOP,;t t
8869
9344
s,@OCAMLINC@,$OCAMLINC,;t t
8870
9345
s,@PIKE@,$PIKE,;t t
 
9346
s,@PIKECONFIG@,$PIKECONFIG,;t t
8871
9347
s,@PIKEINCLUDE@,$PIKEINCLUDE,;t t
8872
9348
s,@PIKECCDLFLAGS@,$PIKECCDLFLAGS,;t t
8873
9349
s,@PIKEDYNAMICLINKING@,$PIKEDYNAMICLINKING,;t t
8888
9364
s,@CSHARPLIBRARYPREFIX@,$CSHARPLIBRARYPREFIX,;t t
8889
9365
s,@CSHARPCFLAGS@,$CSHARPCFLAGS,;t t
8890
9366
s,@CSHARPSO@,$CSHARPSO,;t t
 
9367
s,@LUABIN@,$LUABIN,;t t
 
9368
s,@LUADYNAMICLINKING@,$LUADYNAMICLINKING,;t t
 
9369
s,@LUAINCLUDE@,$LUAINCLUDE,;t t
 
9370
s,@LUALIB@,$LUALIB,;t t
 
9371
s,@LUALIBRARY@,$LUALIBRARY,;t t
8891
9372
s,@SKIP_TCL@,$SKIP_TCL,;t t
8892
9373
s,@SKIP_PERL5@,$SKIP_PERL5,;t t
8893
9374
s,@SKIP_PYTHON@,$SKIP_PYTHON,;t t
8902
9383
s,@SKIP_CHICKEN@,$SKIP_CHICKEN,;t t
8903
9384
s,@SKIP_CSHARP@,$SKIP_CSHARP,;t t
8904
9385
s,@SKIP_MODULA3@,$SKIP_MODULA3,;t t
 
9386
s,@SKIP_LUA@,$SKIP_LUA,;t t
8905
9387
s,@ROOT_DIR@,$ROOT_DIR,;t t
8906
9388
s,@EXTRA_CLEAN@,$EXTRA_CLEAN,;t t
8907
9389
s,@ac_aux_dir@,$ac_aux_dir,;t t
9535
10017
  else
9536
10018
    continue
9537
10019
  fi
9538
 
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
9539
 
  # Extract the definition of DEP_FILES from the Makefile without
9540
 
  # running `make'.
 
10020
  # Extract the definition of DEPDIR, am__include, and am__quote
 
10021
  # from the Makefile without running `make'.
9541
10022
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9542
10023
  test -z "$DEPDIR" && continue
 
10024
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
10025
  test -z "am__include" && continue
 
10026
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9543
10027
  # When using ansi2knr, U may be empty or an underscore; expand it
9544
10028
  U=`sed -n 's/^U = //p' < "$mf"`
9545
 
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
9546
 
  # We invoke sed twice because it is the simplest approach to
9547
 
  # changing $(DEPDIR) to its actual value in the expansion.
9548
 
  for file in `sed -n '
9549
 
    /^DEP_FILES = .*\\\\$/ {
9550
 
      s/^DEP_FILES = //
9551
 
      :loop
9552
 
        s/\\\\$//
9553
 
        p
9554
 
        n
9555
 
        /\\\\$/ b loop
9556
 
      p
9557
 
    }
9558
 
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
10029
  # Find all dependency output files, they are included files with
 
10030
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
10031
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
10032
  # expansion.
 
10033
  for file in `sed -n "
 
10034
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9559
10035
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9560
10036
    # Make sure the directory exists.
9561
10037
    test -f "$dirpart/$file" && continue