Changeset 1358
- Timestamp:
- Mar 21, 2009 4:01:51 PM (15 years ago)
- Location:
- trunk/packages/vizservers
- Files:
-
- 63 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/Makefile.in
r1111 r1358 18 18 VPATH = $(srcdir) 19 19 20 SUBDIRS = nanoscale nanovis pymolproxy 20 SUBDIRS = nanoscale nanovis pymolproxy 21 21 FILES = \ 22 22 start_viz.sh 23 23 24 .PHONY: nanoscale nanovis pymolproxy 24 .PHONY: nanoscale nanovis pymolproxy 25 25 26 26 all: -
trunk/packages/vizservers/configure
r1353 r1358 648 648 TCL_VERSION 649 649 SUBDIRS 650 EGREP651 GREP652 650 CXXCPP 653 651 ac_ct_CXX 654 652 CXXFLAGS 655 653 CXX 654 MKDIR_P 655 LN_S 656 INSTALL_DATA 657 INSTALL_SCRIPT 658 INSTALL_PROGRAM 659 SHLIB_LDFLAGS 660 INSTALL_STUB_LIB 661 INSTALL_LIB 662 MAKE_STUB_LIB 663 MAKE_LIB 664 SHLIB_SUFFIX 665 SHLIB_CFLAGS 666 SHLIB_LD_LIBS 667 TK_SHLIB_LD_EXTRAS 668 TCL_SHLIB_LD_EXTRAS 669 SHLIB_LD 670 STLIB_LD 671 LD_SEARCH_FLAGS 672 CC_SEARCH_FLAGS 673 LDFLAGS_OPTIMIZE 674 LDFLAGS_DEBUG 675 CFLAGS_WARNING 676 CFLAGS_OPTIMIZE 677 CFLAGS_DEBUG 678 PLAT_SRCS 679 PLAT_OBJS 680 DL_OBJS 681 DL_LIBS 682 EGREP 683 GREP 656 684 CPP 685 AR 686 RANLIB 657 687 OBJEXT 658 688 EXEEXT … … 662 692 CFLAGS 663 693 CC 664 MKDIR_P665 LN_S666 RANLIB667 INSTALL_DATA668 INSTALL_SCRIPT669 INSTALL_PROGRAM670 SHLIB_SUFFIX671 SHLIB_LDFLAGS672 SHLIB_CFLAGS673 SHLIB_LD674 STLIB_LD675 CFLAGS_OPTIMIZE676 CFLAGS_DEBUG677 694 VERSION 678 695 target_alias … … 716 733 ac_user_opts=' 717 734 enable_option_checking 735 enable_64bit 736 enable_64bit_vis 737 enable_corefoundation 738 enable_load 718 739 with_tcllib 719 740 with_rappture … … 1348 1369 esac 1349 1370 cat <<\_ACEOF 1371 1372 Optional Features: 1373 --disable-option-checking ignore unrecognized --enable/--with options 1374 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1375 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1376 --enable-64bit enable 64bit support (where applicable) 1377 --enable-64bit-vis enable 64bit Sparc VIS support 1378 --enable-corefoundation use CoreFoundation API --enable-corefoundation 1379 --disable-load disallow dynamic loading and "load" command 1350 1380 1351 1381 Optional Packages: … … 1841 1871 fi 1842 1872 1843 SC_CONFIG_CFLAGS 1873 ac_ext=c 1874 ac_cpp='$CPP $CPPFLAGS' 1875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1877 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1878 if test -n "$ac_tool_prefix"; then 1879 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1880 set dummy ${ac_tool_prefix}gcc; ac_word=$2 1881 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 1882 $as_echo_n "checking for $ac_word... " >&6; } 1883 if test "${ac_cv_prog_CC+set}" = set; then 1884 $as_echo_n "(cached) " >&6 1885 else 1886 if test -n "$CC"; then 1887 ac_cv_prog_CC="$CC" # Let the user override the test. 1888 else 1889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1890 for as_dir in $PATH 1891 do 1892 IFS=$as_save_IFS 1893 test -z "$as_dir" && as_dir=. 1894 for ac_exec_ext in '' $ac_executable_extensions; do 1895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1896 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1897 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1898 break 2 1899 fi 1900 done 1901 done 1902 IFS=$as_save_IFS 1903 1904 fi 1905 fi 1906 CC=$ac_cv_prog_CC 1907 if test -n "$CC"; then 1908 { $as_echo "$as_me:$LINENO: result: $CC" >&5 1909 $as_echo "$CC" >&6; } 1910 else 1911 { $as_echo "$as_me:$LINENO: result: no" >&5 1912 $as_echo "no" >&6; } 1913 fi 1914 1915 1916 fi 1917 if test -z "$ac_cv_prog_CC"; then 1918 ac_ct_CC=$CC 1919 # Extract the first word of "gcc", so it can be a program name with args. 1920 set dummy gcc; ac_word=$2 1921 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 1922 $as_echo_n "checking for $ac_word... " >&6; } 1923 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1924 $as_echo_n "(cached) " >&6 1925 else 1926 if test -n "$ac_ct_CC"; then 1927 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1928 else 1929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1930 for as_dir in $PATH 1931 do 1932 IFS=$as_save_IFS 1933 test -z "$as_dir" && as_dir=. 1934 for ac_exec_ext in '' $ac_executable_extensions; do 1935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1936 ac_cv_prog_ac_ct_CC="gcc" 1937 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1938 break 2 1939 fi 1940 done 1941 done 1942 IFS=$as_save_IFS 1943 1944 fi 1945 fi 1946 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1947 if test -n "$ac_ct_CC"; then 1948 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1949 $as_echo "$ac_ct_CC" >&6; } 1950 else 1951 { $as_echo "$as_me:$LINENO: result: no" >&5 1952 $as_echo "no" >&6; } 1953 fi 1954 1955 if test "x$ac_ct_CC" = x; then 1956 CC="" 1957 else 1958 case $cross_compiling:$ac_tool_warned in 1959 yes:) 1960 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 1961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 1962 ac_tool_warned=yes ;; 1963 esac 1964 CC=$ac_ct_CC 1965 fi 1966 else 1967 CC="$ac_cv_prog_CC" 1968 fi 1969 1970 if test -z "$CC"; then 1971 if test -n "$ac_tool_prefix"; then 1972 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1973 set dummy ${ac_tool_prefix}cc; ac_word=$2 1974 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 1975 $as_echo_n "checking for $ac_word... " >&6; } 1976 if test "${ac_cv_prog_CC+set}" = set; then 1977 $as_echo_n "(cached) " >&6 1978 else 1979 if test -n "$CC"; then 1980 ac_cv_prog_CC="$CC" # Let the user override the test. 1981 else 1982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1983 for as_dir in $PATH 1984 do 1985 IFS=$as_save_IFS 1986 test -z "$as_dir" && as_dir=. 1987 for ac_exec_ext in '' $ac_executable_extensions; do 1988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1989 ac_cv_prog_CC="${ac_tool_prefix}cc" 1990 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1991 break 2 1992 fi 1993 done 1994 done 1995 IFS=$as_save_IFS 1996 1997 fi 1998 fi 1999 CC=$ac_cv_prog_CC 2000 if test -n "$CC"; then 2001 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2002 $as_echo "$CC" >&6; } 2003 else 2004 { $as_echo "$as_me:$LINENO: result: no" >&5 2005 $as_echo "no" >&6; } 2006 fi 2007 2008 2009 fi 2010 fi 2011 if test -z "$CC"; then 2012 # Extract the first word of "cc", so it can be a program name with args. 2013 set dummy cc; ac_word=$2 2014 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2015 $as_echo_n "checking for $ac_word... " >&6; } 2016 if test "${ac_cv_prog_CC+set}" = set; then 2017 $as_echo_n "(cached) " >&6 2018 else 2019 if test -n "$CC"; then 2020 ac_cv_prog_CC="$CC" # Let the user override the test. 2021 else 2022 ac_prog_rejected=no 2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2024 for as_dir in $PATH 2025 do 2026 IFS=$as_save_IFS 2027 test -z "$as_dir" && as_dir=. 2028 for ac_exec_ext in '' $ac_executable_extensions; do 2029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2030 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2031 ac_prog_rejected=yes 2032 continue 2033 fi 2034 ac_cv_prog_CC="cc" 2035 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2036 break 2 2037 fi 2038 done 2039 done 2040 IFS=$as_save_IFS 2041 2042 if test $ac_prog_rejected = yes; then 2043 # We found a bogon in the path, so make sure we never use it. 2044 set dummy $ac_cv_prog_CC 2045 shift 2046 if test $# != 0; then 2047 # We chose a different compiler from the bogus one. 2048 # However, it has the same basename, so the bogon will be chosen 2049 # first if we set CC to just the basename; use the full file name. 2050 shift 2051 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2052 fi 2053 fi 2054 fi 2055 fi 2056 CC=$ac_cv_prog_CC 2057 if test -n "$CC"; then 2058 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2059 $as_echo "$CC" >&6; } 2060 else 2061 { $as_echo "$as_me:$LINENO: result: no" >&5 2062 $as_echo "no" >&6; } 2063 fi 2064 2065 2066 fi 2067 if test -z "$CC"; then 2068 if test -n "$ac_tool_prefix"; then 2069 for ac_prog in cl.exe 2070 do 2071 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2072 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2073 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2074 $as_echo_n "checking for $ac_word... " >&6; } 2075 if test "${ac_cv_prog_CC+set}" = set; then 2076 $as_echo_n "(cached) " >&6 2077 else 2078 if test -n "$CC"; then 2079 ac_cv_prog_CC="$CC" # Let the user override the test. 2080 else 2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2082 for as_dir in $PATH 2083 do 2084 IFS=$as_save_IFS 2085 test -z "$as_dir" && as_dir=. 2086 for ac_exec_ext in '' $ac_executable_extensions; do 2087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2088 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2089 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2090 break 2 2091 fi 2092 done 2093 done 2094 IFS=$as_save_IFS 2095 2096 fi 2097 fi 2098 CC=$ac_cv_prog_CC 2099 if test -n "$CC"; then 2100 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2101 $as_echo "$CC" >&6; } 2102 else 2103 { $as_echo "$as_me:$LINENO: result: no" >&5 2104 $as_echo "no" >&6; } 2105 fi 2106 2107 2108 test -n "$CC" && break 2109 done 2110 fi 2111 if test -z "$CC"; then 2112 ac_ct_CC=$CC 2113 for ac_prog in cl.exe 2114 do 2115 # Extract the first word of "$ac_prog", so it can be a program name with args. 2116 set dummy $ac_prog; ac_word=$2 2117 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2118 $as_echo_n "checking for $ac_word... " >&6; } 2119 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2120 $as_echo_n "(cached) " >&6 2121 else 2122 if test -n "$ac_ct_CC"; then 2123 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2124 else 2125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2126 for as_dir in $PATH 2127 do 2128 IFS=$as_save_IFS 2129 test -z "$as_dir" && as_dir=. 2130 for ac_exec_ext in '' $ac_executable_extensions; do 2131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2132 ac_cv_prog_ac_ct_CC="$ac_prog" 2133 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2134 break 2 2135 fi 2136 done 2137 done 2138 IFS=$as_save_IFS 2139 2140 fi 2141 fi 2142 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2143 if test -n "$ac_ct_CC"; then 2144 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2145 $as_echo "$ac_ct_CC" >&6; } 2146 else 2147 { $as_echo "$as_me:$LINENO: result: no" >&5 2148 $as_echo "no" >&6; } 2149 fi 2150 2151 2152 test -n "$ac_ct_CC" && break 2153 done 2154 2155 if test "x$ac_ct_CC" = x; then 2156 CC="" 2157 else 2158 case $cross_compiling:$ac_tool_warned in 2159 yes:) 2160 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2162 ac_tool_warned=yes ;; 2163 esac 2164 CC=$ac_ct_CC 2165 fi 2166 fi 2167 2168 fi 2169 2170 2171 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2173 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2174 See \`config.log' for more details." >&5 2175 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH 2176 See \`config.log' for more details." >&2;} 2177 { (exit 1); exit 1; }; }; } 2178 2179 # Provide some information about the compiler. 2180 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 2181 set X $ac_compile 2182 ac_compiler=$2 2183 { (ac_try="$ac_compiler --version >&5" 2184 case "(($ac_try" in 2185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2186 *) ac_try_echo=$ac_try;; 2187 esac 2188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2189 $as_echo "$ac_try_echo") >&5 2190 (eval "$ac_compiler --version >&5") 2>&5 2191 ac_status=$? 2192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2193 (exit $ac_status); } 2194 { (ac_try="$ac_compiler -v >&5" 2195 case "(($ac_try" in 2196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2197 *) ac_try_echo=$ac_try;; 2198 esac 2199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2200 $as_echo "$ac_try_echo") >&5 2201 (eval "$ac_compiler -v >&5") 2>&5 2202 ac_status=$? 2203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2204 (exit $ac_status); } 2205 { (ac_try="$ac_compiler -V >&5" 2206 case "(($ac_try" in 2207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2208 *) ac_try_echo=$ac_try;; 2209 esac 2210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2211 $as_echo "$ac_try_echo") >&5 2212 (eval "$ac_compiler -V >&5") 2>&5 2213 ac_status=$? 2214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2215 (exit $ac_status); } 2216 2217 cat >conftest.$ac_ext <<_ACEOF 2218 /* confdefs.h. */ 2219 _ACEOF 2220 cat confdefs.h >>conftest.$ac_ext 2221 cat >>conftest.$ac_ext <<_ACEOF 2222 /* end confdefs.h. */ 2223 2224 int 2225 main () 2226 { 2227 2228 ; 2229 return 0; 2230 } 2231 _ACEOF 2232 ac_clean_files_save=$ac_clean_files 2233 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2234 # Try to create an executable without -o first, disregard a.out. 2235 # It will help us diagnose broken compilers, and finding out an intuition 2236 # of exeext. 2237 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2238 $as_echo_n "checking for C compiler default output file name... " >&6; } 2239 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2240 2241 # The possible output files: 2242 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2243 2244 ac_rmfiles= 2245 for ac_file in $ac_files 2246 do 2247 case $ac_file in 2248 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2249 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2250 esac 2251 done 2252 rm -f $ac_rmfiles 2253 2254 if { (ac_try="$ac_link_default" 2255 case "(($ac_try" in 2256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2257 *) ac_try_echo=$ac_try;; 2258 esac 2259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2260 $as_echo "$ac_try_echo") >&5 2261 (eval "$ac_link_default") 2>&5 2262 ac_status=$? 2263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2264 (exit $ac_status); }; then 2265 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2266 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2267 # in a Makefile. We should not override ac_cv_exeext if it was cached, 2268 # so that the user can short-circuit this test for compilers unknown to 2269 # Autoconf. 2270 for ac_file in $ac_files '' 2271 do 2272 test -f "$ac_file" || continue 2273 case $ac_file in 2274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2275 ;; 2276 [ab].out ) 2277 # We found the default executable, but exeext='' is most 2278 # certainly right. 2279 break;; 2280 *.* ) 2281 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2282 then :; else 2283 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2284 fi 2285 # We set ac_cv_exeext here because the later test for it is not 2286 # safe: cross compilers may not add the suffix if given an `-o' 2287 # argument, so we may need to know it at that point already. 2288 # Even if this section looks crufty: it has the advantage of 2289 # actually working. 2290 break;; 2291 * ) 2292 break;; 2293 esac 2294 done 2295 test "$ac_cv_exeext" = no && ac_cv_exeext= 2296 2297 else 2298 ac_file='' 2299 fi 2300 2301 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 2302 $as_echo "$ac_file" >&6; } 2303 if test -z "$ac_file"; then 2304 $as_echo "$as_me: failed program was:" >&5 2305 sed 's/^/| /' conftest.$ac_ext >&5 2306 2307 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2309 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 2310 See \`config.log' for more details." >&5 2311 $as_echo "$as_me: error: C compiler cannot create executables 2312 See \`config.log' for more details." >&2;} 2313 { (exit 77); exit 77; }; }; } 2314 fi 2315 2316 ac_exeext=$ac_cv_exeext 2317 2318 # Check that the compiler produces executables we can run. If not, either 2319 # the compiler is broken, or we cross compile. 2320 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2321 $as_echo_n "checking whether the C compiler works... " >&6; } 2322 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2323 # If not cross compiling, check that we can run a simple program. 2324 if test "$cross_compiling" != yes; then 2325 if { ac_try='./$ac_file' 2326 { (case "(($ac_try" in 2327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2328 *) ac_try_echo=$ac_try;; 2329 esac 2330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2331 $as_echo "$ac_try_echo") >&5 2332 (eval "$ac_try") 2>&5 2333 ac_status=$? 2334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2335 (exit $ac_status); }; }; then 2336 cross_compiling=no 2337 else 2338 if test "$cross_compiling" = maybe; then 2339 cross_compiling=yes 2340 else 2341 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2343 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 2344 If you meant to cross compile, use \`--host'. 2345 See \`config.log' for more details." >&5 2346 $as_echo "$as_me: error: cannot run C compiled programs. 2347 If you meant to cross compile, use \`--host'. 2348 See \`config.log' for more details." >&2;} 2349 { (exit 1); exit 1; }; }; } 2350 fi 2351 fi 2352 fi 2353 { $as_echo "$as_me:$LINENO: result: yes" >&5 2354 $as_echo "yes" >&6; } 2355 2356 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2357 ac_clean_files=$ac_clean_files_save 2358 # Check that the compiler produces executables we can run. If not, either 2359 # the compiler is broken, or we cross compile. 2360 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2361 $as_echo_n "checking whether we are cross compiling... " >&6; } 2362 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 2363 $as_echo "$cross_compiling" >&6; } 2364 2365 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 2366 $as_echo_n "checking for suffix of executables... " >&6; } 2367 if { (ac_try="$ac_link" 2368 case "(($ac_try" in 2369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2370 *) ac_try_echo=$ac_try;; 2371 esac 2372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2373 $as_echo "$ac_try_echo") >&5 2374 (eval "$ac_link") 2>&5 2375 ac_status=$? 2376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2377 (exit $ac_status); }; then 2378 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2379 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2380 # work properly (i.e., refer to `conftest.exe'), while it won't with 2381 # `rm'. 2382 for ac_file in conftest.exe conftest conftest.*; do 2383 test -f "$ac_file" || continue 2384 case $ac_file in 2385 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2386 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2387 break;; 2388 * ) break;; 2389 esac 2390 done 2391 else 2392 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2393 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2394 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2395 See \`config.log' for more details." >&5 2396 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2397 See \`config.log' for more details." >&2;} 2398 { (exit 1); exit 1; }; }; } 2399 fi 2400 2401 rm -f conftest$ac_cv_exeext 2402 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2403 $as_echo "$ac_cv_exeext" >&6; } 2404 2405 rm -f conftest.$ac_ext 2406 EXEEXT=$ac_cv_exeext 2407 ac_exeext=$EXEEXT 2408 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 2409 $as_echo_n "checking for suffix of object files... " >&6; } 2410 if test "${ac_cv_objext+set}" = set; then 2411 $as_echo_n "(cached) " >&6 2412 else 2413 cat >conftest.$ac_ext <<_ACEOF 2414 /* confdefs.h. */ 2415 _ACEOF 2416 cat confdefs.h >>conftest.$ac_ext 2417 cat >>conftest.$ac_ext <<_ACEOF 2418 /* end confdefs.h. */ 2419 2420 int 2421 main () 2422 { 2423 2424 ; 2425 return 0; 2426 } 2427 _ACEOF 2428 rm -f conftest.o conftest.obj 2429 if { (ac_try="$ac_compile" 2430 case "(($ac_try" in 2431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2432 *) ac_try_echo=$ac_try;; 2433 esac 2434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2435 $as_echo "$ac_try_echo") >&5 2436 (eval "$ac_compile") 2>&5 2437 ac_status=$? 2438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2439 (exit $ac_status); }; then 2440 for ac_file in conftest.o conftest.obj conftest.*; do 2441 test -f "$ac_file" || continue; 2442 case $ac_file in 2443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2444 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2445 break;; 2446 esac 2447 done 2448 else 2449 $as_echo "$as_me: failed program was:" >&5 2450 sed 's/^/| /' conftest.$ac_ext >&5 2451 2452 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2454 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2455 See \`config.log' for more details." >&5 2456 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 2457 See \`config.log' for more details." >&2;} 2458 { (exit 1); exit 1; }; }; } 2459 fi 2460 2461 rm -f conftest.$ac_cv_objext conftest.$ac_ext 2462 fi 2463 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2464 $as_echo "$ac_cv_objext" >&6; } 2465 OBJEXT=$ac_cv_objext 2466 ac_objext=$OBJEXT 2467 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2468 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2469 if test "${ac_cv_c_compiler_gnu+set}" = set; then 2470 $as_echo_n "(cached) " >&6 2471 else 2472 cat >conftest.$ac_ext <<_ACEOF 2473 /* confdefs.h. */ 2474 _ACEOF 2475 cat confdefs.h >>conftest.$ac_ext 2476 cat >>conftest.$ac_ext <<_ACEOF 2477 /* end confdefs.h. */ 2478 2479 int 2480 main () 2481 { 2482 #ifndef __GNUC__ 2483 choke me 2484 #endif 2485 2486 ; 2487 return 0; 2488 } 2489 _ACEOF 2490 rm -f conftest.$ac_objext 2491 if { (ac_try="$ac_compile" 2492 case "(($ac_try" in 2493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2494 *) ac_try_echo=$ac_try;; 2495 esac 2496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2497 $as_echo "$ac_try_echo") >&5 2498 (eval "$ac_compile") 2>conftest.er1 2499 ac_status=$? 2500 grep -v '^ *+' conftest.er1 >conftest.err 2501 rm -f conftest.er1 2502 cat conftest.err >&5 2503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2504 (exit $ac_status); } && { 2505 test -z "$ac_c_werror_flag" || 2506 test ! -s conftest.err 2507 } && test -s conftest.$ac_objext; then 2508 ac_compiler_gnu=yes 2509 else 2510 $as_echo "$as_me: failed program was:" >&5 2511 sed 's/^/| /' conftest.$ac_ext >&5 2512 2513 ac_compiler_gnu=no 2514 fi 2515 2516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2517 ac_cv_c_compiler_gnu=$ac_compiler_gnu 2518 2519 fi 2520 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2521 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 2522 if test $ac_compiler_gnu = yes; then 2523 GCC=yes 2524 else 2525 GCC= 2526 fi 2527 ac_test_CFLAGS=${CFLAGS+set} 2528 ac_save_CFLAGS=$CFLAGS 2529 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2530 $as_echo_n "checking whether $CC accepts -g... " >&6; } 2531 if test "${ac_cv_prog_cc_g+set}" = set; then 2532 $as_echo_n "(cached) " >&6 2533 else 2534 ac_save_c_werror_flag=$ac_c_werror_flag 2535 ac_c_werror_flag=yes 2536 ac_cv_prog_cc_g=no 2537 CFLAGS="-g" 2538 cat >conftest.$ac_ext <<_ACEOF 2539 /* confdefs.h. */ 2540 _ACEOF 2541 cat confdefs.h >>conftest.$ac_ext 2542 cat >>conftest.$ac_ext <<_ACEOF 2543 /* end confdefs.h. */ 2544 2545 int 2546 main () 2547 { 2548 2549 ; 2550 return 0; 2551 } 2552 _ACEOF 2553 rm -f conftest.$ac_objext 2554 if { (ac_try="$ac_compile" 2555 case "(($ac_try" in 2556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2557 *) ac_try_echo=$ac_try;; 2558 esac 2559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2560 $as_echo "$ac_try_echo") >&5 2561 (eval "$ac_compile") 2>conftest.er1 2562 ac_status=$? 2563 grep -v '^ *+' conftest.er1 >conftest.err 2564 rm -f conftest.er1 2565 cat conftest.err >&5 2566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2567 (exit $ac_status); } && { 2568 test -z "$ac_c_werror_flag" || 2569 test ! -s conftest.err 2570 } && test -s conftest.$ac_objext; then 2571 ac_cv_prog_cc_g=yes 2572 else 2573 $as_echo "$as_me: failed program was:" >&5 2574 sed 's/^/| /' conftest.$ac_ext >&5 2575 2576 CFLAGS="" 2577 cat >conftest.$ac_ext <<_ACEOF 2578 /* confdefs.h. */ 2579 _ACEOF 2580 cat confdefs.h >>conftest.$ac_ext 2581 cat >>conftest.$ac_ext <<_ACEOF 2582 /* end confdefs.h. */ 2583 2584 int 2585 main () 2586 { 2587 2588 ; 2589 return 0; 2590 } 2591 _ACEOF 2592 rm -f conftest.$ac_objext 2593 if { (ac_try="$ac_compile" 2594 case "(($ac_try" in 2595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2596 *) ac_try_echo=$ac_try;; 2597 esac 2598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2599 $as_echo "$ac_try_echo") >&5 2600 (eval "$ac_compile") 2>conftest.er1 2601 ac_status=$? 2602 grep -v '^ *+' conftest.er1 >conftest.err 2603 rm -f conftest.er1 2604 cat conftest.err >&5 2605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2606 (exit $ac_status); } && { 2607 test -z "$ac_c_werror_flag" || 2608 test ! -s conftest.err 2609 } && test -s conftest.$ac_objext; then 2610 : 2611 else 2612 $as_echo "$as_me: failed program was:" >&5 2613 sed 's/^/| /' conftest.$ac_ext >&5 2614 2615 ac_c_werror_flag=$ac_save_c_werror_flag 2616 CFLAGS="-g" 2617 cat >conftest.$ac_ext <<_ACEOF 2618 /* confdefs.h. */ 2619 _ACEOF 2620 cat confdefs.h >>conftest.$ac_ext 2621 cat >>conftest.$ac_ext <<_ACEOF 2622 /* end confdefs.h. */ 2623 2624 int 2625 main () 2626 { 2627 2628 ; 2629 return 0; 2630 } 2631 _ACEOF 2632 rm -f conftest.$ac_objext 2633 if { (ac_try="$ac_compile" 2634 case "(($ac_try" in 2635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2636 *) ac_try_echo=$ac_try;; 2637 esac 2638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2639 $as_echo "$ac_try_echo") >&5 2640 (eval "$ac_compile") 2>conftest.er1 2641 ac_status=$? 2642 grep -v '^ *+' conftest.er1 >conftest.err 2643 rm -f conftest.er1 2644 cat conftest.err >&5 2645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2646 (exit $ac_status); } && { 2647 test -z "$ac_c_werror_flag" || 2648 test ! -s conftest.err 2649 } && test -s conftest.$ac_objext; then 2650 ac_cv_prog_cc_g=yes 2651 else 2652 $as_echo "$as_me: failed program was:" >&5 2653 sed 's/^/| /' conftest.$ac_ext >&5 2654 2655 2656 fi 2657 2658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2659 fi 2660 2661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2662 fi 2663 2664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2665 ac_c_werror_flag=$ac_save_c_werror_flag 2666 fi 2667 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2668 $as_echo "$ac_cv_prog_cc_g" >&6; } 2669 if test "$ac_test_CFLAGS" = set; then 2670 CFLAGS=$ac_save_CFLAGS 2671 elif test $ac_cv_prog_cc_g = yes; then 2672 if test "$GCC" = yes; then 2673 CFLAGS="-g -O2" 2674 else 2675 CFLAGS="-g" 2676 fi 2677 else 2678 if test "$GCC" = yes; then 2679 CFLAGS="-O2" 2680 else 2681 CFLAGS= 2682 fi 2683 fi 2684 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2685 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2686 if test "${ac_cv_prog_cc_c89+set}" = set; then 2687 $as_echo_n "(cached) " >&6 2688 else 2689 ac_cv_prog_cc_c89=no 2690 ac_save_CC=$CC 2691 cat >conftest.$ac_ext <<_ACEOF 2692 /* confdefs.h. */ 2693 _ACEOF 2694 cat confdefs.h >>conftest.$ac_ext 2695 cat >>conftest.$ac_ext <<_ACEOF 2696 /* end confdefs.h. */ 2697 #include <stdarg.h> 2698 #include <stdio.h> 2699 #include <sys/types.h> 2700 #include <sys/stat.h> 2701 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2702 struct buf { int x; }; 2703 FILE * (*rcsopen) (struct buf *, struct stat *, int); 2704 static char *e (p, i) 2705 char **p; 2706 int i; 2707 { 2708 return p[i]; 2709 } 2710 static char *f (char * (*g) (char **, int), char **p, ...) 2711 { 2712 char *s; 2713 va_list v; 2714 va_start (v,p); 2715 s = g (p, va_arg (v,int)); 2716 va_end (v); 2717 return s; 2718 } 2719 2720 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2721 function prototypes and stuff, but not '\xHH' hex character constants. 2722 These don't provoke an error unfortunately, instead are silently treated 2723 as 'x'. The following induces an error, until -std is added to get 2724 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2725 array size at least. It's necessary to write '\x00'==0 to get something 2726 that's true only with -std. */ 2727 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2728 2729 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2730 inside strings and character constants. */ 2731 #define FOO(x) 'x' 2732 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2733 2734 int test (int i, double x); 2735 struct s1 {int (*f) (int a);}; 2736 struct s2 {int (*f) (double a);}; 2737 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2738 int argc; 2739 char **argv; 2740 int 2741 main () 2742 { 2743 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2744 ; 2745 return 0; 2746 } 2747 _ACEOF 2748 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2749 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2750 do 2751 CC="$ac_save_CC $ac_arg" 2752 rm -f conftest.$ac_objext 2753 if { (ac_try="$ac_compile" 2754 case "(($ac_try" in 2755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2756 *) ac_try_echo=$ac_try;; 2757 esac 2758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2759 $as_echo "$ac_try_echo") >&5 2760 (eval "$ac_compile") 2>conftest.er1 2761 ac_status=$? 2762 grep -v '^ *+' conftest.er1 >conftest.err 2763 rm -f conftest.er1 2764 cat conftest.err >&5 2765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2766 (exit $ac_status); } && { 2767 test -z "$ac_c_werror_flag" || 2768 test ! -s conftest.err 2769 } && test -s conftest.$ac_objext; then 2770 ac_cv_prog_cc_c89=$ac_arg 2771 else 2772 $as_echo "$as_me: failed program was:" >&5 2773 sed 's/^/| /' conftest.$ac_ext >&5 2774 2775 2776 fi 2777 2778 rm -f core conftest.err conftest.$ac_objext 2779 test "x$ac_cv_prog_cc_c89" != "xno" && break 2780 done 2781 rm -f conftest.$ac_ext 2782 CC=$ac_save_CC 2783 2784 fi 2785 # AC_CACHE_VAL 2786 case "x$ac_cv_prog_cc_c89" in 2787 x) 2788 { $as_echo "$as_me:$LINENO: result: none needed" >&5 2789 $as_echo "none needed" >&6; } ;; 2790 xno) 2791 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 2792 $as_echo "unsupported" >&6; } ;; 2793 *) 2794 CC="$CC $ac_cv_prog_cc_c89" 2795 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 2796 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 2797 esac 2798 2799 2800 ac_ext=c 2801 ac_cpp='$CPP $CPPFLAGS' 2802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2804 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2805 2806 2807 if test -n "$ac_tool_prefix"; then 2808 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2809 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2810 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2811 $as_echo_n "checking for $ac_word... " >&6; } 2812 if test "${ac_cv_prog_RANLIB+set}" = set; then 2813 $as_echo_n "(cached) " >&6 2814 else 2815 if test -n "$RANLIB"; then 2816 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2817 else 2818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2819 for as_dir in $PATH 2820 do 2821 IFS=$as_save_IFS 2822 test -z "$as_dir" && as_dir=. 2823 for ac_exec_ext in '' $ac_executable_extensions; do 2824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2825 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 2826 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2827 break 2 2828 fi 2829 done 2830 done 2831 IFS=$as_save_IFS 2832 2833 fi 2834 fi 2835 RANLIB=$ac_cv_prog_RANLIB 2836 if test -n "$RANLIB"; then 2837 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 2838 $as_echo "$RANLIB" >&6; } 2839 else 2840 { $as_echo "$as_me:$LINENO: result: no" >&5 2841 $as_echo "no" >&6; } 2842 fi 2843 2844 2845 fi 2846 if test -z "$ac_cv_prog_RANLIB"; then 2847 ac_ct_RANLIB=$RANLIB 2848 # Extract the first word of "ranlib", so it can be a program name with args. 2849 set dummy ranlib; ac_word=$2 2850 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2851 $as_echo_n "checking for $ac_word... " >&6; } 2852 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 2853 $as_echo_n "(cached) " >&6 2854 else 2855 if test -n "$ac_ct_RANLIB"; then 2856 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 2857 else 2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2859 for as_dir in $PATH 2860 do 2861 IFS=$as_save_IFS 2862 test -z "$as_dir" && as_dir=. 2863 for ac_exec_ext in '' $ac_executable_extensions; do 2864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2865 ac_cv_prog_ac_ct_RANLIB="ranlib" 2866 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2867 break 2 2868 fi 2869 done 2870 done 2871 IFS=$as_save_IFS 2872 2873 fi 2874 fi 2875 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 2876 if test -n "$ac_ct_RANLIB"; then 2877 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 2878 $as_echo "$ac_ct_RANLIB" >&6; } 2879 else 2880 { $as_echo "$as_me:$LINENO: result: no" >&5 2881 $as_echo "no" >&6; } 2882 fi 2883 2884 if test "x$ac_ct_RANLIB" = x; then 2885 RANLIB=":" 2886 else 2887 case $cross_compiling:$ac_tool_warned in 2888 yes:) 2889 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2891 ac_tool_warned=yes ;; 2892 esac 2893 RANLIB=$ac_ct_RANLIB 2894 fi 2895 else 2896 RANLIB="$ac_cv_prog_RANLIB" 2897 fi 2898 2899 ac_ext=c 2900 ac_cpp='$CPP $CPPFLAGS' 2901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2903 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2904 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2905 $as_echo_n "checking how to run the C preprocessor... " >&6; } 2906 # On Suns, sometimes $CPP names a directory. 2907 if test -n "$CPP" && test -d "$CPP"; then 2908 CPP= 2909 fi 2910 if test -z "$CPP"; then 2911 if test "${ac_cv_prog_CPP+set}" = set; then 2912 $as_echo_n "(cached) " >&6 2913 else 2914 # Double quotes because CPP needs to be expanded 2915 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2916 do 2917 ac_preproc_ok=false 2918 for ac_c_preproc_warn_flag in '' yes 2919 do 2920 # Use a header file that comes with gcc, so configuring glibc 2921 # with a fresh cross-compiler works. 2922 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2923 # <limits.h> exists even on freestanding compilers. 2924 # On the NeXT, cc -E runs the code through the compiler's parser, 2925 # not just through cpp. "Syntax error" is here to catch this case. 2926 cat >conftest.$ac_ext <<_ACEOF 2927 /* confdefs.h. */ 2928 _ACEOF 2929 cat confdefs.h >>conftest.$ac_ext 2930 cat >>conftest.$ac_ext <<_ACEOF 2931 /* end confdefs.h. */ 2932 #ifdef __STDC__ 2933 # include <limits.h> 2934 #else 2935 # include <assert.h> 2936 #endif 2937 Syntax error 2938 _ACEOF 2939 if { (ac_try="$ac_cpp conftest.$ac_ext" 2940 case "(($ac_try" in 2941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2942 *) ac_try_echo=$ac_try;; 2943 esac 2944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2945 $as_echo "$ac_try_echo") >&5 2946 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2947 ac_status=$? 2948 grep -v '^ *+' conftest.er1 >conftest.err 2949 rm -f conftest.er1 2950 cat conftest.err >&5 2951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2952 (exit $ac_status); } >/dev/null && { 2953 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2954 test ! -s conftest.err 2955 }; then 2956 : 2957 else 2958 $as_echo "$as_me: failed program was:" >&5 2959 sed 's/^/| /' conftest.$ac_ext >&5 2960 2961 # Broken: fails on valid input. 2962 continue 2963 fi 2964 2965 rm -f conftest.err conftest.$ac_ext 2966 2967 # OK, works on sane cases. Now check whether nonexistent headers 2968 # can be detected and how. 2969 cat >conftest.$ac_ext <<_ACEOF 2970 /* confdefs.h. */ 2971 _ACEOF 2972 cat confdefs.h >>conftest.$ac_ext 2973 cat >>conftest.$ac_ext <<_ACEOF 2974 /* end confdefs.h. */ 2975 #include <ac_nonexistent.h> 2976 _ACEOF 2977 if { (ac_try="$ac_cpp conftest.$ac_ext" 2978 case "(($ac_try" in 2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2980 *) ac_try_echo=$ac_try;; 2981 esac 2982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2983 $as_echo "$ac_try_echo") >&5 2984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2985 ac_status=$? 2986 grep -v '^ *+' conftest.er1 >conftest.err 2987 rm -f conftest.er1 2988 cat conftest.err >&5 2989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2990 (exit $ac_status); } >/dev/null && { 2991 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2992 test ! -s conftest.err 2993 }; then 2994 # Broken: success on invalid input. 2995 continue 2996 else 2997 $as_echo "$as_me: failed program was:" >&5 2998 sed 's/^/| /' conftest.$ac_ext >&5 2999 3000 # Passes both tests. 3001 ac_preproc_ok=: 3002 break 3003 fi 3004 3005 rm -f conftest.err conftest.$ac_ext 3006 3007 done 3008 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3009 rm -f conftest.err conftest.$ac_ext 3010 if $ac_preproc_ok; then 3011 break 3012 fi 3013 3014 done 3015 ac_cv_prog_CPP=$CPP 3016 3017 fi 3018 CPP=$ac_cv_prog_CPP 3019 else 3020 ac_cv_prog_CPP=$CPP 3021 fi 3022 { $as_echo "$as_me:$LINENO: result: $CPP" >&5 3023 $as_echo "$CPP" >&6; } 3024 ac_preproc_ok=false 3025 for ac_c_preproc_warn_flag in '' yes 3026 do 3027 # Use a header file that comes with gcc, so configuring glibc 3028 # with a fresh cross-compiler works. 3029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3030 # <limits.h> exists even on freestanding compilers. 3031 # On the NeXT, cc -E runs the code through the compiler's parser, 3032 # not just through cpp. "Syntax error" is here to catch this case. 3033 cat >conftest.$ac_ext <<_ACEOF 3034 /* confdefs.h. */ 3035 _ACEOF 3036 cat confdefs.h >>conftest.$ac_ext 3037 cat >>conftest.$ac_ext <<_ACEOF 3038 /* end confdefs.h. */ 3039 #ifdef __STDC__ 3040 # include <limits.h> 3041 #else 3042 # include <assert.h> 3043 #endif 3044 Syntax error 3045 _ACEOF 3046 if { (ac_try="$ac_cpp conftest.$ac_ext" 3047 case "(($ac_try" in 3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3049 *) ac_try_echo=$ac_try;; 3050 esac 3051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3052 $as_echo "$ac_try_echo") >&5 3053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3054 ac_status=$? 3055 grep -v '^ *+' conftest.er1 >conftest.err 3056 rm -f conftest.er1 3057 cat conftest.err >&5 3058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3059 (exit $ac_status); } >/dev/null && { 3060 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3061 test ! -s conftest.err 3062 }; then 3063 : 3064 else 3065 $as_echo "$as_me: failed program was:" >&5 3066 sed 's/^/| /' conftest.$ac_ext >&5 3067 3068 # Broken: fails on valid input. 3069 continue 3070 fi 3071 3072 rm -f conftest.err conftest.$ac_ext 3073 3074 # OK, works on sane cases. Now check whether nonexistent headers 3075 # can be detected and how. 3076 cat >conftest.$ac_ext <<_ACEOF 3077 /* confdefs.h. */ 3078 _ACEOF 3079 cat confdefs.h >>conftest.$ac_ext 3080 cat >>conftest.$ac_ext <<_ACEOF 3081 /* end confdefs.h. */ 3082 #include <ac_nonexistent.h> 3083 _ACEOF 3084 if { (ac_try="$ac_cpp conftest.$ac_ext" 3085 case "(($ac_try" in 3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3087 *) ac_try_echo=$ac_try;; 3088 esac 3089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3090 $as_echo "$ac_try_echo") >&5 3091 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3092 ac_status=$? 3093 grep -v '^ *+' conftest.er1 >conftest.err 3094 rm -f conftest.er1 3095 cat conftest.err >&5 3096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3097 (exit $ac_status); } >/dev/null && { 3098 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3099 test ! -s conftest.err 3100 }; then 3101 # Broken: success on invalid input. 3102 continue 3103 else 3104 $as_echo "$as_me: failed program was:" >&5 3105 sed 's/^/| /' conftest.$ac_ext >&5 3106 3107 # Passes both tests. 3108 ac_preproc_ok=: 3109 break 3110 fi 3111 3112 rm -f conftest.err conftest.$ac_ext 3113 3114 done 3115 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3116 rm -f conftest.err conftest.$ac_ext 3117 if $ac_preproc_ok; then 3118 : 3119 else 3120 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3122 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3123 See \`config.log' for more details." >&5 3124 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3125 See \`config.log' for more details." >&2;} 3126 { (exit 1); exit 1; }; }; } 3127 fi 3128 3129 ac_ext=c 3130 ac_cpp='$CPP $CPPFLAGS' 3131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3133 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3134 3135 3136 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3137 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3138 if test "${ac_cv_path_GREP+set}" = set; then 3139 $as_echo_n "(cached) " >&6 3140 else 3141 if test -z "$GREP"; then 3142 ac_path_GREP_found=false 3143 # Loop through the user's path and test for each of PROGNAME-LIST 3144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3145 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3146 do 3147 IFS=$as_save_IFS 3148 test -z "$as_dir" && as_dir=. 3149 for ac_prog in grep ggrep; do 3150 for ac_exec_ext in '' $ac_executable_extensions; do 3151 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3152 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3153 # Check for GNU ac_path_GREP and select it if it is found. 3154 # Check for GNU $ac_path_GREP 3155 case `"$ac_path_GREP" --version 2>&1` in 3156 *GNU*) 3157 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3158 *) 3159 ac_count=0 3160 $as_echo_n 0123456789 >"conftest.in" 3161 while : 3162 do 3163 cat "conftest.in" "conftest.in" >"conftest.tmp" 3164 mv "conftest.tmp" "conftest.in" 3165 cp "conftest.in" "conftest.nl" 3166 $as_echo 'GREP' >> "conftest.nl" 3167 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3168 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3169 ac_count=`expr $ac_count + 1` 3170 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3171 # Best one so far, save it but keep looking for a better one 3172 ac_cv_path_GREP="$ac_path_GREP" 3173 ac_path_GREP_max=$ac_count 3174 fi 3175 # 10*(2^10) chars as input seems more than enough 3176 test $ac_count -gt 10 && break 3177 done 3178 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3179 esac 3180 3181 $ac_path_GREP_found && break 3 3182 done 3183 done 3184 done 3185 IFS=$as_save_IFS 3186 if test -z "$ac_cv_path_GREP"; then 3187 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3188 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3189 { (exit 1); exit 1; }; } 3190 fi 3191 else 3192 ac_cv_path_GREP=$GREP 3193 fi 3194 3195 fi 3196 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3197 $as_echo "$ac_cv_path_GREP" >&6; } 3198 GREP="$ac_cv_path_GREP" 3199 3200 3201 { $as_echo "$as_me:$LINENO: checking for egrep" >&5 3202 $as_echo_n "checking for egrep... " >&6; } 3203 if test "${ac_cv_path_EGREP+set}" = set; then 3204 $as_echo_n "(cached) " >&6 3205 else 3206 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3207 then ac_cv_path_EGREP="$GREP -E" 3208 else 3209 if test -z "$EGREP"; then 3210 ac_path_EGREP_found=false 3211 # Loop through the user's path and test for each of PROGNAME-LIST 3212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3213 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3214 do 3215 IFS=$as_save_IFS 3216 test -z "$as_dir" && as_dir=. 3217 for ac_prog in egrep; do 3218 for ac_exec_ext in '' $ac_executable_extensions; do 3219 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3220 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3221 # Check for GNU ac_path_EGREP and select it if it is found. 3222 # Check for GNU $ac_path_EGREP 3223 case `"$ac_path_EGREP" --version 2>&1` in 3224 *GNU*) 3225 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3226 *) 3227 ac_count=0 3228 $as_echo_n 0123456789 >"conftest.in" 3229 while : 3230 do 3231 cat "conftest.in" "conftest.in" >"conftest.tmp" 3232 mv "conftest.tmp" "conftest.in" 3233 cp "conftest.in" "conftest.nl" 3234 $as_echo 'EGREP' >> "conftest.nl" 3235 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3236 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3237 ac_count=`expr $ac_count + 1` 3238 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3239 # Best one so far, save it but keep looking for a better one 3240 ac_cv_path_EGREP="$ac_path_EGREP" 3241 ac_path_EGREP_max=$ac_count 3242 fi 3243 # 10*(2^10) chars as input seems more than enough 3244 test $ac_count -gt 10 && break 3245 done 3246 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3247 esac 3248 3249 $ac_path_EGREP_found && break 3 3250 done 3251 done 3252 done 3253 IFS=$as_save_IFS 3254 if test -z "$ac_cv_path_EGREP"; then 3255 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3256 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3257 { (exit 1); exit 1; }; } 3258 fi 3259 else 3260 ac_cv_path_EGREP=$EGREP 3261 fi 3262 3263 fi 3264 fi 3265 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3266 $as_echo "$ac_cv_path_EGREP" >&6; } 3267 EGREP="$ac_cv_path_EGREP" 3268 3269 3270 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3271 $as_echo_n "checking for ANSI C header files... " >&6; } 3272 if test "${ac_cv_header_stdc+set}" = set; then 3273 $as_echo_n "(cached) " >&6 3274 else 3275 cat >conftest.$ac_ext <<_ACEOF 3276 /* confdefs.h. */ 3277 _ACEOF 3278 cat confdefs.h >>conftest.$ac_ext 3279 cat >>conftest.$ac_ext <<_ACEOF 3280 /* end confdefs.h. */ 3281 #include <stdlib.h> 3282 #include <stdarg.h> 3283 #include <string.h> 3284 #include <float.h> 3285 3286 int 3287 main () 3288 { 3289 3290 ; 3291 return 0; 3292 } 3293 _ACEOF 3294 rm -f conftest.$ac_objext 3295 if { (ac_try="$ac_compile" 3296 case "(($ac_try" in 3297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3298 *) ac_try_echo=$ac_try;; 3299 esac 3300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3301 $as_echo "$ac_try_echo") >&5 3302 (eval "$ac_compile") 2>conftest.er1 3303 ac_status=$? 3304 grep -v '^ *+' conftest.er1 >conftest.err 3305 rm -f conftest.er1 3306 cat conftest.err >&5 3307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3308 (exit $ac_status); } && { 3309 test -z "$ac_c_werror_flag" || 3310 test ! -s conftest.err 3311 } && test -s conftest.$ac_objext; then 3312 ac_cv_header_stdc=yes 3313 else 3314 $as_echo "$as_me: failed program was:" >&5 3315 sed 's/^/| /' conftest.$ac_ext >&5 3316 3317 ac_cv_header_stdc=no 3318 fi 3319 3320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3321 3322 if test $ac_cv_header_stdc = yes; then 3323 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3324 cat >conftest.$ac_ext <<_ACEOF 3325 /* confdefs.h. */ 3326 _ACEOF 3327 cat confdefs.h >>conftest.$ac_ext 3328 cat >>conftest.$ac_ext <<_ACEOF 3329 /* end confdefs.h. */ 3330 #include <string.h> 3331 3332 _ACEOF 3333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3334 $EGREP "memchr" >/dev/null 2>&1; then 3335 : 3336 else 3337 ac_cv_header_stdc=no 3338 fi 3339 rm -f conftest* 3340 3341 fi 3342 3343 if test $ac_cv_header_stdc = yes; then 3344 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3345 cat >conftest.$ac_ext <<_ACEOF 3346 /* confdefs.h. */ 3347 _ACEOF 3348 cat confdefs.h >>conftest.$ac_ext 3349 cat >>conftest.$ac_ext <<_ACEOF 3350 /* end confdefs.h. */ 3351 #include <stdlib.h> 3352 3353 _ACEOF 3354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3355 $EGREP "free" >/dev/null 2>&1; then 3356 : 3357 else 3358 ac_cv_header_stdc=no 3359 fi 3360 rm -f conftest* 3361 3362 fi 3363 3364 if test $ac_cv_header_stdc = yes; then 3365 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3366 if test "$cross_compiling" = yes; then 3367 : 3368 else 3369 cat >conftest.$ac_ext <<_ACEOF 3370 /* confdefs.h. */ 3371 _ACEOF 3372 cat confdefs.h >>conftest.$ac_ext 3373 cat >>conftest.$ac_ext <<_ACEOF 3374 /* end confdefs.h. */ 3375 #include <ctype.h> 3376 #include <stdlib.h> 3377 #if ((' ' & 0x0FF) == 0x020) 3378 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3379 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3380 #else 3381 # define ISLOWER(c) \ 3382 (('a' <= (c) && (c) <= 'i') \ 3383 || ('j' <= (c) && (c) <= 'r') \ 3384 || ('s' <= (c) && (c) <= 'z')) 3385 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3386 #endif 3387 3388 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3389 int 3390 main () 3391 { 3392 int i; 3393 for (i = 0; i < 256; i++) 3394 if (XOR (islower (i), ISLOWER (i)) 3395 || toupper (i) != TOUPPER (i)) 3396 return 2; 3397 return 0; 3398 } 3399 _ACEOF 3400 rm -f conftest$ac_exeext 3401 if { (ac_try="$ac_link" 3402 case "(($ac_try" in 3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3404 *) ac_try_echo=$ac_try;; 3405 esac 3406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3407 $as_echo "$ac_try_echo") >&5 3408 (eval "$ac_link") 2>&5 3409 ac_status=$? 3410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3412 { (case "(($ac_try" in 3413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3414 *) ac_try_echo=$ac_try;; 3415 esac 3416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3417 $as_echo "$ac_try_echo") >&5 3418 (eval "$ac_try") 2>&5 3419 ac_status=$? 3420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3421 (exit $ac_status); }; }; then 3422 : 3423 else 3424 $as_echo "$as_me: program exited with status $ac_status" >&5 3425 $as_echo "$as_me: failed program was:" >&5 3426 sed 's/^/| /' conftest.$ac_ext >&5 3427 3428 ( exit $ac_status ) 3429 ac_cv_header_stdc=no 3430 fi 3431 rm -rf conftest.dSYM 3432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3433 fi 3434 3435 3436 fi 3437 fi 3438 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3439 $as_echo "$ac_cv_header_stdc" >&6; } 3440 if test $ac_cv_header_stdc = yes; then 3441 3442 cat >>confdefs.h <<\_ACEOF 3443 #define STDC_HEADERS 1 3444 _ACEOF 3445 3446 fi 3447 3448 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3459 inttypes.h stdint.h unistd.h 3460 do 3461 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3462 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 3463 $as_echo_n "checking for $ac_header... " >&6; } 3464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3465 $as_echo_n "(cached) " >&6 3466 else 3467 cat >conftest.$ac_ext <<_ACEOF 3468 /* confdefs.h. */ 3469 _ACEOF 3470 cat confdefs.h >>conftest.$ac_ext 3471 cat >>conftest.$ac_ext <<_ACEOF 3472 /* end confdefs.h. */ 3473 $ac_includes_default 3474 3475 #include <$ac_header> 3476 _ACEOF 3477 rm -f conftest.$ac_objext 3478 if { (ac_try="$ac_compile" 3479 case "(($ac_try" in 3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3481 *) ac_try_echo=$ac_try;; 3482 esac 3483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3484 $as_echo "$ac_try_echo") >&5 3485 (eval "$ac_compile") 2>conftest.er1 3486 ac_status=$? 3487 grep -v '^ *+' conftest.er1 >conftest.err 3488 rm -f conftest.er1 3489 cat conftest.err >&5 3490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3491 (exit $ac_status); } && { 3492 test -z "$ac_c_werror_flag" || 3493 test ! -s conftest.err 3494 } && test -s conftest.$ac_objext; then 3495 eval "$as_ac_Header=yes" 3496 else 3497 $as_echo "$as_me: failed program was:" >&5 3498 sed 's/^/| /' conftest.$ac_ext >&5 3499 3500 eval "$as_ac_Header=no" 3501 fi 3502 3503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3504 fi 3505 ac_res=`eval 'as_val=${'$as_ac_Header'} 3506 $as_echo "$as_val"'` 3507 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 3508 $as_echo "$ac_res" >&6; } 3509 as_val=`eval 'as_val=${'$as_ac_Header'} 3510 $as_echo "$as_val"'` 3511 if test "x$as_val" = x""yes; then 3512 cat >>confdefs.h <<_ACEOF 3513 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3514 _ACEOF 3515 3516 fi 3517 3518 done 3519 3520 3521 3522 3523 # Step 0.a: Enable 64 bit support? 3524 3525 { $as_echo "$as_me:$LINENO: checking if 64bit support is requested" >&5 3526 $as_echo_n "checking if 64bit support is requested... " >&6; } 3527 # Check whether --enable-64bit was given. 3528 if test "${enable_64bit+set}" = set; then 3529 enableval=$enable_64bit; do64bit=$enableval 3530 else 3531 do64bit=no 3532 fi 3533 3534 { $as_echo "$as_me:$LINENO: result: $do64bit" >&5 3535 $as_echo "$do64bit" >&6; } 3536 3537 # Step 0.b: Enable Solaris 64 bit VIS support? 3538 3539 { $as_echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5 3540 $as_echo_n "checking if 64bit Sparc VIS support is requested... " >&6; } 3541 # Check whether --enable-64bit-vis was given. 3542 if test "${enable_64bit_vis+set}" = set; then 3543 enableval=$enable_64bit_vis; do64bitVIS=$enableval 3544 else 3545 do64bitVIS=no 3546 fi 3547 3548 { $as_echo "$as_me:$LINENO: result: $do64bitVIS" >&5 3549 $as_echo "$do64bitVIS" >&6; } 3550 3551 if test "$do64bitVIS" = "yes"; then 3552 # Force 64bit on with VIS 3553 do64bit=yes 3554 fi 3555 3556 # Step 1: set the variable "system" to hold the name and version number 3557 # for the system. 3558 3559 3560 { $as_echo "$as_me:$LINENO: checking system version" >&5 3561 $as_echo_n "checking system version... " >&6; } 3562 if test "${tcl_cv_sys_version+set}" = set; then 3563 $as_echo_n "(cached) " >&6 3564 else 3565 3566 if test -f /usr/lib/NextStep/software_version; then 3567 tcl_cv_sys_version=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version` 3568 else 3569 tcl_cv_sys_version=`uname -s`-`uname -r` 3570 if test "$?" -ne 0 ; then 3571 { $as_echo "$as_me:$LINENO: WARNING: can't find uname command" >&5 3572 $as_echo "$as_me: WARNING: can't find uname command" >&2;} 3573 tcl_cv_sys_version=unknown 3574 else 3575 # Special check for weird MP-RAS system (uname returns weird 3576 # results, and the version is kept in special file). 3577 3578 if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then 3579 tcl_cv_sys_version=MP-RAS-`awk '{print $3}' /etc/.relid` 3580 fi 3581 if test "`uname -s`" = "AIX" ; then 3582 tcl_cv_sys_version=AIX-`uname -v`.`uname -r` 3583 fi 3584 fi 3585 fi 3586 3587 fi 3588 { $as_echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5 3589 $as_echo "$tcl_cv_sys_version" >&6; } 3590 system=$tcl_cv_sys_version 3591 3592 3593 # Step 2: check for existence of -ldl library. This is needed because 3594 # Linux can use either -ldl or -ldld for dynamic loading. 3595 3596 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 3597 $as_echo_n "checking for dlopen in -ldl... " >&6; } 3598 if test "${ac_cv_lib_dl_dlopen+set}" = set; then 3599 $as_echo_n "(cached) " >&6 3600 else 3601 ac_check_lib_save_LIBS=$LIBS 3602 LIBS="-ldl $LIBS" 3603 cat >conftest.$ac_ext <<_ACEOF 3604 /* confdefs.h. */ 3605 _ACEOF 3606 cat confdefs.h >>conftest.$ac_ext 3607 cat >>conftest.$ac_ext <<_ACEOF 3608 /* end confdefs.h. */ 3609 3610 /* Override any GCC internal prototype to avoid an error. 3611 Use char because int might match the return type of a GCC 3612 builtin and then its argument prototype would still apply. */ 3613 #ifdef __cplusplus 3614 extern "C" 3615 #endif 3616 char dlopen (); 3617 int 3618 main () 3619 { 3620 return dlopen (); 3621 ; 3622 return 0; 3623 } 3624 _ACEOF 3625 rm -f conftest.$ac_objext conftest$ac_exeext 3626 if { (ac_try="$ac_link" 3627 case "(($ac_try" in 3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3629 *) ac_try_echo=$ac_try;; 3630 esac 3631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3632 $as_echo "$ac_try_echo") >&5 3633 (eval "$ac_link") 2>conftest.er1 3634 ac_status=$? 3635 grep -v '^ *+' conftest.er1 >conftest.err 3636 rm -f conftest.er1 3637 cat conftest.err >&5 3638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3639 (exit $ac_status); } && { 3640 test -z "$ac_c_werror_flag" || 3641 test ! -s conftest.err 3642 } && test -s conftest$ac_exeext && { 3643 test "$cross_compiling" = yes || 3644 $as_test_x conftest$ac_exeext 3645 }; then 3646 ac_cv_lib_dl_dlopen=yes 3647 else 3648 $as_echo "$as_me: failed program was:" >&5 3649 sed 's/^/| /' conftest.$ac_ext >&5 3650 3651 ac_cv_lib_dl_dlopen=no 3652 fi 3653 3654 rm -rf conftest.dSYM 3655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3656 conftest$ac_exeext conftest.$ac_ext 3657 LIBS=$ac_check_lib_save_LIBS 3658 fi 3659 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 3660 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 3661 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 3662 have_dl=yes 3663 else 3664 have_dl=no 3665 fi 3666 3667 3668 # Require ranlib early so we can override it in special cases below. 3669 3670 3671 3672 # Step 3: set configuration options based on system name and version. 3673 3674 do64bit_ok=no 3675 LDFLAGS_ORIG="$LDFLAGS" 3676 TCL_EXPORT_FILE_SUFFIX="" 3677 UNSHARED_LIB_SUFFIX="" 3678 TCL_TRIM_DOTS='`echo ${VERSION} | tr -d .`' 3679 ECHO_VERSION='`echo ${VERSION}`' 3680 TCL_LIB_VERSIONS_OK=ok 3681 CFLAGS_DEBUG=-g 3682 CFLAGS_OPTIMIZE=-O 3683 if test "$GCC" = "yes" ; then 3684 CFLAGS_WARNING="-Wall -Wno-implicit-int -fno-strict-aliasing" 3685 else 3686 CFLAGS_WARNING="" 3687 fi 3688 TCL_NEEDS_EXP_FILE=0 3689 TCL_BUILD_EXP_FILE="" 3690 TCL_EXP_FILE="" 3691 # Extract the first word of "ar", so it can be a program name with args. 3692 set dummy ar; ac_word=$2 3693 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3694 $as_echo_n "checking for $ac_word... " >&6; } 3695 if test "${ac_cv_prog_AR+set}" = set; then 3696 $as_echo_n "(cached) " >&6 3697 else 3698 if test -n "$AR"; then 3699 ac_cv_prog_AR="$AR" # Let the user override the test. 3700 else 3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3702 for as_dir in $PATH 3703 do 3704 IFS=$as_save_IFS 3705 test -z "$as_dir" && as_dir=. 3706 for ac_exec_ext in '' $ac_executable_extensions; do 3707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3708 ac_cv_prog_AR="ar" 3709 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3710 break 2 3711 fi 3712 done 3713 done 3714 IFS=$as_save_IFS 3715 3716 fi 3717 fi 3718 AR=$ac_cv_prog_AR 3719 if test -n "$AR"; then 3720 { $as_echo "$as_me:$LINENO: result: $AR" >&5 3721 $as_echo "$AR" >&6; } 3722 else 3723 { $as_echo "$as_me:$LINENO: result: no" >&5 3724 $as_echo "no" >&6; } 3725 fi 3726 3727 3728 if test "${AR}" = "" ; then 3729 { { $as_echo "$as_me:$LINENO: error: Required archive tool 'ar' not found on PATH." >&5 3730 $as_echo "$as_me: error: Required archive tool 'ar' not found on PATH." >&2;} 3731 { (exit 1); exit 1; }; } 3732 fi 3733 STLIB_LD='${AR} cr' 3734 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" 3735 PLAT_OBJS="" 3736 PLAT_SRCS="" 3737 case $system in 3738 AIX-*) 3739 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes" ; then 3740 # AIX requires the _r compiler when gcc isn't being used 3741 case "${CC}" in 3742 *_r) 3743 # ok ... 3744 ;; 3745 *) 3746 CC=${CC}_r 3747 ;; 3748 esac 3749 { $as_echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5 3750 $as_echo "Using $CC for compiling with threads" >&6; } 3751 fi 3752 LIBS="$LIBS -lc" 3753 SHLIB_CFLAGS="" 3754 # Note: need the LIBS below, otherwise Tk won't find Tcl's 3755 # symbols when dynamically loaded into tclsh. 3756 SHLIB_LD_LIBS='${LIBS}' 3757 SHLIB_SUFFIX=".so" 3758 3759 DL_OBJS="tclLoadDl.o" 3760 LD_LIBRARY_PATH_VAR="LIBPATH" 3761 3762 # Check to enable 64-bit flags for compiler/linker on AIX 4+ 3763 if test "$do64bit" = "yes" -a "`uname -v`" -gt "3" ; then 3764 if test "$GCC" = "yes" ; then 3765 { $as_echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 3766 $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 3767 else 3768 do64bit_ok=yes 3769 CFLAGS="$CFLAGS -q64" 3770 LDFLAGS="$LDFLAGS -q64" 3771 RANLIB="${RANLIB} -X64" 3772 AR="${AR} -X64" 3773 SHLIB_LD_FLAGS="-b64" 3774 fi 3775 fi 3776 3777 if test "`uname -m`" = "ia64" ; then 3778 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC 3779 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 3780 # AIX-5 has dl* in libc.so 3781 DL_LIBS="" 3782 if test "$GCC" = "yes" ; then 3783 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 3784 else 3785 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' 3786 fi 3787 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 3788 else 3789 if test "$GCC" = "yes" ; then 3790 SHLIB_LD="gcc -shared" 3791 else 3792 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry" 3793 fi 3794 SHLIB_LD="${TCL_SRC_DIR}/unix/ldAix ${SHLIB_LD} ${SHLIB_LD_FLAGS}" 3795 DL_LIBS="-ldl" 3796 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 3797 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 3798 TCL_NEEDS_EXP_FILE=1 3799 TCL_EXPORT_FILE_SUFFIX='${VERSION}\$\{DBGX\}.exp' 3800 fi 3801 3802 # AIX v<=4.1 has some different flags than 4.2+ 3803 if test "$system" = "AIX-4.1" -o "`uname -v`" -lt "4" ; then 3804 LIBOBJS="$LIBOBJS tclLoadAix.o" 3805 DL_LIBS="-lld" 3806 fi 3807 3808 # On AIX <=v4 systems, libbsd.a has to be linked in to support 3809 # non-blocking file IO. This library has to be linked in after 3810 # the MATH_LIBS or it breaks the pow() function. The way to 3811 # insure proper sequencing, is to add it to the tail of MATH_LIBS. 3812 # This library also supplies gettimeofday. 3813 # 3814 # AIX does not have a timezone field in struct tm. When the AIX 3815 # bsd library is used, the timezone global and the gettimeofday 3816 # methods are to be avoided for timezone deduction instead, we 3817 # deduce the timezone by comparing the localtime result on a 3818 # known GMT value. 3819 3820 { $as_echo "$as_me:$LINENO: checking for gettimeofday in -lbsd" >&5 3821 $as_echo_n "checking for gettimeofday in -lbsd... " >&6; } 3822 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then 3823 $as_echo_n "(cached) " >&6 3824 else 3825 ac_check_lib_save_LIBS=$LIBS 3826 LIBS="-lbsd $LIBS" 3827 cat >conftest.$ac_ext <<_ACEOF 3828 /* confdefs.h. */ 3829 _ACEOF 3830 cat confdefs.h >>conftest.$ac_ext 3831 cat >>conftest.$ac_ext <<_ACEOF 3832 /* end confdefs.h. */ 3833 3834 /* Override any GCC internal prototype to avoid an error. 3835 Use char because int might match the return type of a GCC 3836 builtin and then its argument prototype would still apply. */ 3837 #ifdef __cplusplus 3838 extern "C" 3839 #endif 3840 char gettimeofday (); 3841 int 3842 main () 3843 { 3844 return gettimeofday (); 3845 ; 3846 return 0; 3847 } 3848 _ACEOF 3849 rm -f conftest.$ac_objext conftest$ac_exeext 3850 if { (ac_try="$ac_link" 3851 case "(($ac_try" in 3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3853 *) ac_try_echo=$ac_try;; 3854 esac 3855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3856 $as_echo "$ac_try_echo") >&5 3857 (eval "$ac_link") 2>conftest.er1 3858 ac_status=$? 3859 grep -v '^ *+' conftest.er1 >conftest.err 3860 rm -f conftest.er1 3861 cat conftest.err >&5 3862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3863 (exit $ac_status); } && { 3864 test -z "$ac_c_werror_flag" || 3865 test ! -s conftest.err 3866 } && test -s conftest$ac_exeext && { 3867 test "$cross_compiling" = yes || 3868 $as_test_x conftest$ac_exeext 3869 }; then 3870 ac_cv_lib_bsd_gettimeofday=yes 3871 else 3872 $as_echo "$as_me: failed program was:" >&5 3873 sed 's/^/| /' conftest.$ac_ext >&5 3874 3875 ac_cv_lib_bsd_gettimeofday=no 3876 fi 3877 3878 rm -rf conftest.dSYM 3879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3880 conftest$ac_exeext conftest.$ac_ext 3881 LIBS=$ac_check_lib_save_LIBS 3882 fi 3883 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gettimeofday" >&5 3884 $as_echo "$ac_cv_lib_bsd_gettimeofday" >&6; } 3885 if test "x$ac_cv_lib_bsd_gettimeofday" = x""yes; then 3886 libbsd=yes 3887 else 3888 libbsd=no 3889 fi 3890 3891 if test $libbsd = yes; then 3892 MATH_LIBS="$MATH_LIBS -lbsd" 3893 cat >>confdefs.h <<\_ACEOF 3894 #define USE_DELTA_FOR_TZ 1 3895 _ACEOF 3896 3897 fi 3898 ;; 3899 BeOS*) 3900 SHLIB_CFLAGS="-fPIC" 3901 SHLIB_LD="${CC} -nostart" 3902 SHLIB_LD_LIBS='${LIBS}' 3903 SHLIB_SUFFIX=".so" 3904 DL_OBJS="tclLoadDl.o" 3905 DL_LIBS="-ldl" 3906 3907 #----------------------------------------------------------- 3908 # Check for inet_ntoa in -lbind, for BeOS (which also needs 3909 # -lsocket, even if the network functions are in -lnet which 3910 # is always linked to, for compatibility. 3911 #----------------------------------------------------------- 3912 { $as_echo "$as_me:$LINENO: checking for inet_ntoa in -lbind" >&5 3913 $as_echo_n "checking for inet_ntoa in -lbind... " >&6; } 3914 if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then 3915 $as_echo_n "(cached) " >&6 3916 else 3917 ac_check_lib_save_LIBS=$LIBS 3918 LIBS="-lbind $LIBS" 3919 cat >conftest.$ac_ext <<_ACEOF 3920 /* confdefs.h. */ 3921 _ACEOF 3922 cat confdefs.h >>conftest.$ac_ext 3923 cat >>conftest.$ac_ext <<_ACEOF 3924 /* end confdefs.h. */ 3925 3926 /* Override any GCC internal prototype to avoid an error. 3927 Use char because int might match the return type of a GCC 3928 builtin and then its argument prototype would still apply. */ 3929 #ifdef __cplusplus 3930 extern "C" 3931 #endif 3932 char inet_ntoa (); 3933 int 3934 main () 3935 { 3936 return inet_ntoa (); 3937 ; 3938 return 0; 3939 } 3940 _ACEOF 3941 rm -f conftest.$ac_objext conftest$ac_exeext 3942 if { (ac_try="$ac_link" 3943 case "(($ac_try" in 3944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3945 *) ac_try_echo=$ac_try;; 3946 esac 3947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3948 $as_echo "$ac_try_echo") >&5 3949 (eval "$ac_link") 2>conftest.er1 3950 ac_status=$? 3951 grep -v '^ *+' conftest.er1 >conftest.err 3952 rm -f conftest.er1 3953 cat conftest.err >&5 3954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3955 (exit $ac_status); } && { 3956 test -z "$ac_c_werror_flag" || 3957 test ! -s conftest.err 3958 } && test -s conftest$ac_exeext && { 3959 test "$cross_compiling" = yes || 3960 $as_test_x conftest$ac_exeext 3961 }; then 3962 ac_cv_lib_bind_inet_ntoa=yes 3963 else 3964 $as_echo "$as_me: failed program was:" >&5 3965 sed 's/^/| /' conftest.$ac_ext >&5 3966 3967 ac_cv_lib_bind_inet_ntoa=no 3968 fi 3969 3970 rm -rf conftest.dSYM 3971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3972 conftest$ac_exeext conftest.$ac_ext 3973 LIBS=$ac_check_lib_save_LIBS 3974 fi 3975 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&5 3976 $as_echo "$ac_cv_lib_bind_inet_ntoa" >&6; } 3977 if test "x$ac_cv_lib_bind_inet_ntoa" = x""yes; then 3978 LIBS="$LIBS -lbind -lsocket" 3979 fi 3980 3981 ;; 3982 BSD/OS-2.1*|BSD/OS-3*) 3983 SHLIB_CFLAGS="" 3984 SHLIB_LD="shlicc -r" 3985 SHLIB_LD_LIBS='${LIBS}' 3986 SHLIB_SUFFIX=".so" 3987 DL_OBJS="tclLoadDl.o" 3988 DL_LIBS="-ldl" 3989 CC_SEARCH_FLAGS="" 3990 LD_SEARCH_FLAGS="" 3991 ;; 3992 BSD/OS-4.*) 3993 SHLIB_CFLAGS="-export-dynamic -fPIC" 3994 SHLIB_LD="cc -shared" 3995 SHLIB_LD_LIBS='${LIBS}' 3996 SHLIB_SUFFIX=".so" 3997 DL_OBJS="tclLoadDl.o" 3998 DL_LIBS="-ldl" 3999 LDFLAGS="$LDFLAGS -export-dynamic" 4000 CC_SEARCH_FLAGS="" 4001 LD_SEARCH_FLAGS="" 4002 ;; 4003 dgux*) 4004 SHLIB_CFLAGS="-K PIC" 4005 SHLIB_LD="cc -G" 4006 SHLIB_LD_LIBS="" 4007 SHLIB_SUFFIX=".so" 4008 DL_OBJS="tclLoadDl.o" 4009 DL_LIBS="-ldl" 4010 CC_SEARCH_FLAGS="" 4011 LD_SEARCH_FLAGS="" 4012 ;; 4013 HP-UX-*.11.*) 4014 # Use updated header definitions where possible 4015 cat >>confdefs.h <<\_ACEOF 4016 #define _XOPEN_SOURCE 1 4017 _ACEOF 4018 # Use the XOPEN network library 4019 cat >>confdefs.h <<\_ACEOF 4020 #define _XOPEN_SOURCE_EXTENDED 1 4021 _ACEOF 4022 # Use the XOPEN network library 4023 LIBS="$LIBS -lxnet" # Use the XOPEN network library 4024 4025 if test "`uname -m`" = "ia64" ; then 4026 SHLIB_SUFFIX=".so" 4027 else 4028 SHLIB_SUFFIX=".sl" 4029 fi 4030 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 4031 $as_echo_n "checking for shl_load in -ldld... " >&6; } 4032 if test "${ac_cv_lib_dld_shl_load+set}" = set; then 4033 $as_echo_n "(cached) " >&6 4034 else 4035 ac_check_lib_save_LIBS=$LIBS 4036 LIBS="-ldld $LIBS" 4037 cat >conftest.$ac_ext <<_ACEOF 4038 /* confdefs.h. */ 4039 _ACEOF 4040 cat confdefs.h >>conftest.$ac_ext 4041 cat >>conftest.$ac_ext <<_ACEOF 4042 /* end confdefs.h. */ 4043 4044 /* Override any GCC internal prototype to avoid an error. 4045 Use char because int might match the return type of a GCC 4046 builtin and then its argument prototype would still apply. */ 4047 #ifdef __cplusplus 4048 extern "C" 4049 #endif 4050 char shl_load (); 4051 int 4052 main () 4053 { 4054 return shl_load (); 4055 ; 4056 return 0; 4057 } 4058 _ACEOF 4059 rm -f conftest.$ac_objext conftest$ac_exeext 4060 if { (ac_try="$ac_link" 4061 case "(($ac_try" in 4062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4063 *) ac_try_echo=$ac_try;; 4064 esac 4065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4066 $as_echo "$ac_try_echo") >&5 4067 (eval "$ac_link") 2>conftest.er1 4068 ac_status=$? 4069 grep -v '^ *+' conftest.er1 >conftest.err 4070 rm -f conftest.er1 4071 cat conftest.err >&5 4072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4073 (exit $ac_status); } && { 4074 test -z "$ac_c_werror_flag" || 4075 test ! -s conftest.err 4076 } && test -s conftest$ac_exeext && { 4077 test "$cross_compiling" = yes || 4078 $as_test_x conftest$ac_exeext 4079 }; then 4080 ac_cv_lib_dld_shl_load=yes 4081 else 4082 $as_echo "$as_me: failed program was:" >&5 4083 sed 's/^/| /' conftest.$ac_ext >&5 4084 4085 ac_cv_lib_dld_shl_load=no 4086 fi 4087 4088 rm -rf conftest.dSYM 4089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4090 conftest$ac_exeext conftest.$ac_ext 4091 LIBS=$ac_check_lib_save_LIBS 4092 fi 4093 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 4094 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 4095 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 4096 tcl_ok=yes 4097 else 4098 tcl_ok=no 4099 fi 4100 4101 if test "$tcl_ok" = yes; then 4102 SHLIB_CFLAGS="+z" 4103 SHLIB_LD="ld -b" 4104 SHLIB_LD_LIBS='${LIBS}' 4105 DL_OBJS="tclLoadShl.o" 4106 DL_LIBS="-ldld" 4107 LDFLAGS="$LDFLAGS -Wl,-E" 4108 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 4109 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 4110 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 4111 fi 4112 if test "$GCC" = "yes" ; then 4113 SHLIB_LD="gcc -shared" 4114 SHLIB_LD_LIBS='${LIBS}' 4115 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 4116 fi 4117 4118 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc 4119 #CFLAGS="$CFLAGS +DAportable" 4120 4121 # Check to enable 64-bit flags for compiler/linker 4122 if test "$do64bit" = "yes" ; then 4123 if test "$GCC" = "yes" ; then 4124 hpux_arch=`${CC} -dumpmachine` 4125 case $hpux_arch in 4126 hppa64*) 4127 # 64-bit gcc in use. Fix flags for GNU ld. 4128 do64bit_ok=yes 4129 SHLIB_LD="${CC} -shared" 4130 SHLIB_LD_LIBS='${LIBS}' 4131 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 4132 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 4133 ;; 4134 *) 4135 { $as_echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 4136 $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 4137 ;; 4138 esac 4139 else 4140 do64bit_ok=yes 4141 CFLAGS="$CFLAGS +DD64" 4142 LDFLAGS="$LDFLAGS +DD64" 4143 fi 4144 fi 4145 ;; 4146 HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*) 4147 SHLIB_SUFFIX=".sl" 4148 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 4149 $as_echo_n "checking for shl_load in -ldld... " >&6; } 4150 if test "${ac_cv_lib_dld_shl_load+set}" = set; then 4151 $as_echo_n "(cached) " >&6 4152 else 4153 ac_check_lib_save_LIBS=$LIBS 4154 LIBS="-ldld $LIBS" 4155 cat >conftest.$ac_ext <<_ACEOF 4156 /* confdefs.h. */ 4157 _ACEOF 4158 cat confdefs.h >>conftest.$ac_ext 4159 cat >>conftest.$ac_ext <<_ACEOF 4160 /* end confdefs.h. */ 4161 4162 /* Override any GCC internal prototype to avoid an error. 4163 Use char because int might match the return type of a GCC 4164 builtin and then its argument prototype would still apply. */ 4165 #ifdef __cplusplus 4166 extern "C" 4167 #endif 4168 char shl_load (); 4169 int 4170 main () 4171 { 4172 return shl_load (); 4173 ; 4174 return 0; 4175 } 4176 _ACEOF 4177 rm -f conftest.$ac_objext conftest$ac_exeext 4178 if { (ac_try="$ac_link" 4179 case "(($ac_try" in 4180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4181 *) ac_try_echo=$ac_try;; 4182 esac 4183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4184 $as_echo "$ac_try_echo") >&5 4185 (eval "$ac_link") 2>conftest.er1 4186 ac_status=$? 4187 grep -v '^ *+' conftest.er1 >conftest.err 4188 rm -f conftest.er1 4189 cat conftest.err >&5 4190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4191 (exit $ac_status); } && { 4192 test -z "$ac_c_werror_flag" || 4193 test ! -s conftest.err 4194 } && test -s conftest$ac_exeext && { 4195 test "$cross_compiling" = yes || 4196 $as_test_x conftest$ac_exeext 4197 }; then 4198 ac_cv_lib_dld_shl_load=yes 4199 else 4200 $as_echo "$as_me: failed program was:" >&5 4201 sed 's/^/| /' conftest.$ac_ext >&5 4202 4203 ac_cv_lib_dld_shl_load=no 4204 fi 4205 4206 rm -rf conftest.dSYM 4207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4208 conftest$ac_exeext conftest.$ac_ext 4209 LIBS=$ac_check_lib_save_LIBS 4210 fi 4211 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 4212 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 4213 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 4214 tcl_ok=yes 4215 else 4216 tcl_ok=no 4217 fi 4218 4219 if test "$tcl_ok" = yes; then 4220 SHLIB_CFLAGS="+z" 4221 SHLIB_LD="ld -b" 4222 SHLIB_LD_LIBS="" 4223 DL_OBJS="tclLoadShl.o" 4224 DL_LIBS="-ldld" 4225 LDFLAGS="$LDFLAGS -Wl,-E" 4226 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 4227 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 4228 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 4229 fi 4230 ;; 4231 IRIX-4.*) 4232 SHLIB_CFLAGS="-G 0" 4233 SHLIB_SUFFIX=".a" 4234 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" 4235 SHLIB_LD_LIBS='${LIBS}' 4236 DL_OBJS="tclLoadAout.o" 4237 DL_LIBS="" 4238 LDFLAGS="$LDFLAGS -Wl,-D,08000000" 4239 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 4240 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 4241 SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a' 4242 ;; 4243 IRIX-5.*) 4244 SHLIB_CFLAGS="" 4245 SHLIB_LD="ld -shared -rdata_shared" 4246 SHLIB_LD_LIBS='${LIBS}' 4247 SHLIB_SUFFIX=".so" 4248 DL_OBJS="tclLoadDl.o" 4249 DL_LIBS="" 4250 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 4251 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 4252 ;; 4253 IRIX-6.*) 4254 SHLIB_CFLAGS="" 4255 SHLIB_LD="ld -n32 -shared -rdata_shared" 4256 SHLIB_LD_LIBS='${LIBS}' 4257 SHLIB_SUFFIX=".so" 4258 DL_OBJS="tclLoadDl.o" 4259 DL_LIBS="" 4260 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 4261 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 4262 if test "$GCC" = "yes" ; then 4263 CFLAGS="$CFLAGS -mabi=n32" 4264 LDFLAGS="$LDFLAGS -mabi=n32" 4265 else 4266 case $system in 4267 IRIX-6.3) 4268 # Use to build 6.2 compatible binaries on 6.3. 4269 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" 4270 ;; 4271 *) 4272 CFLAGS="$CFLAGS -n32" 4273 ;; 4274 esac 4275 LDFLAGS="$LDFLAGS -n32" 4276 fi 4277 ;; 4278 IRIX64-6.*) 4279 SHLIB_CFLAGS="" 4280 SHLIB_LD="ld -n32 -shared -rdata_shared" 4281 SHLIB_LD_LIBS='${LIBS}' 4282 SHLIB_SUFFIX=".so" 4283 DL_OBJS="tclLoadDl.o" 4284 DL_LIBS="" 4285 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 4286 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 4287 4288 # Check to enable 64-bit flags for compiler/linker 4289 4290 if test "$do64bit" = "yes" ; then 4291 if test "$GCC" = "yes" ; then 4292 { $as_echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5 4293 $as_echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} 4294 else 4295 do64bit_ok=yes 4296 SHLIB_LD="ld -64 -shared -rdata_shared" 4297 CFLAGS="$CFLAGS -64" 4298 LDFLAGS="$LDFLAGS -64" 4299 fi 4300 fi 4301 ;; 4302 Linux*) 4303 SHLIB_CFLAGS="-fPIC" 4304 SHLIB_LD_LIBS='${LIBS}' 4305 SHLIB_SUFFIX=".so" 4306 4307 CFLAGS_OPTIMIZE=-O2 4308 # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings 4309 # when you inline the string and math operations. Turn this off to 4310 # get rid of the warnings. 4311 #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES" 4312 4313 if test "$have_dl" = yes; then 4314 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' 4315 DL_OBJS="tclLoadDl.o" 4316 DL_LIBS="-ldl" 4317 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 4318 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 4319 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 4320 else 4321 if test "${ac_cv_header_dld_h+set}" = set; then 4322 { $as_echo "$as_me:$LINENO: checking for dld.h" >&5 4323 $as_echo_n "checking for dld.h... " >&6; } 4324 if test "${ac_cv_header_dld_h+set}" = set; then 4325 $as_echo_n "(cached) " >&6 4326 fi 4327 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5 4328 $as_echo "$ac_cv_header_dld_h" >&6; } 4329 else 4330 # Is the header compilable? 4331 { $as_echo "$as_me:$LINENO: checking dld.h usability" >&5 4332 $as_echo_n "checking dld.h usability... " >&6; } 4333 cat >conftest.$ac_ext <<_ACEOF 4334 /* confdefs.h. */ 4335 _ACEOF 4336 cat confdefs.h >>conftest.$ac_ext 4337 cat >>conftest.$ac_ext <<_ACEOF 4338 /* end confdefs.h. */ 4339 $ac_includes_default 4340 #include <dld.h> 4341 _ACEOF 4342 rm -f conftest.$ac_objext 4343 if { (ac_try="$ac_compile" 4344 case "(($ac_try" in 4345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4346 *) ac_try_echo=$ac_try;; 4347 esac 4348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4349 $as_echo "$ac_try_echo") >&5 4350 (eval "$ac_compile") 2>conftest.er1 4351 ac_status=$? 4352 grep -v '^ *+' conftest.er1 >conftest.err 4353 rm -f conftest.er1 4354 cat conftest.err >&5 4355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4356 (exit $ac_status); } && { 4357 test -z "$ac_c_werror_flag" || 4358 test ! -s conftest.err 4359 } && test -s conftest.$ac_objext; then 4360 ac_header_compiler=yes 4361 else 4362 $as_echo "$as_me: failed program was:" >&5 4363 sed 's/^/| /' conftest.$ac_ext >&5 4364 4365 ac_header_compiler=no 4366 fi 4367 4368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4369 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4370 $as_echo "$ac_header_compiler" >&6; } 4371 4372 # Is the header present? 4373 { $as_echo "$as_me:$LINENO: checking dld.h presence" >&5 4374 $as_echo_n "checking dld.h presence... " >&6; } 4375 cat >conftest.$ac_ext <<_ACEOF 4376 /* confdefs.h. */ 4377 _ACEOF 4378 cat confdefs.h >>conftest.$ac_ext 4379 cat >>conftest.$ac_ext <<_ACEOF 4380 /* end confdefs.h. */ 4381 #include <dld.h> 4382 _ACEOF 4383 if { (ac_try="$ac_cpp conftest.$ac_ext" 4384 case "(($ac_try" in 4385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4386 *) ac_try_echo=$ac_try;; 4387 esac 4388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4389 $as_echo "$ac_try_echo") >&5 4390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4391 ac_status=$? 4392 grep -v '^ *+' conftest.er1 >conftest.err 4393 rm -f conftest.er1 4394 cat conftest.err >&5 4395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4396 (exit $ac_status); } >/dev/null && { 4397 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4398 test ! -s conftest.err 4399 }; then 4400 ac_header_preproc=yes 4401 else 4402 $as_echo "$as_me: failed program was:" >&5 4403 sed 's/^/| /' conftest.$ac_ext >&5 4404 4405 ac_header_preproc=no 4406 fi 4407 4408 rm -f conftest.err conftest.$ac_ext 4409 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4410 $as_echo "$ac_header_preproc" >&6; } 4411 4412 # So? What about this header? 4413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4414 yes:no: ) 4415 { $as_echo "$as_me:$LINENO: WARNING: dld.h: accepted by the compiler, rejected by the preprocessor!" >&5 4416 $as_echo "$as_me: WARNING: dld.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4417 { $as_echo "$as_me:$LINENO: WARNING: dld.h: proceeding with the compiler's result" >&5 4418 $as_echo "$as_me: WARNING: dld.h: proceeding with the compiler's result" >&2;} 4419 ac_header_preproc=yes 4420 ;; 4421 no:yes:* ) 4422 { $as_echo "$as_me:$LINENO: WARNING: dld.h: present but cannot be compiled" >&5 4423 $as_echo "$as_me: WARNING: dld.h: present but cannot be compiled" >&2;} 4424 { $as_echo "$as_me:$LINENO: WARNING: dld.h: check for missing prerequisite headers?" >&5 4425 $as_echo "$as_me: WARNING: dld.h: check for missing prerequisite headers?" >&2;} 4426 { $as_echo "$as_me:$LINENO: WARNING: dld.h: see the Autoconf documentation" >&5 4427 $as_echo "$as_me: WARNING: dld.h: see the Autoconf documentation" >&2;} 4428 { $as_echo "$as_me:$LINENO: WARNING: dld.h: section \"Present But Cannot Be Compiled\"" >&5 4429 $as_echo "$as_me: WARNING: dld.h: section \"Present But Cannot Be Compiled\"" >&2;} 4430 { $as_echo "$as_me:$LINENO: WARNING: dld.h: proceeding with the preprocessor's result" >&5 4431 $as_echo "$as_me: WARNING: dld.h: proceeding with the preprocessor's result" >&2;} 4432 { $as_echo "$as_me:$LINENO: WARNING: dld.h: in the future, the compiler will take precedence" >&5 4433 $as_echo "$as_me: WARNING: dld.h: in the future, the compiler will take precedence" >&2;} 4434 ( cat <<\_ASBOX 4435 ## ----------------------------------- ## 4436 ## Report this to rappture@nanohub.org ## 4437 ## ----------------------------------- ## 4438 _ASBOX 4439 ) | sed "s/^/$as_me: WARNING: /" >&2 4440 ;; 4441 esac 4442 { $as_echo "$as_me:$LINENO: checking for dld.h" >&5 4443 $as_echo_n "checking for dld.h... " >&6; } 4444 if test "${ac_cv_header_dld_h+set}" = set; then 4445 $as_echo_n "(cached) " >&6 4446 else 4447 ac_cv_header_dld_h=$ac_header_preproc 4448 fi 4449 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5 4450 $as_echo "$ac_cv_header_dld_h" >&6; } 4451 4452 fi 4453 if test "x$ac_cv_header_dld_h" = x""yes; then 4454 4455 SHLIB_LD="ld -shared" 4456 DL_OBJS="tclLoadDld.o" 4457 DL_LIBS="-ldld" 4458 CC_SEARCH_FLAGS="" 4459 LD_SEARCH_FLAGS="" 4460 fi 4461 4462 4463 fi 4464 if test "`uname -m`" = "alpha" ; then 4465 CFLAGS="$CFLAGS -mieee" 4466 fi 4467 if test $do64bit = yes; then 4468 { $as_echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5 4469 $as_echo_n "checking if compiler accepts -m64 flag... " >&6; } 4470 if test "${tcl_cv_cc_m64+set}" = set; then 4471 $as_echo_n "(cached) " >&6 4472 else 4473 4474 hold_cflags=$CFLAGS 4475 CFLAGS="$CFLAGS -m64" 4476 cat >conftest.$ac_ext <<_ACEOF 4477 /* confdefs.h. */ 4478 _ACEOF 4479 cat confdefs.h >>conftest.$ac_ext 4480 cat >>conftest.$ac_ext <<_ACEOF 4481 /* end confdefs.h. */ 4482 4483 int 4484 main () 4485 { 4486 4487 ; 4488 return 0; 4489 } 4490 _ACEOF 4491 rm -f conftest.$ac_objext conftest$ac_exeext 4492 if { (ac_try="$ac_link" 4493 case "(($ac_try" in 4494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4495 *) ac_try_echo=$ac_try;; 4496 esac 4497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4498 $as_echo "$ac_try_echo") >&5 4499 (eval "$ac_link") 2>conftest.er1 4500 ac_status=$? 4501 grep -v '^ *+' conftest.er1 >conftest.err 4502 rm -f conftest.er1 4503 cat conftest.err >&5 4504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4505 (exit $ac_status); } && { 4506 test -z "$ac_c_werror_flag" || 4507 test ! -s conftest.err 4508 } && test -s conftest$ac_exeext && { 4509 test "$cross_compiling" = yes || 4510 $as_test_x conftest$ac_exeext 4511 }; then 4512 tcl_cv_cc_m64=yes 4513 else 4514 $as_echo "$as_me: failed program was:" >&5 4515 sed 's/^/| /' conftest.$ac_ext >&5 4516 4517 tcl_cv_cc_m64=no 4518 fi 4519 4520 rm -rf conftest.dSYM 4521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4522 conftest$ac_exeext conftest.$ac_ext 4523 CFLAGS=$hold_cflags 4524 fi 4525 { $as_echo "$as_me:$LINENO: result: $tcl_cv_cc_m64" >&5 4526 $as_echo "$tcl_cv_cc_m64" >&6; } 4527 if test $tcl_cv_cc_m64 = yes; then 4528 CFLAGS="$CFLAGS -m64" 4529 do64bit_ok=yes 4530 fi 4531 fi 4532 4533 # The combo of gcc + glibc has a bug related 4534 # to inlining of functions like strtod(). The 4535 # -fno-builtin flag should address this problem 4536 # but it does not work. The -fno-inline flag 4537 # is kind of overkill but it works. 4538 # Disable inlining only when one of the 4539 # files in compat/*.c is being linked in. 4540 if test x"${LIBOBJS}" != x ; then 4541 CFLAGS="$CFLAGS -fno-inline" 4542 fi 4543 4544 # XIM peeking works under XFree86. 4545 cat >>confdefs.h <<\_ACEOF 4546 #define PEEK_XCLOSEIM 1 4547 _ACEOF 4548 4549 4550 ;; 4551 GNU*) 4552 SHLIB_CFLAGS="-fPIC" 4553 SHLIB_LD_LIBS='${LIBS}' 4554 SHLIB_SUFFIX=".so" 4555 4556 if test "$have_dl" = yes; then 4557 SHLIB_LD="${CC} -shared" 4558 DL_OBJS="" 4559 DL_LIBS="-ldl" 4560 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 4561 CC_SEARCH_FLAGS="" 4562 LD_SEARCH_FLAGS="" 4563 else 4564 if test "${ac_cv_header_dld_h+set}" = set; then 4565 { $as_echo "$as_me:$LINENO: checking for dld.h" >&5 4566 $as_echo_n "checking for dld.h... " >&6; } 4567 if test "${ac_cv_header_dld_h+set}" = set; then 4568 $as_echo_n "(cached) " >&6 4569 fi 4570 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5 4571 $as_echo "$ac_cv_header_dld_h" >&6; } 4572 else 4573 # Is the header compilable? 4574 { $as_echo "$as_me:$LINENO: checking dld.h usability" >&5 4575 $as_echo_n "checking dld.h usability... " >&6; } 4576 cat >conftest.$ac_ext <<_ACEOF 4577 /* confdefs.h. */ 4578 _ACEOF 4579 cat confdefs.h >>conftest.$ac_ext 4580 cat >>conftest.$ac_ext <<_ACEOF 4581 /* end confdefs.h. */ 4582 $ac_includes_default 4583 #include <dld.h> 4584 _ACEOF 4585 rm -f conftest.$ac_objext 4586 if { (ac_try="$ac_compile" 4587 case "(($ac_try" in 4588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4589 *) ac_try_echo=$ac_try;; 4590 esac 4591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4592 $as_echo "$ac_try_echo") >&5 4593 (eval "$ac_compile") 2>conftest.er1 4594 ac_status=$? 4595 grep -v '^ *+' conftest.er1 >conftest.err 4596 rm -f conftest.er1 4597 cat conftest.err >&5 4598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4599 (exit $ac_status); } && { 4600 test -z "$ac_c_werror_flag" || 4601 test ! -s conftest.err 4602 } && test -s conftest.$ac_objext; then 4603 ac_header_compiler=yes 4604 else 4605 $as_echo "$as_me: failed program was:" >&5 4606 sed 's/^/| /' conftest.$ac_ext >&5 4607 4608 ac_header_compiler=no 4609 fi 4610 4611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4612 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4613 $as_echo "$ac_header_compiler" >&6; } 4614 4615 # Is the header present? 4616 { $as_echo "$as_me:$LINENO: checking dld.h presence" >&5 4617 $as_echo_n "checking dld.h presence... " >&6; } 4618 cat >conftest.$ac_ext <<_ACEOF 4619 /* confdefs.h. */ 4620 _ACEOF 4621 cat confdefs.h >>conftest.$ac_ext 4622 cat >>conftest.$ac_ext <<_ACEOF 4623 /* end confdefs.h. */ 4624 #include <dld.h> 4625 _ACEOF 4626 if { (ac_try="$ac_cpp conftest.$ac_ext" 4627 case "(($ac_try" in 4628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4629 *) ac_try_echo=$ac_try;; 4630 esac 4631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4632 $as_echo "$ac_try_echo") >&5 4633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4634 ac_status=$? 4635 grep -v '^ *+' conftest.er1 >conftest.err 4636 rm -f conftest.er1 4637 cat conftest.err >&5 4638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4639 (exit $ac_status); } >/dev/null && { 4640 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4641 test ! -s conftest.err 4642 }; then 4643 ac_header_preproc=yes 4644 else 4645 $as_echo "$as_me: failed program was:" >&5 4646 sed 's/^/| /' conftest.$ac_ext >&5 4647 4648 ac_header_preproc=no 4649 fi 4650 4651 rm -f conftest.err conftest.$ac_ext 4652 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4653 $as_echo "$ac_header_preproc" >&6; } 4654 4655 # So? What about this header? 4656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4657 yes:no: ) 4658 { $as_echo "$as_me:$LINENO: WARNING: dld.h: accepted by the compiler, rejected by the preprocessor!" >&5 4659 $as_echo "$as_me: WARNING: dld.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4660 { $as_echo "$as_me:$LINENO: WARNING: dld.h: proceeding with the compiler's result" >&5 4661 $as_echo "$as_me: WARNING: dld.h: proceeding with the compiler's result" >&2;} 4662 ac_header_preproc=yes 4663 ;; 4664 no:yes:* ) 4665 { $as_echo "$as_me:$LINENO: WARNING: dld.h: present but cannot be compiled" >&5 4666 $as_echo "$as_me: WARNING: dld.h: present but cannot be compiled" >&2;} 4667 { $as_echo "$as_me:$LINENO: WARNING: dld.h: check for missing prerequisite headers?" >&5 4668 $as_echo "$as_me: WARNING: dld.h: check for missing prerequisite headers?" >&2;} 4669 { $as_echo "$as_me:$LINENO: WARNING: dld.h: see the Autoconf documentation" >&5 4670 $as_echo "$as_me: WARNING: dld.h: see the Autoconf documentation" >&2;} 4671 { $as_echo "$as_me:$LINENO: WARNING: dld.h: section \"Present But Cannot Be Compiled\"" >&5 4672 $as_echo "$as_me: WARNING: dld.h: section \"Present But Cannot Be Compiled\"" >&2;} 4673 { $as_echo "$as_me:$LINENO: WARNING: dld.h: proceeding with the preprocessor's result" >&5 4674 $as_echo "$as_me: WARNING: dld.h: proceeding with the preprocessor's result" >&2;} 4675 { $as_echo "$as_me:$LINENO: WARNING: dld.h: in the future, the compiler will take precedence" >&5 4676 $as_echo "$as_me: WARNING: dld.h: in the future, the compiler will take precedence" >&2;} 4677 ( cat <<\_ASBOX 4678 ## ----------------------------------- ## 4679 ## Report this to rappture@nanohub.org ## 4680 ## ----------------------------------- ## 4681 _ASBOX 4682 ) | sed "s/^/$as_me: WARNING: /" >&2 4683 ;; 4684 esac 4685 { $as_echo "$as_me:$LINENO: checking for dld.h" >&5 4686 $as_echo_n "checking for dld.h... " >&6; } 4687 if test "${ac_cv_header_dld_h+set}" = set; then 4688 $as_echo_n "(cached) " >&6 4689 else 4690 ac_cv_header_dld_h=$ac_header_preproc 4691 fi 4692 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5 4693 $as_echo "$ac_cv_header_dld_h" >&6; } 4694 4695 fi 4696 if test "x$ac_cv_header_dld_h" = x""yes; then 4697 4698 SHLIB_LD="ld -shared" 4699 DL_OBJS="" 4700 DL_LIBS="-ldld" 4701 CC_SEARCH_FLAGS="" 4702 LD_SEARCH_FLAGS="" 4703 fi 4704 4705 4706 fi 4707 if test "`uname -m`" = "alpha" ; then 4708 CFLAGS="$CFLAGS -mieee" 4709 fi 4710 ;; 4711 Lynx*) 4712 SHLIB_CFLAGS="-fPIC" 4713 SHLIB_LD_LIBS='${LIBS}' 4714 SHLIB_SUFFIX=".so" 4715 CFLAGS_OPTIMIZE=-02 4716 SHLIB_LD="${CC} -shared " 4717 DL_OBJS="tclLoadDl.o" 4718 DL_LIBS="-mshared -ldl" 4719 LD_FLAGS="-Wl,--export-dynamic" 4720 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 4721 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 4722 ;; 4723 MP-RAS-02*) 4724 SHLIB_CFLAGS="-K PIC" 4725 SHLIB_LD="cc -G" 4726 SHLIB_LD_LIBS="" 4727 SHLIB_SUFFIX=".so" 4728 DL_OBJS="tclLoadDl.o" 4729 DL_LIBS="-ldl" 4730 CC_SEARCH_FLAGS="" 4731 LD_SEARCH_FLAGS="" 4732 ;; 4733 MP-RAS-*) 4734 SHLIB_CFLAGS="-K PIC" 4735 SHLIB_LD="cc -G" 4736 SHLIB_LD_LIBS="" 4737 SHLIB_SUFFIX=".so" 4738 DL_OBJS="tclLoadDl.o" 4739 DL_LIBS="-ldl" 4740 LDFLAGS="$LDFLAGS -Wl,-Bexport" 4741 CC_SEARCH_FLAGS="" 4742 LD_SEARCH_FLAGS="" 4743 ;; 4744 NetBSD-*|FreeBSD-[1-2].*) 4745 # Not available on all versions: check for include file. 4746 if test "${ac_cv_header_dlfcn_h+set}" = set; then 4747 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5 4748 $as_echo_n "checking for dlfcn.h... " >&6; } 4749 if test "${ac_cv_header_dlfcn_h+set}" = set; then 4750 $as_echo_n "(cached) " >&6 4751 fi 4752 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 4753 $as_echo "$ac_cv_header_dlfcn_h" >&6; } 4754 else 4755 # Is the header compilable? 4756 { $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 4757 $as_echo_n "checking dlfcn.h usability... " >&6; } 4758 cat >conftest.$ac_ext <<_ACEOF 4759 /* confdefs.h. */ 4760 _ACEOF 4761 cat confdefs.h >>conftest.$ac_ext 4762 cat >>conftest.$ac_ext <<_ACEOF 4763 /* end confdefs.h. */ 4764 $ac_includes_default 4765 #include <dlfcn.h> 4766 _ACEOF 4767 rm -f conftest.$ac_objext 4768 if { (ac_try="$ac_compile" 4769 case "(($ac_try" in 4770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4771 *) ac_try_echo=$ac_try;; 4772 esac 4773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4774 $as_echo "$ac_try_echo") >&5 4775 (eval "$ac_compile") 2>conftest.er1 4776 ac_status=$? 4777 grep -v '^ *+' conftest.er1 >conftest.err 4778 rm -f conftest.er1 4779 cat conftest.err >&5 4780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4781 (exit $ac_status); } && { 4782 test -z "$ac_c_werror_flag" || 4783 test ! -s conftest.err 4784 } && test -s conftest.$ac_objext; then 4785 ac_header_compiler=yes 4786 else 4787 $as_echo "$as_me: failed program was:" >&5 4788 sed 's/^/| /' conftest.$ac_ext >&5 4789 4790 ac_header_compiler=no 4791 fi 4792 4793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4794 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4795 $as_echo "$ac_header_compiler" >&6; } 4796 4797 # Is the header present? 4798 { $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 4799 $as_echo_n "checking dlfcn.h presence... " >&6; } 4800 cat >conftest.$ac_ext <<_ACEOF 4801 /* confdefs.h. */ 4802 _ACEOF 4803 cat confdefs.h >>conftest.$ac_ext 4804 cat >>conftest.$ac_ext <<_ACEOF 4805 /* end confdefs.h. */ 4806 #include <dlfcn.h> 4807 _ACEOF 4808 if { (ac_try="$ac_cpp conftest.$ac_ext" 4809 case "(($ac_try" in 4810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4811 *) ac_try_echo=$ac_try;; 4812 esac 4813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4814 $as_echo "$ac_try_echo") >&5 4815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4816 ac_status=$? 4817 grep -v '^ *+' conftest.er1 >conftest.err 4818 rm -f conftest.er1 4819 cat conftest.err >&5 4820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4821 (exit $ac_status); } >/dev/null && { 4822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4823 test ! -s conftest.err 4824 }; then 4825 ac_header_preproc=yes 4826 else 4827 $as_echo "$as_me: failed program was:" >&5 4828 sed 's/^/| /' conftest.$ac_ext >&5 4829 4830 ac_header_preproc=no 4831 fi 4832 4833 rm -f conftest.err conftest.$ac_ext 4834 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4835 $as_echo "$ac_header_preproc" >&6; } 4836 4837 # So? What about this header? 4838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4839 yes:no: ) 4840 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 4841 $as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4842 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 4843 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} 4844 ac_header_preproc=yes 4845 ;; 4846 no:yes:* ) 4847 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 4848 $as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} 4849 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 4850 $as_echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} 4851 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 4852 $as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} 4853 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 4854 $as_echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} 4855 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 4856 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} 4857 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 4858 $as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} 4859 ( cat <<\_ASBOX 4860 ## ----------------------------------- ## 4861 ## Report this to rappture@nanohub.org ## 4862 ## ----------------------------------- ## 4863 _ASBOX 4864 ) | sed "s/^/$as_me: WARNING: /" >&2 4865 ;; 4866 esac 4867 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5 4868 $as_echo_n "checking for dlfcn.h... " >&6; } 4869 if test "${ac_cv_header_dlfcn_h+set}" = set; then 4870 $as_echo_n "(cached) " >&6 4871 else 4872 ac_cv_header_dlfcn_h=$ac_header_preproc 4873 fi 4874 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 4875 $as_echo "$ac_cv_header_dlfcn_h" >&6; } 4876 4877 fi 4878 if test "x$ac_cv_header_dlfcn_h" = x""yes; then 4879 4880 # NetBSD/SPARC needs -fPIC, -fpic will not do. 4881 SHLIB_CFLAGS="-fPIC" 4882 SHLIB_LD="ld -Bshareable -x" 4883 SHLIB_LD_LIBS='${LIBS}' 4884 SHLIB_SUFFIX=".so" 4885 DL_OBJS="tclLoadDl.o" 4886 DL_LIBS="" 4887 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 4888 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 4889 { $as_echo "$as_me:$LINENO: checking for ELF" >&5 4890 $as_echo_n "checking for ELF... " >&6; } 4891 if test "${tcl_cv_ld_elf+set}" = set; then 4892 $as_echo_n "(cached) " >&6 4893 else 4894 4895 cat >conftest.$ac_ext <<_ACEOF 4896 /* confdefs.h. */ 4897 _ACEOF 4898 cat confdefs.h >>conftest.$ac_ext 4899 cat >>conftest.$ac_ext <<_ACEOF 4900 /* end confdefs.h. */ 4901 4902 #ifdef __ELF__ 4903 yes 4904 #endif 4905 4906 _ACEOF 4907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4908 $EGREP "yes" >/dev/null 2>&1; then 4909 tcl_cv_ld_elf=yes 4910 else 4911 tcl_cv_ld_elf=no 4912 fi 4913 rm -f conftest* 4914 4915 fi 4916 { $as_echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5 4917 $as_echo "$tcl_cv_ld_elf" >&6; } 4918 if test $tcl_cv_ld_elf = yes; then 4919 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so' 4920 else 4921 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0' 4922 fi 4923 4924 else 4925 4926 SHLIB_CFLAGS="" 4927 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r" 4928 SHLIB_LD_LIBS='${LIBS}' 4929 SHLIB_SUFFIX=".a" 4930 DL_OBJS="tclLoadAout.o" 4931 DL_LIBS="" 4932 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 4933 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 4934 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' 4935 4936 fi 4937 4938 4939 4940 # FreeBSD doesn't handle version numbers with dots. 4941 4942 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' 4943 TCL_LIB_VERSIONS_OK=nodots 4944 ;; 4945 OpenBSD-*) 4946 case `arch -s` in 4947 m88k|vax) 4948 SHLIB_CFLAGS="" 4949 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r" 4950 SHLIB_LD_LIBS='${LIBS}' 4951 SHLIB_SUFFIX=".a" 4952 DL_OBJS="tclLoadAout.o" 4953 DL_LIBS="" 4954 LDFLAGS="" 4955 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 4956 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 4957 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' 4958 ;; 4959 *) 4960 # OpenBSD/SPARC[64] needs -fPIC, -fpic will not do. 4961 case `machine` in 4962 sparc|sparc64) 4963 SHLIB_CFLAGS="-fPIC";; 4964 *) 4965 SHLIB_CFLAGS="-fpic";; 4966 esac 4967 SHLIB_LD="${CC} -shared ${SHLIB_CFLAGS}" 4968 SHLIB_LD_LIBS='${LIBS}' 4969 SHLIB_SUFFIX=".so" 4970 DL_OBJS="tclLoadDl.o" 4971 DL_LIBS="" 4972 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 4973 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 4974 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0' 4975 { $as_echo "$as_me:$LINENO: checking for ELF" >&5 4976 $as_echo_n "checking for ELF... " >&6; } 4977 if test "${tcl_cv_ld_elf+set}" = set; then 4978 $as_echo_n "(cached) " >&6 4979 else 4980 4981 cat >conftest.$ac_ext <<_ACEOF 4982 /* confdefs.h. */ 4983 _ACEOF 4984 cat confdefs.h >>conftest.$ac_ext 4985 cat >>conftest.$ac_ext <<_ACEOF 4986 /* end confdefs.h. */ 4987 4988 #ifdef __ELF__ 4989 yes 4990 #endif 4991 4992 _ACEOF 4993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4994 $EGREP "yes" >/dev/null 2>&1; then 4995 tcl_cv_ld_elf=yes 4996 else 4997 tcl_cv_ld_elf=no 4998 fi 4999 rm -f conftest* 5000 5001 fi 5002 { $as_echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5 5003 $as_echo "$tcl_cv_ld_elf" >&6; } 5004 if test $tcl_cv_ld_elf = yes; then 5005 LDFLAGS=-Wl,-export-dynamic 5006 else 5007 LDFLAGS="" 5008 fi 5009 ;; 5010 esac 5011 5012 # OpenBSD doesn't do version numbers with dots. 5013 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' 5014 TCL_LIB_VERSIONS_OK=nodots 5015 ;; 5016 FreeBSD-*) 5017 # FreeBSD 3.* and greater have ELF. 5018 SHLIB_CFLAGS="-fPIC" 5019 SHLIB_LD="ld -Bshareable -x" 5020 SHLIB_LD_LIBS='${LIBS}' 5021 SHLIB_SUFFIX=".so" 5022 DL_OBJS="tclLoadDl.o" 5023 DL_LIBS="" 5024 LDFLAGS="$LDFLAGS -export-dynamic" 5025 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 5026 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 5027 if test "${TCL_THREADS}" = "1" ; then 5028 # The -pthread needs to go in the CFLAGS, not LIBS 5029 LIBS=`echo $LIBS | sed s/-pthread//` 5030 CFLAGS="$CFLAGS -pthread" 5031 LDFLAGS="$LDFLAGS -pthread" 5032 fi 5033 case $system in 5034 FreeBSD-3.*) 5035 # FreeBSD-3 doesn't handle version numbers with dots. 5036 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' 5037 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so' 5038 TCL_LIB_VERSIONS_OK=nodots 5039 ;; 5040 esac 5041 ;; 5042 Darwin-*) 5043 CFLAGS_OPTIMIZE="-Os" 5044 SHLIB_CFLAGS="-fno-common" 5045 # To avoid discrepancies between what headers configure sees during 5046 # preprocessing tests and compiling tests, move any -isysroot and 5047 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: 5048 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ 5049 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 5050 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" 5051 CFLAGS="`echo " ${CFLAGS}" | \ 5052 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 5053 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" 5054 if test $do64bit = yes; then 5055 case `arch` in 5056 ppc) 5057 { $as_echo "$as_me:$LINENO: checking if compiler accepts -arch ppc64 flag" >&5 5058 $as_echo_n "checking if compiler accepts -arch ppc64 flag... " >&6; } 5059 if test "${tcl_cv_cc_arch_ppc64+set}" = set; then 5060 $as_echo_n "(cached) " >&6 5061 else 5062 5063 hold_cflags=$CFLAGS 5064 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 5065 cat >conftest.$ac_ext <<_ACEOF 5066 /* confdefs.h. */ 5067 _ACEOF 5068 cat confdefs.h >>conftest.$ac_ext 5069 cat >>conftest.$ac_ext <<_ACEOF 5070 /* end confdefs.h. */ 5071 5072 int 5073 main () 5074 { 5075 5076 ; 5077 return 0; 5078 } 5079 _ACEOF 5080 rm -f conftest.$ac_objext conftest$ac_exeext 5081 if { (ac_try="$ac_link" 5082 case "(($ac_try" in 5083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5084 *) ac_try_echo=$ac_try;; 5085 esac 5086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5087 $as_echo "$ac_try_echo") >&5 5088 (eval "$ac_link") 2>conftest.er1 5089 ac_status=$? 5090 grep -v '^ *+' conftest.er1 >conftest.err 5091 rm -f conftest.er1 5092 cat conftest.err >&5 5093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5094 (exit $ac_status); } && { 5095 test -z "$ac_c_werror_flag" || 5096 test ! -s conftest.err 5097 } && test -s conftest$ac_exeext && { 5098 test "$cross_compiling" = yes || 5099 $as_test_x conftest$ac_exeext 5100 }; then 5101 tcl_cv_cc_arch_ppc64=yes 5102 else 5103 $as_echo "$as_me: failed program was:" >&5 5104 sed 's/^/| /' conftest.$ac_ext >&5 5105 5106 tcl_cv_cc_arch_ppc64=no 5107 fi 5108 5109 rm -rf conftest.dSYM 5110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5111 conftest$ac_exeext conftest.$ac_ext 5112 CFLAGS=$hold_cflags 5113 fi 5114 { $as_echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_ppc64" >&5 5115 $as_echo "$tcl_cv_cc_arch_ppc64" >&6; } 5116 if test $tcl_cv_cc_arch_ppc64 = yes; then 5117 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 5118 do64bit_ok=yes 5119 fi;; 5120 i386) 5121 { $as_echo "$as_me:$LINENO: checking if compiler accepts -arch x86_64 flag" >&5 5122 $as_echo_n "checking if compiler accepts -arch x86_64 flag... " >&6; } 5123 if test "${tcl_cv_cc_arch_x86_64+set}" = set; then 5124 $as_echo_n "(cached) " >&6 5125 else 5126 5127 hold_cflags=$CFLAGS 5128 CFLAGS="$CFLAGS -arch x86_64" 5129 cat >conftest.$ac_ext <<_ACEOF 5130 /* confdefs.h. */ 5131 _ACEOF 5132 cat confdefs.h >>conftest.$ac_ext 5133 cat >>conftest.$ac_ext <<_ACEOF 5134 /* end confdefs.h. */ 5135 5136 int 5137 main () 5138 { 5139 5140 ; 5141 return 0; 5142 } 5143 _ACEOF 5144 rm -f conftest.$ac_objext conftest$ac_exeext 5145 if { (ac_try="$ac_link" 5146 case "(($ac_try" in 5147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5148 *) ac_try_echo=$ac_try;; 5149 esac 5150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5151 $as_echo "$ac_try_echo") >&5 5152 (eval "$ac_link") 2>conftest.er1 5153 ac_status=$? 5154 grep -v '^ *+' conftest.er1 >conftest.err 5155 rm -f conftest.er1 5156 cat conftest.err >&5 5157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5158 (exit $ac_status); } && { 5159 test -z "$ac_c_werror_flag" || 5160 test ! -s conftest.err 5161 } && test -s conftest$ac_exeext && { 5162 test "$cross_compiling" = yes || 5163 $as_test_x conftest$ac_exeext 5164 }; then 5165 tcl_cv_cc_arch_x86_64=yes 5166 else 5167 $as_echo "$as_me: failed program was:" >&5 5168 sed 's/^/| /' conftest.$ac_ext >&5 5169 5170 tcl_cv_cc_arch_x86_64=no 5171 fi 5172 5173 rm -rf conftest.dSYM 5174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5175 conftest$ac_exeext conftest.$ac_ext 5176 CFLAGS=$hold_cflags 5177 fi 5178 { $as_echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_x86_64" >&5 5179 $as_echo "$tcl_cv_cc_arch_x86_64" >&6; } 5180 if test $tcl_cv_cc_arch_x86_64 = yes; then 5181 CFLAGS="$CFLAGS -arch x86_64" 5182 do64bit_ok=yes 5183 fi;; 5184 *) 5185 { $as_echo "$as_me:$LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 5186 $as_echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; 5187 esac 5188 else 5189 # Check for combined 32-bit and 64-bit fat build 5190 echo "$CFLAGS " | grep -E -q -- '-arch (ppc64|x86_64) ' && \ 5191 echo "$CFLAGS " | grep -E -q -- '-arch (ppc|i386) ' && \ 5192 fat_32_64=yes 5193 fi 5194 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS}' 5195 { $as_echo "$as_me:$LINENO: checking if ld accepts -single_module flag" >&5 5196 $as_echo_n "checking if ld accepts -single_module flag... " >&6; } 5197 if test "${tcl_cv_ld_single_module+set}" = set; then 5198 $as_echo_n "(cached) " >&6 5199 else 5200 5201 hold_ldflags=$LDFLAGS 5202 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" 5203 cat >conftest.$ac_ext <<_ACEOF 5204 /* confdefs.h. */ 5205 _ACEOF 5206 cat confdefs.h >>conftest.$ac_ext 5207 cat >>conftest.$ac_ext <<_ACEOF 5208 /* end confdefs.h. */ 5209 5210 int 5211 main () 5212 { 5213 int i; 5214 ; 5215 return 0; 5216 } 5217 _ACEOF 5218 rm -f conftest.$ac_objext conftest$ac_exeext 5219 if { (ac_try="$ac_link" 5220 case "(($ac_try" in 5221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5222 *) ac_try_echo=$ac_try;; 5223 esac 5224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5225 $as_echo "$ac_try_echo") >&5 5226 (eval "$ac_link") 2>conftest.er1 5227 ac_status=$? 5228 grep -v '^ *+' conftest.er1 >conftest.err 5229 rm -f conftest.er1 5230 cat conftest.err >&5 5231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5232 (exit $ac_status); } && { 5233 test -z "$ac_c_werror_flag" || 5234 test ! -s conftest.err 5235 } && test -s conftest$ac_exeext && { 5236 test "$cross_compiling" = yes || 5237 $as_test_x conftest$ac_exeext 5238 }; then 5239 tcl_cv_ld_single_module=yes 5240 else 5241 $as_echo "$as_me: failed program was:" >&5 5242 sed 's/^/| /' conftest.$ac_ext >&5 5243 5244 tcl_cv_ld_single_module=no 5245 fi 5246 5247 rm -rf conftest.dSYM 5248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5249 conftest$ac_exeext conftest.$ac_ext 5250 LDFLAGS=$hold_ldflags 5251 fi 5252 { $as_echo "$as_me:$LINENO: result: $tcl_cv_ld_single_module" >&5 5253 $as_echo "$tcl_cv_ld_single_module" >&6; } 5254 if test $tcl_cv_ld_single_module = yes; then 5255 SHLIB_LD="${SHLIB_LD} -Wl,-single_module" 5256 fi 5257 SHLIB_LD_LIBS='${LIBS}' 5258 SHLIB_SUFFIX=".dylib" 5259 DL_OBJS="tclLoadDyld.o" 5260 DL_LIBS="" 5261 # Don't use -prebind when building for Mac OS X 10.4 or later only: 5262 test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ 5263 "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4 && \ 5264 LDFLAGS="$LDFLAGS -prebind" 5265 LDFLAGS="$LDFLAGS -headerpad_max_install_names" 5266 { $as_echo "$as_me:$LINENO: checking if ld accepts -search_paths_first flag" >&5 5267 $as_echo_n "checking if ld accepts -search_paths_first flag... " >&6; } 5268 if test "${tcl_cv_ld_search_paths_first+set}" = set; then 5269 $as_echo_n "(cached) " >&6 5270 else 5271 5272 hold_ldflags=$LDFLAGS 5273 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 5274 cat >conftest.$ac_ext <<_ACEOF 5275 /* confdefs.h. */ 5276 _ACEOF 5277 cat confdefs.h >>conftest.$ac_ext 5278 cat >>conftest.$ac_ext <<_ACEOF 5279 /* end confdefs.h. */ 5280 5281 int 5282 main () 5283 { 5284 int i; 5285 ; 5286 return 0; 5287 } 5288 _ACEOF 5289 rm -f conftest.$ac_objext conftest$ac_exeext 5290 if { (ac_try="$ac_link" 5291 case "(($ac_try" in 5292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5293 *) ac_try_echo=$ac_try;; 5294 esac 5295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5296 $as_echo "$ac_try_echo") >&5 5297 (eval "$ac_link") 2>conftest.er1 5298 ac_status=$? 5299 grep -v '^ *+' conftest.er1 >conftest.err 5300 rm -f conftest.er1 5301 cat conftest.err >&5 5302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5303 (exit $ac_status); } && { 5304 test -z "$ac_c_werror_flag" || 5305 test ! -s conftest.err 5306 } && test -s conftest$ac_exeext && { 5307 test "$cross_compiling" = yes || 5308 $as_test_x conftest$ac_exeext 5309 }; then 5310 tcl_cv_ld_search_paths_first=yes 5311 else 5312 $as_echo "$as_me: failed program was:" >&5 5313 sed 's/^/| /' conftest.$ac_ext >&5 5314 5315 tcl_cv_ld_search_paths_first=no 5316 fi 5317 5318 rm -rf conftest.dSYM 5319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5320 conftest$ac_exeext conftest.$ac_ext 5321 LDFLAGS=$hold_ldflags 5322 fi 5323 { $as_echo "$as_me:$LINENO: result: $tcl_cv_ld_search_paths_first" >&5 5324 $as_echo "$tcl_cv_ld_search_paths_first" >&6; } 5325 if test $tcl_cv_ld_search_paths_first = yes; then 5326 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 5327 fi 5328 CC_SEARCH_FLAGS="" 5329 LD_SEARCH_FLAGS="" 5330 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" 5331 PLAT_OBJS=\$\(MAC\_OSX_OBJS\) 5332 PLAT_SRCS=\$\(MAC\_OSX_SRCS\) 5333 { $as_echo "$as_me:$LINENO: checking whether to use CoreFoundation" >&5 5334 $as_echo_n "checking whether to use CoreFoundation... " >&6; } 5335 # Check whether --enable-corefoundation was given. 5336 if test "${enable_corefoundation+set}" = set; then 5337 enableval=$enable_corefoundation; tcl_corefoundation=$enableval 5338 else 5339 tcl_corefoundation=yes 5340 fi 5341 5342 { $as_echo "$as_me:$LINENO: result: $tcl_corefoundation" >&5 5343 $as_echo "$tcl_corefoundation" >&6; } 5344 if test $tcl_corefoundation = yes; then 5345 { $as_echo "$as_me:$LINENO: checking for CoreFoundation.framework" >&5 5346 $as_echo_n "checking for CoreFoundation.framework... " >&6; } 5347 if test "${tcl_cv_lib_corefoundation+set}" = set; then 5348 $as_echo_n "(cached) " >&6 5349 else 5350 5351 hold_libs=$LIBS 5352 if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do 5353 # On Tiger there is no 64-bit CF, so remove 64-bit archs 5354 # from CFLAGS et al. while testing for presence of CF. 5355 # 64-bit CF is disabled in tclUnixPort.h if necessary. 5356 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' 5357 done; fi 5358 LIBS="$LIBS -framework CoreFoundation" 5359 cat >conftest.$ac_ext <<_ACEOF 5360 /* confdefs.h. */ 5361 _ACEOF 5362 cat confdefs.h >>conftest.$ac_ext 5363 cat >>conftest.$ac_ext <<_ACEOF 5364 /* end confdefs.h. */ 5365 #include <CoreFoundation/CoreFoundation.h> 5366 int 5367 main () 5368 { 5369 CFBundleRef b = CFBundleGetMainBundle(); 5370 ; 5371 return 0; 5372 } 5373 _ACEOF 5374 rm -f conftest.$ac_objext conftest$ac_exeext 5375 if { (ac_try="$ac_link" 5376 case "(($ac_try" in 5377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5378 *) ac_try_echo=$ac_try;; 5379 esac 5380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5381 $as_echo "$ac_try_echo") >&5 5382 (eval "$ac_link") 2>conftest.er1 5383 ac_status=$? 5384 grep -v '^ *+' conftest.er1 >conftest.err 5385 rm -f conftest.er1 5386 cat conftest.err >&5 5387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5388 (exit $ac_status); } && { 5389 test -z "$ac_c_werror_flag" || 5390 test ! -s conftest.err 5391 } && test -s conftest$ac_exeext && { 5392 test "$cross_compiling" = yes || 5393 $as_test_x conftest$ac_exeext 5394 }; then 5395 tcl_cv_lib_corefoundation=yes 5396 else 5397 $as_echo "$as_me: failed program was:" >&5 5398 sed 's/^/| /' conftest.$ac_ext >&5 5399 5400 tcl_cv_lib_corefoundation=no 5401 fi 5402 5403 rm -rf conftest.dSYM 5404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5405 conftest$ac_exeext conftest.$ac_ext 5406 if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do 5407 eval $v'="$hold_'$v'"' 5408 done; fi; LIBS=$hold_libs 5409 fi 5410 { $as_echo "$as_me:$LINENO: result: $tcl_cv_lib_corefoundation" >&5 5411 $as_echo "$tcl_cv_lib_corefoundation" >&6; } 5412 if test $tcl_cv_lib_corefoundation = yes; then 5413 LIBS="$LIBS -framework CoreFoundation" 5414 cat >>confdefs.h <<\_ACEOF 5415 #define HAVE_COREFOUNDATION 1 5416 _ACEOF 5417 5418 else 5419 tcl_corefoundation=no 5420 fi 5421 if test "$fat_32_64" = yes -a $tcl_corefoundation = yes; then 5422 { $as_echo "$as_me:$LINENO: checking for 64-bit CoreFoundation" >&5 5423 $as_echo_n "checking for 64-bit CoreFoundation... " >&6; } 5424 if test "${tcl_cv_lib_corefoundation_64+set}" = set; then 5425 $as_echo_n "(cached) " >&6 5426 else 5427 5428 for v in CFLAGS CPPFLAGS LDFLAGS; do 5429 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 5430 done 5431 cat >conftest.$ac_ext <<_ACEOF 5432 /* confdefs.h. */ 5433 _ACEOF 5434 cat confdefs.h >>conftest.$ac_ext 5435 cat >>conftest.$ac_ext <<_ACEOF 5436 /* end confdefs.h. */ 5437 #include <CoreFoundation/CoreFoundation.h> 5438 int 5439 main () 5440 { 5441 CFBundleRef b = CFBundleGetMainBundle(); 5442 ; 5443 return 0; 5444 } 5445 _ACEOF 5446 rm -f conftest.$ac_objext conftest$ac_exeext 5447 if { (ac_try="$ac_link" 5448 case "(($ac_try" in 5449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5450 *) ac_try_echo=$ac_try;; 5451 esac 5452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5453 $as_echo "$ac_try_echo") >&5 5454 (eval "$ac_link") 2>conftest.er1 5455 ac_status=$? 5456 grep -v '^ *+' conftest.er1 >conftest.err 5457 rm -f conftest.er1 5458 cat conftest.err >&5 5459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5460 (exit $ac_status); } && { 5461 test -z "$ac_c_werror_flag" || 5462 test ! -s conftest.err 5463 } && test -s conftest$ac_exeext && { 5464 test "$cross_compiling" = yes || 5465 $as_test_x conftest$ac_exeext 5466 }; then 5467 tcl_cv_lib_corefoundation_64=yes 5468 else 5469 $as_echo "$as_me: failed program was:" >&5 5470 sed 's/^/| /' conftest.$ac_ext >&5 5471 5472 tcl_cv_lib_corefoundation_64=no 5473 fi 5474 5475 rm -rf conftest.dSYM 5476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5477 conftest$ac_exeext conftest.$ac_ext 5478 for v in CFLAGS CPPFLAGS LDFLAGS; do 5479 eval $v'="$hold_'$v'"' 5480 done 5481 fi 5482 { $as_echo "$as_me:$LINENO: result: $tcl_cv_lib_corefoundation_64" >&5 5483 $as_echo "$tcl_cv_lib_corefoundation_64" >&6; } 5484 if test $tcl_cv_lib_corefoundation_64 = no; then 5485 cat >>confdefs.h <<\_ACEOF 5486 #define NO_COREFOUNDATION_64 1 5487 _ACEOF 5488 5489 fi 5490 fi 5491 fi 5492 cat >>confdefs.h <<\_ACEOF 5493 #define MAC_OSX_TCL 1 5494 _ACEOF 5495 5496 ;; 5497 NEXTSTEP-*) 5498 SHLIB_CFLAGS="" 5499 SHLIB_LD="cc -nostdlib -r" 5500 SHLIB_LD_LIBS="" 5501 SHLIB_SUFFIX=".so" 5502 DL_OBJS="tclLoadNext.o" 5503 DL_LIBS="" 5504 CC_SEARCH_FLAGS="" 5505 LD_SEARCH_FLAGS="" 5506 ;; 5507 OS/390-*) 5508 CFLAGS_OPTIMIZE="" # Optimizer is buggy 5509 cat >>confdefs.h <<\_ACEOF 5510 #define _OE_SOCKETS 1 5511 _ACEOF 5512 # needed in sys/socket.h 5513 ;; 5514 OSF1-1.0|OSF1-1.1|OSF1-1.2) 5515 # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1 5516 SHLIB_CFLAGS="" 5517 # Hack: make package name same as library name 5518 SHLIB_LD='ld -R -export :' 5519 SHLIB_LD_LIBS="" 5520 SHLIB_SUFFIX=".so" 5521 DL_OBJS="tclLoadOSF.o" 5522 DL_LIBS="" 5523 CC_SEARCH_FLAGS="" 5524 LD_SEARCH_FLAGS="" 5525 ;; 5526 OSF1-1.*) 5527 # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2 5528 SHLIB_CFLAGS="-fPIC" 5529 if test "$SHARED_BUILD" = "1" ; then 5530 SHLIB_LD="ld -shared" 5531 else 5532 SHLIB_LD="ld -non_shared" 5533 fi 5534 SHLIB_LD_LIBS="" 5535 SHLIB_SUFFIX=".so" 5536 DL_OBJS="tclLoadDl.o" 5537 DL_LIBS="" 5538 CC_SEARCH_FLAGS="" 5539 LD_SEARCH_FLAGS="" 5540 ;; 5541 OSF1-V*) 5542 # Digital OSF/1 5543 SHLIB_CFLAGS="" 5544 if test "$SHARED_BUILD" = "1" ; then 5545 SHLIB_LD='ld -shared -expect_unresolved "*"' 5546 else 5547 SHLIB_LD='ld -non_shared -expect_unresolved "*"' 5548 fi 5549 SHLIB_LD_LIBS="" 5550 SHLIB_SUFFIX=".so" 5551 DL_OBJS="tclLoadDl.o" 5552 DL_LIBS="" 5553 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 5554 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 5555 if test "$GCC" = "yes" ; then 5556 CFLAGS="$CFLAGS -mieee" 5557 else 5558 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" 5559 fi 5560 # see pthread_intro(3) for pthread support on osf1, k.furukawa 5561 if test "${TCL_THREADS}" = "1" ; then 5562 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" 5563 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" 5564 LIBS=`echo $LIBS | sed s/-lpthreads//` 5565 if test "$GCC" = "yes" ; then 5566 LIBS="$LIBS -lpthread -lmach -lexc" 5567 else 5568 CFLAGS="$CFLAGS -pthread" 5569 LDFLAGS="$LDFLAGS -pthread" 5570 fi 5571 fi 5572 5573 ;; 5574 QNX-6*) 5575 # QNX RTP 5576 # This may work for all QNX, but it was only reported for v6. 5577 SHLIB_CFLAGS="-fPIC" 5578 SHLIB_LD="ld -Bshareable -x" 5579 SHLIB_LD_LIBS="" 5580 SHLIB_SUFFIX=".so" 5581 DL_OBJS="tclLoadDl.o" 5582 # dlopen is in -lc on QNX 5583 DL_LIBS="" 5584 CC_SEARCH_FLAGS="" 5585 LD_SEARCH_FLAGS="" 5586 ;; 5587 RISCos-*) 5588 SHLIB_CFLAGS="-G 0" 5589 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" 5590 SHLIB_LD_LIBS='${LIBS}' 5591 SHLIB_SUFFIX=".a" 5592 DL_OBJS="tclLoadAout.o" 5593 DL_LIBS="" 5594 LDFLAGS="$LDFLAGS -Wl,-D,08000000" 5595 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 5596 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 5597 ;; 5598 SCO_SV-3.2*) 5599 # Note, dlopen is available only on SCO 3.2.5 and greater. However, 5600 # this test works, since "uname -s" was non-standard in 3.2.4 and 5601 # below. 5602 if test "$GCC" = "yes" ; then 5603 SHLIB_CFLAGS="-fPIC -melf" 5604 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" 5605 else 5606 SHLIB_CFLAGS="-Kpic -belf" 5607 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" 5608 fi 5609 SHLIB_LD="ld -G" 5610 SHLIB_LD_LIBS="" 5611 SHLIB_SUFFIX=".so" 5612 DL_OBJS="tclLoadDl.o" 5613 DL_LIBS="" 5614 CC_SEARCH_FLAGS="" 5615 LD_SEARCH_FLAGS="" 5616 ;; 5617 SINIX*5.4*) 5618 SHLIB_CFLAGS="-K PIC" 5619 SHLIB_LD="cc -G" 5620 SHLIB_LD_LIBS="" 5621 SHLIB_SUFFIX=".so" 5622 DL_OBJS="tclLoadDl.o" 5623 DL_LIBS="-ldl" 5624 CC_SEARCH_FLAGS="" 5625 LD_SEARCH_FLAGS="" 5626 ;; 5627 SunOS-4*) 5628 SHLIB_CFLAGS="-PIC" 5629 SHLIB_LD="ld" 5630 SHLIB_LD_LIBS="" 5631 SHLIB_SUFFIX=".so" 5632 DL_OBJS="tclLoadDl.o" 5633 DL_LIBS="-ldl" 5634 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 5635 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 5636 5637 # SunOS can't handle version numbers with dots in them in library 5638 # specs, like -ltcl7.5, so use -ltcl75 instead. Also, it 5639 # requires an extra version number at the end of .so file names. 5640 # So, the library has to have a name like libtcl75.so.1.0 5641 5642 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0' 5643 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' 5644 TCL_LIB_VERSIONS_OK=nodots 5645 ;; 5646 SunOS-5.[0-6]) 5647 # Careful to not let 5.10+ fall into this case 5648 5649 # Note: If _REENTRANT isn't defined, then Solaris 5650 # won't define thread-safe library routines. 5651 5652 cat >>confdefs.h <<\_ACEOF 5653 #define _REENTRANT 1 5654 _ACEOF 5655 5656 cat >>confdefs.h <<\_ACEOF 5657 #define _POSIX_PTHREAD_SEMANTICS 1 5658 _ACEOF 5659 5660 5661 SHLIB_CFLAGS="-KPIC" 5662 5663 # Note: need the LIBS below, otherwise Tk won't find Tcl's 5664 # symbols when dynamically loaded into tclsh. 5665 5666 SHLIB_LD_LIBS='${LIBS}' 5667 SHLIB_SUFFIX=".so" 5668 DL_OBJS="tclLoadDl.o" 5669 DL_LIBS="-ldl" 5670 if test "$GCC" = "yes" ; then 5671 SHLIB_LD="$CC -shared" 5672 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 5673 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 5674 else 5675 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 5676 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 5677 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 5678 fi 5679 ;; 5680 SunOS-5*) 5681 # Note: If _REENTRANT isn't defined, then Solaris 5682 # won't define thread-safe library routines. 5683 5684 cat >>confdefs.h <<\_ACEOF 5685 #define _REENTRANT 1 5686 _ACEOF 5687 5688 cat >>confdefs.h <<\_ACEOF 5689 #define _POSIX_PTHREAD_SEMANTICS 1 5690 _ACEOF 5691 5692 5693 SHLIB_CFLAGS="-KPIC" 5694 5695 # Check to enable 64-bit flags for compiler/linker 5696 if test "$do64bit" = "yes" ; then 5697 arch=`isainfo` 5698 if test "$arch" = "sparcv9 sparc" ; then 5699 if test "$GCC" = "yes" ; then 5700 if test "`gcc -dumpversion | awk -F. '{print $1}'`" -lt "3" ; then 5701 { $as_echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 5702 $as_echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} 5703 else 5704 do64bit_ok=yes 5705 CFLAGS="$CFLAGS -m64 -mcpu=v9" 5706 LDFLAGS="$LDFLAGS -m64 -mcpu=v9" 5707 SHLIB_CFLAGS="-fPIC" 5708 fi 5709 else 5710 do64bit_ok=yes 5711 if test "$do64bitVIS" = "yes" ; then 5712 CFLAGS="$CFLAGS -xarch=v9a" 5713 LDFLAGS="$LDFLAGS -xarch=v9a" 5714 else 5715 CFLAGS="$CFLAGS -xarch=v9" 5716 LDFLAGS="$LDFLAGS -xarch=v9" 5717 fi 5718 # Solaris 64 uses this as well 5719 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" 5720 fi 5721 elif test "$arch" = "amd64 i386" ; then 5722 if test "$GCC" = "yes" ; then 5723 { $as_echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 5724 $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 5725 else 5726 do64bit_ok=yes 5727 CFLAGS="$CFLAGS -xarch=amd64" 5728 LDFLAGS="$LDFLAGS -xarch=amd64" 5729 fi 5730 else 5731 { $as_echo "$as_me:$LINENO: WARNING: 64bit mode not supported for $arch" >&5 5732 $as_echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} 5733 fi 5734 fi 5735 5736 # Note: need the LIBS below, otherwise Tk won't find Tcl's 5737 # symbols when dynamically loaded into tclsh. 5738 5739 SHLIB_LD_LIBS='${LIBS}' 5740 SHLIB_SUFFIX=".so" 5741 DL_OBJS="tclLoadDl.o" 5742 DL_LIBS="-ldl" 5743 if test "$GCC" = "yes" ; then 5744 SHLIB_LD="$CC -shared" 5745 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 5746 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 5747 if test "$do64bit_ok" = "yes" ; then 5748 # We need to specify -static-libgcc or we need to 5749 # add the path to the sparv9 libgcc. 5750 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" 5751 # for finding sparcv9 libgcc, get the regular libgcc 5752 # path, remove so name and append 'sparcv9' 5753 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." 5754 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" 5755 fi 5756 else 5757 case $system in 5758 SunOS-5.[1-9][0-9]*) 5759 SHLIB_LD='${CC} -G -z text ${LDFLAGS}';; 5760 *) 5761 SHLIB_LD="/usr/ccs/bin/ld -G -z text";; 5762 esac 5763 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 5764 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 5765 fi 5766 ;; 5767 ULTRIX-4.*) 5768 SHLIB_CFLAGS="-G 0" 5769 SHLIB_SUFFIX=".a" 5770 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" 5771 SHLIB_LD_LIBS='${LIBS}' 5772 DL_OBJS="tclLoadAout.o" 5773 DL_LIBS="" 5774 LDFLAGS="$LDFLAGS -Wl,-D,08000000" 5775 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 5776 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 5777 if test "$GCC" != "yes" ; then 5778 CFLAGS="$CFLAGS -DHAVE_TZSET -std1" 5779 fi 5780 ;; 5781 UNIX_SV* | UnixWare-5*) 5782 SHLIB_CFLAGS="-KPIC" 5783 SHLIB_LD="cc -G" 5784 SHLIB_LD_LIBS="" 5785 SHLIB_SUFFIX=".so" 5786 DL_OBJS="tclLoadDl.o" 5787 DL_LIBS="-ldl" 5788 # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers 5789 # that don't grok the -Bexport option. Test that it does. 5790 { $as_echo "$as_me:$LINENO: checking for ld accepts -Bexport flag" >&5 5791 $as_echo_n "checking for ld accepts -Bexport flag... " >&6; } 5792 if test "${tcl_cv_ld_Bexport+set}" = set; then 5793 $as_echo_n "(cached) " >&6 5794 else 5795 5796 hold_ldflags=$LDFLAGS 5797 LDFLAGS="$LDFLAGS -Wl,-Bexport" 5798 cat >conftest.$ac_ext <<_ACEOF 5799 /* confdefs.h. */ 5800 _ACEOF 5801 cat confdefs.h >>conftest.$ac_ext 5802 cat >>conftest.$ac_ext <<_ACEOF 5803 /* end confdefs.h. */ 5804 5805 int 5806 main () 5807 { 5808 int i; 5809 ; 5810 return 0; 5811 } 5812 _ACEOF 5813 rm -f conftest.$ac_objext conftest$ac_exeext 5814 if { (ac_try="$ac_link" 5815 case "(($ac_try" in 5816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5817 *) ac_try_echo=$ac_try;; 5818 esac 5819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5820 $as_echo "$ac_try_echo") >&5 5821 (eval "$ac_link") 2>conftest.er1 5822 ac_status=$? 5823 grep -v '^ *+' conftest.er1 >conftest.err 5824 rm -f conftest.er1 5825 cat conftest.err >&5 5826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5827 (exit $ac_status); } && { 5828 test -z "$ac_c_werror_flag" || 5829 test ! -s conftest.err 5830 } && test -s conftest$ac_exeext && { 5831 test "$cross_compiling" = yes || 5832 $as_test_x conftest$ac_exeext 5833 }; then 5834 tcl_cv_ld_Bexport=yes 5835 else 5836 $as_echo "$as_me: failed program was:" >&5 5837 sed 's/^/| /' conftest.$ac_ext >&5 5838 5839 tcl_cv_ld_Bexport=no 5840 fi 5841 5842 rm -rf conftest.dSYM 5843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5844 conftest$ac_exeext conftest.$ac_ext 5845 LDFLAGS=$hold_ldflags 5846 fi 5847 { $as_echo "$as_me:$LINENO: result: $tcl_cv_ld_Bexport" >&5 5848 $as_echo "$tcl_cv_ld_Bexport" >&6; } 5849 if test $tcl_cv_ld_Bexport = yes; then 5850 LDFLAGS="$LDFLAGS -Wl,-Bexport" 5851 fi 5852 CC_SEARCH_FLAGS="" 5853 LD_SEARCH_FLAGS="" 5854 ;; 5855 esac 5856 5857 if test "$do64bit" = "yes" -a "$do64bit_ok" = "no" ; then 5858 { $as_echo "$as_me:$LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 5859 $as_echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} 5860 fi 5861 5862 5863 5864 5865 # Step 4: If pseudo-static linking is in use (see K. B. Kenny, "Dynamic 5866 # Loading for Tcl -- What Became of It?". Proc. 2nd Tcl/Tk Workshop, 5867 # New Orleans, LA, Computerized Processes Unlimited, 1994), then we need 5868 # to determine which of several header files defines the a.out file 5869 # format (a.out.h, sys/exec.h, or sys/exec_aout.h). At present, we 5870 # support only a file format that is more or less version-7-compatible. 5871 # In particular, 5872 # - a.out files must begin with `struct exec'. 5873 # - the N_TXTOFF on the `struct exec' must compute the seek address 5874 # of the text segment 5875 # - The `struct exec' must contain a_magic, a_text, a_data, a_bss 5876 # and a_entry fields. 5877 # The following compilation should succeed if and only if either sys/exec.h 5878 # or a.out.h is usable for the purpose. 5879 # 5880 # Note that the modified COFF format used on MIPS Ultrix 4.x is usable; the 5881 # `struct exec' includes a second header that contains information that 5882 # duplicates the v7 fields that are needed. 5883 5884 if test "x$DL_OBJS" = "xtclLoadAout.o" ; then 5885 { $as_echo "$as_me:$LINENO: checking sys/exec.h" >&5 5886 $as_echo_n "checking sys/exec.h... " >&6; } 5887 if test "${tcl_cv_sysexec_h+set}" = set; then 5888 $as_echo_n "(cached) " >&6 5889 else 5890 5891 cat >conftest.$ac_ext <<_ACEOF 5892 /* confdefs.h. */ 5893 _ACEOF 5894 cat confdefs.h >>conftest.$ac_ext 5895 cat >>conftest.$ac_ext <<_ACEOF 5896 /* end confdefs.h. */ 5897 #include <sys/exec.h> 5898 int 5899 main () 5900 { 5901 5902 struct exec foo; 5903 unsigned long seek; 5904 int flag; 5905 #if defined(__mips) || defined(mips) 5906 seek = N_TXTOFF (foo.ex_f, foo.ex_o); 5907 #else 5908 seek = N_TXTOFF (foo); 5909 #endif 5910 flag = (foo.a_magic == OMAGIC); 5911 return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry; 5912 5913 ; 5914 return 0; 5915 } 5916 _ACEOF 5917 rm -f conftest.$ac_objext 5918 if { (ac_try="$ac_compile" 5919 case "(($ac_try" in 5920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5921 *) ac_try_echo=$ac_try;; 5922 esac 5923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5924 $as_echo "$ac_try_echo") >&5 5925 (eval "$ac_compile") 2>conftest.er1 5926 ac_status=$? 5927 grep -v '^ *+' conftest.er1 >conftest.err 5928 rm -f conftest.er1 5929 cat conftest.err >&5 5930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5931 (exit $ac_status); } && { 5932 test -z "$ac_c_werror_flag" || 5933 test ! -s conftest.err 5934 } && test -s conftest.$ac_objext; then 5935 tcl_cv_sysexec_h=usable 5936 else 5937 $as_echo "$as_me: failed program was:" >&5 5938 sed 's/^/| /' conftest.$ac_ext >&5 5939 5940 tcl_cv_sysexec_h=unusable 5941 fi 5942 5943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5944 fi 5945 { $as_echo "$as_me:$LINENO: result: $tcl_cv_sysexec_h" >&5 5946 $as_echo "$tcl_cv_sysexec_h" >&6; } 5947 if test $tcl_cv_sysexec_h = usable; then 5948 cat >>confdefs.h <<\_ACEOF 5949 #define USE_SYS_EXEC_H 1 5950 _ACEOF 5951 5952 else 5953 { $as_echo "$as_me:$LINENO: checking a.out.h" >&5 5954 $as_echo_n "checking a.out.h... " >&6; } 5955 if test "${tcl_cv_aout_h+set}" = set; then 5956 $as_echo_n "(cached) " >&6 5957 else 5958 5959 cat >conftest.$ac_ext <<_ACEOF 5960 /* confdefs.h. */ 5961 _ACEOF 5962 cat confdefs.h >>conftest.$ac_ext 5963 cat >>conftest.$ac_ext <<_ACEOF 5964 /* end confdefs.h. */ 5965 #include <a.out.h> 5966 int 5967 main () 5968 { 5969 5970 struct exec foo; 5971 unsigned long seek; 5972 int flag; 5973 #if defined(__mips) || defined(mips) 5974 seek = N_TXTOFF (foo.ex_f, foo.ex_o); 5975 #else 5976 seek = N_TXTOFF (foo); 5977 #endif 5978 flag = (foo.a_magic == OMAGIC); 5979 return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry; 5980 5981 ; 5982 return 0; 5983 } 5984 _ACEOF 5985 rm -f conftest.$ac_objext 5986 if { (ac_try="$ac_compile" 5987 case "(($ac_try" in 5988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5989 *) ac_try_echo=$ac_try;; 5990 esac 5991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5992 $as_echo "$ac_try_echo") >&5 5993 (eval "$ac_compile") 2>conftest.er1 5994 ac_status=$? 5995 grep -v '^ *+' conftest.er1 >conftest.err 5996 rm -f conftest.er1 5997 cat conftest.err >&5 5998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5999 (exit $ac_status); } && { 6000 test -z "$ac_c_werror_flag" || 6001 test ! -s conftest.err 6002 } && test -s conftest.$ac_objext; then 6003 tcl_cv_aout_h=usable 6004 else 6005 $as_echo "$as_me: failed program was:" >&5 6006 sed 's/^/| /' conftest.$ac_ext >&5 6007 6008 tcl_cv_aout_h=unusable 6009 fi 6010 6011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6012 fi 6013 { $as_echo "$as_me:$LINENO: result: $tcl_cv_aout_h" >&5 6014 $as_echo "$tcl_cv_aout_h" >&6; } 6015 if test $tcl_cv_aout_h = usable; then 6016 cat >>confdefs.h <<\_ACEOF 6017 #define USE_A_OUT_H 1 6018 _ACEOF 6019 6020 else 6021 { $as_echo "$as_me:$LINENO: checking sys/exec_aout.h" >&5 6022 $as_echo_n "checking sys/exec_aout.h... " >&6; } 6023 if test "${tcl_cv_sysexecaout_h+set}" = set; then 6024 $as_echo_n "(cached) " >&6 6025 else 6026 6027 cat >conftest.$ac_ext <<_ACEOF 6028 /* confdefs.h. */ 6029 _ACEOF 6030 cat confdefs.h >>conftest.$ac_ext 6031 cat >>conftest.$ac_ext <<_ACEOF 6032 /* end confdefs.h. */ 6033 #include <sys/exec_aout.h> 6034 int 6035 main () 6036 { 6037 6038 struct exec foo; 6039 unsigned long seek; 6040 int flag; 6041 #if defined(__mips) || defined(mips) 6042 seek = N_TXTOFF (foo.ex_f, foo.ex_o); 6043 #else 6044 seek = N_TXTOFF (foo); 6045 #endif 6046 flag = (foo.a_midmag == OMAGIC); 6047 return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry; 6048 6049 ; 6050 return 0; 6051 } 6052 _ACEOF 6053 rm -f conftest.$ac_objext 6054 if { (ac_try="$ac_compile" 6055 case "(($ac_try" in 6056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6057 *) ac_try_echo=$ac_try;; 6058 esac 6059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6060 $as_echo "$ac_try_echo") >&5 6061 (eval "$ac_compile") 2>conftest.er1 6062 ac_status=$? 6063 grep -v '^ *+' conftest.er1 >conftest.err 6064 rm -f conftest.er1 6065 cat conftest.err >&5 6066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6067 (exit $ac_status); } && { 6068 test -z "$ac_c_werror_flag" || 6069 test ! -s conftest.err 6070 } && test -s conftest.$ac_objext; then 6071 tcl_cv_sysexecaout_h=usable 6072 else 6073 $as_echo "$as_me: failed program was:" >&5 6074 sed 's/^/| /' conftest.$ac_ext >&5 6075 6076 tcl_cv_sysexecaout_h=unusable 6077 fi 6078 6079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6080 fi 6081 { $as_echo "$as_me:$LINENO: result: $tcl_cv_sysexecaout_h" >&5 6082 $as_echo "$tcl_cv_sysexecaout_h" >&6; } 6083 if test $tcl_cv_sysexecaout_h = usable; then 6084 cat >>confdefs.h <<\_ACEOF 6085 #define USE_SYS_EXEC_AOUT_H 1 6086 _ACEOF 6087 6088 else 6089 DL_OBJS="" 6090 fi 6091 fi 6092 fi 6093 fi 6094 6095 # Step 5: disable dynamic loading if requested via a command-line switch. 6096 6097 # Check whether --enable-load was given. 6098 if test "${enable_load+set}" = set; then 6099 enableval=$enable_load; tcl_ok=$enableval 6100 else 6101 tcl_ok=yes 6102 fi 6103 6104 if test "$tcl_ok" = "no"; then 6105 DL_OBJS="" 6106 fi 6107 6108 if test "x$DL_OBJS" != "x" ; then 6109 BUILD_DLTEST="\$(DLTEST_TARGETS)" 6110 else 6111 echo "Can't figure out how to do dynamic loading or shared libraries" 6112 echo "on this system." 6113 SHLIB_CFLAGS="" 6114 SHLIB_LD="" 6115 SHLIB_SUFFIX="" 6116 DL_OBJS="tclLoadNone.o" 6117 DL_LIBS="" 6118 LDFLAGS="$LDFLAGS_ORIG" 6119 CC_SEARCH_FLAGS="" 6120 LD_SEARCH_FLAGS="" 6121 BUILD_DLTEST="" 6122 fi 6123 6124 # If we're running gcc, then change the C flags for compiling shared 6125 # libraries to the right flags for gcc, instead of those for the 6126 # standard manufacturer compiler. 6127 6128 if test "$DL_OBJS" != "tclLoadNone.o" ; then 6129 if test "$GCC" = "yes" ; then 6130 case $system in 6131 AIX-*) 6132 ;; 6133 BSD/OS*) 6134 ;; 6135 IRIX*) 6136 ;; 6137 NetBSD-*|FreeBSD-*|OpenBSD-*) 6138 ;; 6139 Darwin-*) 6140 ;; 6141 RISCos-*) 6142 ;; 6143 SCO_SV-3.2*) 6144 ;; 6145 ULTRIX-4.*) 6146 ;; 6147 *) 6148 SHLIB_CFLAGS="-fPIC" 6149 ;; 6150 esac 6151 fi 6152 fi 6153 6154 if test "$SHARED_LIB_SUFFIX" = "" ; then 6155 SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}${SHLIB_SUFFIX}' 6156 fi 6157 if test "$UNSHARED_LIB_SUFFIX" = "" ; then 6158 UNSHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a' 6159 fi 6160 6161 if test "${SHARED_BUILD}" = "1" && test "${SHLIB_SUFFIX}" != "" ; then 6162 LIB_SUFFIX=${SHARED_LIB_SUFFIX} 6163 MAKE_LIB='${SHLIB_LD} -o $@ ${OBJS} ${SHLIB_LD_LIBS} ${TCL_SHLIB_LD_EXTRAS} ${TK_SHLIB_LD_EXTRAS} ${LD_SEARCH_FLAGS}' 6164 INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)' 6165 else 6166 LIB_SUFFIX=${UNSHARED_LIB_SUFFIX} 6167 6168 if test "$RANLIB" = "" ; then 6169 MAKE_LIB='$(STLIB_LD) $@ ${OBJS}' 6170 INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)' 6171 else 6172 MAKE_LIB='${STLIB_LD} $@ ${OBJS} ; ${RANLIB} $@' 6173 INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(LIB_FILE))' 6174 fi 6175 6176 fi 6177 6178 6179 # Stub lib does not depend on shared/static configuration 6180 if test "$RANLIB" = "" ; then 6181 MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS}' 6182 INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE)' 6183 else 6184 MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS} ; ${RANLIB} $@' 6185 INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(STUB_LIB_FILE))' 6186 fi 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 1844 6219 1845 6220 … … 2465 6840 (exit $ac_status); } 2466 6841 2467 cat >conftest.$ac_ext <<_ACEOF2468 /* confdefs.h. */2469 _ACEOF2470 cat confdefs.h >>conftest.$ac_ext2471 cat >>conftest.$ac_ext <<_ACEOF2472 /* end confdefs.h. */2473 2474 int2475 main ()2476 {2477 2478 ;2479 return 0;2480 }2481 _ACEOF2482 ac_clean_files_save=$ac_clean_files2483 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"2484 # Try to create an executable without -o first, disregard a.out.2485 # It will help us diagnose broken compilers, and finding out an intuition2486 # of exeext.2487 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&52488 $as_echo_n "checking for C compiler default output file name... " >&6; }2489 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`2490 2491 # The possible output files:2492 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"2493 2494 ac_rmfiles=2495 for ac_file in $ac_files2496 do2497 case $ac_file in2498 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;2499 * ) ac_rmfiles="$ac_rmfiles $ac_file";;2500 esac2501 done2502 rm -f $ac_rmfiles2503 2504 if { (ac_try="$ac_link_default"2505 case "(($ac_try" in2506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;2507 *) ac_try_echo=$ac_try;;2508 esac2509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""2510 $as_echo "$ac_try_echo") >&52511 (eval "$ac_link_default") 2>&52512 ac_status=$?2513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&52514 (exit $ac_status); }; then2515 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.2516 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'2517 # in a Makefile. We should not override ac_cv_exeext if it was cached,2518 # so that the user can short-circuit this test for compilers unknown to2519 # Autoconf.2520 for ac_file in $ac_files ''2521 do2522 test -f "$ac_file" || continue2523 case $ac_file in2524 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )2525 ;;2526 [ab].out )2527 # We found the default executable, but exeext='' is most2528 # certainly right.2529 break;;2530 *.* )2531 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;2532 then :; else2533 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`2534 fi2535 # We set ac_cv_exeext here because the later test for it is not2536 # safe: cross compilers may not add the suffix if given an `-o'2537 # argument, so we may need to know it at that point already.2538 # Even if this section looks crufty: it has the advantage of2539 # actually working.2540 break;;2541 * )2542 break;;2543 esac2544 done2545 test "$ac_cv_exeext" = no && ac_cv_exeext=2546 2547 else2548 ac_file=''2549 fi2550 2551 { $as_echo "$as_me:$LINENO: result: $ac_file" >&52552 $as_echo "$ac_file" >&6; }2553 if test -z "$ac_file"; then2554 $as_echo "$as_me: failed program was:" >&52555 sed 's/^/| /' conftest.$ac_ext >&52556 2557 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&52558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}2559 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables2560 See \`config.log' for more details." >&52561 $as_echo "$as_me: error: C compiler cannot create executables2562 See \`config.log' for more details." >&2;}2563 { (exit 77); exit 77; }; }; }2564 fi2565 2566 ac_exeext=$ac_cv_exeext2567 2568 # Check that the compiler produces executables we can run. If not, either2569 # the compiler is broken, or we cross compile.2570 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&52571 $as_echo_n "checking whether the C compiler works... " >&6; }2572 # FIXME: These cross compiler hacks should be removed for Autoconf 3.02573 # If not cross compiling, check that we can run a simple program.2574 if test "$cross_compiling" != yes; then2575 if { ac_try='./$ac_file'2576 { (case "(($ac_try" in2577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;2578 *) ac_try_echo=$ac_try;;2579 esac2580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""2581 $as_echo "$ac_try_echo") >&52582 (eval "$ac_try") 2>&52583 ac_status=$?2584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&52585 (exit $ac_status); }; }; then2586 cross_compiling=no2587 else2588 if test "$cross_compiling" = maybe; then2589 cross_compiling=yes2590 else2591 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&52592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}2593 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.2594 If you meant to cross compile, use \`--host'.2595 See \`config.log' for more details." >&52596 $as_echo "$as_me: error: cannot run C compiled programs.2597 If you meant to cross compile, use \`--host'.2598 See \`config.log' for more details." >&2;}2599 { (exit 1); exit 1; }; }; }2600 fi2601 fi2602 fi2603 { $as_echo "$as_me:$LINENO: result: yes" >&52604 $as_echo "yes" >&6; }2605 2606 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out2607 ac_clean_files=$ac_clean_files_save2608 # Check that the compiler produces executables we can run. If not, either2609 # the compiler is broken, or we cross compile.2610 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&52611 $as_echo_n "checking whether we are cross compiling... " >&6; }2612 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&52613 $as_echo "$cross_compiling" >&6; }2614 2615 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&52616 $as_echo_n "checking for suffix of executables... " >&6; }2617 if { (ac_try="$ac_link"2618 case "(($ac_try" in2619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;2620 *) ac_try_echo=$ac_try;;2621 esac2622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""2623 $as_echo "$ac_try_echo") >&52624 (eval "$ac_link") 2>&52625 ac_status=$?2626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&52627 (exit $ac_status); }; then2628 # If both `conftest.exe' and `conftest' are `present' (well, observable)2629 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will2630 # work properly (i.e., refer to `conftest.exe'), while it won't with2631 # `rm'.2632 for ac_file in conftest.exe conftest conftest.*; do2633 test -f "$ac_file" || continue2634 case $ac_file in2635 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;2636 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`2637 break;;2638 * ) break;;2639 esac2640 done2641 else2642 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&52643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}2644 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link2645 See \`config.log' for more details." >&52646 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link2647 See \`config.log' for more details." >&2;}2648 { (exit 1); exit 1; }; }; }2649 fi2650 2651 rm -f conftest$ac_cv_exeext2652 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&52653 $as_echo "$ac_cv_exeext" >&6; }2654 2655 rm -f conftest.$ac_ext2656 EXEEXT=$ac_cv_exeext2657 ac_exeext=$EXEEXT2658 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&52659 $as_echo_n "checking for suffix of object files... " >&6; }2660 if test "${ac_cv_objext+set}" = set; then2661 $as_echo_n "(cached) " >&62662 else2663 cat >conftest.$ac_ext <<_ACEOF2664 /* confdefs.h. */2665 _ACEOF2666 cat confdefs.h >>conftest.$ac_ext2667 cat >>conftest.$ac_ext <<_ACEOF2668 /* end confdefs.h. */2669 2670 int2671 main ()2672 {2673 2674 ;2675 return 0;2676 }2677 _ACEOF2678 rm -f conftest.o conftest.obj2679 if { (ac_try="$ac_compile"2680 case "(($ac_try" in2681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;2682 *) ac_try_echo=$ac_try;;2683 esac2684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""2685 $as_echo "$ac_try_echo") >&52686 (eval "$ac_compile") 2>&52687 ac_status=$?2688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&52689 (exit $ac_status); }; then2690 for ac_file in conftest.o conftest.obj conftest.*; do2691 test -f "$ac_file" || continue;2692 case $ac_file in2693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;2694 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`2695 break;;2696 esac2697 done2698 else2699 $as_echo "$as_me: failed program was:" >&52700 sed 's/^/| /' conftest.$ac_ext >&52701 2702 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&52703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}2704 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile2705 See \`config.log' for more details." >&52706 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile2707 See \`config.log' for more details." >&2;}2708 { (exit 1); exit 1; }; }; }2709 fi2710 2711 rm -f conftest.$ac_cv_objext conftest.$ac_ext2712 fi2713 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&52714 $as_echo "$ac_cv_objext" >&6; }2715 OBJEXT=$ac_cv_objext2716 ac_objext=$OBJEXT2717 6842 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2718 6843 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } … … 4272 8397 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4273 8398 4274 4275 4276 4277 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&54278 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }4279 if test "${ac_cv_path_GREP+set}" = set; then4280 $as_echo_n "(cached) " >&64281 else4282 if test -z "$GREP"; then4283 ac_path_GREP_found=false4284 # Loop through the user's path and test for each of PROGNAME-LIST4285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR4286 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin4287 do4288 IFS=$as_save_IFS4289 test -z "$as_dir" && as_dir=.4290 for ac_prog in grep ggrep; do4291 for ac_exec_ext in '' $ac_executable_extensions; do4292 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"4293 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue4294 # Check for GNU ac_path_GREP and select it if it is found.4295 # Check for GNU $ac_path_GREP4296 case `"$ac_path_GREP" --version 2>&1` in4297 *GNU*)4298 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;4299 *)4300 ac_count=04301 $as_echo_n 0123456789 >"conftest.in"4302 while :4303 do4304 cat "conftest.in" "conftest.in" >"conftest.tmp"4305 mv "conftest.tmp" "conftest.in"4306 cp "conftest.in" "conftest.nl"4307 $as_echo 'GREP' >> "conftest.nl"4308 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break4309 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break4310 ac_count=`expr $ac_count + 1`4311 if test $ac_count -gt ${ac_path_GREP_max-0}; then4312 # Best one so far, save it but keep looking for a better one4313 ac_cv_path_GREP="$ac_path_GREP"4314 ac_path_GREP_max=$ac_count4315 fi4316 # 10*(2^10) chars as input seems more than enough4317 test $ac_count -gt 10 && break4318 done4319 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;4320 esac4321 4322 $ac_path_GREP_found && break 34323 done4324 done4325 done4326 IFS=$as_save_IFS4327 if test -z "$ac_cv_path_GREP"; then4328 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&54329 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}4330 { (exit 1); exit 1; }; }4331 fi4332 else4333 ac_cv_path_GREP=$GREP4334 fi4335 4336 fi4337 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&54338 $as_echo "$ac_cv_path_GREP" >&6; }4339 GREP="$ac_cv_path_GREP"4340 4341 4342 { $as_echo "$as_me:$LINENO: checking for egrep" >&54343 $as_echo_n "checking for egrep... " >&6; }4344 if test "${ac_cv_path_EGREP+set}" = set; then4345 $as_echo_n "(cached) " >&64346 else4347 if echo a | $GREP -E '(a|b)' >/dev/null 2>&14348 then ac_cv_path_EGREP="$GREP -E"4349 else4350 if test -z "$EGREP"; then4351 ac_path_EGREP_found=false4352 # Loop through the user's path and test for each of PROGNAME-LIST4353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR4354 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin4355 do4356 IFS=$as_save_IFS4357 test -z "$as_dir" && as_dir=.4358 for ac_prog in egrep; do4359 for ac_exec_ext in '' $ac_executable_extensions; do4360 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"4361 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue4362 # Check for GNU ac_path_EGREP and select it if it is found.4363 # Check for GNU $ac_path_EGREP4364 case `"$ac_path_EGREP" --version 2>&1` in4365 *GNU*)4366 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;4367 *)4368 ac_count=04369 $as_echo_n 0123456789 >"conftest.in"4370 while :4371 do4372 cat "conftest.in" "conftest.in" >"conftest.tmp"4373 mv "conftest.tmp" "conftest.in"4374 cp "conftest.in" "conftest.nl"4375 $as_echo 'EGREP' >> "conftest.nl"4376 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break4377 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break4378 ac_count=`expr $ac_count + 1`4379 if test $ac_count -gt ${ac_path_EGREP_max-0}; then4380 # Best one so far, save it but keep looking for a better one4381 ac_cv_path_EGREP="$ac_path_EGREP"4382 ac_path_EGREP_max=$ac_count4383 fi4384 # 10*(2^10) chars as input seems more than enough4385 test $ac_count -gt 10 && break4386 done4387 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;4388 esac4389 4390 $ac_path_EGREP_found && break 34391 done4392 done4393 done4394 IFS=$as_save_IFS4395 if test -z "$ac_cv_path_EGREP"; then4396 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&54397 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}4398 { (exit 1); exit 1; }; }4399 fi4400 else4401 ac_cv_path_EGREP=$EGREP4402 fi4403 4404 fi4405 fi4406 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&54407 $as_echo "$ac_cv_path_EGREP" >&6; }4408 EGREP="$ac_cv_path_EGREP"4409 4410 4411 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&54412 $as_echo_n "checking for ANSI C header files... " >&6; }4413 if test "${ac_cv_header_stdc+set}" = set; then4414 $as_echo_n "(cached) " >&64415 else4416 cat >conftest.$ac_ext <<_ACEOF4417 /* confdefs.h. */4418 _ACEOF4419 cat confdefs.h >>conftest.$ac_ext4420 cat >>conftest.$ac_ext <<_ACEOF4421 /* end confdefs.h. */4422 #include <stdlib.h>4423 #include <stdarg.h>4424 #include <string.h>4425 #include <float.h>4426 4427 int4428 main ()4429 {4430 4431 ;4432 return 0;4433 }4434 _ACEOF4435 rm -f conftest.$ac_objext4436 if { (ac_try="$ac_compile"4437 case "(($ac_try" in4438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;4439 *) ac_try_echo=$ac_try;;4440 esac4441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""4442 $as_echo "$ac_try_echo") >&54443 (eval "$ac_compile") 2>conftest.er14444 ac_status=$?4445 grep -v '^ *+' conftest.er1 >conftest.err4446 rm -f conftest.er14447 cat conftest.err >&54448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&54449 (exit $ac_status); } && {4450 test -z "$ac_cxx_werror_flag" ||4451 test ! -s conftest.err4452 } && test -s conftest.$ac_objext; then4453 ac_cv_header_stdc=yes4454 else4455 $as_echo "$as_me: failed program was:" >&54456 sed 's/^/| /' conftest.$ac_ext >&54457 4458 ac_cv_header_stdc=no4459 fi4460 4461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext4462 4463 if test $ac_cv_header_stdc = yes; then4464 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.4465 cat >conftest.$ac_ext <<_ACEOF4466 /* confdefs.h. */4467 _ACEOF4468 cat confdefs.h >>conftest.$ac_ext4469 cat >>conftest.$ac_ext <<_ACEOF4470 /* end confdefs.h. */4471 #include <string.h>4472 4473 _ACEOF4474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |4475 $EGREP "memchr" >/dev/null 2>&1; then4476 :4477 else4478 ac_cv_header_stdc=no4479 fi4480 rm -f conftest*4481 4482 fi4483 4484 if test $ac_cv_header_stdc = yes; then4485 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.4486 cat >conftest.$ac_ext <<_ACEOF4487 /* confdefs.h. */4488 _ACEOF4489 cat confdefs.h >>conftest.$ac_ext4490 cat >>conftest.$ac_ext <<_ACEOF4491 /* end confdefs.h. */4492 #include <stdlib.h>4493 4494 _ACEOF4495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |4496 $EGREP "free" >/dev/null 2>&1; then4497 :4498 else4499 ac_cv_header_stdc=no4500 fi4501 rm -f conftest*4502 4503 fi4504 4505 if test $ac_cv_header_stdc = yes; then4506 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.4507 if test "$cross_compiling" = yes; then4508 :4509 else4510 cat >conftest.$ac_ext <<_ACEOF4511 /* confdefs.h. */4512 _ACEOF4513 cat confdefs.h >>conftest.$ac_ext4514 cat >>conftest.$ac_ext <<_ACEOF4515 /* end confdefs.h. */4516 #include <ctype.h>4517 #include <stdlib.h>4518 #if ((' ' & 0x0FF) == 0x020)4519 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')4520 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))4521 #else4522 # define ISLOWER(c) \4523 (('a' <= (c) && (c) <= 'i') \4524 || ('j' <= (c) && (c) <= 'r') \4525 || ('s' <= (c) && (c) <= 'z'))4526 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))4527 #endif4528 4529 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))4530 int4531 main ()4532 {4533 int i;4534 for (i = 0; i < 256; i++)4535 if (XOR (islower (i), ISLOWER (i))4536 || toupper (i) != TOUPPER (i))4537 return 2;4538 return 0;4539 }4540 _ACEOF4541 rm -f conftest$ac_exeext4542 if { (ac_try="$ac_link"4543 case "(($ac_try" in4544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;4545 *) ac_try_echo=$ac_try;;4546 esac4547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""4548 $as_echo "$ac_try_echo") >&54549 (eval "$ac_link") 2>&54550 ac_status=$?4551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&54552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'4553 { (case "(($ac_try" in4554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;4555 *) ac_try_echo=$ac_try;;4556 esac4557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""4558 $as_echo "$ac_try_echo") >&54559 (eval "$ac_try") 2>&54560 ac_status=$?4561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&54562 (exit $ac_status); }; }; then4563 :4564 else4565 $as_echo "$as_me: program exited with status $ac_status" >&54566 $as_echo "$as_me: failed program was:" >&54567 sed 's/^/| /' conftest.$ac_ext >&54568 4569 ( exit $ac_status )4570 ac_cv_header_stdc=no4571 fi4572 rm -rf conftest.dSYM4573 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext4574 fi4575 4576 4577 fi4578 fi4579 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&54580 $as_echo "$ac_cv_header_stdc" >&6; }4581 if test $ac_cv_header_stdc = yes; then4582 4583 cat >>confdefs.h <<\_ACEOF4584 #define STDC_HEADERS 14585 _ACEOF4586 4587 fi4588 4589 # On IRIX 5.3, sys/types and inttypes.h are conflicting.4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \4600 inttypes.h stdint.h unistd.h4601 do4602 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`4603 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&54604 $as_echo_n "checking for $ac_header... " >&6; }4605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then4606 $as_echo_n "(cached) " >&64607 else4608 cat >conftest.$ac_ext <<_ACEOF4609 /* confdefs.h. */4610 _ACEOF4611 cat confdefs.h >>conftest.$ac_ext4612 cat >>conftest.$ac_ext <<_ACEOF4613 /* end confdefs.h. */4614 $ac_includes_default4615 4616 #include <$ac_header>4617 _ACEOF4618 rm -f conftest.$ac_objext4619 if { (ac_try="$ac_compile"4620 case "(($ac_try" in4621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;4622 *) ac_try_echo=$ac_try;;4623 esac4624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""4625 $as_echo "$ac_try_echo") >&54626 (eval "$ac_compile") 2>conftest.er14627 ac_status=$?4628 grep -v '^ *+' conftest.er1 >conftest.err4629 rm -f conftest.er14630 cat conftest.err >&54631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&54632 (exit $ac_status); } && {4633 test -z "$ac_cxx_werror_flag" ||4634 test ! -s conftest.err4635 } && test -s conftest.$ac_objext; then4636 eval "$as_ac_Header=yes"4637 else4638 $as_echo "$as_me: failed program was:" >&54639 sed 's/^/| /' conftest.$ac_ext >&54640 4641 eval "$as_ac_Header=no"4642 fi4643 4644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext4645 fi4646 ac_res=`eval 'as_val=${'$as_ac_Header'}4647 $as_echo "$as_val"'`4648 { $as_echo "$as_me:$LINENO: result: $ac_res" >&54649 $as_echo "$ac_res" >&6; }4650 as_val=`eval 'as_val=${'$as_ac_Header'}4651 $as_echo "$as_val"'`4652 if test "x$as_val" = x""yes; then4653 cat >>confdefs.h <<_ACEOF4654 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 14655 _ACEOF4656 4657 fi4658 4659 done4660 8399 4661 8400 … … 5179 8918 else 5180 8919 8920 5181 8921 for ac_header in rappture.h 5182 8922 do … … 6748 10488 6749 10489 6750 ac_config_files="$ac_config_files Makefile nanoscale/Makefile nanovis/Makefile nanovis/ newmat11/Makefile nanovis/R2/src/Makefile nanovis/imgLoaders/Makefile nanovis/transfer-function/Makefile pymolproxy/Makefile start_viz.sh"10490 ac_config_files="$ac_config_files Makefile nanoscale/Makefile nanovis/Makefile nanovis/glui/Makefile nanovis/newmat11/Makefile nanovis/R2/src/Makefile nanovis/imgLoaders/Makefile nanovis/transfer-function/Makefile pymolproxy/Makefile start_viz.sh" 6751 10491 6752 10492 cat >confcache <<\_ACEOF … … 7351 11091 "nanoscale/Makefile") CONFIG_FILES="$CONFIG_FILES nanoscale/Makefile" ;; 7352 11092 "nanovis/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/Makefile" ;; 11093 "nanovis/glui/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/glui/Makefile" ;; 7353 11094 "nanovis/newmat11/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/newmat11/Makefile" ;; 7354 11095 "nanovis/R2/src/Makefile") CONFIG_FILES="$CONFIG_FILES nanovis/R2/src/Makefile" ;; -
trunk/packages/vizservers/configure.in
r1353 r1358 234 234 nanoscale/Makefile \ 235 235 nanovis/Makefile \ 236 nanovis/glui/Makefile \ 236 237 nanovis/newmat11/Makefile \ 237 238 nanovis/R2/src/Makefile \ -
trunk/packages/vizservers/nanovis/Makefile.in
r1351 r1358 39 39 # might also need -lavutil 40 40 GL_INC_SPEC = -I/usr/include/GL 41 GL_LIB_SPEC = -lGL -lglut -l glui -lGLEW41 GL_LIB_SPEC = -lGL -lglut -lGLEW 42 42 IMG_DIR = ./imgLoaders 43 43 IMG_INC_SPEC = -I$(srcdir)/$(IMG_DIR) … … 53 53 R2_LIB_SPEC = $(R2_LIB) 54 54 55 GLUI_DIR = ./glui 56 GLUI_INC_SPEC = -I$(srcdir)/$(GLUI_DIR) 57 GLUI_LIB = $(GLUI_DIR)/libglui.a 58 GLUI_LIB_SPEC = $(GLUI_LIB) 59 60 55 61 EXTRA_LIBS = -lm -lpthread 56 62 RP_DIR = @RP_DIR@ … … 78 84 $(CG_LIB_SPEC) \ 79 85 $(GL_LIB_SPEC) \ 86 $(GLUI_LIB_SPEC) \ 80 87 $(FF_LIB_SPEC) \ 81 88 $(EXTRA_LIBS) \ … … 85 92 -I. \ 86 93 -I$(srcdir) \ 94 $(R2_INC_SPEC) \ 95 $(IMG_INC_SPEC) \ 96 $(MAT_INC_SPEC) \ 97 $(GLUI_INC_SPEC) \ 87 98 $(TCL_INC_SPEC) \ 88 $(RP_INC_SPEC) \89 99 $(CG_INC_SPEC) \ 90 100 $(GL_INC_SPEC) \ 91 $(R2_INC_SPEC) \ 92 $(IMG_INC_SPEC) \ 93 $(MAT_INC_SPEC) 101 $(RP_INC_SPEC) \ 94 102 95 103 CC = @CC@ … … 180 188 $(srcdir)/shaders/zincblende_volume.cg 181 189 182 all: mat_lib r2_lib img_lib tf_lib nanovis 190 .PHONY: glui newmat11 R2 imgloaders transfer-function nanovis 191 192 all: glui newmat11 R2 imgloaders transfer-function nanovis 183 193 184 194 install: install-nanovis install-resources install-shaders 185 195 186 mat_lib: $(MAT_LIB) 187 r2_lib: $(R2_LIB) 188 img_lib: $(IMG_LIB) 189 tf_lib: $(TF_LIB) 196 glui: $(GLUI_LIB) 197 newmat11: $(MAT_LIB) 198 R2: $(R2_LIB) 199 imgloaders: $(IMG_LIB) 200 transfer-function: $(TF_LIB) 201 202 $(GLUI_LIB): 203 $(MAKE) -C $(GLUI_DIR) all 190 204 191 205 $(MAT_LIB): … … 242 256 243 257 clean: 258 $(MAKE) -C $(GLUI_DIR) clean 244 259 $(MAKE) -C $(MAT_DIR) clean 245 260 $(MAKE) -C $(R2_DIR)/src clean
Note: See TracChangeset
for help on using the changeset viewer.