ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/configure
(Generate patch)

Comparing ircd-hybrid/trunk/configure (file contents):
Revision 2347 by michael, Wed Jul 3 19:09:32 2013 UTC vs.
Revision 2382 by michael, Sat Jul 6 16:31:07 2013 UTC

# Line 1 | Line 1
1   #! /bin/sh
2 < # From configure.ac Id: configure.ac 2334 2013-06-23 17:32:44Z michael .
2 > # From configure.ac Id: configure.ac 2347 2013-07-03 19:09:32Z michael .
3   # Guess values for system-dependent variables and create Makefiles.
4   # Generated by GNU Autoconf 2.69 for ircd-hybrid TRUNK.
5   #
# Line 1943 | Line 1943 | $as_echo "$ac_res" >&6; }
1943  
1944   } # ac_fn_c_check_type
1945  
1946 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1947 # --------------------------------------------
1948 # Tries to find the compile-time value of EXPR in a program that includes
1949 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1950 # computed
1951 ac_fn_c_compute_int ()
1952 {
1953  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954  if test "$cross_compiling" = yes; then
1955    # Depending upon the size, compute the lo and hi bounds.
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h.  */
1958 $4
1959 int
1960 main ()
1961 {
1962 static int test_array [1 - 2 * !(($2) >= 0)];
1963 test_array [0] = 0;
1964 return test_array [0];
1965
1966  ;
1967  return 0;
1968 }
1969 _ACEOF
1970 if ac_fn_c_try_compile "$LINENO"; then :
1971  ac_lo=0 ac_mid=0
1972  while :; do
1973    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h.  */
1975 $4
1976 int
1977 main ()
1978 {
1979 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1980 test_array [0] = 0;
1981 return test_array [0];
1982
1983  ;
1984  return 0;
1985 }
1986 _ACEOF
1987 if ac_fn_c_try_compile "$LINENO"; then :
1988  ac_hi=$ac_mid; break
1989 else
1990  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1991                        if test $ac_lo -le $ac_mid; then
1992                          ac_lo= ac_hi=
1993                          break
1994                        fi
1995                        as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1996 fi
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998  done
1999 else
2000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h.  */
2002 $4
2003 int
2004 main ()
2005 {
2006 static int test_array [1 - 2 * !(($2) < 0)];
2007 test_array [0] = 0;
2008 return test_array [0];
2009
2010  ;
2011  return 0;
2012 }
2013 _ACEOF
2014 if ac_fn_c_try_compile "$LINENO"; then :
2015  ac_hi=-1 ac_mid=-1
2016  while :; do
2017    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h.  */
2019 $4
2020 int
2021 main ()
2022 {
2023 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2024 test_array [0] = 0;
2025 return test_array [0];
2026
2027  ;
2028  return 0;
2029 }
2030 _ACEOF
2031 if ac_fn_c_try_compile "$LINENO"; then :
2032  ac_lo=$ac_mid; break
2033 else
2034  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2035                        if test $ac_mid -le $ac_hi; then
2036                          ac_lo= ac_hi=
2037                          break
2038                        fi
2039                        as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2040 fi
2041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042  done
2043 else
2044  ac_lo= ac_hi=
2045 fi
2046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 fi
2048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049 # Binary search between lo and hi bounds.
2050 while test "x$ac_lo" != "x$ac_hi"; do
2051  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h.  */
2054 $4
2055 int
2056 main ()
2057 {
2058 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2059 test_array [0] = 0;
2060 return test_array [0];
2061
2062  ;
2063  return 0;
2064 }
2065 _ACEOF
2066 if ac_fn_c_try_compile "$LINENO"; then :
2067  ac_hi=$ac_mid
2068 else
2069  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2070 fi
2071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 done
2073 case $ac_lo in #((
2074 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2075 '') ac_retval=1 ;;
2076 esac
2077  else
2078    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h.  */
2080 $4
2081 static long int longval () { return $2; }
2082 static unsigned long int ulongval () { return $2; }
2083 #include <stdio.h>
2084 #include <stdlib.h>
2085 int
2086 main ()
2087 {
2088
2089  FILE *f = fopen ("conftest.val", "w");
2090  if (! f)
2091    return 1;
2092  if (($2) < 0)
2093    {
2094      long int i = longval ();
2095      if (i != ($2))
2096        return 1;
2097      fprintf (f, "%ld", i);
2098    }
2099  else
2100    {
2101      unsigned long int i = ulongval ();
2102      if (i != ($2))
2103        return 1;
2104      fprintf (f, "%lu", i);
2105    }
2106  /* Do not output a trailing newline, as this causes \r\n confusion
2107     on some platforms.  */
2108  return ferror (f) || fclose (f) != 0;
2109
2110  ;
2111  return 0;
2112 }
2113 _ACEOF
2114 if ac_fn_c_try_run "$LINENO"; then :
2115  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2116 else
2117  ac_retval=1
2118 fi
2119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2120  conftest.$ac_objext conftest.beam conftest.$ac_ext
2121 rm -f conftest.val
2122
2123  fi
2124  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2125  as_fn_set_status $ac_retval
2126
2127 } # ac_fn_c_compute_int
2128
1946   # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1947   # ----------------------------------------------------
1948   # Tries to find if the field MEMBER exists in type AGGR, after including
# Line 13353 | Line 13170 | eval "LTDLOPEN=\"$libname_spec\""
13170  
13171   LIBTOOL="$LIBTOOL --silent"
13172  
13356 # The cast to long int works around a bug in the HP C Compiler
13357 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13358 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13359 # This bug is HP SR number 8606223364.
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13361 $as_echo_n "checking size of short... " >&6; }
13362 if ${ac_cv_sizeof_short+:} false; then :
13363  $as_echo_n "(cached) " >&6
13364 else
13365  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
13366
13367 else
13368  if test "$ac_cv_type_short" = yes; then
13369     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13371 as_fn_error 77 "cannot compute sizeof (short)
13372 See \`config.log' for more details" "$LINENO" 5; }
13373   else
13374     ac_cv_sizeof_short=0
13375   fi
13376 fi
13377
13378 fi
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13380 $as_echo "$ac_cv_sizeof_short" >&6; }
13381
13382
13383
13384 cat >>confdefs.h <<_ACEOF
13385 #define SIZEOF_SHORT $ac_cv_sizeof_short
13386 _ACEOF
13387
13388
13389 # The cast to long int works around a bug in the HP C Compiler
13390 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13391 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13392 # This bug is HP SR number 8606223364.
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13394 $as_echo_n "checking size of int... " >&6; }
13395 if ${ac_cv_sizeof_int+:} false; then :
13396  $as_echo_n "(cached) " >&6
13397 else
13398  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
13399
13400 else
13401  if test "$ac_cv_type_int" = yes; then
13402     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13404 as_fn_error 77 "cannot compute sizeof (int)
13405 See \`config.log' for more details" "$LINENO" 5; }
13406   else
13407     ac_cv_sizeof_int=0
13408   fi
13409 fi
13410
13411 fi
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13413 $as_echo "$ac_cv_sizeof_int" >&6; }
13414
13415
13416
13417 cat >>confdefs.h <<_ACEOF
13418 #define SIZEOF_INT $ac_cv_sizeof_int
13419 _ACEOF
13420
13421
13422 # The cast to long int works around a bug in the HP C Compiler
13423 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13424 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13425 # This bug is HP SR number 8606223364.
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13427 $as_echo_n "checking size of long... " >&6; }
13428 if ${ac_cv_sizeof_long+:} false; then :
13429  $as_echo_n "(cached) " >&6
13430 else
13431  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
13432
13433 else
13434  if test "$ac_cv_type_long" = yes; then
13435     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13437 as_fn_error 77 "cannot compute sizeof (long)
13438 See \`config.log' for more details" "$LINENO" 5; }
13439   else
13440     ac_cv_sizeof_long=0
13441   fi
13442 fi
13443
13444 fi
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13446 $as_echo "$ac_cv_sizeof_long" >&6; }
13447
13448
13449
13450 cat >>confdefs.h <<_ACEOF
13451 #define SIZEOF_LONG $ac_cv_sizeof_long
13452 _ACEOF
13453
13454
13455 # The cast to long int works around a bug in the HP C Compiler
13456 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13457 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13458 # This bug is HP SR number 8606223364.
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13460 $as_echo_n "checking size of void *... " >&6; }
13461 if ${ac_cv_sizeof_void_p+:} false; then :
13462  $as_echo_n "(cached) " >&6
13463 else
13464  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
13465
13466 else
13467  if test "$ac_cv_type_void_p" = yes; then
13468     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13470 as_fn_error 77 "cannot compute sizeof (void *)
13471 See \`config.log' for more details" "$LINENO" 5; }
13472   else
13473     ac_cv_sizeof_void_p=0
13474   fi
13475 fi
13476
13477 fi
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13479 $as_echo "$ac_cv_sizeof_void_p" >&6; }
13480
13481
13482
13483 cat >>confdefs.h <<_ACEOF
13484 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13485 _ACEOF
13486
13487
13488 # The cast to long int works around a bug in the HP C Compiler
13489 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13490 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13491 # This bug is HP SR number 8606223364.
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5
13493 $as_echo_n "checking size of int64_t... " >&6; }
13494 if ${ac_cv_sizeof_int64_t+:} false; then :
13495  $as_echo_n "(cached) " >&6
13496 else
13497  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t"        "$ac_includes_default"; then :
13498
13499 else
13500  if test "$ac_cv_type_int64_t" = yes; then
13501     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13503 as_fn_error 77 "cannot compute sizeof (int64_t)
13504 See \`config.log' for more details" "$LINENO" 5; }
13505   else
13506     ac_cv_sizeof_int64_t=0
13507   fi
13508 fi
13509
13510 fi
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5
13512 $as_echo "$ac_cv_sizeof_int64_t" >&6; }
13513
13514
13515
13516 cat >>confdefs.h <<_ACEOF
13517 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
13518 _ACEOF
13519
13520
13521 # The cast to long int works around a bug in the HP C Compiler
13522 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13523 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13524 # This bug is HP SR number 8606223364.
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
13526 $as_echo_n "checking size of long long... " >&6; }
13527 if ${ac_cv_sizeof_long_long+:} false; then :
13528  $as_echo_n "(cached) " >&6
13529 else
13530  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
13531
13532 else
13533  if test "$ac_cv_type_long_long" = yes; then
13534     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13536 as_fn_error 77 "cannot compute sizeof (long long)
13537 See \`config.log' for more details" "$LINENO" 5; }
13538   else
13539     ac_cv_sizeof_long_long=0
13540   fi
13541 fi
13542
13543 fi
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
13545 $as_echo "$ac_cv_sizeof_long_long" >&6; }
13546
13547
13548
13549 cat >>confdefs.h <<_ACEOF
13550 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13551 _ACEOF
13552
13553
13554
13555 if test "$ac_cv_sizeof_int" = 2 ; then
13556  ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
13557 if test "x$ac_cv_type_int16_t" = xyes; then :
13558
13559 else
13560
13561 cat >>confdefs.h <<_ACEOF
13562 #define int16_t int
13563 _ACEOF
13564
13565 fi
13566
13567  ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
13568 if test "x$ac_cv_type_uint16_t" = xyes; then :
13569
13570 else
13571
13572 cat >>confdefs.h <<_ACEOF
13573 #define uint16_t unsigned int
13574 _ACEOF
13575
13576 fi
13577
13578 elif test "$ac_cv_sizeof_short" = 2 ; then
13579  ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
13580 if test "x$ac_cv_type_int16_t" = xyes; then :
13581
13582 else
13583
13584 cat >>confdefs.h <<_ACEOF
13585 #define int16_t short
13586 _ACEOF
13587
13588 fi
13589
13590  ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
13591 if test "x$ac_cv_type_uint16_t" = xyes; then :
13592
13593 else
13594
13595 cat >>confdefs.h <<_ACEOF
13596 #define uint16_t unsigned short
13597 _ACEOF
13598
13599 fi
13600
13601 else
13602  as_fn_error $? "Cannot find a type with size of 16 bits" "$LINENO" 5
13603 fi
13604 if test "$ac_cv_sizeof_int" = 4 ; then
13605  ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
13606 if test "x$ac_cv_type_int32_t" = xyes; then :
13607
13608 else
13609
13610 cat >>confdefs.h <<_ACEOF
13611 #define int32_t int
13612 _ACEOF
13613
13614 fi
13615
13616  ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
13617 if test "x$ac_cv_type_uint32_t" = xyes; then :
13618
13619 else
13620
13621 cat >>confdefs.h <<_ACEOF
13622 #define uint32_t unsigned int
13623 _ACEOF
13624
13625 fi
13626
13627 elif test "$ac_cv_sizeof_short" = 4 ; then
13628  ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
13629 if test "x$ac_cv_type_int32_t" = xyes; then :
13630
13631 else
13632
13633 cat >>confdefs.h <<_ACEOF
13634 #define int32_t short
13635 _ACEOF
13636
13637 fi
13638
13639  ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
13640 if test "x$ac_cv_type_uint32_t" = xyes; then :
13641
13642 else
13643
13644 cat >>confdefs.h <<_ACEOF
13645 #define uint32_t unsigned short
13646 _ACEOF
13647
13648 fi
13649
13650 elif test "$ac_cv_sizeof_long" = 4 ; then
13651  ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
13652 if test "x$ac_cv_type_int32_t" = xyes; then :
13653
13654 else
13655
13656 cat >>confdefs.h <<_ACEOF
13657 #define int32_t long
13658 _ACEOF
13659
13660 fi
13661
13662  ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
13663 if test "x$ac_cv_type_uint32_t" = xyes; then :
13664
13665 else
13666
13667 cat >>confdefs.h <<_ACEOF
13668 #define uint32_t unsigned long
13669 _ACEOF
13670
13671 fi
13672
13673 else
13674  as_fn_error $? "Cannot find a type with size of 32 bits" "$LINENO" 5
13675 fi
13676 if test "$ac_cv_sizeof_int64_t" = 8 ; then
13677  ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
13678 if test "x$ac_cv_type_int64_t" = xyes; then :
13679
13680 fi
13681
13682  ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
13683 if test "x$ac_cv_type_uint64_t" = xyes; then :
13684
13685 fi
13686
13687 elif test "$ac_cv_sizeof_long_long" = 8 ; then
13688  ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
13689 if test "x$ac_cv_type_int64_t" = xyes; then :
13690
13691 else
13692
13693 cat >>confdefs.h <<_ACEOF
13694 #define int64_t long long
13695 _ACEOF
13696
13697 fi
13698
13699  ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
13700 if test "x$ac_cv_type_uint64_t" = xyes; then :
13701
13702 else
13703
13704 cat >>confdefs.h <<_ACEOF
13705 #define uint64_t unsigned long long
13706 _ACEOF
13707
13708 fi
13709
13710 else
13711  as_fn_error $? "Cannot find a type with size of 64 bits" "$LINENO" 5
13712 fi
13713
13714
13173   # Checks for libraries.
13174  
13175    ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines