configure
changeset 7600 55afbc8f2a65
parent 7573 b76d8bfe9a2f
child 7659 ac4ce59c40e7
equal deleted inserted replaced
7599:bd0c15431dc9 7600:55afbc8f2a65
  2257 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2257 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2258 $as_echo "$ac_res" >&6; }
  2258 $as_echo "$ac_res" >&6; }
  2259   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2259   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2260 
  2260 
  2261 } # ac_fn_c_check_member
  2261 } # ac_fn_c_check_member
  2262 
       
  2263 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
       
  2264 # --------------------------------------------
       
  2265 # Tries to find the compile-time value of EXPR in a program that includes
       
  2266 # INCLUDES, setting VAR accordingly. Returns whether the value could be
       
  2267 # computed
       
  2268 ac_fn_c_compute_int ()
       
  2269 {
       
  2270   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
       
  2271   if test "$cross_compiling" = yes; then
       
  2272     # Depending upon the size, compute the lo and hi bounds.
       
  2273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
       
  2274 /* end confdefs.h.  */
       
  2275 $4
       
  2276 int
       
  2277 main ()
       
  2278 {
       
  2279 static int test_array [1 - 2 * !(($2) >= 0)];
       
  2280 test_array [0] = 0;
       
  2281 return test_array [0];
       
  2282 
       
  2283   ;
       
  2284   return 0;
       
  2285 }
       
  2286 _ACEOF
       
  2287 if ac_fn_c_try_compile "$LINENO"; then :
       
  2288   ac_lo=0 ac_mid=0
       
  2289   while :; do
       
  2290     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
       
  2291 /* end confdefs.h.  */
       
  2292 $4
       
  2293 int
       
  2294 main ()
       
  2295 {
       
  2296 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
       
  2297 test_array [0] = 0;
       
  2298 return test_array [0];
       
  2299 
       
  2300   ;
       
  2301   return 0;
       
  2302 }
       
  2303 _ACEOF
       
  2304 if ac_fn_c_try_compile "$LINENO"; then :
       
  2305   ac_hi=$ac_mid; break
       
  2306 else
       
  2307   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
       
  2308 			if test $ac_lo -le $ac_mid; then
       
  2309 			  ac_lo= ac_hi=
       
  2310 			  break
       
  2311 			fi
       
  2312 			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
       
  2313 fi
       
  2314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
       
  2315   done
       
  2316 else
       
  2317   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
       
  2318 /* end confdefs.h.  */
       
  2319 $4
       
  2320 int
       
  2321 main ()
       
  2322 {
       
  2323 static int test_array [1 - 2 * !(($2) < 0)];
       
  2324 test_array [0] = 0;
       
  2325 return test_array [0];
       
  2326 
       
  2327   ;
       
  2328   return 0;
       
  2329 }
       
  2330 _ACEOF
       
  2331 if ac_fn_c_try_compile "$LINENO"; then :
       
  2332   ac_hi=-1 ac_mid=-1
       
  2333   while :; do
       
  2334     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
       
  2335 /* end confdefs.h.  */
       
  2336 $4
       
  2337 int
       
  2338 main ()
       
  2339 {
       
  2340 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
       
  2341 test_array [0] = 0;
       
  2342 return test_array [0];
       
  2343 
       
  2344   ;
       
  2345   return 0;
       
  2346 }
       
  2347 _ACEOF
       
  2348 if ac_fn_c_try_compile "$LINENO"; then :
       
  2349   ac_lo=$ac_mid; break
       
  2350 else
       
  2351   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
       
  2352 			if test $ac_mid -le $ac_hi; then
       
  2353 			  ac_lo= ac_hi=
       
  2354 			  break
       
  2355 			fi
       
  2356 			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
       
  2357 fi
       
  2358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
       
  2359   done
       
  2360 else
       
  2361   ac_lo= ac_hi=
       
  2362 fi
       
  2363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
       
  2364 fi
       
  2365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
       
  2366 # Binary search between lo and hi bounds.
       
  2367 while test "x$ac_lo" != "x$ac_hi"; do
       
  2368   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
       
  2369   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
       
  2370 /* end confdefs.h.  */
       
  2371 $4
       
  2372 int
       
  2373 main ()
       
  2374 {
       
  2375 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
       
  2376 test_array [0] = 0;
       
  2377 return test_array [0];
       
  2378 
       
  2379   ;
       
  2380   return 0;
       
  2381 }
       
  2382 _ACEOF
       
  2383 if ac_fn_c_try_compile "$LINENO"; then :
       
  2384   ac_hi=$ac_mid
       
  2385 else
       
  2386   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
       
  2387 fi
       
  2388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
       
  2389 done
       
  2390 case $ac_lo in #((
       
  2391 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
       
  2392 '') ac_retval=1 ;;
       
  2393 esac
       
  2394   else
       
  2395     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
       
  2396 /* end confdefs.h.  */
       
  2397 $4
       
  2398 static long int longval () { return $2; }
       
  2399 static unsigned long int ulongval () { return $2; }
       
  2400 #include <stdio.h>
       
  2401 #include <stdlib.h>
       
  2402 int
       
  2403 main ()
       
  2404 {
       
  2405 
       
  2406   FILE *f = fopen ("conftest.val", "w");
       
  2407   if (! f)
       
  2408     return 1;
       
  2409   if (($2) < 0)
       
  2410     {
       
  2411       long int i = longval ();
       
  2412       if (i != ($2))
       
  2413 	return 1;
       
  2414       fprintf (f, "%ld", i);
       
  2415     }
       
  2416   else
       
  2417     {
       
  2418       unsigned long int i = ulongval ();
       
  2419       if (i != ($2))
       
  2420 	return 1;
       
  2421       fprintf (f, "%lu", i);
       
  2422     }
       
  2423   /* Do not output a trailing newline, as this causes \r\n confusion
       
  2424      on some platforms.  */
       
  2425   return ferror (f) || fclose (f) != 0;
       
  2426 
       
  2427   ;
       
  2428   return 0;
       
  2429 }
       
  2430 _ACEOF
       
  2431 if ac_fn_c_try_run "$LINENO"; then :
       
  2432   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
       
  2433 else
       
  2434   ac_retval=1
       
  2435 fi
       
  2436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
       
  2437   conftest.$ac_objext conftest.beam conftest.$ac_ext
       
  2438 rm -f conftest.val
       
  2439 
       
  2440   fi
       
  2441   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
       
  2442   as_fn_set_status $ac_retval
       
  2443 
       
  2444 } # ac_fn_c_compute_int
       
  2445 cat >config.log <<_ACEOF
  2262 cat >config.log <<_ACEOF
  2446 This file contains any messages produced by compilers while
  2263 This file contains any messages produced by compilers while
  2447 running configure, to aid debugging if configure makes a mistake.
  2264 running configure, to aid debugging if configure makes a mistake.
  2448 
  2265 
  2449 It was created by $as_me, which was
  2266 It was created by $as_me, which was
 21606 
 21423 
 21607 int
 21424 int
 21608 main ()
 21425 main ()
 21609 {
 21426 {
 21610 
 21427 
 21611          #if defined(MAC_OS_X_VERSION_MIN_REQUIRED) && MAC_OS_X_VERSION_MIN_REQUIRED <= 1020
 21428          void *handle = dlopen("", RTLD_NOW);
 21612          #error Use dlcompat for Mac OS X 10.2 compatibility
 21429          const char *loaderror = (char *) dlerror();
 21613          #endif
       
 21614 
 21430 
 21615   ;
 21431   ;
 21616   return 0;
 21432   return 0;
 21617 }
 21433 }
 21618 _ACEOF
 21434 _ACEOF