Changeset 4144 for trunk/configure
- Timestamp:
- Jan 21, 2014 10:20:50 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure
r4118 r4144 626 626 LIBOBJS 627 627 subdirs 628 VTK_VERSION 629 VTK _TCL_DIR628 XSUBPP 629 VTKDIR 630 630 TK_VERSION 631 631 TK_XLIBSW … … 641 641 TCL_LIB_SPEC 642 642 TCL_INC_SPEC 643 TCLSH 643 644 SIZEOF_VOID_P 644 645 SIZEOF_LONG_LONG … … 648 649 RUBY_VERSION_RV 649 650 RUBY_PLATFORM 651 RUBY 650 652 RP_BASE 653 R 651 654 PYTHON_VERSION 652 655 PYTHON_SITE_PACKAGES … … 659 662 PYTHON_DISTUTILS 660 663 PYTHON_CFLAGS 664 PYTHON 661 665 PERL_VERSION_RV 662 666 PERL_VERSION … … 670 674 PERL_ARCHLIBEXP 671 675 PERL_ARCHLIB 676 PERL 672 677 OCTAVE_VERSION_MAJOR 673 678 OCTAVE_VERSION … … 676 681 MKOCTFILE2 677 682 MEX_ARCH 683 MEXEXT 684 MEX 685 MCC 686 MATLAB 678 687 MAKE 679 688 LIB_SEARCH_DIRS … … 681 690 JAVA_INC_DIR 682 691 JAVA_HOME 692 JAVAH 693 JAVAC 694 JAVA 683 695 INSTALL_PREFIX 684 696 HAVE_RUBY_DEVEL 685 697 HAVE_INTTYPES_H 686 698 HAVE_FFMPEG_LIBS 687 ENABLE_VTK_DICOM 699 FFMPEG 688 700 ENABLE_GUI 689 ENABLE_LANG690 FFMPEG691 701 LDFLAGS_DEFAULT 692 702 CFLAGS_DEFAULT 693 host_os694 host_vendor695 host_cpu696 host697 build_os698 build_vendor699 build_cpu700 build701 HAVE_RUBY_H702 RUBY_SITELIBDIR703 RUBY_LIBRUBYARG_STATIC704 RUBY_LIBRUBYARG705 RUBY_LIBS706 RUBY_LDFLAGS707 RUBY_CXXFLAGS708 RUBY_CFLAGS709 RUBY_CPPFLAGS710 RUBY_VERSION_CODE711 RUBY712 R713 JAVAH714 JAVAC715 JAVA716 PYTHON717 XSUBPP718 PERL719 mkoctfile2720 mkoctfile3721 MKOCTFILE722 OCTAVE723 MCC724 MEXEXT725 MEX726 MATLAB727 TCLSH728 703 INSTALL_STUB_LIB 729 704 INSTALL_LIB … … 748 723 DL_OBJS 749 724 DL_LIBS 725 CXXCPP 750 726 AR 751 CXXCPP 727 RANLIB 752 728 EGREP 753 729 GREP 754 CPP755 730 ac_ct_F77 756 731 FFLAGS … … 759 734 CXXFLAGS 760 735 CXX 736 X_LIBRARIES 737 X_INCLUDES 738 CPP 761 739 OBJEXT 762 740 EXEEXT … … 766 744 CFLAGS 767 745 CC 746 XMKMF 747 RAPPTURE_RELEASE_SERIAL 748 RAPPTURE_MAJOR_VERSION 749 RAPPTURE_MINOR_VERSION 750 RAPPTURE_VERSION 751 VERSION 768 752 SET_MAKE 769 753 MKDIR_P 770 754 LN_S 771 RANLIB772 755 INSTALL_DATA 773 756 INSTALL_SCRIPT … … 815 798 enable_option_checking 816 799 with_install 800 with_x 817 801 enable_64bit 818 802 enable_64bit_vis 819 803 enable_corefoundation 820 804 enable_load 821 enable_lang822 805 enable_gui 823 with_ffmpeg824 with_tclsh825 with_vtk826 enable_vtkdicom827 with_matlab828 with_octave829 with_mkoctfile3830 with_mkoctfile2831 with_perl832 with_python833 with_java834 with_R835 with_ruby836 with_ruby_sitelibdir837 806 enable_shared 838 807 enable_symbols … … 841 810 host_alias 842 811 target_alias 812 XMKMF 843 813 CC 844 814 CFLAGS … … 846 816 LIBS 847 817 CPPFLAGS 818 CPP 848 819 CXX 849 820 CXXFLAGS … … 851 822 F77 852 823 FFLAGS 853 CPP854 824 CXXCPP' 855 825 ac_subdirs_all='packages/optimizer/src ' … … 1450 1420 cat <<\_ACEOF 1451 1421 1452 System types:1453 -- build=BUILD configure for building on BUILD [guessed]1454 -- host=HOST cross-compile to build programs to run on HOST [BUILD]1422 X features: 1423 --x-includes=DIR X include files are in DIR 1424 --x-libraries=DIR X library files are in DIR 1455 1425 _ACEOF 1456 1426 fi … … 1470 1440 --enable-corefoundation use CoreFoundation API --enable-corefoundation 1471 1441 --disable-load disallow dynamic loading and "load" command 1472 --enable-lang build language bindings [default=yes]1473 1442 --enable-gui build code related to the graphical user interface 1474 1443 [default=yes] 1475 --enable-vtkdicom Use vtkDICOM package [default=no]1476 1444 --enable-shared build and link with shared libraries --enable-shared 1477 1445 --enable-symbols build with debugging symbols --disable-symbols … … 1481 1449 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1482 1450 --with-install=DIR location of installation [default=yes] 1483 --with-ffmpeg=DIR location of ffmpeg [default=yes] 1484 --with-tclsh=DIR location of tclsh [default=yes] 1485 --with-vtk=version VTK library version [default=6.0] 1486 --with-matlab=DIR location of matlab and mex compiler [default=yes] 1487 --with-octave=DIR path of default octave compiler `mkoctfile' 1488 [default=yes] 1489 --with-mkoctfile3=DIR path of octave compiler `mkoctfile' [default=no] 1490 --with-mkoctfile2=DIR path of octave compiler `mkoctfile' [default=no] 1491 --with-perl=DIR location of perl [default=yes] 1492 --with-python=DIR location of python [default=yes] 1493 --with-java=DIR location of java [default=yes] 1494 --with-R=DIR location of R interpreter [default=yes] 1495 --with-ruby=PATH path to the ruby interpreter [[ruby]] 1496 --with-ruby-sitelibdir=PATH 1497 path to install ruby scripts [[auto-detect]] 1451 --with-x use the X Window System 1498 1452 1499 1453 Some influential environment variables: 1454 XMKMF Path to xmkmf, Makefile generator for X Window System 1500 1455 CC C compiler command 1501 1456 CFLAGS C compiler flags … … 1505 1460 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1506 1461 you have headers in a nonstandard directory <include dir> 1462 CPP C preprocessor 1507 1463 CXX C++ compiler command 1508 1464 CXXFLAGS C++ compiler flags 1509 1465 F77 Fortran 77 compiler command 1510 1466 FFLAGS Fortran 77 compiler flags 1511 CPP C preprocessor1512 1467 CXXCPP C++ preprocessor 1513 1468 … … 1630 1585 } # ac_fn_c_try_compile 1631 1586 1632 # ac_fn_cxx_try_compile LINENO1633 # ----------------------------1634 # Try to compile conftest.$ac_ext, and return whether this succeeded.1635 ac_fn_cxx_try_compile ()1636 {1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1638 rm -f conftest.$ac_objext1639 if { { ac_try="$ac_compile"1640 case "(($ac_try" in1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1642 *) ac_try_echo=$ac_try;;1643 esac1644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""1645 $as_echo "$ac_try_echo"; } >&51646 (eval "$ac_compile") 2>conftest.err1647 ac_status=$?1648 if test -s conftest.err; then1649 grep -v '^ *+' conftest.err >conftest.er11650 cat conftest.er1 >&51651 mv -f conftest.er1 conftest.err1652 fi1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51654 test $ac_status = 0; } && {1655 test -z "$ac_cxx_werror_flag" ||1656 test ! -s conftest.err1657 } && test -s conftest.$ac_objext; then :1658 ac_retval=01659 else1660 $as_echo "$as_me: failed program was:" >&51661 sed 's/^/| /' conftest.$ac_ext >&51662 1663 ac_retval=11664 fi1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno1666 as_fn_set_status $ac_retval1667 1668 } # ac_fn_cxx_try_compile1669 1670 # ac_fn_f77_try_compile LINENO1671 # ----------------------------1672 # Try to compile conftest.$ac_ext, and return whether this succeeded.1673 ac_fn_f77_try_compile ()1674 {1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1676 rm -f conftest.$ac_objext1677 if { { ac_try="$ac_compile"1678 case "(($ac_try" in1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1680 *) ac_try_echo=$ac_try;;1681 esac1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""1683 $as_echo "$ac_try_echo"; } >&51684 (eval "$ac_compile") 2>conftest.err1685 ac_status=$?1686 if test -s conftest.err; then1687 grep -v '^ *+' conftest.err >conftest.er11688 cat conftest.er1 >&51689 mv -f conftest.er1 conftest.err1690 fi1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51692 test $ac_status = 0; } && {1693 test -z "$ac_f77_werror_flag" ||1694 test ! -s conftest.err1695 } && test -s conftest.$ac_objext; then :1696 ac_retval=01697 else1698 $as_echo "$as_me: failed program was:" >&51699 sed 's/^/| /' conftest.$ac_ext >&51700 1701 ac_retval=11702 fi1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno1704 as_fn_set_status $ac_retval1705 1706 } # ac_fn_f77_try_compile1707 1708 1587 # ac_fn_c_try_cpp LINENO 1709 1588 # ---------------------- … … 1742 1621 1743 1622 } # ac_fn_c_try_cpp 1744 1745 # ac_fn_c_try_run LINENO1746 # ----------------------1747 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes1748 # that executables *can* be run.1749 ac_fn_c_try_run ()1750 {1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1752 if { { ac_try="$ac_link"1753 case "(($ac_try" in1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1755 *) ac_try_echo=$ac_try;;1756 esac1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""1758 $as_echo "$ac_try_echo"; } >&51759 (eval "$ac_link") 2>&51760 ac_status=$?1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51762 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'1763 { { case "(($ac_try" in1764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1765 *) ac_try_echo=$ac_try;;1766 esac1767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""1768 $as_echo "$ac_try_echo"; } >&51769 (eval "$ac_try") 2>&51770 ac_status=$?1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51772 test $ac_status = 0; }; }; then :1773 ac_retval=01774 else1775 $as_echo "$as_me: program exited with status $ac_status" >&51776 $as_echo "$as_me: failed program was:" >&51777 sed 's/^/| /' conftest.$ac_ext >&51778 1779 ac_retval=$ac_status1780 fi1781 rm -rf conftest.dSYM conftest_ipa8_conftest.oo1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno1783 as_fn_set_status $ac_retval1784 1785 } # ac_fn_c_try_run1786 1623 1787 1624 # ac_fn_c_try_link LINENO … … 1831 1668 } # ac_fn_c_try_link 1832 1669 1833 # ac_fn_c _check_func LINENO FUNC VAR1834 # ---------------------------- ------1835 # T ests whether FUNC exists, setting the cache variable VAR accordingly1836 ac_fn_c _check_func()1670 # ac_fn_cxx_try_compile LINENO 1671 # ---------------------------- 1672 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1673 ac_fn_cxx_try_compile () 1837 1674 { 1838 1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1840 $as_echo_n "checking for $2... " >&6; } 1841 if eval \${$3+:} false; then : 1842 $as_echo_n "(cached) " >&6 1843 else 1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1845 /* end confdefs.h. */ 1846 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1847 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1848 #define $2 innocuous_$2 1849 1850 /* System header to define __stub macros and hopefully few prototypes, 1851 which can conflict with char $2 (); below. 1852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1853 <limits.h> exists even on freestanding compilers. */ 1854 1855 #ifdef __STDC__ 1856 # include <limits.h> 1857 #else 1858 # include <assert.h> 1859 #endif 1860 1861 #undef $2 1862 1863 /* Override any GCC internal prototype to avoid an error. 1864 Use char because int might match the return type of a GCC 1865 builtin and then its argument prototype would still apply. */ 1866 #ifdef __cplusplus 1867 extern "C" 1868 #endif 1869 char $2 (); 1870 /* The GNU C library defines this for functions which it implements 1871 to always fail with ENOSYS. Some functions are actually named 1872 something starting with __ and the normal name is an alias. */ 1873 #if defined __stub_$2 || defined __stub___$2 1874 choke me 1875 #endif 1876 1877 int 1878 main () 1676 rm -f conftest.$ac_objext 1677 if { { ac_try="$ac_compile" 1678 case "(($ac_try" in 1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1680 *) ac_try_echo=$ac_try;; 1681 esac 1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1683 $as_echo "$ac_try_echo"; } >&5 1684 (eval "$ac_compile") 2>conftest.err 1685 ac_status=$? 1686 if test -s conftest.err; then 1687 grep -v '^ *+' conftest.err >conftest.er1 1688 cat conftest.er1 >&5 1689 mv -f conftest.er1 conftest.err 1690 fi 1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1692 test $ac_status = 0; } && { 1693 test -z "$ac_cxx_werror_flag" || 1694 test ! -s conftest.err 1695 } && test -s conftest.$ac_objext; then : 1696 ac_retval=0 1697 else 1698 $as_echo "$as_me: failed program was:" >&5 1699 sed 's/^/| /' conftest.$ac_ext >&5 1700 1701 ac_retval=1 1702 fi 1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1704 as_fn_set_status $ac_retval 1705 1706 } # ac_fn_cxx_try_compile 1707 1708 # ac_fn_f77_try_compile LINENO 1709 # ---------------------------- 1710 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1711 ac_fn_f77_try_compile () 1879 1712 { 1880 return $2 (); 1881 ; 1882 return 0; 1883 } 1884 _ACEOF 1885 if ac_fn_c_try_link "$LINENO"; then : 1886 eval "$3=yes" 1887 else 1888 eval "$3=no" 1889 fi 1890 rm -f core conftest.err conftest.$ac_objext \ 1891 conftest$ac_exeext conftest.$ac_ext 1892 fi 1893 eval ac_res=\$$3 1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1895 $as_echo "$ac_res" >&6; } 1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1714 rm -f conftest.$ac_objext 1715 if { { ac_try="$ac_compile" 1716 case "(($ac_try" in 1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1718 *) ac_try_echo=$ac_try;; 1719 esac 1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1721 $as_echo "$ac_try_echo"; } >&5 1722 (eval "$ac_compile") 2>conftest.err 1723 ac_status=$? 1724 if test -s conftest.err; then 1725 grep -v '^ *+' conftest.err >conftest.er1 1726 cat conftest.er1 >&5 1727 mv -f conftest.er1 conftest.err 1728 fi 1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1730 test $ac_status = 0; } && { 1731 test -z "$ac_f77_werror_flag" || 1732 test ! -s conftest.err 1733 } && test -s conftest.$ac_objext; then : 1734 ac_retval=0 1735 else 1736 $as_echo "$as_me: failed program was:" >&5 1737 sed 's/^/| /' conftest.$ac_ext >&5 1738 1739 ac_retval=1 1740 fi 1896 1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1897 1898 } # ac_fn_c_check_func 1742 as_fn_set_status $ac_retval 1743 1744 } # ac_fn_f77_try_compile 1745 1746 # ac_fn_c_try_run LINENO 1747 # ---------------------- 1748 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1749 # that executables *can* be run. 1750 ac_fn_c_try_run () 1751 { 1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1753 if { { ac_try="$ac_link" 1754 case "(($ac_try" in 1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1756 *) ac_try_echo=$ac_try;; 1757 esac 1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1759 $as_echo "$ac_try_echo"; } >&5 1760 (eval "$ac_link") 2>&5 1761 ac_status=$? 1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1763 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1764 { { case "(($ac_try" in 1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1766 *) ac_try_echo=$ac_try;; 1767 esac 1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1769 $as_echo "$ac_try_echo"; } >&5 1770 (eval "$ac_try") 2>&5 1771 ac_status=$? 1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1773 test $ac_status = 0; }; }; then : 1774 ac_retval=0 1775 else 1776 $as_echo "$as_me: program exited with status $ac_status" >&5 1777 $as_echo "$as_me: failed program was:" >&5 1778 sed 's/^/| /' conftest.$ac_ext >&5 1779 1780 ac_retval=$ac_status 1781 fi 1782 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1784 as_fn_set_status $ac_retval 1785 1786 } # ac_fn_c_try_run 1899 1787 1900 1788 # ac_fn_cxx_try_link LINENO … … 1943 1831 1944 1832 } # ac_fn_cxx_try_link 1945 1946 # ac_fn_cxx_check_func LINENO FUNC VAR1947 # ------------------------------------1948 # Tests whether FUNC exists, setting the cache variable VAR accordingly1949 ac_fn_cxx_check_func ()1950 {1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&51953 $as_echo_n "checking for $2... " >&6; }1954 if eval \${$3+:} false; then :1955 $as_echo_n "(cached) " >&61956 else1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext1958 /* end confdefs.h. */1959 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.1960 For example, HP-UX 11i <limits.h> declares gettimeofday. */1961 #define $2 innocuous_$21962 1963 /* System header to define __stub macros and hopefully few prototypes,1964 which can conflict with char $2 (); below.1965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since1966 <limits.h> exists even on freestanding compilers. */1967 1968 #ifdef __STDC__1969 # include <limits.h>1970 #else1971 # include <assert.h>1972 #endif1973 1974 #undef $21975 1976 /* Override any GCC internal prototype to avoid an error.1977 Use char because int might match the return type of a GCC1978 builtin and then its argument prototype would still apply. */1979 #ifdef __cplusplus1980 extern "C"1981 #endif1982 char $2 ();1983 /* The GNU C library defines this for functions which it implements1984 to always fail with ENOSYS. Some functions are actually named1985 something starting with __ and the normal name is an alias. */1986 #if defined __stub_$2 || defined __stub___$21987 choke me1988 #endif1989 1990 int1991 main ()1992 {1993 return $2 ();1994 ;1995 return 0;1996 }1997 _ACEOF1998 if ac_fn_cxx_try_link "$LINENO"; then :1999 eval "$3=yes"2000 else2001 eval "$3=no"2002 fi2003 rm -f core conftest.err conftest.$ac_objext \2004 conftest$ac_exeext conftest.$ac_ext2005 fi2006 eval ac_res=\$$32007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&52008 $as_echo "$ac_res" >&6; }2009 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno2010 2011 } # ac_fn_cxx_check_func2012 1833 2013 1834 # ac_fn_cxx_try_cpp LINENO … … 2775 2596 2776 2597 2777 ac_config_headers="$ac_config_headers src/core/config.h"2778 2779 2598 2780 2599 #------------------------------------------------------------------------ … … 2906 2725 2907 2726 2908 if test -n "$ac_tool_prefix"; then2909 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.2910 set dummy ${ac_tool_prefix}ranlib; ac_word=$22911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&52912 $as_echo_n "checking for $ac_word... " >&6; }2913 if ${ac_cv_prog_RANLIB+:} false; then :2914 $as_echo_n "(cached) " >&62915 else2916 if test -n "$RANLIB"; then2917 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.2918 else2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR2920 for as_dir in $PATH2921 do2922 IFS=$as_save_IFS2923 test -z "$as_dir" && as_dir=.2924 for ac_exec_ext in '' $ac_executable_extensions; do2925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then2926 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"2927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&52928 break 22929 fi2930 done2931 done2932 IFS=$as_save_IFS2933 2934 fi2935 fi2936 RANLIB=$ac_cv_prog_RANLIB2937 if test -n "$RANLIB"; then2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&52939 $as_echo "$RANLIB" >&6; }2940 else2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&52942 $as_echo "no" >&6; }2943 fi2944 2945 2946 fi2947 if test -z "$ac_cv_prog_RANLIB"; then2948 ac_ct_RANLIB=$RANLIB2949 # Extract the first word of "ranlib", so it can be a program name with args.2950 set dummy ranlib; ac_word=$22951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&52952 $as_echo_n "checking for $ac_word... " >&6; }2953 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :2954 $as_echo_n "(cached) " >&62955 else2956 if test -n "$ac_ct_RANLIB"; then2957 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.2958 else2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR2960 for as_dir in $PATH2961 do2962 IFS=$as_save_IFS2963 test -z "$as_dir" && as_dir=.2964 for ac_exec_ext in '' $ac_executable_extensions; do2965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then2966 ac_cv_prog_ac_ct_RANLIB="ranlib"2967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&52968 break 22969 fi2970 done2971 done2972 IFS=$as_save_IFS2973 2974 fi2975 fi2976 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB2977 if test -n "$ac_ct_RANLIB"; then2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&52979 $as_echo "$ac_ct_RANLIB" >&6; }2980 else2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&52982 $as_echo "no" >&6; }2983 fi2984 2985 if test "x$ac_ct_RANLIB" = x; then2986 RANLIB=":"2987 else2988 case $cross_compiling:$ac_tool_warned in2989 yes:)2990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&52991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}2992 ac_tool_warned=yes ;;2993 esac2994 RANLIB=$ac_ct_RANLIB2995 fi2996 else2997 RANLIB="$ac_cv_prog_RANLIB"2998 fi2999 3000 2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 3001 2728 $as_echo_n "checking whether ln -s works... " >&6; } … … 3083 2810 3084 2811 3085 # Check for C, C++, and FORTRAN 2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RAPPTURE_MAJOR_VERSION" >&5 2813 $as_echo_n "checking RAPPTURE_MAJOR_VERSION... " >&6; } 2814 RAPPTURE_MAJOR_VERSION=1 2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAPPTURE_MAJOR_VERSION" >&5 2816 $as_echo "$RAPPTURE_MAJOR_VERSION" >&6; } 2817 2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RAPPTURE_MINOR_VERSION" >&5 2819 $as_echo_n "checking RAPPTURE_MINOR_VERSION... " >&6; } 2820 RAPPTURE_MINOR_VERSION=4 2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAPPTURE_MINOR_VERSION" >&5 2822 $as_echo "$RAPPTURE_MINOR_VERSION" >&6; } 2823 2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RAPPTURE_RELEASE_SERIAL" >&5 2825 $as_echo_n "checking RAPPTURE_RELEASE_SERIAL... " >&6; } 2826 RAPPTURE_RELEASE_SERIAL=0 2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAPPTURE_RELEASE_SERIAL" >&5 2828 $as_echo "$RAPPTURE_RELEASE_SERIAL" >&6; } 2829 2830 RAPPTURE_VERSION=${RAPPTURE_MAJOR_VERSION}.${RAPPTURE_MINOR_VERSION} 2831 2832 2833 2834 2835 2836 2837 3086 2838 ac_ext=c 3087 2839 ac_cpp='$CPP $CPPFLAGS' … … 3873 3625 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3874 3626 3627 3628 ac_ext=c 3629 ac_cpp='$CPP $CPPFLAGS' 3630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3632 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3634 $as_echo_n "checking how to run the C preprocessor... " >&6; } 3635 # On Suns, sometimes $CPP names a directory. 3636 if test -n "$CPP" && test -d "$CPP"; then 3637 CPP= 3638 fi 3639 if test -z "$CPP"; then 3640 if ${ac_cv_prog_CPP+:} false; then : 3641 $as_echo_n "(cached) " >&6 3642 else 3643 # Double quotes because CPP needs to be expanded 3644 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3645 do 3646 ac_preproc_ok=false 3647 for ac_c_preproc_warn_flag in '' yes 3648 do 3649 # Use a header file that comes with gcc, so configuring glibc 3650 # with a fresh cross-compiler works. 3651 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3652 # <limits.h> exists even on freestanding compilers. 3653 # On the NeXT, cc -E runs the code through the compiler's parser, 3654 # not just through cpp. "Syntax error" is here to catch this case. 3655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3656 /* end confdefs.h. */ 3657 #ifdef __STDC__ 3658 # include <limits.h> 3659 #else 3660 # include <assert.h> 3661 #endif 3662 Syntax error 3663 _ACEOF 3664 if ac_fn_c_try_cpp "$LINENO"; then : 3665 3666 else 3667 # Broken: fails on valid input. 3668 continue 3669 fi 3670 rm -f conftest.err conftest.i conftest.$ac_ext 3671 3672 # OK, works on sane cases. Now check whether nonexistent headers 3673 # can be detected and how. 3674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3675 /* end confdefs.h. */ 3676 #include <ac_nonexistent.h> 3677 _ACEOF 3678 if ac_fn_c_try_cpp "$LINENO"; then : 3679 # Broken: success on invalid input. 3680 continue 3681 else 3682 # Passes both tests. 3683 ac_preproc_ok=: 3684 break 3685 fi 3686 rm -f conftest.err conftest.i conftest.$ac_ext 3687 3688 done 3689 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3690 rm -f conftest.i conftest.err conftest.$ac_ext 3691 if $ac_preproc_ok; then : 3692 break 3693 fi 3694 3695 done 3696 ac_cv_prog_CPP=$CPP 3697 3698 fi 3699 CPP=$ac_cv_prog_CPP 3700 else 3701 ac_cv_prog_CPP=$CPP 3702 fi 3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3704 $as_echo "$CPP" >&6; } 3705 ac_preproc_ok=false 3706 for ac_c_preproc_warn_flag in '' yes 3707 do 3708 # Use a header file that comes with gcc, so configuring glibc 3709 # with a fresh cross-compiler works. 3710 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3711 # <limits.h> exists even on freestanding compilers. 3712 # On the NeXT, cc -E runs the code through the compiler's parser, 3713 # not just through cpp. "Syntax error" is here to catch this case. 3714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3715 /* end confdefs.h. */ 3716 #ifdef __STDC__ 3717 # include <limits.h> 3718 #else 3719 # include <assert.h> 3720 #endif 3721 Syntax error 3722 _ACEOF 3723 if ac_fn_c_try_cpp "$LINENO"; then : 3724 3725 else 3726 # Broken: fails on valid input. 3727 continue 3728 fi 3729 rm -f conftest.err conftest.i conftest.$ac_ext 3730 3731 # OK, works on sane cases. Now check whether nonexistent headers 3732 # can be detected and how. 3733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3734 /* end confdefs.h. */ 3735 #include <ac_nonexistent.h> 3736 _ACEOF 3737 if ac_fn_c_try_cpp "$LINENO"; then : 3738 # Broken: success on invalid input. 3739 continue 3740 else 3741 # Passes both tests. 3742 ac_preproc_ok=: 3743 break 3744 fi 3745 rm -f conftest.err conftest.i conftest.$ac_ext 3746 3747 done 3748 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3749 rm -f conftest.i conftest.err conftest.$ac_ext 3750 if $ac_preproc_ok; then : 3751 3752 else 3753 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3755 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3756 See \`config.log' for more details" "$LINENO" 5; } 3757 fi 3758 3759 ac_ext=c 3760 ac_cpp='$CPP $CPPFLAGS' 3761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3763 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3764 3765 3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 3767 $as_echo_n "checking for X... " >&6; } 3768 3769 3770 # Check whether --with-x was given. 3771 if test "${with_x+set}" = set; then : 3772 withval=$with_x; 3773 fi 3774 3775 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 3776 if test "x$with_x" = xno; then 3777 # The user explicitly disabled X. 3778 have_x=disabled 3779 else 3780 case $x_includes,$x_libraries in #( 3781 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 3782 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 3783 $as_echo_n "(cached) " >&6 3784 else 3785 # One or both of the vars are not set, and there is no cached value. 3786 ac_x_includes=no ac_x_libraries=no 3787 rm -f -r conftest.dir 3788 if mkdir conftest.dir; then 3789 cd conftest.dir 3790 cat >Imakefile <<'_ACEOF' 3791 incroot: 3792 @echo incroot='${INCROOT}' 3793 usrlibdir: 3794 @echo usrlibdir='${USRLIBDIR}' 3795 libdir: 3796 @echo libdir='${LIBDIR}' 3797 _ACEOF 3798 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 3799 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3800 for ac_var in incroot usrlibdir libdir; do 3801 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 3802 done 3803 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 3804 for ac_extension in a so sl dylib la dll; do 3805 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 3806 test -f "$ac_im_libdir/libX11.$ac_extension"; then 3807 ac_im_usrlibdir=$ac_im_libdir; break 3808 fi 3809 done 3810 # Screen out bogus values from the imake configuration. They are 3811 # bogus both because they are the default anyway, and because 3812 # using them would break gcc on systems where it needs fixed includes. 3813 case $ac_im_incroot in 3814 /usr/include) ac_x_includes= ;; 3815 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 3816 esac 3817 case $ac_im_usrlibdir in 3818 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 3819 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 3820 esac 3821 fi 3822 cd .. 3823 rm -f -r conftest.dir 3824 fi 3825 3826 # Standard set of common directories for X headers. 3827 # Check X11 before X11Rn because it is often a symlink to the current release. 3828 ac_x_header_dirs=' 3829 /usr/X11/include 3830 /usr/X11R7/include 3831 /usr/X11R6/include 3832 /usr/X11R5/include 3833 /usr/X11R4/include 3834 3835 /usr/include/X11 3836 /usr/include/X11R7 3837 /usr/include/X11R6 3838 /usr/include/X11R5 3839 /usr/include/X11R4 3840 3841 /usr/local/X11/include 3842 /usr/local/X11R7/include 3843 /usr/local/X11R6/include 3844 /usr/local/X11R5/include 3845 /usr/local/X11R4/include 3846 3847 /usr/local/include/X11 3848 /usr/local/include/X11R7 3849 /usr/local/include/X11R6 3850 /usr/local/include/X11R5 3851 /usr/local/include/X11R4 3852 3853 /usr/X386/include 3854 /usr/x386/include 3855 /usr/XFree86/include/X11 3856 3857 /usr/include 3858 /usr/local/include 3859 /usr/unsupported/include 3860 /usr/athena/include 3861 /usr/local/x11r5/include 3862 /usr/lpp/Xamples/include 3863 3864 /usr/openwin/include 3865 /usr/openwin/share/include' 3866 3867 if test "$ac_x_includes" = no; then 3868 # Guess where to find include files, by looking for Xlib.h. 3869 # First, try using that file with no special directory specified. 3870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3871 /* end confdefs.h. */ 3872 #include <X11/Xlib.h> 3873 _ACEOF 3874 if ac_fn_c_try_cpp "$LINENO"; then : 3875 # We can compile using X headers with no special include directory. 3876 ac_x_includes= 3877 else 3878 for ac_dir in $ac_x_header_dirs; do 3879 if test -r "$ac_dir/X11/Xlib.h"; then 3880 ac_x_includes=$ac_dir 3881 break 3882 fi 3883 done 3884 fi 3885 rm -f conftest.err conftest.i conftest.$ac_ext 3886 fi # $ac_x_includes = no 3887 3888 if test "$ac_x_libraries" = no; then 3889 # Check for the libraries. 3890 # See if we find them without any special options. 3891 # Don't add to $LIBS permanently. 3892 ac_save_LIBS=$LIBS 3893 LIBS="-lX11 $LIBS" 3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3895 /* end confdefs.h. */ 3896 #include <X11/Xlib.h> 3897 int 3898 main () 3899 { 3900 XrmInitialize () 3901 ; 3902 return 0; 3903 } 3904 _ACEOF 3905 if ac_fn_c_try_link "$LINENO"; then : 3906 LIBS=$ac_save_LIBS 3907 # We can link X programs with no special library path. 3908 ac_x_libraries= 3909 else 3910 LIBS=$ac_save_LIBS 3911 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 3912 do 3913 # Don't even attempt the hair of trying to link an X program! 3914 for ac_extension in a so sl dylib la dll; do 3915 if test -r "$ac_dir/libX11.$ac_extension"; then 3916 ac_x_libraries=$ac_dir 3917 break 2 3918 fi 3919 done 3920 done 3921 fi 3922 rm -f core conftest.err conftest.$ac_objext \ 3923 conftest$ac_exeext conftest.$ac_ext 3924 fi # $ac_x_libraries = no 3925 3926 case $ac_x_includes,$ac_x_libraries in #( 3927 no,* | *,no | *\'*) 3928 # Didn't find X, or a directory has "'" in its name. 3929 ac_cv_have_x="have_x=no";; #( 3930 *) 3931 # Record where we found X for the cache. 3932 ac_cv_have_x="have_x=yes\ 3933 ac_x_includes='$ac_x_includes'\ 3934 ac_x_libraries='$ac_x_libraries'" 3935 esac 3936 fi 3937 ;; #( 3938 *) have_x=yes;; 3939 esac 3940 eval "$ac_cv_have_x" 3941 fi # $with_x != no 3942 3943 if test "$have_x" != yes; then 3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 3945 $as_echo "$have_x" >&6; } 3946 no_x=yes 3947 else 3948 # If each of the values was on the command line, it overrides each guess. 3949 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 3950 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 3951 # Update the cache value to reflect the command line values. 3952 ac_cv_have_x="have_x=yes\ 3953 ac_x_includes='$x_includes'\ 3954 ac_x_libraries='$x_libraries'" 3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 3956 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 3957 fi 3958 3959 3960 X_INCLUDES=${x_includes} 3961 X_LIBRARIES=${x_libraries} 3962 3963 3964 3965 # Check for C, C++, and FORTRAN 3966 ac_ext=c 3967 ac_cpp='$CPP $CPPFLAGS' 3968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3970 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3971 if test -n "$ac_tool_prefix"; then 3972 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3973 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3975 $as_echo_n "checking for $ac_word... " >&6; } 3976 if ${ac_cv_prog_CC+:} false; then : 3977 $as_echo_n "(cached) " >&6 3978 else 3979 if test -n "$CC"; then 3980 ac_cv_prog_CC="$CC" # Let the user override the test. 3981 else 3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3983 for as_dir in $PATH 3984 do 3985 IFS=$as_save_IFS 3986 test -z "$as_dir" && as_dir=. 3987 for ac_exec_ext in '' $ac_executable_extensions; do 3988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3989 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3991 break 2 3992 fi 3993 done 3994 done 3995 IFS=$as_save_IFS 3996 3997 fi 3998 fi 3999 CC=$ac_cv_prog_CC 4000 if test -n "$CC"; then 4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4002 $as_echo "$CC" >&6; } 4003 else 4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4005 $as_echo "no" >&6; } 4006 fi 4007 4008 4009 fi 4010 if test -z "$ac_cv_prog_CC"; then 4011 ac_ct_CC=$CC 4012 # Extract the first word of "gcc", so it can be a program name with args. 4013 set dummy gcc; ac_word=$2 4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4015 $as_echo_n "checking for $ac_word... " >&6; } 4016 if ${ac_cv_prog_ac_ct_CC+:} false; then : 4017 $as_echo_n "(cached) " >&6 4018 else 4019 if test -n "$ac_ct_CC"; then 4020 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4021 else 4022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4023 for as_dir in $PATH 4024 do 4025 IFS=$as_save_IFS 4026 test -z "$as_dir" && as_dir=. 4027 for ac_exec_ext in '' $ac_executable_extensions; do 4028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4029 ac_cv_prog_ac_ct_CC="gcc" 4030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4031 break 2 4032 fi 4033 done 4034 done 4035 IFS=$as_save_IFS 4036 4037 fi 4038 fi 4039 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4040 if test -n "$ac_ct_CC"; then 4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4042 $as_echo "$ac_ct_CC" >&6; } 4043 else 4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4045 $as_echo "no" >&6; } 4046 fi 4047 4048 if test "x$ac_ct_CC" = x; then 4049 CC="" 4050 else 4051 case $cross_compiling:$ac_tool_warned in 4052 yes:) 4053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4055 ac_tool_warned=yes ;; 4056 esac 4057 CC=$ac_ct_CC 4058 fi 4059 else 4060 CC="$ac_cv_prog_CC" 4061 fi 4062 4063 if test -z "$CC"; then 4064 if test -n "$ac_tool_prefix"; then 4065 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4066 set dummy ${ac_tool_prefix}cc; ac_word=$2 4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4068 $as_echo_n "checking for $ac_word... " >&6; } 4069 if ${ac_cv_prog_CC+:} false; then : 4070 $as_echo_n "(cached) " >&6 4071 else 4072 if test -n "$CC"; then 4073 ac_cv_prog_CC="$CC" # Let the user override the test. 4074 else 4075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4076 for as_dir in $PATH 4077 do 4078 IFS=$as_save_IFS 4079 test -z "$as_dir" && as_dir=. 4080 for ac_exec_ext in '' $ac_executable_extensions; do 4081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4082 ac_cv_prog_CC="${ac_tool_prefix}cc" 4083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4084 break 2 4085 fi 4086 done 4087 done 4088 IFS=$as_save_IFS 4089 4090 fi 4091 fi 4092 CC=$ac_cv_prog_CC 4093 if test -n "$CC"; then 4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4095 $as_echo "$CC" >&6; } 4096 else 4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4098 $as_echo "no" >&6; } 4099 fi 4100 4101 4102 fi 4103 fi 4104 if test -z "$CC"; then 4105 # Extract the first word of "cc", so it can be a program name with args. 4106 set dummy cc; ac_word=$2 4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4108 $as_echo_n "checking for $ac_word... " >&6; } 4109 if ${ac_cv_prog_CC+:} false; then : 4110 $as_echo_n "(cached) " >&6 4111 else 4112 if test -n "$CC"; then 4113 ac_cv_prog_CC="$CC" # Let the user override the test. 4114 else 4115 ac_prog_rejected=no 4116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4117 for as_dir in $PATH 4118 do 4119 IFS=$as_save_IFS 4120 test -z "$as_dir" && as_dir=. 4121 for ac_exec_ext in '' $ac_executable_extensions; do 4122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4123 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4124 ac_prog_rejected=yes 4125 continue 4126 fi 4127 ac_cv_prog_CC="cc" 4128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4129 break 2 4130 fi 4131 done 4132 done 4133 IFS=$as_save_IFS 4134 4135 if test $ac_prog_rejected = yes; then 4136 # We found a bogon in the path, so make sure we never use it. 4137 set dummy $ac_cv_prog_CC 4138 shift 4139 if test $# != 0; then 4140 # We chose a different compiler from the bogus one. 4141 # However, it has the same basename, so the bogon will be chosen 4142 # first if we set CC to just the basename; use the full file name. 4143 shift 4144 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4145 fi 4146 fi 4147 fi 4148 fi 4149 CC=$ac_cv_prog_CC 4150 if test -n "$CC"; then 4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4152 $as_echo "$CC" >&6; } 4153 else 4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4155 $as_echo "no" >&6; } 4156 fi 4157 4158 4159 fi 4160 if test -z "$CC"; then 4161 if test -n "$ac_tool_prefix"; then 4162 for ac_prog in cl.exe 4163 do 4164 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4165 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4167 $as_echo_n "checking for $ac_word... " >&6; } 4168 if ${ac_cv_prog_CC+:} false; then : 4169 $as_echo_n "(cached) " >&6 4170 else 4171 if test -n "$CC"; then 4172 ac_cv_prog_CC="$CC" # Let the user override the test. 4173 else 4174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4175 for as_dir in $PATH 4176 do 4177 IFS=$as_save_IFS 4178 test -z "$as_dir" && as_dir=. 4179 for ac_exec_ext in '' $ac_executable_extensions; do 4180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4181 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4183 break 2 4184 fi 4185 done 4186 done 4187 IFS=$as_save_IFS 4188 4189 fi 4190 fi 4191 CC=$ac_cv_prog_CC 4192 if test -n "$CC"; then 4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4194 $as_echo "$CC" >&6; } 4195 else 4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4197 $as_echo "no" >&6; } 4198 fi 4199 4200 4201 test -n "$CC" && break 4202 done 4203 fi 4204 if test -z "$CC"; then 4205 ac_ct_CC=$CC 4206 for ac_prog in cl.exe 4207 do 4208 # Extract the first word of "$ac_prog", so it can be a program name with args. 4209 set dummy $ac_prog; ac_word=$2 4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4211 $as_echo_n "checking for $ac_word... " >&6; } 4212 if ${ac_cv_prog_ac_ct_CC+:} false; then : 4213 $as_echo_n "(cached) " >&6 4214 else 4215 if test -n "$ac_ct_CC"; then 4216 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4217 else 4218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4219 for as_dir in $PATH 4220 do 4221 IFS=$as_save_IFS 4222 test -z "$as_dir" && as_dir=. 4223 for ac_exec_ext in '' $ac_executable_extensions; do 4224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4225 ac_cv_prog_ac_ct_CC="$ac_prog" 4226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4227 break 2 4228 fi 4229 done 4230 done 4231 IFS=$as_save_IFS 4232 4233 fi 4234 fi 4235 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4236 if test -n "$ac_ct_CC"; then 4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4238 $as_echo "$ac_ct_CC" >&6; } 4239 else 4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4241 $as_echo "no" >&6; } 4242 fi 4243 4244 4245 test -n "$ac_ct_CC" && break 4246 done 4247 4248 if test "x$ac_ct_CC" = x; then 4249 CC="" 4250 else 4251 case $cross_compiling:$ac_tool_warned in 4252 yes:) 4253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4255 ac_tool_warned=yes ;; 4256 esac 4257 CC=$ac_ct_CC 4258 fi 4259 fi 4260 4261 fi 4262 4263 4264 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4266 as_fn_error $? "no acceptable C compiler found in \$PATH 4267 See \`config.log' for more details" "$LINENO" 5; } 4268 4269 # Provide some information about the compiler. 4270 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4271 set X $ac_compile 4272 ac_compiler=$2 4273 for ac_option in --version -v -V -qversion; do 4274 { { ac_try="$ac_compiler $ac_option >&5" 4275 case "(($ac_try" in 4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4277 *) ac_try_echo=$ac_try;; 4278 esac 4279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4280 $as_echo "$ac_try_echo"; } >&5 4281 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4282 ac_status=$? 4283 if test -s conftest.err; then 4284 sed '10a\ 4285 ... rest of stderr output deleted ... 4286 10q' conftest.err >conftest.er1 4287 cat conftest.er1 >&5 4288 fi 4289 rm -f conftest.er1 conftest.err 4290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4291 test $ac_status = 0; } 4292 done 4293 4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4295 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4296 if ${ac_cv_c_compiler_gnu+:} false; then : 4297 $as_echo_n "(cached) " >&6 4298 else 4299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4300 /* end confdefs.h. */ 4301 4302 int 4303 main () 4304 { 4305 #ifndef __GNUC__ 4306 choke me 4307 #endif 4308 4309 ; 4310 return 0; 4311 } 4312 _ACEOF 4313 if ac_fn_c_try_compile "$LINENO"; then : 4314 ac_compiler_gnu=yes 4315 else 4316 ac_compiler_gnu=no 4317 fi 4318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4319 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4320 4321 fi 4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4323 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 4324 if test $ac_compiler_gnu = yes; then 4325 GCC=yes 4326 else 4327 GCC= 4328 fi 4329 ac_test_CFLAGS=${CFLAGS+set} 4330 ac_save_CFLAGS=$CFLAGS 4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4332 $as_echo_n "checking whether $CC accepts -g... " >&6; } 4333 if ${ac_cv_prog_cc_g+:} false; then : 4334 $as_echo_n "(cached) " >&6 4335 else 4336 ac_save_c_werror_flag=$ac_c_werror_flag 4337 ac_c_werror_flag=yes 4338 ac_cv_prog_cc_g=no 4339 CFLAGS="-g" 4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4341 /* end confdefs.h. */ 4342 4343 int 4344 main () 4345 { 4346 4347 ; 4348 return 0; 4349 } 4350 _ACEOF 4351 if ac_fn_c_try_compile "$LINENO"; then : 4352 ac_cv_prog_cc_g=yes 4353 else 4354 CFLAGS="" 4355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4356 /* end confdefs.h. */ 4357 4358 int 4359 main () 4360 { 4361 4362 ; 4363 return 0; 4364 } 4365 _ACEOF 4366 if ac_fn_c_try_compile "$LINENO"; then : 4367 4368 else 4369 ac_c_werror_flag=$ac_save_c_werror_flag 4370 CFLAGS="-g" 4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4372 /* end confdefs.h. */ 4373 4374 int 4375 main () 4376 { 4377 4378 ; 4379 return 0; 4380 } 4381 _ACEOF 4382 if ac_fn_c_try_compile "$LINENO"; then : 4383 ac_cv_prog_cc_g=yes 4384 fi 4385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4386 fi 4387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4388 fi 4389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4390 ac_c_werror_flag=$ac_save_c_werror_flag 4391 fi 4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4393 $as_echo "$ac_cv_prog_cc_g" >&6; } 4394 if test "$ac_test_CFLAGS" = set; then 4395 CFLAGS=$ac_save_CFLAGS 4396 elif test $ac_cv_prog_cc_g = yes; then 4397 if test "$GCC" = yes; then 4398 CFLAGS="-g -O2" 4399 else 4400 CFLAGS="-g" 4401 fi 4402 else 4403 if test "$GCC" = yes; then 4404 CFLAGS="-O2" 4405 else 4406 CFLAGS= 4407 fi 4408 fi 4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4410 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4411 if ${ac_cv_prog_cc_c89+:} false; then : 4412 $as_echo_n "(cached) " >&6 4413 else 4414 ac_cv_prog_cc_c89=no 4415 ac_save_CC=$CC 4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4417 /* end confdefs.h. */ 4418 #include <stdarg.h> 4419 #include <stdio.h> 4420 struct stat; 4421 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4422 struct buf { int x; }; 4423 FILE * (*rcsopen) (struct buf *, struct stat *, int); 4424 static char *e (p, i) 4425 char **p; 4426 int i; 4427 { 4428 return p[i]; 4429 } 4430 static char *f (char * (*g) (char **, int), char **p, ...) 4431 { 4432 char *s; 4433 va_list v; 4434 va_start (v,p); 4435 s = g (p, va_arg (v,int)); 4436 va_end (v); 4437 return s; 4438 } 4439 4440 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4441 function prototypes and stuff, but not '\xHH' hex character constants. 4442 These don't provoke an error unfortunately, instead are silently treated 4443 as 'x'. The following induces an error, until -std is added to get 4444 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4445 array size at least. It's necessary to write '\x00'==0 to get something 4446 that's true only with -std. */ 4447 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4448 4449 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4450 inside strings and character constants. */ 4451 #define FOO(x) 'x' 4452 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4453 4454 int test (int i, double x); 4455 struct s1 {int (*f) (int a);}; 4456 struct s2 {int (*f) (double a);}; 4457 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4458 int argc; 4459 char **argv; 4460 int 4461 main () 4462 { 4463 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4464 ; 4465 return 0; 4466 } 4467 _ACEOF 4468 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4469 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4470 do 4471 CC="$ac_save_CC $ac_arg" 4472 if ac_fn_c_try_compile "$LINENO"; then : 4473 ac_cv_prog_cc_c89=$ac_arg 4474 fi 4475 rm -f core conftest.err conftest.$ac_objext 4476 test "x$ac_cv_prog_cc_c89" != "xno" && break 4477 done 4478 rm -f conftest.$ac_ext 4479 CC=$ac_save_CC 4480 4481 fi 4482 # AC_CACHE_VAL 4483 case "x$ac_cv_prog_cc_c89" in 4484 x) 4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4486 $as_echo "none needed" >&6; } ;; 4487 xno) 4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4489 $as_echo "unsupported" >&6; } ;; 4490 *) 4491 CC="$CC $ac_cv_prog_cc_c89" 4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4493 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4494 esac 4495 if test "x$ac_cv_prog_cc_c89" != xno; then : 4496 4497 fi 4498 4499 ac_ext=c 4500 ac_cpp='$CPP $CPPFLAGS' 4501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4503 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4504 3875 4505 ac_ext=cpp 3876 4506 ac_cpp='$CXXCPP $CPPFLAGS' … … 4342 4972 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4343 4973 4344 4345 ac_ext=c4346 ac_cpp='$CPP $CPPFLAGS'4347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'4348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'4349 ac_compiler_gnu=$ac_cv_c_compiler_gnu4350 4351 4352 4353 ac_ext=c4354 ac_cpp='$CPP $CPPFLAGS'4355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'4356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'4357 ac_compiler_gnu=$ac_cv_c_compiler_gnu4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&54359 $as_echo_n "checking how to run the C preprocessor... " >&6; }4360 # On Suns, sometimes $CPP names a directory.4361 if test -n "$CPP" && test -d "$CPP"; then4362 CPP=4363 fi4364 if test -z "$CPP"; then4365 if ${ac_cv_prog_CPP+:} false; then :4366 $as_echo_n "(cached) " >&64367 else4368 # Double quotes because CPP needs to be expanded4369 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"4370 do4371 ac_preproc_ok=false4372 for ac_c_preproc_warn_flag in '' yes4373 do4374 # Use a header file that comes with gcc, so configuring glibc4375 # with a fresh cross-compiler works.4376 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since4377 # <limits.h> exists even on freestanding compilers.4378 # On the NeXT, cc -E runs the code through the compiler's parser,4379 # not just through cpp. "Syntax error" is here to catch this case.4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext4381 /* end confdefs.h. */4382 #ifdef __STDC__4383 # include <limits.h>4384 #else4385 # include <assert.h>4386 #endif4387 Syntax error4388 _ACEOF4389 if ac_fn_c_try_cpp "$LINENO"; then :4390 4391 else4392 # Broken: fails on valid input.4393 continue4394 fi4395 rm -f conftest.err conftest.i conftest.$ac_ext4396 4397 # OK, works on sane cases. Now check whether nonexistent headers4398 # can be detected and how.4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext4400 /* end confdefs.h. */4401 #include <ac_nonexistent.h>4402 _ACEOF4403 if ac_fn_c_try_cpp "$LINENO"; then :4404 # Broken: success on invalid input.4405 continue4406 else4407 # Passes both tests.4408 ac_preproc_ok=:4409 break4410 fi4411 rm -f conftest.err conftest.i conftest.$ac_ext4412 4413 done4414 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.4415 rm -f conftest.i conftest.err conftest.$ac_ext4416 if $ac_preproc_ok; then :4417 break4418 fi4419 4420 done4421 ac_cv_prog_CPP=$CPP4422 4423 fi4424 CPP=$ac_cv_prog_CPP4425 else4426 ac_cv_prog_CPP=$CPP4427 fi4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&54429 $as_echo "$CPP" >&6; }4430 ac_preproc_ok=false4431 for ac_c_preproc_warn_flag in '' yes4432 do4433 # Use a header file that comes with gcc, so configuring glibc4434 # with a fresh cross-compiler works.4435 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since4436 # <limits.h> exists even on freestanding compilers.4437 # On the NeXT, cc -E runs the code through the compiler's parser,4438 # not just through cpp. "Syntax error" is here to catch this case.4439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext4440 /* end confdefs.h. */4441 #ifdef __STDC__4442 # include <limits.h>4443 #else4444 # include <assert.h>4445 #endif4446 Syntax error4447 _ACEOF4448 if ac_fn_c_try_cpp "$LINENO"; then :4449 4450 else4451 # Broken: fails on valid input.4452 continue4453 fi4454 rm -f conftest.err conftest.i conftest.$ac_ext4455 4456 # OK, works on sane cases. Now check whether nonexistent headers4457 # can be detected and how.4458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext4459 /* end confdefs.h. */4460 #include <ac_nonexistent.h>4461 _ACEOF4462 if ac_fn_c_try_cpp "$LINENO"; then :4463 # Broken: success on invalid input.4464 continue4465 else4466 # Passes both tests.4467 ac_preproc_ok=:4468 break4469 fi4470 rm -f conftest.err conftest.i conftest.$ac_ext4471 4472 done4473 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.4474 rm -f conftest.i conftest.err conftest.$ac_ext4475 if $ac_preproc_ok; then :4476 4477 else4478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&54479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}4480 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check4481 See \`config.log' for more details" "$LINENO" 5; }4482 fi4483 4974 4484 4975 ac_ext=c … … 4731 5222 fi 4732 5223 4733 ac_fn_c_check_func "$LINENO" "atol" "ac_cv_func_atol"4734 if test "x$ac_cv_func_atol" = xyes; then :4735 4736 else4737 as_fn_error $? "oops! no atol ?!?" "$LINENO" 54738 fi4739 4740 4741 5224 ac_ext=cpp 4742 5225 ac_cpp='$CXXCPP $CPPFLAGS' … … 4747 5230 4748 5231 4749 for ac_func in sysinfo 4750 do : 4751 ac_fn_cxx_check_func "$LINENO" "sysinfo" "ac_cv_func_sysinfo" 4752 if test "x$ac_cv_func_sysinfo" = xyes; then : 4753 cat >>confdefs.h <<_ACEOF 4754 #define HAVE_SYSINFO 1 4755 _ACEOF 4756 4757 fi 5232 if test -n "$ac_tool_prefix"; then 5233 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5234 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5236 $as_echo_n "checking for $ac_word... " >&6; } 5237 if ${ac_cv_prog_RANLIB+:} false; then : 5238 $as_echo_n "(cached) " >&6 5239 else 5240 if test -n "$RANLIB"; then 5241 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5242 else 5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5244 for as_dir in $PATH 5245 do 5246 IFS=$as_save_IFS 5247 test -z "$as_dir" && as_dir=. 5248 for ac_exec_ext in '' $ac_executable_extensions; do 5249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5250 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5252 break 2 5253 fi 4758 5254 done 4759 4760 for ac_func in gettimeofday 4761 do : 4762 ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" 4763 if test "x$ac_cv_func_gettimeofday" = xyes; then : 4764 cat >>confdefs.h <<_ACEOF 4765 #define HAVE_GETTIMEOFDAY 1 4766 _ACEOF 4767 4768 fi 5255 done 5256 IFS=$as_save_IFS 5257 5258 fi 5259 fi 5260 RANLIB=$ac_cv_prog_RANLIB 5261 if test -n "$RANLIB"; then 5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5263 $as_echo "$RANLIB" >&6; } 5264 else 5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5266 $as_echo "no" >&6; } 5267 fi 5268 5269 5270 fi 5271 if test -z "$ac_cv_prog_RANLIB"; then 5272 ac_ct_RANLIB=$RANLIB 5273 # Extract the first word of "ranlib", so it can be a program name with args. 5274 set dummy ranlib; ac_word=$2 5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5276 $as_echo_n "checking for $ac_word... " >&6; } 5277 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5278 $as_echo_n "(cached) " >&6 5279 else 5280 if test -n "$ac_ct_RANLIB"; then 5281 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5282 else 5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5284 for as_dir in $PATH 5285 do 5286 IFS=$as_save_IFS 5287 test -z "$as_dir" && as_dir=. 5288 for ac_exec_ext in '' $ac_executable_extensions; do 5289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5290 ac_cv_prog_ac_ct_RANLIB="ranlib" 5291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5292 break 2 5293 fi 4769 5294 done 4770 4771 ac_fn_cxx_check_func "$LINENO" "localtime" "ac_cv_func_localtime" 4772 if test "x$ac_cv_func_localtime" = xyes; then : 4773 4774 else 4775 as_fn_error $? "oops! no localtime ?!?" "$LINENO" 5 4776 fi 4777 4778 ac_fn_cxx_check_func "$LINENO" "getenv" "ac_cv_func_getenv" 4779 if test "x$ac_cv_func_getenv" = xyes; then : 4780 4781 else 4782 as_fn_error $? "oops! no getenv ?!?" "$LINENO" 5 4783 fi 4784 5295 done 5296 IFS=$as_save_IFS 5297 5298 fi 5299 fi 5300 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5301 if test -n "$ac_ct_RANLIB"; then 5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5303 $as_echo "$ac_ct_RANLIB" >&6; } 5304 else 5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5306 $as_echo "no" >&6; } 5307 fi 5308 5309 if test "x$ac_ct_RANLIB" = x; then 5310 RANLIB=":" 5311 else 5312 case $cross_compiling:$ac_tool_warned in 5313 yes:) 5314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5316 ac_tool_warned=yes ;; 5317 esac 5318 RANLIB=$ac_ct_RANLIB 5319 fi 5320 else 5321 RANLIB="$ac_cv_prog_RANLIB" 5322 fi 4785 5323 4786 5324 ac_ext=cpp … … 4933 5471 4934 5472 done 4935 4936 4937 for ac_header in sys/sysinfo.h4938 do :4939 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/sysinfo.h" "ac_cv_header_sys_sysinfo_h" "$ac_includes_default"4940 if test "x$ac_cv_header_sys_sysinfo_h" = xyes; then :4941 cat >>confdefs.h <<_ACEOF4942 #define HAVE_SYS_SYSINFO_H 14943 _ACEOF4944 4945 fi4946 4947 done4948 4949 4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clrtoeol in -lncurses" >&54951 $as_echo_n "checking for clrtoeol in -lncurses... " >&6; }4952 if ${ac_cv_lib_ncurses_clrtoeol+:} false; then :4953 $as_echo_n "(cached) " >&64954 else4955 ac_check_lib_save_LIBS=$LIBS4956 LIBS="-lncurses $LIBS"4957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext4958 /* end confdefs.h. */4959 4960 /* Override any GCC internal prototype to avoid an error.4961 Use char because int might match the return type of a GCC4962 builtin and then its argument prototype would still apply. */4963 #ifdef __cplusplus4964 extern "C"4965 #endif4966 char clrtoeol ();4967 int4968 main ()4969 {4970 return clrtoeol ();4971 ;4972 return 0;4973 }4974 _ACEOF4975 if ac_fn_cxx_try_link "$LINENO"; then :4976 ac_cv_lib_ncurses_clrtoeol=yes4977 else4978 ac_cv_lib_ncurses_clrtoeol=no4979 fi4980 rm -f core conftest.err conftest.$ac_objext \4981 conftest$ac_exeext conftest.$ac_ext4982 LIBS=$ac_check_lib_save_LIBS4983 fi4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_clrtoeol" >&54985 $as_echo "$ac_cv_lib_ncurses_clrtoeol" >&6; }4986 if test "x$ac_cv_lib_ncurses_clrtoeol" = xyes; then :4987 cat >>confdefs.h <<_ACEOF4988 #define HAVE_LIBNCURSES 14989 _ACEOF4990 4991 LIBS="-lncurses $LIBS"4992 4993 else4994 as_fn_error $? "ncurses library missing?" "$LINENO" 54995 fi4996 4997 for ac_header in ncurses.h4998 do :4999 ac_fn_cxx_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"5000 if test "x$ac_cv_header_ncurses_h" = xyes; then :5001 cat >>confdefs.h <<_ACEOF5002 #define HAVE_NCURSES_H 15003 _ACEOF5004 5005 else5006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ncurses headers missing ?" >&55007 $as_echo "$as_me: WARNING: ncurses headers missing ?" >&2;}5008 fi5009 5010 done5011 5012 5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lstdc++" >&55014 $as_echo_n "checking for main in -lstdc++... " >&6; }5015 if ${ac_cv_lib_stdcpp_main+:} false; then :5016 $as_echo_n "(cached) " >&65017 else5018 ac_check_lib_save_LIBS=$LIBS5019 LIBS="-lstdc++ $LIBS"5020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext5021 /* end confdefs.h. */5022 5023 5024 int5025 main ()5026 {5027 return main ();5028 ;5029 return 0;5030 }5031 _ACEOF5032 if ac_fn_cxx_try_link "$LINENO"; then :5033 ac_cv_lib_stdcpp_main=yes5034 else5035 ac_cv_lib_stdcpp_main=no5036 fi5037 rm -f core conftest.err conftest.$ac_objext \5038 conftest$ac_exeext conftest.$ac_ext5039 LIBS=$ac_check_lib_save_LIBS5040 fi5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdcpp_main" >&55042 $as_echo "$ac_cv_lib_stdcpp_main" >&6; }5043 if test "x$ac_cv_lib_stdcpp_main" = xyes; then :5044 cat >>confdefs.h <<_ACEOF5045 #define HAVE_LIBSTDC__ 15046 _ACEOF5047 5048 LIBS="-lstdc++ $LIBS"5049 5050 else5051 as_fn_error $? "librappture requires libstdc++" "$LINENO" 55052 fi5053 5054 for ac_header in algorithm5055 do :5056 ac_fn_cxx_check_header_mongrel "$LINENO" "algorithm" "ac_cv_header_algorithm" "$ac_includes_default"5057 if test "x$ac_cv_header_algorithm" = xyes; then :5058 cat >>confdefs.h <<_ACEOF5059 #define HAVE_ALGORITHM 15060 _ACEOF5061 5062 else5063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&55064 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}5065 fi5066 5067 done5068 5069 for ac_header in cctype5070 do :5071 ac_fn_cxx_check_header_mongrel "$LINENO" "cctype" "ac_cv_header_cctype" "$ac_includes_default"5072 if test "x$ac_cv_header_cctype" = xyes; then :5073 cat >>confdefs.h <<_ACEOF5074 #define HAVE_CCTYPE 15075 _ACEOF5076 5077 else5078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&55079 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}5080 fi5081 5082 done5083 5084 for ac_header in cfloat5085 do :5086 ac_fn_cxx_check_header_mongrel "$LINENO" "cfloat" "ac_cv_header_cfloat" "$ac_includes_default"5087 if test "x$ac_cv_header_cfloat" = xyes; then :5088 cat >>confdefs.h <<_ACEOF5089 #define HAVE_CFLOAT 15090 _ACEOF5091 5092 else5093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&55094 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}5095 fi5096 5097 done5098 5099 for ac_header in cmath5100 do :5101 ac_fn_cxx_check_header_mongrel "$LINENO" "cmath" "ac_cv_header_cmath" "$ac_includes_default"5102 if test "x$ac_cv_header_cmath" = xyes; then :5103 cat >>confdefs.h <<_ACEOF5104 #define HAVE_CMATH 15105 _ACEOF5106 5107 else5108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&55109 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}5110 fi5111 5112 done5113 5114 for ac_header in cstdio5115 do :5116 ac_fn_cxx_check_header_mongrel "$LINENO" "cstdio" "ac_cv_header_cstdio" "$ac_includes_default"5117 if test "x$ac_cv_header_cstdio" = xyes; then :5118 cat >>confdefs.h <<_ACEOF5119 #define HAVE_CSTDIO 15120 _ACEOF5121 5122 else5123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&55124 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}5125 fi5126 5127 done5128 5129 for ac_header in cstdlib5130 do :5131 ac_fn_cxx_check_header_mongrel "$LINENO" "cstdlib" "ac_cv_header_cstdlib" "$ac_includes_default"5132 if test "x$ac_cv_header_cstdlib" = xyes; then :5133 cat >>confdefs.h <<_ACEOF5134 #define HAVE_CSTDLIB 15135 _ACEOF5136 5137 else5138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&55139 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}5140 fi5141 5142 done5143 5144 for ac_header in cstring5145 do :5146 ac_fn_cxx_check_header_mongrel "$LINENO" "cstring" "ac_cv_header_cstring" "$ac_includes_default"5147 if test "x$ac_cv_header_cstring" = xyes; then :5148 cat >>confdefs.h <<_ACEOF5149 #define HAVE_CSTRING 15150 _ACEOF5151 5152 else5153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&55154 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}5155 fi5156 5157 done5158 5159 for ac_header in fstream5160 do :5161 ac_fn_cxx_check_header_mongrel "$LINENO" "fstream" "ac_cv_header_fstream" "$ac_includes_default"5162 if test "x$ac_cv_header_fstream" = xyes; then :5163 cat >>confdefs.h <<_ACEOF5164 #define HAVE_FSTREAM 15165 _ACEOF5166 5167 else5168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&55169 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}5170 fi5171 5172 done5173 5174 for ac_header in list5175 do :5176 ac_fn_cxx_check_header_mongrel "$LINENO" "list" "ac_cv_header_list" "$ac_includes_default"5177 if test "x$ac_cv_header_list" = xyes; then :5178 cat >>confdefs.h <<_ACEOF5179 #define HAVE_LIST 15180 _ACEOF5181 5182 else5183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&55184 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}5185 fi5186 5187 done5188 5189 for ac_header in iostream5190 do :5191 ac_fn_cxx_check_header_mongrel "$LINENO" "iostream" "ac_cv_header_iostream" "$ac_includes_default"5192 if test "x$ac_cv_header_iostream" = xyes; then :5193 cat >>confdefs.h <<_ACEOF5194 #define HAVE_IOSTREAM 15195 _ACEOF5196 5197 else5198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&55199 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}5200 fi5201 5202 done5203 5204 for ac_header in iterator5205 do :5206 ac_fn_cxx_check_header_mongrel "$LINENO" "iterator" "ac_cv_header_iterator" "$ac_includes_default"5207 if test "x$ac_cv_header_iterator" = xyes; then :5208 cat >>confdefs.h <<_ACEOF5209 #define HAVE_ITERATOR 15210 _ACEOF5211 5212 else5213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&55214 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}5215 fi5216 5217 done5218 5219 for ac_header in sstream5220 do :5221 ac_fn_cxx_check_header_mongrel "$LINENO" "sstream" "ac_cv_header_sstream" "$ac_includes_default"5222 if test "x$ac_cv_header_sstream" = xyes; then :5223 cat >>confdefs.h <<_ACEOF5224 #define HAVE_SSTREAM 15225 _ACEOF5226 5227 else5228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&55229 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}5230 fi5231 5232 done5233 5234 for ac_header in stack5235 do :5236 ac_fn_cxx_check_header_mongrel "$LINENO" "stack" "ac_cv_header_stack" "$ac_includes_default"5237 if test "x$ac_cv_header_stack" = xyes; then :5238 cat >>confdefs.h <<_ACEOF5239 #define HAVE_STACK 15240 _ACEOF5241 5242 else5243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&55244 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}5245 fi5246 5247 done5248 5249 for ac_header in string5250 do :5251 ac_fn_cxx_check_header_mongrel "$LINENO" "string" "ac_cv_header_string" "$ac_includes_default"5252 if test "x$ac_cv_header_string" = xyes; then :5253 cat >>confdefs.h <<_ACEOF5254 #define HAVE_STRING 15255 _ACEOF5256 5257 else5258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&55259 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}5260 fi5261 5262 done5263 5264 for ac_header in vector5265 do :5266 ac_fn_cxx_check_header_mongrel "$LINENO" "vector" "ac_cv_header_vector" "$ac_includes_default"5267 if test "x$ac_cv_header_vector" = xyes; then :5268 cat >>confdefs.h <<_ACEOF5269 #define HAVE_VECTOR 15270 _ACEOF5271 5272 else5273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: STL classes missing ?" >&55274 $as_echo "$as_me: WARNING: STL classes missing ?" >&2;}5275 fi5276 5277 done5278 5279 5280 for ac_header in assert.h5281 do :5282 ac_fn_cxx_check_header_mongrel "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"5283 if test "x$ac_cv_header_assert_h" = xyes; then :5284 cat >>confdefs.h <<_ACEOF5285 #define HAVE_ASSERT_H 15286 _ACEOF5287 5288 else5289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&55290 $as_echo "$as_me: WARNING: C headers missing ?" >&2;}5291 fi5292 5293 done5294 5295 for ac_header in ctype.h5296 do :5297 ac_fn_cxx_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"5298 if test "x$ac_cv_header_ctype_h" = xyes; then :5299 cat >>confdefs.h <<_ACEOF5300 #define HAVE_CTYPE_H 15301 _ACEOF5302 5303 else5304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&55305 $as_echo "$as_me: WARNING: C headers missing ?" >&2;}5306 fi5307 5308 done5309 5310 for ac_header in errno.h5311 do :5312 ac_fn_cxx_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"5313 if test "x$ac_cv_header_errno_h" = xyes; then :5314 cat >>confdefs.h <<_ACEOF5315 #define HAVE_ERRNO_H 15316 _ACEOF5317 5318 else5319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&55320 $as_echo "$as_me: WARNING: C headers missing ?" >&2;}5321 fi5322 5323 done5324 5325 for ac_header in limits.h5326 do :5327 ac_fn_cxx_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"5328 if test "x$ac_cv_header_limits_h" = xyes; then :5329 cat >>confdefs.h <<_ACEOF5330 #define HAVE_LIMITS_H 15331 _ACEOF5332 5333 else5334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&55335 $as_echo "$as_me: WARNING: C headers missing ?" >&2;}5336 fi5337 5338 done5339 5340 for ac_header in string.h5341 do :5342 ac_fn_cxx_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"5343 if test "x$ac_cv_header_string_h" = xyes; then :5344 cat >>confdefs.h <<_ACEOF5345 #define HAVE_STRING_H 15346 _ACEOF5347 5348 else5349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&55350 $as_echo "$as_me: WARNING: C headers missing ?" >&2;}5351 fi5352 5353 done5354 5355 for ac_header in stdlib.h5356 do :5357 ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"5358 if test "x$ac_cv_header_stdlib_h" = xyes; then :5359 cat >>confdefs.h <<_ACEOF5360 #define HAVE_STDLIB_H 15361 _ACEOF5362 5363 else5364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&55365 $as_echo "$as_me: WARNING: C headers missing ?" >&2;}5366 fi5367 5368 done5369 5370 for ac_header in stddef.h5371 do :5372 ac_fn_cxx_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"5373 if test "x$ac_cv_header_stddef_h" = xyes; then :5374 cat >>confdefs.h <<_ACEOF5375 #define HAVE_STDDEF_H 15376 _ACEOF5377 5378 else5379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&55380 $as_echo "$as_me: WARNING: C headers missing ?" >&2;}5381 fi5382 5383 done5384 5385 for ac_header in float.h5386 do :5387 ac_fn_cxx_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"5388 if test "x$ac_cv_header_float_h" = xyes; then :5389 cat >>confdefs.h <<_ACEOF5390 #define HAVE_FLOAT_H 15391 _ACEOF5392 5393 else5394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&55395 $as_echo "$as_me: WARNING: C headers missing ?" >&2;}5396 fi5397 5398 done5399 5400 for ac_header in math.h5401 do :5402 ac_fn_cxx_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"5403 if test "x$ac_cv_header_math_h" = xyes; then :5404 cat >>confdefs.h <<_ACEOF5405 #define HAVE_MATH_H 15406 _ACEOF5407 5408 else5409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&55410 $as_echo "$as_me: WARNING: C headers missing ?" >&2;}5411 fi5412 5413 done5414 5415 for ac_header in malloc.h5416 do :5417 ac_fn_cxx_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"5418 if test "x$ac_cv_header_malloc_h" = xyes; then :5419 cat >>confdefs.h <<_ACEOF5420 #define HAVE_MALLOC_H 15421 _ACEOF5422 5423 else5424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&55425 $as_echo "$as_me: WARNING: C headers missing ?" >&2;}5426 fi5427 5428 done5429 5430 for ac_header in memory.h5431 do :5432 ac_fn_cxx_check_header_mongrel "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"5433 if test "x$ac_cv_header_memory_h" = xyes; then :5434 cat >>confdefs.h <<_ACEOF5435 #define HAVE_MEMORY_H 15436 _ACEOF5437 5438 else5439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&55440 $as_echo "$as_me: WARNING: C headers missing ?" >&2;}5441 fi5442 5443 done5444 5445 for ac_header in unistd.h5446 do :5447 ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"5448 if test "x$ac_cv_header_unistd_h" = xyes; then :5449 cat >>confdefs.h <<_ACEOF5450 #define HAVE_UNISTD_H 15451 _ACEOF5452 5453 else5454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&55455 $as_echo "$as_me: WARNING: C headers missing ?" >&2;}5456 fi5457 5458 done5459 5460 5461 for ac_header in inttypes.h5462 do :5463 ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"5464 if test "x$ac_cv_header_inttypes_h" = xyes; then :5465 cat >>confdefs.h <<_ACEOF5466 #define HAVE_INTTYPES_H 15467 _ACEOF5468 5469 else5470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C headers missing ?" >&55471 $as_echo "$as_me: WARNING: C headers missing ?" >&2;}5472 fi5473 5474 done5475 5476 if test "${ac_cv_header_inttypes_h}" = "yes" ; then5477 HAVE_INTTYPES_H=15478 else5479 HAVE_INTTYPES_H=05480 fi5481 5473 5482 5474 … … 7309 7301 fi 7310 7302 7311 # Check whether --enable-lang was given.7312 if test "${enable_lang+set}" = set; then :7313 enableval=$enable_lang;7314 else7315 enable_lang=yes7316 fi7317 7318 7319 ENABLE_LANG=7320 if test "$enable_lang" != "no" ; then7321 ENABLE_LANG="yes"7322 fi7323 7324 7303 # Check whether --enable-gui was given. 7325 7304 if test "${enable_gui+set}" = set; then : … … 7346 7325 done 7347 7326 7348 7349 # Check whether --with-ffmpeg was given.7350 if test "${with_ffmpeg+set}" = set; then :7351 withval=$with_ffmpeg;7352 else7353 with_ffmpeg=yes7354 fi7355 7356 7357 7358 # Check whether --with-tclsh was given.7359 if test "${with_tclsh+set}" = set; then :7360 withval=$with_tclsh;7361 else7362 with_tclsh=yes7363 fi7364 7365 7366 TCLSH=""7367 if test "${with_tclsh}" != "no" ; then7368 tclsh="tclsh${TCL_VERSION}"7369 if test "${with_tclsh}" = "yes" ; then7370 # Extract the first word of "${tclsh}", so it can be a program name with args.7371 set dummy ${tclsh}; ac_word=$27372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57373 $as_echo_n "checking for $ac_word... " >&6; }7374 if ${ac_cv_path_TCLSH+:} false; then :7375 $as_echo_n "(cached) " >&67376 else7377 case $TCLSH in7378 [\\/]* | ?:[\\/]*)7379 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.7380 ;;7381 *)7382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7383 as_dummy="${exec_prefix}/bin:${PATH}"7384 for as_dir in $as_dummy7385 do7386 IFS=$as_save_IFS7387 test -z "$as_dir" && as_dir=.7388 for ac_exec_ext in '' $ac_executable_extensions; do7389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7390 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"7391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57392 break 27393 fi7394 done7395 done7396 IFS=$as_save_IFS7397 7398 ;;7399 esac7400 fi7401 TCLSH=$ac_cv_path_TCLSH7402 if test -n "$TCLSH"; then7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&57404 $as_echo "$TCLSH" >&6; }7405 else7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57407 $as_echo "no" >&6; }7408 fi7409 7410 7411 else7412 # Extract the first word of "${tclsh}", so it can be a program name with args.7413 set dummy ${tclsh}; ac_word=$27414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57415 $as_echo_n "checking for $ac_word... " >&6; }7416 if ${ac_cv_path_TCLSH+:} false; then :7417 $as_echo_n "(cached) " >&67418 else7419 case $TCLSH in7420 [\\/]* | ?:[\\/]*)7421 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.7422 ;;7423 *)7424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7425 as_dummy="${with_tclsh}/bin:${with_tclsh}"7426 for as_dir in $as_dummy7427 do7428 IFS=$as_save_IFS7429 test -z "$as_dir" && as_dir=.7430 for ac_exec_ext in '' $ac_executable_extensions; do7431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7432 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"7433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57434 break 27435 fi7436 done7437 done7438 IFS=$as_save_IFS7439 7440 ;;7441 esac7442 fi7443 TCLSH=$ac_cv_path_TCLSH7444 if test -n "$TCLSH"; then7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&57446 $as_echo "$TCLSH" >&6; }7447 else7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57449 $as_echo "no" >&6; }7450 fi7451 7452 7453 fi7454 if test "x${TCLSH}" = "x" ; then7455 as_fn_error $? "can't find tclsh" "$LINENO" 57456 fi7457 fi7458 7459 7460 TCL_INC_SPEC="$TCL_INCLUDE_SPEC"7461 7462 7463 # Check whether --with-vtk was given.7464 if test "${with_vtk+set}" = set; then :7465 withval=$with_vtk;7466 else7467 with_vtk=yes7468 fi7469 7470 7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vtk" >&57472 $as_echo_n "checking for vtk... " >&6; }7473 VTK_VERSION=6.07474 VTK_TCL_DIR=""7475 7476 if test "$with_vtk" != "no" ; then7477 if test "$with_vtk" != "yes" ; then7478 VTK_VERSION=$with_vtk7479 fi7480 if test "x$with_vtk" != "x" ; then7481 for path in \7482 $libdir/tcltk \7483 $exec_prefix/lib/tcltk \7484 $prefix/lib/tcltk \7485 $libdir \7486 $prefix/lib \7487 $exec_prefix/lib \7488 /usr/lib7489 do7490 if test -d "$path/vtk-$VTK_VERSION" ; then7491 VTK_TCL_DIR="$path/vtk-$VTK_VERSION"7492 fi7493 if test "x${VTK_TCL_DIR}" != "x" ; then7494 break7495 fi7496 done7497 fi7498 else7499 if test "${ENABLE_GUI}" = "yes" ; then7500 as_fn_error $? "Rappture GUI requires VTK" "$LINENO" 57501 fi7502 fi7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VTK_TCL_DIR" >&57504 $as_echo "$VTK_TCL_DIR" >&6; }7505 7506 # Check whether --enable-vtkdicom was given.7507 if test "${enable_vtkdicom+set}" = set; then :7508 enableval=$enable_vtkdicom;7509 else7510 enable_vtkdicom=no7511 fi7512 7513 7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vtkDICOM" >&57515 $as_echo_n "checking for vtkDICOM... " >&6; }7516 ENABLE_VTK_DICOM=7517 if test "$enable_vtkdicom" != "no" ; then7518 ENABLE_VTK_DICOM="yes"7519 fi7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtkdicom" >&57521 $as_echo "$enable_vtkdicom" >&6; }7522 7523 7524 7525 # Check whether --with-matlab was given.7526 if test "${with_matlab+set}" = set; then :7527 withval=$with_matlab;7528 else7529 with_matlab=yes7530 fi7531 7532 7533 MCC=""7534 MEX=""7535 MEX_ARCH=""7536 MEXEXT=""7537 MATLAB=7538 if test "$with_matlab" != "no" ; then7539 if test "$with_matlab" = "yes" ; then7540 # Extract the first word of "matlab", so it can be a program name with args.7541 set dummy matlab; ac_word=$27542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57543 $as_echo_n "checking for $ac_word... " >&6; }7544 if ${ac_cv_path_MATLAB+:} false; then :7545 $as_echo_n "(cached) " >&67546 else7547 case $MATLAB in7548 [\\/]* | ?:[\\/]*)7549 ac_cv_path_MATLAB="$MATLAB" # Let the user override the test with a path.7550 ;;7551 *)7552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7553 for as_dir in $PATH7554 do7555 IFS=$as_save_IFS7556 test -z "$as_dir" && as_dir=.7557 for ac_exec_ext in '' $ac_executable_extensions; do7558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7559 ac_cv_path_MATLAB="$as_dir/$ac_word$ac_exec_ext"7560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57561 break 27562 fi7563 done7564 done7565 IFS=$as_save_IFS7566 7567 ;;7568 esac7569 fi7570 MATLAB=$ac_cv_path_MATLAB7571 if test -n "$MATLAB"; then7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MATLAB" >&57573 $as_echo "$MATLAB" >&6; }7574 else7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57576 $as_echo "no" >&6; }7577 fi7578 7579 7580 else7581 # Extract the first word of "matlab", so it can be a program name with args.7582 set dummy matlab; ac_word=$27583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57584 $as_echo_n "checking for $ac_word... " >&6; }7585 if ${ac_cv_path_MATLAB+:} false; then :7586 $as_echo_n "(cached) " >&67587 else7588 case $MATLAB in7589 [\\/]* | ?:[\\/]*)7590 ac_cv_path_MATLAB="$MATLAB" # Let the user override the test with a path.7591 ;;7592 *)7593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7594 as_dummy="${with_matlab}/bin:${with_matlab}"7595 for as_dir in $as_dummy7596 do7597 IFS=$as_save_IFS7598 test -z "$as_dir" && as_dir=.7599 for ac_exec_ext in '' $ac_executable_extensions; do7600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7601 ac_cv_path_MATLAB="$as_dir/$ac_word$ac_exec_ext"7602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57603 break 27604 fi7605 done7606 done7607 IFS=$as_save_IFS7608 7609 ;;7610 esac7611 fi7612 MATLAB=$ac_cv_path_MATLAB7613 if test -n "$MATLAB"; then7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MATLAB" >&57615 $as_echo "$MATLAB" >&6; }7616 else7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57618 $as_echo "no" >&6; }7619 fi7620 7621 7622 fi7623 fi7624 7625 if test "x$MATLAB" != "x" ; then7626 # Found matlab. May be a symlink to the real binary. Run "matlab -e"7627 # to tell where matlab is installed.7628 7629 matlab_bindir=`${MATLAB} -e | grep "MATLAB=" | sed s/MATLAB=//`/bin7630 7631 # Now see if we can find "mex" or "mexext" there.7632 # Extract the first word of "mex", so it can be a program name with args.7633 set dummy mex; ac_word=$27634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57635 $as_echo_n "checking for $ac_word... " >&6; }7636 if ${ac_cv_path_MEX+:} false; then :7637 $as_echo_n "(cached) " >&67638 else7639 case $MEX in7640 [\\/]* | ?:[\\/]*)7641 ac_cv_path_MEX="$MEX" # Let the user override the test with a path.7642 ;;7643 *)7644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7645 for as_dir in ${matlab_bindir}7646 do7647 IFS=$as_save_IFS7648 test -z "$as_dir" && as_dir=.7649 for ac_exec_ext in '' $ac_executable_extensions; do7650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7651 ac_cv_path_MEX="$as_dir/$ac_word$ac_exec_ext"7652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57653 break 27654 fi7655 done7656 done7657 IFS=$as_save_IFS7658 7659 ;;7660 esac7661 fi7662 MEX=$ac_cv_path_MEX7663 if test -n "$MEX"; then7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEX" >&57665 $as_echo "$MEX" >&6; }7666 else7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57668 $as_echo "no" >&6; }7669 fi7670 7671 7672 # Extract the first word of "mexext", so it can be a program name with args.7673 set dummy mexext; ac_word=$27674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57675 $as_echo_n "checking for $ac_word... " >&6; }7676 if ${ac_cv_path_MEXEXT+:} false; then :7677 $as_echo_n "(cached) " >&67678 else7679 case $MEXEXT in7680 [\\/]* | ?:[\\/]*)7681 ac_cv_path_MEXEXT="$MEXEXT" # Let the user override the test with a path.7682 ;;7683 *)7684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7685 for as_dir in ${matlab_bindir}7686 do7687 IFS=$as_save_IFS7688 test -z "$as_dir" && as_dir=.7689 for ac_exec_ext in '' $ac_executable_extensions; do7690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7691 ac_cv_path_MEXEXT="$as_dir/$ac_word$ac_exec_ext"7692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57693 break 27694 fi7695 done7696 done7697 IFS=$as_save_IFS7698 7699 ;;7700 esac7701 fi7702 MEXEXT=$ac_cv_path_MEXEXT7703 if test -n "$MEXEXT"; then7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEXEXT" >&57705 $as_echo "$MEXEXT" >&6; }7706 else7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57708 $as_echo "no" >&6; }7709 fi7710 7711 7712 7713 # Run "mexext" to get the expected module extension for this platform.7714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mex extension" >&57715 $as_echo_n "checking for mex extension... " >&6; }7716 if test "x$MEXEXT" != "x" ; then7717 MEXEXT=`$MEXEXT`7718 else7719 MEXEXT="mexglx"7720 fi7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEXEXT" >&57722 $as_echo "$MEXEXT" >&6; }7723 # Extract the first word of "mcc", so it can be a program name with args.7724 set dummy mcc; ac_word=$27725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57726 $as_echo_n "checking for $ac_word... " >&6; }7727 if ${ac_cv_path_MCC+:} false; then :7728 $as_echo_n "(cached) " >&67729 else7730 case $MCC in7731 [\\/]* | ?:[\\/]*)7732 ac_cv_path_MCC="$MCC" # Let the user override the test with a path.7733 ;;7734 *)7735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7736 for as_dir in ${matlab_bindir}7737 do7738 IFS=$as_save_IFS7739 test -z "$as_dir" && as_dir=.7740 for ac_exec_ext in '' $ac_executable_extensions; do7741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7742 ac_cv_path_MCC="$as_dir/$ac_word$ac_exec_ext"7743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57744 break 27745 fi7746 done7747 done7748 IFS=$as_save_IFS7749 7750 ;;7751 esac7752 fi7753 MCC=$ac_cv_path_MCC7754 if test -n "$MCC"; then7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCC" >&57756 $as_echo "$MCC" >&6; }7757 else7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57759 $as_echo "no" >&6; }7760 fi7761 7762 7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mcc extension" >&57764 $as_echo_n "checking for mcc extension... " >&6; }7765 fi7766 7767 7768 7769 # Check whether --with-octave was given.7770 if test "${with_octave+set}" = set; then :7771 withval=$with_octave;7772 else7773 with_octave=yes7774 fi7775 7776 7777 OCTAVE=7778 OCTAVE_VERSION=7779 OCTAVE_VERSION_MAJOR=7780 MKOCTFILE2=7781 MKOCTFILE3=7782 7783 if test "$with_octave" != "no" ; then7784 if test "$with_octave" = "yes" ; then7785 # Extract the first word of "octave", so it can be a program name with args.7786 set dummy octave; ac_word=$27787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57788 $as_echo_n "checking for $ac_word... " >&6; }7789 if ${ac_cv_path_OCTAVE+:} false; then :7790 $as_echo_n "(cached) " >&67791 else7792 case $OCTAVE in7793 [\\/]* | ?:[\\/]*)7794 ac_cv_path_OCTAVE="$OCTAVE" # Let the user override the test with a path.7795 ;;7796 *)7797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7798 for as_dir in $PATH7799 do7800 IFS=$as_save_IFS7801 test -z "$as_dir" && as_dir=.7802 for ac_exec_ext in '' $ac_executable_extensions; do7803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7804 ac_cv_path_OCTAVE="$as_dir/$ac_word$ac_exec_ext"7805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57806 break 27807 fi7808 done7809 done7810 IFS=$as_save_IFS7811 7812 ;;7813 esac7814 fi7815 OCTAVE=$ac_cv_path_OCTAVE7816 if test -n "$OCTAVE"; then7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCTAVE" >&57818 $as_echo "$OCTAVE" >&6; }7819 else7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57821 $as_echo "no" >&6; }7822 fi7823 7824 7825 # Extract the first word of "mkoctfile", so it can be a program name with args.7826 set dummy mkoctfile; ac_word=$27827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57828 $as_echo_n "checking for $ac_word... " >&6; }7829 if ${ac_cv_path_MKOCTFILE+:} false; then :7830 $as_echo_n "(cached) " >&67831 else7832 case $MKOCTFILE in7833 [\\/]* | ?:[\\/]*)7834 ac_cv_path_MKOCTFILE="$MKOCTFILE" # Let the user override the test with a path.7835 ;;7836 *)7837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7838 for as_dir in $PATH7839 do7840 IFS=$as_save_IFS7841 test -z "$as_dir" && as_dir=.7842 for ac_exec_ext in '' $ac_executable_extensions; do7843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7844 ac_cv_path_MKOCTFILE="$as_dir/$ac_word$ac_exec_ext"7845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57846 break 27847 fi7848 done7849 done7850 IFS=$as_save_IFS7851 7852 ;;7853 esac7854 fi7855 MKOCTFILE=$ac_cv_path_MKOCTFILE7856 if test -n "$MKOCTFILE"; then7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKOCTFILE" >&57858 $as_echo "$MKOCTFILE" >&6; }7859 else7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57861 $as_echo "no" >&6; }7862 fi7863 7864 7865 else7866 OCTAVE=$with_octave7867 MKOCTFILE=`dirname $with_octave`/mkoctfile7868 fi7869 fi7870 7871 if test "x${OCTAVE}" != "x" ; then7872 OCTAVE_VERSION=`${OCTAVE} -v | grep version | cut -d' ' -f4`7873 OCTAVE_VERSION_MAJOR=`echo ${OCTAVE_VERSION} | cut -d'.' -f1`7874 if test "${OCTAVE_VERSION_MAJOR}" == "3" ; then7875 OCTAVE3=$OCTAVE7876 MKOCTFILE3=$MKOCTFILE7877 fi7878 if test "${OCTAVE_VERSION_MAJOR}" == "2" ; then7879 OCTAVE2=$OCTAVE7880 MKOCTFILE2=$MKOCTFILE7881 fi7882 fi7883 7884 #7885 # Check for octave3 before octave2 so that we can override the7886 # OCTAVE_VERSION variables.7887 #7888 # Rappture doesn't normally really support both octave2 and octave37889 # simultaneously. NANOhub has a hacked version of octave3 that7890 # looks for OCTAVE_LOADPATH before looking at OCTAVE_PATH (i.e.7891 # OCTAVE_PATH tells octave2 where to load the rappture bindings7892 # and OCTAVE_LOADPATH tells octave3 where to load).7893 #7894 # Usually you will have installed either octave2 or octave3, but7895 # not both.7896 #7897 7898 # Check if octave3 was designated *in addition* to the installed version.7899 # This can override the default version if they are the same versions.7900 7901 7902 # Check whether --with-mkoctfile3 was given.7903 if test "${with_mkoctfile3+set}" = set; then :7904 withval=$with_mkoctfile3;7905 else7906 with_mkoctfile3=no7907 fi7908 7909 7910 if test "$with_mkoctfile3" != "no" ; then7911 if test "$with_mkoctfile3" = "yes" ; then7912 # Extract the first word of "mkoctfile", so it can be a program name with args.7913 set dummy mkoctfile; ac_word=$27914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57915 $as_echo_n "checking for $ac_word... " >&6; }7916 if ${ac_cv_path_mkoctfile3+:} false; then :7917 $as_echo_n "(cached) " >&67918 else7919 case $mkoctfile3 in7920 [\\/]* | ?:[\\/]*)7921 ac_cv_path_mkoctfile3="$mkoctfile3" # Let the user override the test with a path.7922 ;;7923 *)7924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7925 for as_dir in $PATH7926 do7927 IFS=$as_save_IFS7928 test -z "$as_dir" && as_dir=.7929 for ac_exec_ext in '' $ac_executable_extensions; do7930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7931 ac_cv_path_mkoctfile3="$as_dir/$ac_word$ac_exec_ext"7932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57933 break 27934 fi7935 done7936 done7937 IFS=$as_save_IFS7938 7939 ;;7940 esac7941 fi7942 mkoctfile3=$ac_cv_path_mkoctfile37943 if test -n "$mkoctfile3"; then7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mkoctfile3" >&57945 $as_echo "$mkoctfile3" >&6; }7946 else7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57948 $as_echo "no" >&6; }7949 fi7950 7951 7952 else7953 MKOCTFILE3=$with_mkoctfile37954 fi7955 OCTAVE_VERSION=`${MKOCTFILE3} --version 2>&1 | cut -d' ' -f3`7956 OCTAVE_VERSION_MAJOR=`echo ${OCTAVE_VERSION} | cut -d'.' -f1`7957 fi7958 7959 # Check if mkoctfile2 was designated *in addition* to the installed version.7960 # This can override the default version if they are the same versions.7961 7962 # Check whether --with-mkoctfile2 was given.7963 if test "${with_mkoctfile2+set}" = set; then :7964 withval=$with_mkoctfile2;7965 else7966 with_mkoctfile2=no7967 fi7968 7969 7970 if test "$with_mkoctfile2" != "no" ; then7971 if test "$with_mkoctfile2" = "yes" ; then7972 # Extract the first word of "mkoctfile", so it can be a program name with args.7973 set dummy mkoctfile; ac_word=$27974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57975 $as_echo_n "checking for $ac_word... " >&6; }7976 if ${ac_cv_path_mkoctfile2+:} false; then :7977 $as_echo_n "(cached) " >&67978 else7979 case $mkoctfile2 in7980 [\\/]* | ?:[\\/]*)7981 ac_cv_path_mkoctfile2="$mkoctfile2" # Let the user override the test with a path.7982 ;;7983 *)7984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7985 for as_dir in $PATH7986 do7987 IFS=$as_save_IFS7988 test -z "$as_dir" && as_dir=.7989 for ac_exec_ext in '' $ac_executable_extensions; do7990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7991 ac_cv_path_mkoctfile2="$as_dir/$ac_word$ac_exec_ext"7992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57993 break 27994 fi7995 done7996 done7997 IFS=$as_save_IFS7998 7999 ;;8000 esac8001 fi8002 mkoctfile2=$ac_cv_path_mkoctfile28003 if test -n "$mkoctfile2"; then8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mkoctfile2" >&58005 $as_echo "$mkoctfile2" >&6; }8006 else8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58008 $as_echo "no" >&6; }8009 fi8010 8011 8012 else8013 MKOCTFILE2=$with_mkoctfile28014 fi8015 # Have to use octave to get a version, instead of mkoctfile.8016 octave=`dirname $MKOCTFILE2`/octave8017 OCTAVE_VERSION=`${octave} -v | grep version | cut -d' ' -f4`8018 OCTAVE_VERSION_MAJOR=`echo ${OCTAVE_VERSION} | cut -d'.' -f1`8019 fi8020 8021 8022 8023 # Check whether --with-perl was given.8024 if test "${with_perl+set}" = set; then :8025 withval=$with_perl;8026 else8027 with_perl=yes8028 fi8029 8030 8031 PERL=8032 PERL_INCLUDES=8033 PERL_ARCHLIB=8034 PERL_ARCHLIBEXP=8035 PERL_VERSION=8036 PERL_VENDORLIB=8037 PERL_PRIVLIB=8038 PERL_CPPFLAGS=8039 PERL_CCFlAGS=8040 PERL_VERSION_RV=8041 XSUBPP=8042 PERL_LIBSPEC=8043 if test "$with_perl" != "no" ; then8044 if test "$with_perl" != "yes" ; then8045 # Extract the first word of "perl", so it can be a program name with args.8046 set dummy perl; ac_word=$28047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58048 $as_echo_n "checking for $ac_word... " >&6; }8049 if ${ac_cv_path_PERL+:} false; then :8050 $as_echo_n "(cached) " >&68051 else8052 case $PERL in8053 [\\/]* | ?:[\\/]*)8054 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.8055 ;;8056 *)8057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8058 as_dummy="$with_perl/bin:$with_perl"8059 for as_dir in $as_dummy8060 do8061 IFS=$as_save_IFS8062 test -z "$as_dir" && as_dir=.8063 for ac_exec_ext in '' $ac_executable_extensions; do8064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8065 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"8066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58067 break 28068 fi8069 done8070 done8071 IFS=$as_save_IFS8072 8073 ;;8074 esac8075 fi8076 PERL=$ac_cv_path_PERL8077 if test -n "$PERL"; then8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&58079 $as_echo "$PERL" >&6; }8080 else8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58082 $as_echo "no" >&6; }8083 fi8084 8085 8086 # Extract the first word of "xsubpp", so it can be a program name with args.8087 set dummy xsubpp; ac_word=$28088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58089 $as_echo_n "checking for $ac_word... " >&6; }8090 if ${ac_cv_path_XSUBPP+:} false; then :8091 $as_echo_n "(cached) " >&68092 else8093 case $XSUBPP in8094 [\\/]* | ?:[\\/]*)8095 ac_cv_path_XSUBPP="$XSUBPP" # Let the user override the test with a path.8096 ;;8097 *)8098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8099 as_dummy="$with_perl/bin:$with_perl"8100 for as_dir in $as_dummy8101 do8102 IFS=$as_save_IFS8103 test -z "$as_dir" && as_dir=.8104 for ac_exec_ext in '' $ac_executable_extensions; do8105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8106 ac_cv_path_XSUBPP="$as_dir/$ac_word$ac_exec_ext"8107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58108 break 28109 fi8110 done8111 done8112 IFS=$as_save_IFS8113 8114 ;;8115 esac8116 fi8117 XSUBPP=$ac_cv_path_XSUBPP8118 if test -n "$XSUBPP"; then8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSUBPP" >&58120 $as_echo "$XSUBPP" >&6; }8121 else8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58123 $as_echo "no" >&6; }8124 fi8125 8126 8127 else8128 # Extract the first word of "perl", so it can be a program name with args.8129 set dummy perl; ac_word=$28130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58131 $as_echo_n "checking for $ac_word... " >&6; }8132 if ${ac_cv_path_PERL+:} false; then :8133 $as_echo_n "(cached) " >&68134 else8135 case $PERL in8136 [\\/]* | ?:[\\/]*)8137 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.8138 ;;8139 *)8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8141 for as_dir in $PATH8142 do8143 IFS=$as_save_IFS8144 test -z "$as_dir" && as_dir=.8145 for ac_exec_ext in '' $ac_executable_extensions; do8146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8147 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"8148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58149 break 28150 fi8151 done8152 done8153 IFS=$as_save_IFS8154 8155 ;;8156 esac8157 fi8158 PERL=$ac_cv_path_PERL8159 if test -n "$PERL"; then8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&58161 $as_echo "$PERL" >&6; }8162 else8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58164 $as_echo "no" >&6; }8165 fi8166 8167 8168 # Extract the first word of "xsubpp", so it can be a program name with args.8169 set dummy xsubpp; ac_word=$28170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58171 $as_echo_n "checking for $ac_word... " >&6; }8172 if ${ac_cv_path_XSUBPP+:} false; then :8173 $as_echo_n "(cached) " >&68174 else8175 case $XSUBPP in8176 [\\/]* | ?:[\\/]*)8177 ac_cv_path_XSUBPP="$XSUBPP" # Let the user override the test with a path.8178 ;;8179 *)8180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8181 for as_dir in $PATH8182 do8183 IFS=$as_save_IFS8184 test -z "$as_dir" && as_dir=.8185 for ac_exec_ext in '' $ac_executable_extensions; do8186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8187 ac_cv_path_XSUBPP="$as_dir/$ac_word$ac_exec_ext"8188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58189 break 28190 fi8191 done8192 done8193 IFS=$as_save_IFS8194 8195 ;;8196 esac8197 fi8198 XSUBPP=$ac_cv_path_XSUBPP8199 if test -n "$XSUBPP"; then8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSUBPP" >&58201 $as_echo "$XSUBPP" >&6; }8202 else8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58204 $as_echo "no" >&6; }8205 fi8206 8207 8208 fi8209 if test "x${PERL}" != "x" ; then8210 PERL_ARCHLIB=`${PERL} -MConfig -e 'print $Config{archlib}'`8211 PERL_VERSION=`${PERL} -MConfig -e 'print $Config{version}'`8212 PERL_CCFLAGS=`${PERL} -MConfig -e 'print $Config{ccflags}'`8213 PERL_CPPFLAGS=`${PERL} -MConfig -e 'print $Config{cppflags}'`8214 PERL_VENDORLIB=`${PERL} -MConfig -e 'print $Config{vendorlib}'`8215 PERL_PRIVLIB=`${PERL} -MConfig -e 'print $Config{privlib}'`8216 PERL_INSTALLARCHLIB=`${PERL} -MConfig -e 'print $Config{installarchlib}'`8217 PERL_ARCHLIBEXP=`${PERL} -MConfig -e 'print $Config{archlibexp}'`8218 PERL_VERSION_RV=`echo ${PERL_VERSION} | cut -d'.' -f1-2`8219 # libperl may or may not be installed. Check for its existence.8220 if test -f "${PERL_ARCHLIBEXP}/CORE/libperl${SHLIB_SUFFIX}" ; then8221 PERL_LIBSPEC="-L${PERL_ARCHLIBEXP}/CORE -lperl"8222 fi8223 fi8224 fi8225 8226 8227 PYTHON=""8228 PYTHON_CFLAGS=""8229 PYTHON_CPPFLAGS=""8230 PYTHON_DISTUTILS=""8231 PYTHON_INCLUDES=""8232 PYTHON_LDFLAGS=""8233 PYTHON_LIB=""8234 PYTHON_LIBDIR=""8235 PYTHON_SITE_DIR=""8236 PYTHON_SITE_PACKAGES=""8237 PYTHON_VERSION=""8238 pythondir=""8239 8240 # Check whether --with-python was given.8241 if test "${with_python+set}" = set; then :8242 withval=$with_python;8243 else8244 with_python=yes8245 fi8246 8247 8248 if test "$with_python" != "no" ; then8249 if test "$with_python" = "yes" ; then8250 # Extract the first word of "python python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5", so it can be a program name with args.8251 set dummy python python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5; ac_word=$28252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58253 $as_echo_n "checking for $ac_word... " >&6; }8254 if ${ac_cv_path_PYTHON+:} false; then :8255 $as_echo_n "(cached) " >&68256 else8257 case $PYTHON in8258 [\\/]* | ?:[\\/]*)8259 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.8260 ;;8261 *)8262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8263 for as_dir in $PATH8264 do8265 IFS=$as_save_IFS8266 test -z "$as_dir" && as_dir=.8267 for ac_exec_ext in '' $ac_executable_extensions; do8268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8269 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"8270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58271 break 28272 fi8273 done8274 done8275 IFS=$as_save_IFS8276 8277 ;;8278 esac8279 fi8280 PYTHON=$ac_cv_path_PYTHON8281 if test -n "$PYTHON"; then8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&58283 $as_echo "$PYTHON" >&6; }8284 else8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58286 $as_echo "no" >&6; }8287 fi8288 8289 8290 else8291 # Extract the first word of "python", so it can be a program name with args.8292 set dummy python; ac_word=$28293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58294 $as_echo_n "checking for $ac_word... " >&6; }8295 if ${ac_cv_path_PYTHON+:} false; then :8296 $as_echo_n "(cached) " >&68297 else8298 case $PYTHON in8299 [\\/]* | ?:[\\/]*)8300 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.8301 ;;8302 *)8303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8304 as_dummy="${with_python}/bin:${with_python}"8305 for as_dir in $as_dummy8306 do8307 IFS=$as_save_IFS8308 test -z "$as_dir" && as_dir=.8309 for ac_exec_ext in '' $ac_executable_extensions; do8310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8311 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"8312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58313 break 28314 fi8315 done8316 done8317 IFS=$as_save_IFS8318 8319 ;;8320 esac8321 fi8322 PYTHON=$ac_cv_path_PYTHON8323 if test -n "$PYTHON"; then8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&58325 $as_echo "$PYTHON" >&6; }8326 else8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58328 $as_echo "no" >&6; }8329 fi8330 8331 8332 fi8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python version" >&58334 $as_echo_n "checking for Python version... " >&6; }8335 if test "x${PYTHON}" != "x"; then8336 PYTHON_VERSION=`${PYTHON} -c "import sys; print sys.version[0:3]"`8337 fi8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_VERSION" >&58339 $as_echo "$PYTHON_VERSION" >&6; }8340 fi8341 8342 if test "x${PYTHON_VERSION}" != "x"; then8343 PYTHON_INCLUDES=$incdir8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python distutils" >&58345 $as_echo_n "checking for Python distutils... " >&6; }8346 PYTHON_DISTUTILS=""8347 ${PYTHON} -c "from distutils.core import setup; setup(name='test')" \8348 build build_ext 2>&1 > /dev/null8349 if test $? = 0 ; then8350 PYTHON_DISTUTILS="yes"8351 fi8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_DISTUTILS" >&58353 $as_echo "$PYTHON_DISTUTILS" >&6; }8354 if test "${PYTHON_DISTUTILS}" = "yes" ; then8355 PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib()"`8356 #8357 # Check for Python include path8358 #8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking path to Python headers" >&58360 $as_echo_n "checking path to Python headers... " >&6; }8361 PYTHON_INCDIR=`${PYTHON} -c "import distutils.sysconfig; \8362 print distutils.sysconfig.get_python_inc();"`8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_INCDIR" >&58364 $as_echo "$PYTHON_INCDIR" >&6; }8365 #8366 # Python distutils found, get settings from python directly8367 #8368 PYTHON_SITE_DIR="`${PYTHON} -c 'from distutils import sysconfig; print sysconfig.get_python_lib(0);'`"8369 8370 PYTHON_CFLAGS="`$PYTHON -c 'from distutils import sysconfig; flags = [\"-I\" + sysconfig.get_python_inc(0), \"-I\" + sysconfig.get_python_inc(1), \" \".join(sysconfig.get_config_var(\"CFLAGS\").split())]; print \" \".join(flags);'`"8371 PYTHON_LDFLAGS="`$PYTHON -c 'from distutils import sysconfig; libs = sysconfig.get_config_var(\"LIBS\").split() + sysconfig.get_config_var(\"SYSLIBS\").split(); libs.append(\"-lpython\"+sysconfig.get_config_var(\"VERSION\")); print \" \".join(libs);'`"8372 PYTHON_LIB="`$PYTHON -c 'from distutils import sysconfig; print \"python\" + sysconfig.get_config_var(\"VERSION\");'`"8373 PYTHON_LIBDIR="`$PYTHON -c 'from distutils import sysconfig; print sysconfig.get_config_var(\"LIBDIR\");'`"8374 save_CPPFLAGS=$CPPFLAGS8375 CPPFLAGS="$CPPFLAGS -I${PYTHON_INCDIR}"8376 for ac_header in Python.h8377 do :8378 ac_fn_cxx_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"8379 if test "x$ac_cv_header_Python_h" = xyes; then :8380 cat >>confdefs.h <<_ACEOF8381 #define HAVE_PYTHON_H 18382 _ACEOF8383 found=yes8384 else8385 found=no8386 fi8387 8388 done8389 8390 CPPFLAGS=$save_CPPFLAGS8391 if test "$found" = "no" ; then8392 PYTHON_DISTUTILS=""8393 fi8394 fi8395 fi8396 8397 8398 8399 # Check whether --with-java was given.8400 if test "${with_java+set}" = set; then :8401 withval=$with_java;8402 else8403 with_java=yes8404 fi8405 8406 JAVA=""8407 JAVAH=""8408 JAVAC=""8409 JAVA_DEV_PKG="no"8410 8411 if test "${with_java}" != "no" ; then8412 if test "${with_java}" = "yes" ; then8413 # Extract the first word of "java", so it can be a program name with args.8414 set dummy java; ac_word=$28415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58416 $as_echo_n "checking for $ac_word... " >&6; }8417 if ${ac_cv_path_JAVA+:} false; then :8418 $as_echo_n "(cached) " >&68419 else8420 case $JAVA in8421 [\\/]* | ?:[\\/]*)8422 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.8423 ;;8424 *)8425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8426 for as_dir in $PATH8427 do8428 IFS=$as_save_IFS8429 test -z "$as_dir" && as_dir=.8430 for ac_exec_ext in '' $ac_executable_extensions; do8431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8432 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"8433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58434 break 28435 fi8436 done8437 done8438 IFS=$as_save_IFS8439 8440 ;;8441 esac8442 fi8443 JAVA=$ac_cv_path_JAVA8444 if test -n "$JAVA"; then8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&58446 $as_echo "$JAVA" >&6; }8447 else8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58449 $as_echo "no" >&6; }8450 fi8451 8452 8453 # Extract the first word of "javac", so it can be a program name with args.8454 set dummy javac; ac_word=$28455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58456 $as_echo_n "checking for $ac_word... " >&6; }8457 if ${ac_cv_path_JAVAC+:} false; then :8458 $as_echo_n "(cached) " >&68459 else8460 case $JAVAC in8461 [\\/]* | ?:[\\/]*)8462 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.8463 ;;8464 *)8465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8466 for as_dir in $PATH8467 do8468 IFS=$as_save_IFS8469 test -z "$as_dir" && as_dir=.8470 for ac_exec_ext in '' $ac_executable_extensions; do8471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8472 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"8473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58474 break 28475 fi8476 done8477 done8478 IFS=$as_save_IFS8479 8480 ;;8481 esac8482 fi8483 JAVAC=$ac_cv_path_JAVAC8484 if test -n "$JAVAC"; then8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&58486 $as_echo "$JAVAC" >&6; }8487 else8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58489 $as_echo "no" >&6; }8490 fi8491 8492 8493 # Extract the first word of "javah", so it can be a program name with args.8494 set dummy javah; ac_word=$28495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58496 $as_echo_n "checking for $ac_word... " >&6; }8497 if ${ac_cv_path_JAVAH+:} false; then :8498 $as_echo_n "(cached) " >&68499 else8500 case $JAVAH in8501 [\\/]* | ?:[\\/]*)8502 ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path.8503 ;;8504 *)8505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8506 for as_dir in $PATH8507 do8508 IFS=$as_save_IFS8509 test -z "$as_dir" && as_dir=.8510 for ac_exec_ext in '' $ac_executable_extensions; do8511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8512 ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext"8513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58514 break 28515 fi8516 done8517 done8518 IFS=$as_save_IFS8519 8520 ;;8521 esac8522 fi8523 JAVAH=$ac_cv_path_JAVAH8524 if test -n "$JAVAH"; then8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&58526 $as_echo "$JAVAH" >&6; }8527 else8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58529 $as_echo "no" >&6; }8530 fi8531 8532 8533 else8534 # Extract the first word of "java", so it can be a program name with args.8535 set dummy java; ac_word=$28536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58537 $as_echo_n "checking for $ac_word... " >&6; }8538 if ${ac_cv_path_JAVA+:} false; then :8539 $as_echo_n "(cached) " >&68540 else8541 case $JAVA in8542 [\\/]* | ?:[\\/]*)8543 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.8544 ;;8545 *)8546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8547 as_dummy="${with_java}/bin:${with_java}"8548 for as_dir in $as_dummy8549 do8550 IFS=$as_save_IFS8551 test -z "$as_dir" && as_dir=.8552 for ac_exec_ext in '' $ac_executable_extensions; do8553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8554 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"8555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58556 break 28557 fi8558 done8559 done8560 IFS=$as_save_IFS8561 8562 ;;8563 esac8564 fi8565 JAVA=$ac_cv_path_JAVA8566 if test -n "$JAVA"; then8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&58568 $as_echo "$JAVA" >&6; }8569 else8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58571 $as_echo "no" >&6; }8572 fi8573 8574 8575 # Extract the first word of "javac", so it can be a program name with args.8576 set dummy javac; ac_word=$28577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58578 $as_echo_n "checking for $ac_word... " >&6; }8579 if ${ac_cv_path_JAVAC+:} false; then :8580 $as_echo_n "(cached) " >&68581 else8582 case $JAVAC in8583 [\\/]* | ?:[\\/]*)8584 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.8585 ;;8586 *)8587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8588 as_dummy="${with_java}/bin:${with_java}"8589 for as_dir in $as_dummy8590 do8591 IFS=$as_save_IFS8592 test -z "$as_dir" && as_dir=.8593 for ac_exec_ext in '' $ac_executable_extensions; do8594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8595 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"8596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58597 break 28598 fi8599 done8600 done8601 IFS=$as_save_IFS8602 8603 ;;8604 esac8605 fi8606 JAVAC=$ac_cv_path_JAVAC8607 if test -n "$JAVAC"; then8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&58609 $as_echo "$JAVAC" >&6; }8610 else8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58612 $as_echo "no" >&6; }8613 fi8614 8615 8616 # Extract the first word of "javah", so it can be a program name with args.8617 set dummy javah; ac_word=$28618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58619 $as_echo_n "checking for $ac_word... " >&6; }8620 if ${ac_cv_path_JAVAH+:} false; then :8621 $as_echo_n "(cached) " >&68622 else8623 case $JAVAH in8624 [\\/]* | ?:[\\/]*)8625 ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path.8626 ;;8627 *)8628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8629 as_dummy="${with_java}/bin:${with_java}"8630 for as_dir in $as_dummy8631 do8632 IFS=$as_save_IFS8633 test -z "$as_dir" && as_dir=.8634 for ac_exec_ext in '' $ac_executable_extensions; do8635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8636 ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext"8637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58638 break 28639 fi8640 done8641 done8642 IFS=$as_save_IFS8643 8644 ;;8645 esac8646 fi8647 JAVAH=$ac_cv_path_JAVAH8648 if test -n "$JAVAH"; then8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&58650 $as_echo "$JAVAH" >&6; }8651 else8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58653 $as_echo "no" >&6; }8654 fi8655 8656 8657 fi8658 fi8659 JDK=8660 JAVA_INC_DIR=8661 JAVA_INC_SPEC=8662 8663 # If java exists, let's look for the jni.h file.8664 if test "x${JAVA}" != "x" ; then8665 for d in \8666 ${with_java} \8667 ${JAVA_HOME} \8668 /apps/java/jdk1.6* \8669 /opt/sun-jdk-1.6* \8670 /opt/icedtea6-* \8671 /opt/sun-jdk-1.5* \8672 /usr/lib/jvm/*sun* \8673 /usr/lib/jvm/*icedtea* \8674 /usr/lib/jvm/*openjdk*8675 do8676 if test -r "${d}/include/jni.h" ; then8677 JDK=${d}8678 JAVA_HOME=$JDK8679 JAVA_INC_DIR=${JDK}/include8680 JAVA_INC_SPEC="-I${JDK}/include -I${JDK}/include/linux"8681 break;8682 fi8683 if test -r "${d}/Headers/jni.h" ; then8684 JDK=${d}8685 JAVA_HOME=$JDK8686 JAVA_INC_DIR=${JDK}/Headers8687 JAVA_INC_SPEC="-I${JDK}/Headers -I${JDK}/Headers/macos"8688 break;8689 fi8690 done8691 fi8692 8693 8694 8695 # Check whether --with-R was given.8696 if test "${with_R+set}" = set; then :8697 withval=$with_R;8698 else8699 with_R=yes8700 fi8701 8702 8703 R=""8704 if test "$with_R" != "no" ; then8705 if test "$with_R" = "yes" ; then8706 # Extract the first word of "R", so it can be a program name with args.8707 set dummy R; ac_word=$28708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58709 $as_echo_n "checking for $ac_word... " >&6; }8710 if ${ac_cv_path_R+:} false; then :8711 $as_echo_n "(cached) " >&68712 else8713 case $R in8714 [\\/]* | ?:[\\/]*)8715 ac_cv_path_R="$R" # Let the user override the test with a path.8716 ;;8717 *)8718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8719 for as_dir in $PATH8720 do8721 IFS=$as_save_IFS8722 test -z "$as_dir" && as_dir=.8723 for ac_exec_ext in '' $ac_executable_extensions; do8724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8725 ac_cv_path_R="$as_dir/$ac_word$ac_exec_ext"8726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58727 break 28728 fi8729 done8730 done8731 IFS=$as_save_IFS8732 8733 ;;8734 esac8735 fi8736 R=$ac_cv_path_R8737 if test -n "$R"; then8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $R" >&58739 $as_echo "$R" >&6; }8740 else8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58742 $as_echo "no" >&6; }8743 fi8744 8745 8746 else8747 # Extract the first word of "R", so it can be a program name with args.8748 set dummy R; ac_word=$28749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58750 $as_echo_n "checking for $ac_word... " >&6; }8751 if ${ac_cv_path_R+:} false; then :8752 $as_echo_n "(cached) " >&68753 else8754 case $R in8755 [\\/]* | ?:[\\/]*)8756 ac_cv_path_R="$R" # Let the user override the test with a path.8757 ;;8758 *)8759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8760 as_dummy="${with_R}/bin:${with_R}"8761 for as_dir in $as_dummy8762 do8763 IFS=$as_save_IFS8764 test -z "$as_dir" && as_dir=.8765 for ac_exec_ext in '' $ac_executable_extensions; do8766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8767 ac_cv_path_R="$as_dir/$ac_word$ac_exec_ext"8768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58769 break 28770 fi8771 done8772 done8773 IFS=$as_save_IFS8774 8775 ;;8776 esac8777 fi8778 R=$ac_cv_path_R8779 if test -n "$R"; then8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $R" >&58781 $as_echo "$R" >&6; }8782 else8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58784 $as_echo "no" >&6; }8785 fi8786 8787 8788 fi8789 fi8790 8791 8792 # Make sure we can run config.sub.8793 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||8794 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 58795 8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&58797 $as_echo_n "checking build system type... " >&6; }8798 if ${ac_cv_build+:} false; then :8799 $as_echo_n "(cached) " >&68800 else8801 ac_build_alias=$build_alias8802 test "x$ac_build_alias" = x &&8803 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`8804 test "x$ac_build_alias" = x &&8805 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 58806 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||8807 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 58808 8809 fi8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&58811 $as_echo "$ac_cv_build" >&6; }8812 case $ac_cv_build in8813 *-*-*) ;;8814 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;8815 esac8816 build=$ac_cv_build8817 ac_save_IFS=$IFS; IFS='-'8818 set x $ac_cv_build8819 shift8820 build_cpu=$18821 build_vendor=$28822 shift; shift8823 # Remember, the first character of IFS is used to create $*,8824 # except with old shells:8825 build_os=$*8826 IFS=$ac_save_IFS8827 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac8828 8829 8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&58831 $as_echo_n "checking host system type... " >&6; }8832 if ${ac_cv_host+:} false; then :8833 $as_echo_n "(cached) " >&68834 else8835 if test "x$host_alias" = x; then8836 ac_cv_host=$ac_cv_build8837 else8838 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||8839 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 58840 fi8841 8842 fi8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&58844 $as_echo "$ac_cv_host" >&6; }8845 case $ac_cv_host in8846 *-*-*) ;;8847 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;8848 esac8849 host=$ac_cv_host8850 ac_save_IFS=$IFS; IFS='-'8851 set x $ac_cv_host8852 shift8853 host_cpu=$18854 host_vendor=$28855 shift; shift8856 # Remember, the first character of IFS is used to create $*,8857 # except with old shells:8858 host_os=$*8859 IFS=$ac_save_IFS8860 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac8861 8862 8863 8864 8865 8866 # Check whether --with-ruby was given.8867 if test "${with_ruby+set}" = set; then :8868 withval=$with_ruby; RUBY=$withval8869 else8870 RUBY=ruby8871 fi8872 8873 8874 # Check whether --with-ruby_sitelibdir was given.8875 if test "${with_ruby_sitelibdir+set}" = set; then :8876 withval=$with_ruby_sitelibdir; ruby_sitelibdir=$withval8877 else8878 ruby_sitelibdir=NONE8879 fi8880 8881 8882 8883 8884 RUBY_VERSION_CODE=`$RUBY -e "puts RUBY_VERSION.gsub(/\./, '')"`8885 8886 8887 RUBY_CONFIG_SO_NAME=`8888 $RUBY -rrbconfig -e "puts(Config::CONFIG['RUBY_SO_NAME'] || '')"`8889 RUBY_CONFIG_ARCHDIR=`8890 $RUBY -rrbconfig -e "puts(Config::CONFIG['archdir'] || '')"`8891 RUBY_CONFIG_ARCH=`8892 $RUBY -rrbconfig -e "puts(Config::CONFIG['arch'] || '')"`8893 RUBY_CONFIG_LIBDIR=`8894 $RUBY -rrbconfig -e "puts(Config::CONFIG['libdir'] || '')"`8895 RUBY_CONFIG_BINDIR=`8896 $RUBY -rrbconfig -e "puts(Config::CONFIG['bindir'] || '')"`8897 RUBY_CONFIG_RUBYHDRDIR=`8898 $RUBY -rrbconfig -e "puts(Config::CONFIG['rubyhdrdir'] || '')"`8899 RUBY_CONFIG_CFLAGS=`8900 $RUBY -rrbconfig -e "puts(Config::CONFIG['CFLAGS'] || '')"`8901 RUBY_CONFIG_LIBS=`8902 $RUBY -rrbconfig -e "puts(Config::CONFIG['LIBS'] || '')"`8903 RUBY_CONFIG_DLDLIBS=`8904 $RUBY -rrbconfig -e "puts(Config::CONFIG['DLDLIBS'] || '')"`8905 RUBY_CONFIG_LDFLAGS=`8906 $RUBY -rrbconfig -e "puts(Config::CONFIG['LDFLAGS'] || '')"`8907 RUBY_CONFIG_LIBRUBYARG=`8908 $RUBY -rrbconfig -e "puts(Config::CONFIG['LIBRUBYARG'] || '')"`8909 RUBY_CONFIG_LIBRUBYARG_STATIC=`8910 $RUBY -rrbconfig -e "puts(Config::CONFIG['LIBRUBYARG_STATIC'] || '')"`8911 RUBY_CONFIG_CCDLFLAGS=`8912 $RUBY -rrbconfig -e "puts(Config::CONFIG['CCDLFLAGS'] || '')"`8913 8914 if test "x${RUBY_CONFIG_RUBYHDRDIR}x" != "xx"; then8915 # 1.98916 RUBY_CPPFLAGS="-I${RUBY_CONFIG_RUBYHDRDIR}"8917 RUBY_CPPFLAGS="${RUBY_CPPFLAGS} -I${RUBY_CONFIG_RUBYHDRDIR}/${RUBY_CONFIG_ARCH}"8918 else8919 # 1.88920 RUBY_CPPFLAGS="-I${RUBY_CONFIG_ARCHDIR}"8921 fi8922 8923 8924 RUBY_CFLAGS="${RUBY_CONFIG_CFLAGS} ${RUBY_CONFIG_CCDLFLAGS}"8925 8926 8927 RUBY_CXXFLAGS="${RUBY_CONFIG_CFLAGS} ${RUBY_CONFIG_CCDLFLAGS}"8928 8929 8930 RUBY_LDFLAGS="-L${RUBY_CONFIG_ARCHDIR} -L${RUBY_CONFIG_LIBDIR} ${RUBY_CONFIG_LDFLAGS}"8931 8932 8933 RUBY_LIBS="${RUBY_CONFIG_LIBS} ${RUBY_CONFIG_DLDLIBS}"8934 8935 8936 RUBY_LIBRUBYARG="${RUBY_CONFIG_LIBRUBYARG}"8937 8938 8939 RUBY_LIBRUBYARG_STATIC="${RUBY_CONFIG_LIBRUBYARG_STATIC}"8940 8941 8942 if test "x${ruby_sitelibdir}x" != "xNONEx"8943 then8944 RUBY_SITELIBDIR="${ruby_sitelibdir}"8945 else8946 if test "x${prefix}x" = "xNONEx"8947 then8948 RUBY_SITELIBDIR=`8949 $RUBY -rrbconfig -e "puts(Config::CONFIG['sitelibdir'] || '')"`8950 else8951 sitelibdir_no_prefix=`$RUBY -rrbconfig \8952 -e "include Config; \8953 puts CONFIG['sitelibdir'].sub(CONFIG['prefix'], '')"`8954 RUBY_SITELIBDIR="${prefix}/${sitelibdir_no_prefix}"8955 fi8956 fi8957 8958 8959 CPPFLAGS_save="${CPPFLAGS}"8960 CPPFLAGS="${CPPFLAGS} ${RUBY_CPPFLAGS}"8961 CXXFLAGS="${CPPFLAGS}"8962 for ac_header in ruby.h8963 do :8964 ac_fn_cxx_check_header_mongrel "$LINENO" "ruby.h" "ac_cv_header_ruby_h" "$ac_includes_default"8965 if test "x$ac_cv_header_ruby_h" = xyes; then :8966 cat >>confdefs.h <<_ACEOF8967 #define HAVE_RUBY_H 18968 _ACEOF8969 8970 fi8971 8972 done8973 8974 HAVE_RUBY_H=${ac_cv_header_ruby_h}8975 8976 8977 for ac_header in node.h8978 do :8979 ac_fn_cxx_check_header_compile "$LINENO" "node.h" "ac_cv_header_node_h" "8980 #include <ruby.h>8981 8982 "8983 if test "x$ac_cv_header_node_h" = xyes; then :8984 cat >>confdefs.h <<_ACEOF8985 #define HAVE_NODE_H 18986 _ACEOF8987 8988 fi8989 8990 done8991 8992 for ac_header in ruby/node.h8993 do :8994 ac_fn_cxx_check_header_compile "$LINENO" "ruby/node.h" "ac_cv_header_ruby_node_h" "8995 #include <ruby.h>8996 8997 "8998 if test "x$ac_cv_header_ruby_node_h" = xyes; then :8999 cat >>confdefs.h <<_ACEOF9000 #define HAVE_RUBY_NODE_H 19001 _ACEOF9002 9003 $as_echo "#define REALLY_HAVE_RUBY_NODE_H /**/" >>confdefs.h9004 9005 fi9006 9007 done9008 9009 for ac_header in version.h9010 do :9011 ac_fn_cxx_check_header_compile "$LINENO" "version.h" "ac_cv_header_version_h" "9012 #include <ruby.h>9013 9014 "9015 if test "x$ac_cv_header_version_h" = xyes; then :9016 cat >>confdefs.h <<_ACEOF9017 #define HAVE_VERSION_H 19018 _ACEOF9019 9020 fi9021 9022 done9023 9024 for ac_header in env.h9025 do :9026 ac_fn_cxx_check_header_compile "$LINENO" "env.h" "ac_cv_header_env_h" "9027 #include <ruby.h>9028 9029 "9030 if test "x$ac_cv_header_env_h" = xyes; then :9031 cat >>confdefs.h <<_ACEOF9032 #define HAVE_ENV_H 19033 _ACEOF9034 9035 fi9036 9037 done9038 9039 9040 CPPFLAGS="${CPPFLAGS_save}"9041 9042 9043 case $host_os in9044 *mingw32* ) MINGW32=yes;;9045 * ) MINGW32=no;;9046 esac9047 9048 9049 if test x"${MINGW32}"x = xyesx; then9050 9051 RUBY_LIBS=`echo ${RUBY_LIBS} | sed -e "s%oldnames.lib%-lmoldname%"`9052 RUBY_LIBS=`echo ${RUBY_LIBS} | sed -e "s%user32.lib%-luser32%"`9053 RUBY_LIBS=`echo ${RUBY_LIBS} | sed -e "s%advapi32.lib%-ladvapi32%"`9054 RUBY_LIBS=`echo ${RUBY_LIBS} | sed -e "s%ws2_32.lib%-lws2_32%"`9055 RUBY_LIBRUBYARG=`echo ${RUBY_LIBRUBYARG} | sed -e "s%\(msvcrt-ruby.*\).lib%${RUBY_CONFIG_BINDIR}/\1.dll%"`9056 RUBY_LIBRUBYARG_STATIC=`echo ${RUBY_LIBRUBYARG_STATIC} | sed -e "s%\(msvcrt-ruby.*\).lib%${RUBY_CONFIG_LIBDIR}/\1.lib%"`9057 9058 fi9059 9060 9061 9062 7327 RP_BASE=`pwd` 9063 7328 … … 9092 7357 fi 9093 7358 9094 9095 #--------------------------------------------------------------------9096 # This macro figures out what flags to use with the compiler/linker9097 # when building shared/static debug/optimized objects. This information9098 # is all taken from the tclConfig.sh file.9099 #--------------------------------------------------------------------9100 9101 if test -f "${exec_prefix}/lib/tclConfig.sh" ; then9102 . ${exec_prefix}/lib/tclConfig.sh9103 fi9104 if test -f "${exec_prefix}/lib/tkConfig.sh" ; then9105 . ${exec_prefix}/lib/tkConfig.sh9106 fi9107 7359 9108 7360 # ----------------------------------------------------------------------- … … 9534 7786 9535 7787 9536 #--------------------------------------------------------------------9537 # search for ffmpeg libraries libavcodec, libavformat, libswscale9538 #--------------------------------------------------------------------9539 if test "${with_ffmpeg}" != "no" ; then9540 if test "${with_ffmpeg}" = "yes" ; then9541 # Extract the first word of "ffmpeg", so it can be a program name with args.9542 set dummy ffmpeg; ac_word=$29543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&59544 $as_echo_n "checking for $ac_word... " >&6; }9545 if ${ac_cv_path_FFMPEG+:} false; then :9546 $as_echo_n "(cached) " >&69547 else9548 case $FFMPEG in9549 [\\/]* | ?:[\\/]*)9550 ac_cv_path_FFMPEG="$FFMPEG" # Let the user override the test with a path.9551 ;;9552 *)9553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR9554 for as_dir in $PATH9555 do9556 IFS=$as_save_IFS9557 test -z "$as_dir" && as_dir=.9558 for ac_exec_ext in '' $ac_executable_extensions; do9559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then9560 ac_cv_path_FFMPEG="$as_dir/$ac_word$ac_exec_ext"9561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&59562 break 29563 fi9564 done9565 done9566 IFS=$as_save_IFS9567 9568 ;;9569 esac9570 fi9571 FFMPEG=$ac_cv_path_FFMPEG9572 if test -n "$FFMPEG"; then9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FFMPEG" >&59574 $as_echo "$FFMPEG" >&6; }9575 else9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&59577 $as_echo "no" >&6; }9578 fi9579 9580 9581 else9582 # Extract the first word of "ffmpeg", so it can be a program name with args.9583 set dummy ffmpeg; ac_word=$29584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&59585 $as_echo_n "checking for $ac_word... " >&6; }9586 if ${ac_cv_path_FFMPEG+:} false; then :9587 $as_echo_n "(cached) " >&69588 else9589 case $FFMPEG in9590 [\\/]* | ?:[\\/]*)9591 ac_cv_path_FFMPEG="$FFMPEG" # Let the user override the test with a path.9592 ;;9593 *)9594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR9595 as_dummy="${with_ffmpeg}/bin:${with_ffmpeg}"9596 for as_dir in $as_dummy9597 do9598 IFS=$as_save_IFS9599 test -z "$as_dir" && as_dir=.9600 for ac_exec_ext in '' $ac_executable_extensions; do9601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then9602 ac_cv_path_FFMPEG="$as_dir/$ac_word$ac_exec_ext"9603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&59604 break 29605 fi9606 done9607 done9608 IFS=$as_save_IFS9609 9610 ;;9611 esac9612 fi9613 FFMPEG=$ac_cv_path_FFMPEG9614 if test -n "$FFMPEG"; then9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FFMPEG" >&59616 $as_echo "$FFMPEG" >&6; }9617 else9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&59619 $as_echo "no" >&6; }9620 fi9621 9622 9623 fi9624 if test "${FFMPEG}x" != "x" ; then9625 9626 $as_echo "#define HAVE_FFMPEG 1" >>confdefs.h9627 9628 fi9629 fi9630 9631 for ac_header in ffmpeg/avcodec.h libavcodec/avcodec.h ffmpeg/avformat.h libavformat/avformat.h ffmpeg/avutil.h libavutil/avutil.h libavutil/mathematics.h ffmpeg/swscale.h libswscale/swscale.h9632 do :9633 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`9634 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "9635 #define __STDC_CONSTANT_MACROS 19636 9637 "9638 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :9639 cat >>confdefs.h <<_ACEOF9640 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 19641 _ACEOF9642 9643 fi9644 9645 done9646 9647 9648 HAVE_FFMPEG_LIBS=""9649 if test "${with_ffmpeg}" != "no"; then9650 if [ \( "${ac_cv_header_ffmpeg_avcodec_h}" = "yes" -o \9651 "${ac_cv_header_libavcodec_avcodec_h}" = "yes" \) -a \9652 \( "${ac_cv_header_ffmpeg_avformat_h}" = "yes" -o \9653 "${ac_cv_header_libavformat_avformat_h}" = "yes" \) -a \9654 \( "${ac_cv_header_ffmpeg_avutil_h}" = "yes" -o \9655 "${ac_cv_header_libavutil_avutil_h}" = "yes" \) -a \9656 \( "${ac_cv_header_ffmpeg_swscale_h}" = "yes" -o \9657 "${ac_cv_header_libswscale_swscale_h}" = "yes" \) ] ; then9658 HAVE_FFMPEG_LIBS="yes"9659 9660 $as_echo "#define BUILD_with_ffmpeg 1" >>confdefs.h9661 9662 fi9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lavcodec" >&59664 $as_echo_n "checking for main in -lavcodec... " >&6; }9665 if ${ac_cv_lib_avcodec_main+:} false; then :9666 $as_echo_n "(cached) " >&69667 else9668 ac_check_lib_save_LIBS=$LIBS9669 LIBS="-lavcodec $LIBS"9670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext9671 /* end confdefs.h. */9672 9673 9674 int9675 main ()9676 {9677 return main ();9678 ;9679 return 0;9680 }9681 _ACEOF9682 if ac_fn_cxx_try_link "$LINENO"; then :9683 ac_cv_lib_avcodec_main=yes9684 else9685 ac_cv_lib_avcodec_main=no9686 fi9687 rm -f core conftest.err conftest.$ac_objext \9688 conftest$ac_exeext conftest.$ac_ext9689 LIBS=$ac_check_lib_save_LIBS9690 fi9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_main" >&59692 $as_echo "$ac_cv_lib_avcodec_main" >&6; }9693 if test "x$ac_cv_lib_avcodec_main" = xyes; then :9694 cat >>confdefs.h <<_ACEOF9695 #define HAVE_LIBAVCODEC 19696 _ACEOF9697 9698 LIBS="-lavcodec $LIBS"9699 9700 else9701 as_fn_error $? "librappture requires libavcodec" "$LINENO" 59702 fi9703 9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lavutil" >&59705 $as_echo_n "checking for main in -lavutil... " >&6; }9706 if ${ac_cv_lib_avutil_main+:} false; then :9707 $as_echo_n "(cached) " >&69708 else9709 ac_check_lib_save_LIBS=$LIBS9710 LIBS="-lavutil $LIBS"9711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext9712 /* end confdefs.h. */9713 9714 9715 int9716 main ()9717 {9718 return main ();9719 ;9720 return 0;9721 }9722 _ACEOF9723 if ac_fn_cxx_try_link "$LINENO"; then :9724 ac_cv_lib_avutil_main=yes9725 else9726 ac_cv_lib_avutil_main=no9727 fi9728 rm -f core conftest.err conftest.$ac_objext \9729 conftest$ac_exeext conftest.$ac_ext9730 LIBS=$ac_check_lib_save_LIBS9731 fi9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avutil_main" >&59733 $as_echo "$ac_cv_lib_avutil_main" >&6; }9734 if test "x$ac_cv_lib_avutil_main" = xyes; then :9735 cat >>confdefs.h <<_ACEOF9736 #define HAVE_LIBAVUTIL 19737 _ACEOF9738 9739 LIBS="-lavutil $LIBS"9740 9741 else9742 as_fn_error $? "librappture requires libavutil" "$LINENO" 59743 fi9744 9745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lavformat" >&59746 $as_echo_n "checking for main in -lavformat... " >&6; }9747 if ${ac_cv_lib_avformat_main+:} false; then :9748 $as_echo_n "(cached) " >&69749 else9750 ac_check_lib_save_LIBS=$LIBS9751 LIBS="-lavformat $LIBS"9752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext9753 /* end confdefs.h. */9754 9755 9756 int9757 main ()9758 {9759 return main ();9760 ;9761 return 0;9762 }9763 _ACEOF9764 if ac_fn_cxx_try_link "$LINENO"; then :9765 ac_cv_lib_avformat_main=yes9766 else9767 ac_cv_lib_avformat_main=no9768 fi9769 rm -f core conftest.err conftest.$ac_objext \9770 conftest$ac_exeext conftest.$ac_ext9771 LIBS=$ac_check_lib_save_LIBS9772 fi9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_main" >&59774 $as_echo "$ac_cv_lib_avformat_main" >&6; }9775 if test "x$ac_cv_lib_avformat_main" = xyes; then :9776 cat >>confdefs.h <<_ACEOF9777 #define HAVE_LIBAVFORMAT 19778 _ACEOF9779 9780 LIBS="-lavformat $LIBS"9781 9782 else9783 as_fn_error $? "librappture requires libavformat" "$LINENO" 59784 fi9785 9786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lswscale" >&59787 $as_echo_n "checking for main in -lswscale... " >&6; }9788 if ${ac_cv_lib_swscale_main+:} false; then :9789 $as_echo_n "(cached) " >&69790 else9791 ac_check_lib_save_LIBS=$LIBS9792 LIBS="-lswscale $LIBS"9793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext9794 /* end confdefs.h. */9795 9796 9797 int9798 main ()9799 {9800 return main ();9801 ;9802 return 0;9803 }9804 _ACEOF9805 if ac_fn_cxx_try_link "$LINENO"; then :9806 ac_cv_lib_swscale_main=yes9807 else9808 ac_cv_lib_swscale_main=no9809 fi9810 rm -f core conftest.err conftest.$ac_objext \9811 conftest$ac_exeext conftest.$ac_ext9812 LIBS=$ac_check_lib_save_LIBS9813 fi9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_main" >&59815 $as_echo "$ac_cv_lib_swscale_main" >&6; }9816 if test "x$ac_cv_lib_swscale_main" = xyes; then :9817 cat >>confdefs.h <<_ACEOF9818 #define HAVE_LIBSWSCALE 19819 _ACEOF9820 9821 LIBS="-lswscale $LIBS"9822 9823 fi9824 9825 for ac_func in av_find_stream_info9826 do :9827 ac_fn_cxx_check_func "$LINENO" "av_find_stream_info" "ac_cv_func_av_find_stream_info"9828 if test "x$ac_cv_func_av_find_stream_info" = xyes; then :9829 cat >>confdefs.h <<_ACEOF9830 #define HAVE_AV_FIND_STREAM_INFO 19831 _ACEOF9832 9833 fi9834 done9835 9836 for ac_func in av_open_input_file9837 do :9838 ac_fn_cxx_check_func "$LINENO" "av_open_input_file" "ac_cv_func_av_open_input_file"9839 if test "x$ac_cv_func_av_open_input_file" = xyes; then :9840 cat >>confdefs.h <<_ACEOF9841 #define HAVE_AV_OPEN_INPUT_FILE 19842 _ACEOF9843 9844 fi9845 done9846 9847 for ac_func in avcodec_decode_video9848 do :9849 ac_fn_cxx_check_func "$LINENO" "avcodec_decode_video" "ac_cv_func_avcodec_decode_video"9850 if test "x$ac_cv_func_avcodec_decode_video" = xyes; then :9851 cat >>confdefs.h <<_ACEOF9852 #define HAVE_AVCODEC_DECODE_VIDEO 19853 _ACEOF9854 9855 fi9856 done9857 9858 for ac_func in avcodec_decode_video29859 do :9860 ac_fn_cxx_check_func "$LINENO" "avcodec_decode_video2" "ac_cv_func_avcodec_decode_video2"9861 if test "x$ac_cv_func_avcodec_decode_video2" = xyes; then :9862 cat >>confdefs.h <<_ACEOF9863 #define HAVE_AVCODEC_DECODE_VIDEO2 19864 _ACEOF9865 9866 fi9867 done9868 9869 for ac_func in avcodec_open9870 do :9871 ac_fn_cxx_check_func "$LINENO" "avcodec_open" "ac_cv_func_avcodec_open"9872 if test "x$ac_cv_func_avcodec_open" = xyes; then :9873 cat >>confdefs.h <<_ACEOF9874 #define HAVE_AVCODEC_OPEN 19875 _ACEOF9876 9877 fi9878 done9879 9880 for ac_func in avcodec_open29881 do :9882 ac_fn_cxx_check_func "$LINENO" "avcodec_open2" "ac_cv_func_avcodec_open2"9883 if test "x$ac_cv_func_avcodec_open2" = xyes; then :9884 cat >>confdefs.h <<_ACEOF9885 #define HAVE_AVCODEC_OPEN2 19886 _ACEOF9887 9888 fi9889 done9890 9891 for ac_func in avformat_find_stream_info9892 do :9893 ac_fn_cxx_check_func "$LINENO" "avformat_find_stream_info" "ac_cv_func_avformat_find_stream_info"9894 if test "x$ac_cv_func_avformat_find_stream_info" = xyes; then :9895 cat >>confdefs.h <<_ACEOF9896 #define HAVE_AVFORMAT_FIND_STREAM_INFO 19897 _ACEOF9898 9899 fi9900 done9901 9902 for ac_func in avformat_open_input9903 do :9904 ac_fn_cxx_check_func "$LINENO" "avformat_open_input" "ac_cv_func_avformat_open_input"9905 if test "x$ac_cv_func_avformat_open_input" = xyes; then :9906 cat >>confdefs.h <<_ACEOF9907 #define HAVE_AVFORMAT_OPEN_INPUT 19908 _ACEOF9909 9910 fi9911 done9912 9913 for ac_func in avio_close9914 do :9915 ac_fn_cxx_check_func "$LINENO" "avio_close" "ac_cv_func_avio_close"9916 if test "x$ac_cv_func_avio_close" = xyes; then :9917 cat >>confdefs.h <<_ACEOF9918 #define HAVE_AVIO_CLOSE 19919 _ACEOF9920 9921 fi9922 done9923 9924 for ac_func in img_convert9925 do :9926 ac_fn_cxx_check_func "$LINENO" "img_convert" "ac_cv_func_img_convert"9927 if test "x$ac_cv_func_img_convert" = xyes; then :9928 cat >>confdefs.h <<_ACEOF9929 #define HAVE_IMG_CONVERT 19930 _ACEOF9931 9932 fi9933 done9934 9935 for ac_func in sws_getCachedContext9936 do :9937 ac_fn_cxx_check_func "$LINENO" "sws_getCachedContext" "ac_cv_func_sws_getCachedContext"9938 if test "x$ac_cv_func_sws_getCachedContext" = xyes; then :9939 cat >>confdefs.h <<_ACEOF9940 #define HAVE_SWS_GETCACHEDCONTEXT 19941 _ACEOF9942 9943 fi9944 done9945 9946 for ac_func in sws_scale9947 do :9948 ac_fn_cxx_check_func "$LINENO" "sws_scale" "ac_cv_func_sws_scale"9949 if test "x$ac_cv_func_sws_scale" = xyes; then :9950 cat >>confdefs.h <<_ACEOF9951 #define HAVE_SWS_SCALE 19952 _ACEOF9953 9954 fi9955 done9956 9957 for ac_func in url_close9958 do :9959 ac_fn_cxx_check_func "$LINENO" "url_close" "ac_cv_func_url_close"9960 if test "x$ac_cv_func_url_close" = xyes; then :9961 cat >>confdefs.h <<_ACEOF9962 #define HAVE_URL_CLOSE 19963 _ACEOF9964 9965 fi9966 done9967 9968 for ac_func in av_close_input_file9969 do :9970 ac_fn_cxx_check_func "$LINENO" "av_close_input_file" "ac_cv_func_av_close_input_file"9971 if test "x$ac_cv_func_av_close_input_file" = xyes; then :9972 cat >>confdefs.h <<_ACEOF9973 #define HAVE_AV_CLOSE_INPUT_FILE 19974 _ACEOF9975 9976 fi9977 done9978 9979 for ac_func in avformat_close_input9980 do :9981 ac_fn_cxx_check_func "$LINENO" "avformat_close_input" "ac_cv_func_avformat_close_input"9982 if test "x$ac_cv_func_avformat_close_input" = xyes; then :9983 cat >>confdefs.h <<_ACEOF9984 #define HAVE_AVFORMAT_CLOSE_INPUT 19985 _ACEOF9986 9987 fi9988 done9989 9990 9991 ac_fn_cxx_check_func "$LINENO" "avcodec_find_decoder" "ac_cv_func_avcodec_find_decoder"9992 if test "x$ac_cv_func_avcodec_find_decoder" = xyes; then :9993 9994 else9995 as_fn_error $? "oops! no av_codec_find_decoder ?!?" "$LINENO" 59996 fi9997 9998 ac_fn_cxx_check_func "$LINENO" "avcodec_alloc_frame" "ac_cv_func_avcodec_alloc_frame"9999 if test "x$ac_cv_func_avcodec_alloc_frame" = xyes; then :10000 10001 else10002 as_fn_error $? "oops! no avcode_alloc_frame ?!?" "$LINENO" 510003 fi10004 10005 ac_fn_cxx_check_func "$LINENO" "av_rescale_q" "ac_cv_func_av_rescale_q"10006 if test "x$ac_cv_func_av_rescale_q" = xyes; then :10007 10008 else10009 as_fn_error $? "oops! no av_rescale_q ?!?" "$LINENO" 510010 fi10011 10012 ac_fn_cxx_check_func "$LINENO" "av_read_frame" "ac_cv_func_av_read_frame"10013 if test "x$ac_cv_func_av_read_frame" = xyes; then :10014 10015 else10016 as_fn_error $? "oops! av_read_frame ?!?" "$LINENO" 510017 fi10018 10019 ac_fn_cxx_check_func "$LINENO" "av_free" "ac_cv_func_av_free"10020 if test "x$ac_cv_func_av_free" = xyes; then :10021 10022 else10023 as_fn_error $? "oops! no av_frame ?!?" "$LINENO" 510024 fi10025 10026 ac_fn_cxx_check_func "$LINENO" "avcodec_default_release_buffer" "ac_cv_func_avcodec_default_release_buffer"10027 if test "x$ac_cv_func_avcodec_default_release_buffer" = xyes; then :10028 10029 else10030 as_fn_error $? "oops! no avcode_default_release_buffer ?!?" "$LINENO" 510031 fi10032 10033 ac_fn_cxx_check_func "$LINENO" "avpicture_get_size" "ac_cv_func_avpicture_get_size"10034 if test "x$ac_cv_func_avpicture_get_size" = xyes; then :10035 10036 else10037 as_fn_error $? "oops! no avpicture_get_size ?!?" "$LINENO" 510038 fi10039 10040 ac_fn_cxx_check_func "$LINENO" "avpicture_fill" "ac_cv_func_avpicture_fill"10041 if test "x$ac_cv_func_avpicture_fill" = xyes; then :10042 10043 else10044 as_fn_error $? "oops! no avpicture_fill ?!?" "$LINENO" 510045 fi10046 10047 for ac_func in sws_getCachedContext10048 do :10049 ac_fn_cxx_check_func "$LINENO" "sws_getCachedContext" "ac_cv_func_sws_getCachedContext"10050 if test "x$ac_cv_func_sws_getCachedContext" = xyes; then :10051 cat >>confdefs.h <<_ACEOF10052 #define HAVE_SWS_GETCACHEDCONTEXT 110053 _ACEOF10054 10055 fi10056 done10057 10058 for ac_func in img_convert10059 do :10060 ac_fn_cxx_check_func "$LINENO" "img_convert" "ac_cv_func_img_convert"10061 if test "x$ac_cv_func_img_convert" = xyes; then :10062 cat >>confdefs.h <<_ACEOF10063 #define HAVE_IMG_CONVERT 110064 _ACEOF10065 10066 fi10067 done10068 10069 for ac_func in sws_scale10070 do :10071 ac_fn_cxx_check_func "$LINENO" "sws_scale" "ac_cv_func_sws_scale"10072 if test "x$ac_cv_func_sws_scale" = xyes; then :10073 cat >>confdefs.h <<_ACEOF10074 #define HAVE_SWS_SCALE 110075 _ACEOF10076 10077 fi10078 done10079 10080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext10081 /* end confdefs.h. */10082 10083 #define __STDC_CONSTANT_MACROS 110084 #include <stdlib.h>10085 #ifdef HAVE_FFMPEG_AVCODEC_H10086 # include <ffmpeg/avcodec.h>10087 #endif10088 #ifdef HAVE_LIBAVCODEC_AVCODEC_H10089 # include <libavcodec/avcodec.h>10090 #endif10091 int x = AVMEDIA_TYPE_VIDEO;10092 10093 int10094 main ()10095 {10096 10097 ;10098 return 0;10099 }10100 _ACEOF10101 if ac_fn_cxx_try_compile "$LINENO"; then :10102 ac_avmedia_type_video="yes"10103 else10104 ac_avmedia_type_video="no"10105 fi10106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext10107 if test "$ac_avmedia_type_video" == "yes" ; then10108 10109 $as_echo "#define HAVE_AVMEDIA_TYPE_VIDEO 1" >>confdefs.h10110 10111 fi10112 fi10113 10114 10115 10116 10117 7788 10118 7789 … … 10201 7872 10202 7873 10203 10204 7874 ac_configure_args="--disable-threads --enable-shared" 10205 7875 … … 10208 7878 10209 7879 10210 ac_config_files="$ac_config_files Makefile packages/Makefile src/Makefile src/core/Makefile src/core2/Makefile src/objects/Makefile src/objects/RpHash.h gui/Makefile gui/apps/Makefile gui/apps/about gui/apps/copy_rappture_examples gui/apps/encodedata gui/apps/rappture gui/apps/rappture-csh.env gui/apps/rappture.env gui/apps/rappture.use gui/apps/rerun gui/apps/simsim gui/apps/xmldiff gui/pkgIndex.tcl gui/scripts/Makefile gui/src/Makefile builder/Makefile builder/pkgIndex.tcl builder/scripts/Makefile tester/Makefile tester/pkgIndex.tcl tester/scripts/Makefile lang/Makefile lang/java/Makefile lang/java/rappture/Makefile lang/perl/Makefile lang/perl/Makefile.PL lang/python/Makefile lang/python/setup.py lang/matlab/Makefile lang/octave/Makefile lang/octave/octave2/Makefile lang/octave/octave3/Makefile lang/R/Makefile lang/ruby/Makefile lang/ruby/build.rb lang/tcl/Makefile lang/tcl/pkgIndex.tcl lang/tcl/scripts/Makefile lang/tcl/src/Makefile lang/tcl/tests/Makefile lib/Makefile examples/3D/Makefile examples/Makefile examples/app-fermi/2.0/Makefile examples/app-fermi/Makefile examples/app-fermi/cee/Makefile examples/app-fermi/fortran/Makefile examples/app-fermi/java/Makefile examples/app-fermi/matlab/Makefile examples/app-fermi/matlab/compiled/Makefile examples/app-fermi/matlab/uncompiled/Makefile examples/app-fermi/octave/octave2/Makefile examples/app-fermi/octave/octave3/Makefile examples/app-fermi/octave/Makefile examples/app-fermi/perl/Makefile examples/app-fermi/python/Makefile examples/app-fermi/ruby/Makefile examples/app-fermi/tcl/Makefile examples/app-fermi/wrapper/Makefile examples/app-fermi/wrapper/cee/Makefile examples/app-fermi/wrapper/perl/Makefile examples/app-fermi/wrapper/python/Makefile examples/app-fermi/wrapper/tcl/Makefile examples/app-fermi/R/Makefile examples/c-example/Makefile examples/canvas/Makefile examples/demo.bash examples/flow/Makefile examples/flow/demo1/Makefile examples/flow/demo2/Makefile examples/flow/demo3/Makefile examples/graph/Makefile examples/objects/Makefile examples/objects/axis/Makefile examples/objects/curve/Makefile examples/objects/dxWriter/Makefile examples/objects/floatBuffer/Makefile examples/objects/histogram/Makefile examples/objects/library/Makefile examples/objects/number/Makefile examples/objects/path/Makefile examples/objects/plot/Makefile examples/objects/scatter/Makefile examples/objects/string/Makefile examples/objects/tree/Makefile examples/objects/xmlparser/Makefile examples/zoo/Makefile examples/zoo/binary/Makefile examples/zoo/boolean/Makefile examples/zoo/choice/Makefile examples/zoo/curve/Makefile examples/zoo/drawing/Makefile examples/zoo/enable/Makefile examples/zoo/field/Makefile examples/zoo/group/Makefile examples/zoo/histogram/Makefile examples/zoo/image/Makefile examples/zoo/image/docs/Makefile examples/zoo/image/examples/Makefile examples/zoo/integer/Makefile examples/zoo/integer2/Makefile examples/zoo/loader/Makefile examples/zoo/loader/examples/Makefile examples/zoo/log/Makefile examples/zoo/mesh/Makefile examples/zoo/note/Makefile examples/zoo/note/docs/Makefile examples/zoo/number/Makefile examples/zoo/number2/Makefile examples/zoo/parallelepiped/Makefile examples/zoo/periodicelement/Makefile examples/zoo/phase/Makefile examples/zoo/sequence/Makefile examples/zoo/sequence/examples/Makefile examples/zoo/string/Makefile examples/zoo/structure/Makefile examples/zoo/structure/examples/Makefile examples/zoo/table/Makefile video/Makefile video/pkgIndex.tcl oldtest/Makefile oldtest/src/Makefile"7880 ac_config_files="$ac_config_files Makefile objects/Makefile system/Makefile builder/Makefile builder/scripts/Makefile builder/scripts/tclIndex builder/pkgIndex.tcl" 10211 7881 10212 7882 cat >confcache <<\_ACEOF … … 10300 7970 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10301 7971 10302 DEFS=-DHAVE_CONFIG_H 7972 # Transform confdefs.h into DEFS. 7973 # Protect against shell expansion while executing Makefile rules. 7974 # Protect against Makefile macro expansion. 7975 # 7976 # If the first sed substitution is executed (which looks for macros that 7977 # take arguments), then branch to the quote section. Otherwise, 7978 # look for a macro that doesn't take arguments. 7979 ac_script=' 7980 :mline 7981 /\\$/{ 7982 N 7983 s,\\\n,, 7984 b mline 7985 } 7986 t clear 7987 :clear 7988 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 7989 t quote 7990 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 7991 t quote 7992 b any 7993 :quote 7994 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 7995 s/\[/\\&/g 7996 s/\]/\\&/g 7997 s/\$/$$/g 7998 H 7999 :any 8000 ${ 8001 g 8002 s/^\n// 8003 s/\n/ /g 8004 p 8005 } 8006 ' 8007 DEFS=`sed -n "$ac_script" confdefs.h` 8008 10303 8009 10304 8010 ac_libobjs= … … 10735 8441 esac 10736 8442 10737 case $ac_config_headers in *"10738 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;10739 esac10740 8443 10741 8444 … … 10743 8446 # Files that config.status was made for. 10744 8447 config_files="$ac_config_files" 10745 config_headers="$ac_config_headers"10746 8448 10747 8449 _ACEOF … … 10764 8466 --file=FILE[:TEMPLATE] 10765 8467 instantiate the configuration file FILE 10766 --header=FILE[:TEMPLATE]10767 instantiate the configuration header FILE10768 8468 10769 8469 Configuration files: 10770 8470 $config_files 10771 10772 Configuration headers:10773 $config_headers10774 8471 10775 8472 Report bugs to <rappture@nanohub.org>." … … 10835 8532 as_fn_append CONFIG_FILES " '$ac_optarg'" 10836 8533 ac_need_defaults=false;; 10837 --header | --heade | --head | --hea ) 10838 $ac_shift 10839 case $ac_optarg in 10840 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 10841 esac 10842 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 10843 ac_need_defaults=false;; 10844 --he | --h) 10845 # Conflict between --help and --header 10846 as_fn_error $? "ambiguous option: \`$1' 10847 Try \`$0 --help' for more information.";; 10848 --help | --hel | -h ) 8534 --he | --h | --help | --hel | -h ) 10849 8535 $as_echo "$ac_cs_usage"; exit ;; 10850 8536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ … … 10902 8588 do 10903 8589 case $ac_config_target in 10904 "src/core/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/core/config.h" ;;10905 8590 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 10906 "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;; 10907 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 10908 "src/core/Makefile") CONFIG_FILES="$CONFIG_FILES src/core/Makefile" ;; 10909 "src/core2/Makefile") CONFIG_FILES="$CONFIG_FILES src/core2/Makefile" ;; 10910 "src/objects/Makefile") CONFIG_FILES="$CONFIG_FILES src/objects/Makefile" ;; 10911 "src/objects/RpHash.h") CONFIG_FILES="$CONFIG_FILES src/objects/RpHash.h" ;; 10912 "gui/Makefile") CONFIG_FILES="$CONFIG_FILES gui/Makefile" ;; 10913 "gui/apps/Makefile") CONFIG_FILES="$CONFIG_FILES gui/apps/Makefile" ;; 10914 "gui/apps/about") CONFIG_FILES="$CONFIG_FILES gui/apps/about" ;; 10915 "gui/apps/copy_rappture_examples") CONFIG_FILES="$CONFIG_FILES gui/apps/copy_rappture_examples" ;; 10916 "gui/apps/encodedata") CONFIG_FILES="$CONFIG_FILES gui/apps/encodedata" ;; 10917 "gui/apps/rappture") CONFIG_FILES="$CONFIG_FILES gui/apps/rappture" ;; 10918 "gui/apps/rappture-csh.env") CONFIG_FILES="$CONFIG_FILES gui/apps/rappture-csh.env" ;; 10919 "gui/apps/rappture.env") CONFIG_FILES="$CONFIG_FILES gui/apps/rappture.env" ;; 10920 "gui/apps/rappture.use") CONFIG_FILES="$CONFIG_FILES gui/apps/rappture.use" ;; 10921 "gui/apps/rerun") CONFIG_FILES="$CONFIG_FILES gui/apps/rerun" ;; 10922 "gui/apps/simsim") CONFIG_FILES="$CONFIG_FILES gui/apps/simsim" ;; 10923 "gui/apps/xmldiff") CONFIG_FILES="$CONFIG_FILES gui/apps/xmldiff" ;; 10924 "gui/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES gui/pkgIndex.tcl" ;; 10925 "gui/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES gui/scripts/Makefile" ;; 10926 "gui/src/Makefile") CONFIG_FILES="$CONFIG_FILES gui/src/Makefile" ;; 8591 "objects/Makefile") CONFIG_FILES="$CONFIG_FILES objects/Makefile" ;; 8592 "system/Makefile") CONFIG_FILES="$CONFIG_FILES system/Makefile" ;; 10927 8593 "builder/Makefile") CONFIG_FILES="$CONFIG_FILES builder/Makefile" ;; 8594 "builder/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES builder/scripts/Makefile" ;; 8595 "builder/scripts/tclIndex") CONFIG_FILES="$CONFIG_FILES builder/scripts/tclIndex" ;; 10928 8596 "builder/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES builder/pkgIndex.tcl" ;; 10929 "builder/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES builder/scripts/Makefile" ;;10930 "tester/Makefile") CONFIG_FILES="$CONFIG_FILES tester/Makefile" ;;10931 "tester/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES tester/pkgIndex.tcl" ;;10932 "tester/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tester/scripts/Makefile" ;;10933 "lang/Makefile") CONFIG_FILES="$CONFIG_FILES lang/Makefile" ;;10934 "lang/java/Makefile") CONFIG_FILES="$CONFIG_FILES lang/java/Makefile" ;;10935 "lang/java/rappture/Makefile") CONFIG_FILES="$CONFIG_FILES lang/java/rappture/Makefile" ;;10936 "lang/perl/Makefile") CONFIG_FILES="$CONFIG_FILES lang/perl/Makefile" ;;10937 "lang/perl/Makefile.PL") CONFIG_FILES="$CONFIG_FILES lang/perl/Makefile.PL" ;;10938 "lang/python/Makefile") CONFIG_FILES="$CONFIG_FILES lang/python/Makefile" ;;10939 "lang/python/setup.py") CONFIG_FILES="$CONFIG_FILES lang/python/setup.py" ;;10940 "lang/matlab/Makefile") CONFIG_FILES="$CONFIG_FILES lang/matlab/Makefile" ;;10941 "lang/octave/Makefile") CONFIG_FILES="$CONFIG_FILES lang/octave/Makefile" ;;10942 "lang/octave/octave2/Makefile") CONFIG_FILES="$CONFIG_FILES lang/octave/octave2/Makefile" ;;10943 "lang/octave/octave3/Makefile") CONFIG_FILES="$CONFIG_FILES lang/octave/octave3/Makefile" ;;10944 "lang/R/Makefile") CONFIG_FILES="$CONFIG_FILES lang/R/Makefile" ;;10945 "lang/ruby/Makefile") CONFIG_FILES="$CONFIG_FILES lang/ruby/Makefile" ;;10946 "lang/ruby/build.rb") CONFIG_FILES="$CONFIG_FILES lang/ruby/build.rb" ;;10947 "lang/tcl/Makefile") CONFIG_FILES="$CONFIG_FILES lang/tcl/Makefile" ;;10948 "lang/tcl/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES lang/tcl/pkgIndex.tcl" ;;10949 "lang/tcl/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES lang/tcl/scripts/Makefile" ;;10950 "lang/tcl/src/Makefile") CONFIG_FILES="$CONFIG_FILES lang/tcl/src/Makefile" ;;10951 "lang/tcl/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lang/tcl/tests/Makefile" ;;10952 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;10953 "examples/3D/Makefile") CONFIG_FILES="$CONFIG_FILES examples/3D/Makefile" ;;10954 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;10955 "examples/app-fermi/2.0/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/2.0/Makefile" ;;10956 "examples/app-fermi/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/Makefile" ;;10957 "examples/app-fermi/cee/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/cee/Makefile" ;;10958 "examples/app-fermi/fortran/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/fortran/Makefile" ;;10959 "examples/app-fermi/java/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/java/Makefile" ;;10960 "examples/app-fermi/matlab/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/matlab/Makefile" ;;10961 "examples/app-fermi/matlab/compiled/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/matlab/compiled/Makefile" ;;10962 "examples/app-fermi/matlab/uncompiled/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/matlab/uncompiled/Makefile" ;;10963 "examples/app-fermi/octave/octave2/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/octave/octave2/Makefile" ;;10964 "examples/app-fermi/octave/octave3/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/octave/octave3/Makefile" ;;10965 "examples/app-fermi/octave/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/octave/Makefile" ;;10966 "examples/app-fermi/perl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/perl/Makefile" ;;10967 "examples/app-fermi/python/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/python/Makefile" ;;10968 "examples/app-fermi/ruby/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/ruby/Makefile" ;;10969 "examples/app-fermi/tcl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/tcl/Makefile" ;;10970 "examples/app-fermi/wrapper/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/wrapper/Makefile" ;;10971 "examples/app-fermi/wrapper/cee/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/wrapper/cee/Makefile" ;;10972 "examples/app-fermi/wrapper/perl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/wrapper/perl/Makefile" ;;10973 "examples/app-fermi/wrapper/python/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/wrapper/python/Makefile" ;;10974 "examples/app-fermi/wrapper/tcl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/wrapper/tcl/Makefile" ;;10975 "examples/app-fermi/R/Makefile") CONFIG_FILES="$CONFIG_FILES examples/app-fermi/R/Makefile" ;;10976 "examples/c-example/Makefile") CONFIG_FILES="$CONFIG_FILES examples/c-example/Makefile" ;;10977 "examples/canvas/Makefile") CONFIG_FILES="$CONFIG_FILES examples/canvas/Makefile" ;;10978 "examples/demo.bash") CONFIG_FILES="$CONFIG_FILES examples/demo.bash" ;;10979 "examples/flow/Makefile") CONFIG_FILES="$CONFIG_FILES examples/flow/Makefile" ;;10980 "examples/flow/demo1/Makefile") CONFIG_FILES="$CONFIG_FILES examples/flow/demo1/Makefile" ;;10981 "examples/flow/demo2/Makefile") CONFIG_FILES="$CONFIG_FILES examples/flow/demo2/Makefile" ;;10982 "examples/flow/demo3/Makefile") CONFIG_FILES="$CONFIG_FILES examples/flow/demo3/Makefile" ;;10983 "examples/graph/Makefile") CONFIG_FILES="$CONFIG_FILES examples/graph/Makefile" ;;10984 "examples/objects/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/Makefile" ;;10985 "examples/objects/axis/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/axis/Makefile" ;;10986 "examples/objects/curve/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/curve/Makefile" ;;10987 "examples/objects/dxWriter/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/dxWriter/Makefile" ;;10988 "examples/objects/floatBuffer/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/floatBuffer/Makefile" ;;10989 "examples/objects/histogram/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/histogram/Makefile" ;;10990 "examples/objects/library/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/library/Makefile" ;;10991 "examples/objects/number/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/number/Makefile" ;;10992 "examples/objects/path/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/path/Makefile" ;;10993 "examples/objects/plot/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/plot/Makefile" ;;10994 "examples/objects/scatter/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/scatter/Makefile" ;;10995 "examples/objects/string/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/string/Makefile" ;;10996 "examples/objects/tree/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/tree/Makefile" ;;10997 "examples/objects/xmlparser/Makefile") CONFIG_FILES="$CONFIG_FILES examples/objects/xmlparser/Makefile" ;;10998 "examples/zoo/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/Makefile" ;;10999 "examples/zoo/binary/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/binary/Makefile" ;;11000 "examples/zoo/boolean/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/boolean/Makefile" ;;11001 "examples/zoo/choice/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/choice/Makefile" ;;11002 "examples/zoo/curve/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/curve/Makefile" ;;11003 "examples/zoo/drawing/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/drawing/Makefile" ;;11004 "examples/zoo/enable/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/enable/Makefile" ;;11005 "examples/zoo/field/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/field/Makefile" ;;11006 "examples/zoo/group/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/group/Makefile" ;;11007 "examples/zoo/histogram/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/histogram/Makefile" ;;11008 "examples/zoo/image/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/image/Makefile" ;;11009 "examples/zoo/image/docs/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/image/docs/Makefile" ;;11010 "examples/zoo/image/examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/image/examples/Makefile" ;;11011 "examples/zoo/integer/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/integer/Makefile" ;;11012 "examples/zoo/integer2/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/integer2/Makefile" ;;11013 "examples/zoo/loader/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/loader/Makefile" ;;11014 "examples/zoo/loader/examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/loader/examples/Makefile" ;;11015 "examples/zoo/log/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/log/Makefile" ;;11016 "examples/zoo/mesh/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/mesh/Makefile" ;;11017 "examples/zoo/note/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/note/Makefile" ;;11018 "examples/zoo/note/docs/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/note/docs/Makefile" ;;11019 "examples/zoo/number/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/number/Makefile" ;;11020 "examples/zoo/number2/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/number2/Makefile" ;;11021 "examples/zoo/parallelepiped/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/parallelepiped/Makefile" ;;11022 "examples/zoo/periodicelement/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/periodicelement/Makefile" ;;11023 "examples/zoo/phase/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/phase/Makefile" ;;11024 "examples/zoo/sequence/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/sequence/Makefile" ;;11025 "examples/zoo/sequence/examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/sequence/examples/Makefile" ;;11026 "examples/zoo/string/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/string/Makefile" ;;11027 "examples/zoo/structure/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/structure/Makefile" ;;11028 "examples/zoo/structure/examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/structure/examples/Makefile" ;;11029 "examples/zoo/table/Makefile") CONFIG_FILES="$CONFIG_FILES examples/zoo/table/Makefile" ;;11030 "video/Makefile") CONFIG_FILES="$CONFIG_FILES video/Makefile" ;;11031 "video/pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES video/pkgIndex.tcl" ;;11032 "oldtest/Makefile") CONFIG_FILES="$CONFIG_FILES oldtest/Makefile" ;;11033 "oldtest/src/Makefile") CONFIG_FILES="$CONFIG_FILES oldtest/src/Makefile" ;;11034 8597 11035 8598 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; … … 11044 8607 if $ac_need_defaults; then 11045 8608 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11046 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers11047 8609 fi 11048 8610 … … 11232 8794 fi # test -n "$CONFIG_FILES" 11233 8795 11234 # Set up the scripts for CONFIG_HEADERS section. 11235 # No need to generate them if there are no CONFIG_HEADERS. 11236 # This happens for instance with `./config.status Makefile'. 11237 if test -n "$CONFIG_HEADERS"; then 11238 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11239 BEGIN { 11240 _ACEOF 11241 11242 # Transform confdefs.h into an awk script `defines.awk', embedded as 11243 # here-document in config.status, that substitutes the proper values into 11244 # config.h.in to produce config.h. 11245 11246 # Create a delimiter string that does not exist in confdefs.h, to ease 11247 # handling of long lines. 11248 ac_delim='%!_!# ' 11249 for ac_last_try in false false :; do 11250 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11251 if test -z "$ac_tt"; then 11252 break 11253 elif $ac_last_try; then 11254 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11255 else 11256 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11257 fi 11258 done 11259 11260 # For the awk script, D is an array of macro values keyed by name, 11261 # likewise P contains macro parameters if any. Preserve backslash 11262 # newline sequences. 11263 11264 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11265 sed -n ' 11266 s/.\{148\}/&'"$ac_delim"'/g 11267 t rset 11268 :rset 11269 s/^[ ]*#[ ]*define[ ][ ]*/ / 11270 t def 11271 d 11272 :def 11273 s/\\$// 11274 t bsnl 11275 s/["\\]/\\&/g 11276 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11277 D["\1"]=" \3"/p 11278 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11279 d 11280 :bsnl 11281 s/["\\]/\\&/g 11282 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11283 D["\1"]=" \3\\\\\\n"\\/p 11284 t cont 11285 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11286 t cont 11287 d 11288 :cont 11289 n 11290 s/.\{148\}/&'"$ac_delim"'/g 11291 t clear 11292 :clear 11293 s/\\$// 11294 t bsnlc 11295 s/["\\]/\\&/g; s/^/"/; s/$/"/p 11296 d 11297 :bsnlc 11298 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11299 b cont 11300 ' <confdefs.h | sed ' 11301 s/'"$ac_delim"'/"\\\ 11302 "/g' >>$CONFIG_STATUS || ac_write_fail=1 11303 11304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11305 for (key in D) D_is_set[key] = 1 11306 FS = "" 11307 } 11308 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11309 line = \$ 0 11310 split(line, arg, " ") 11311 if (arg[1] == "#") { 11312 defundef = arg[2] 11313 mac1 = arg[3] 11314 } else { 11315 defundef = substr(arg[1], 2) 11316 mac1 = arg[2] 11317 } 11318 split(mac1, mac2, "(") #) 11319 macro = mac2[1] 11320 prefix = substr(line, 1, index(line, defundef) - 1) 11321 if (D_is_set[macro]) { 11322 # Preserve the white space surrounding the "#". 11323 print prefix "define", macro P[macro] D[macro] 11324 next 11325 } else { 11326 # Replace #undef with comments. This is necessary, for example, 11327 # in the case of _POSIX_SOURCE, which is predefined and required 11328 # on some systems where configure will not decide to define it. 11329 if (defundef == "undef") { 11330 print "/*", prefix defundef, macro, "*/" 11331 next 11332 } 11333 } 11334 } 11335 { print } 11336 _ACAWK 11337 _ACEOF 11338 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11339 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11340 fi # test -n "$CONFIG_HEADERS" 11341 11342 11343 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 8796 8797 eval set X " :F $CONFIG_FILES " 11344 8798 shift 11345 8799 for ac_tag … … 11560 9014 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11561 9015 ;; 11562 :H) 11563 # 11564 # CONFIG_HEADER 11565 # 11566 if test x"$ac_file" != x-; then 11567 { 11568 $as_echo "/* $configure_input */" \ 11569 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 11570 } >"$ac_tmp/config.h" \ 11571 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11572 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 11573 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 11574 $as_echo "$as_me: $ac_file is unchanged" >&6;} 11575 else 11576 rm -f "$ac_file" 11577 mv "$ac_tmp/config.h" "$ac_file" \ 11578 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11579 fi 11580 else 11581 $as_echo "/* $configure_input */" \ 11582 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 11583 || as_fn_error $? "could not create -" "$LINENO" 5 11584 fi 11585 ;; 9016 11586 9017 11587 9018
Note: See TracChangeset
for help on using the changeset viewer.