Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r3fcbdca1 r274da98  
    637637LIBOBJS
    638638CFA_BACKEND_CC
    639 WITH_LIBTCMALLOC_FALSE
    640 WITH_LIBTCMALLOC_TRUE
    641 WITH_LIBPROFILER_FALSE
    642 WITH_LIBPROFILER_TRUE
     639ALLOCA
    643640WITH_LIBFIBRE_FALSE
    644641WITH_LIBFIBRE_TRUE
     
    19641961} # ac_fn_cxx_try_link
    19651962
     1963# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
     1964# -------------------------------------------
     1965# Tests whether TYPE exists after having included INCLUDES, setting cache
     1966# variable VAR accordingly.
     1967ac_fn_c_check_type ()
     1968{
     1969  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     1970  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
     1971$as_echo_n "checking for $2... " >&6; }
     1972if eval \${$3+:} false; then :
     1973  $as_echo_n "(cached) " >&6
     1974else
     1975  eval "$3=no"
     1976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1977/* end confdefs.h.  */
     1978$4
     1979int
     1980main ()
     1981{
     1982if (sizeof ($2))
     1983         return 0;
     1984  ;
     1985  return 0;
     1986}
     1987_ACEOF
     1988if ac_fn_c_try_compile "$LINENO"; then :
     1989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     1990/* end confdefs.h.  */
     1991$4
     1992int
     1993main ()
     1994{
     1995if (sizeof (($2)))
     1996            return 0;
     1997  ;
     1998  return 0;
     1999}
     2000_ACEOF
     2001if ac_fn_c_try_compile "$LINENO"; then :
     2002
     2003else
     2004  eval "$3=yes"
     2005fi
     2006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     2007fi
     2008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     2009fi
     2010eval ac_res=\$$3
     2011               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     2012$as_echo "$ac_res" >&6; }
     2013  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     2014
     2015} # ac_fn_c_check_type
     2016
    19662017# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
    19672018# -------------------------------------------------------
     
    20552106} # ac_fn_c_check_header_mongrel
    20562107
    2057 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
    2058 # -------------------------------------------
    2059 # Tests whether TYPE exists after having included INCLUDES, setting cache
    2060 # variable VAR accordingly.
    2061 ac_fn_c_check_type ()
     2108# ac_fn_c_find_intX_t LINENO BITS VAR
     2109# -----------------------------------
     2110# Finds a signed integer type with width BITS, setting cache variable VAR
     2111# accordingly.
     2112ac_fn_c_find_intX_t ()
    20622113{
    20632114  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    2064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    2065 $as_echo_n "checking for $2... " >&6; }
     2115  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
     2116$as_echo_n "checking for int$2_t... " >&6; }
    20662117if eval \${$3+:} false; then :
    20672118  $as_echo_n "(cached) " >&6
    20682119else
    20692120  eval "$3=no"
    2070   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2121     # Order is important - never check a type that is potentially smaller
     2122     # than half of the expected target width.
     2123     for ac_type in int$2_t 'int' 'long int' \
     2124         'long long int' 'short int' 'signed char'; do
     2125       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    20712126/* end confdefs.h.  */
    2072 $4
     2127$ac_includes_default
     2128             enum { N = $2 / 2 - 1 };
    20732129int
    20742130main ()
    20752131{
    2076 if (sizeof ($2))
    2077          return 0;
     2132static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
     2133test_array [0] = 0;
     2134return test_array [0];
     2135
    20782136  ;
    20792137  return 0;
     
    20832141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    20842142/* end confdefs.h.  */
    2085 $4
     2143$ac_includes_default
     2144                enum { N = $2 / 2 - 1 };
    20862145int
    20872146main ()
    20882147{
    2089 if (sizeof (($2)))
    2090             return 0;
     2148static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
     2149                 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
     2150test_array [0] = 0;
     2151return test_array [0];
     2152
    20912153  ;
    20922154  return 0;
     
    20962158
    20972159else
    2098   eval "$3=yes"
     2160  case $ac_type in #(
     2161  int$2_t) :
     2162    eval "$3=yes" ;; #(
     2163  *) :
     2164    eval "$3=\$ac_type" ;;
     2165esac
    20992166fi
    21002167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    21012168fi
    21022169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     2170       if eval test \"x\$"$3"\" = x"no"; then :
     2171
     2172else
     2173  break
     2174fi
     2175     done
    21032176fi
    21042177eval ac_res=\$$3
     
    21072180  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    21082181
    2109 } # ac_fn_c_check_type
     2182} # ac_fn_c_find_intX_t
     2183
     2184# ac_fn_c_find_uintX_t LINENO BITS VAR
     2185# ------------------------------------
     2186# Finds an unsigned integer type with width BITS, setting cache variable VAR
     2187# accordingly.
     2188ac_fn_c_find_uintX_t ()
     2189{
     2190  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     2191  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
     2192$as_echo_n "checking for uint$2_t... " >&6; }
     2193if eval \${$3+:} false; then :
     2194  $as_echo_n "(cached) " >&6
     2195else
     2196  eval "$3=no"
     2197     # Order is important - never check a type that is potentially smaller
     2198     # than half of the expected target width.
     2199     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
     2200         'unsigned long long int' 'unsigned short int' 'unsigned char'; do
     2201       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     2202/* end confdefs.h.  */
     2203$ac_includes_default
     2204int
     2205main ()
     2206{
     2207static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
     2208test_array [0] = 0;
     2209return test_array [0];
     2210
     2211  ;
     2212  return 0;
     2213}
     2214_ACEOF
     2215if ac_fn_c_try_compile "$LINENO"; then :
     2216  case $ac_type in #(
     2217  uint$2_t) :
     2218    eval "$3=yes" ;; #(
     2219  *) :
     2220    eval "$3=\$ac_type" ;;
     2221esac
     2222fi
     2223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     2224       if eval test \"x\$"$3"\" = x"no"; then :
     2225
     2226else
     2227  break
     2228fi
     2229     done
     2230fi
     2231eval ac_res=\$$3
     2232               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
     2233$as_echo "$ac_res" >&6; }
     2234  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
     2235
     2236} # ac_fn_c_find_uintX_t
    21102237cat >config.log <<_ACEOF
    21112238This file contains any messages produced by compilers while
     
    25402667
    25412668
    2542 # http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4/ax_check_compile_flag.m4
    2543 
    25442669
    25452670# don't use the default CFLAGS as they unconditonnaly add -O2
     
    34023527                "debug") ;;
    34033528                "nolib") ;;
    3404                 "profile") ;;
    34053529                *)
    34063530                        >&2 echo "Configuration must be 'debug', 'nodebug' or 'nolib'"
     
    50595183
    50605184
     5185        # deprecated
    50615186# These are often not installed and people miss seeing the "no", so stop the configure.
    50625187for ac_prog in 'bison -y' byacc
     
    1660916734
    1661016735
     16736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
     16737$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
     16738set x ${MAKE-make}
     16739ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
     16740if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
     16741  $as_echo_n "(cached) " >&6
     16742else
     16743  cat >conftest.make <<\_ACEOF
     16744SHELL = /bin/sh
     16745all:
     16746        @echo '@@@%%%=$(MAKE)=@@@%%%'
     16747_ACEOF
     16748# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
     16749case `${MAKE-make} -f conftest.make 2>/dev/null` in
     16750  *@@@%%%=?*=@@@%%%*)
     16751    eval ac_cv_prog_make_${ac_make}_set=yes;;
     16752  *)
     16753    eval ac_cv_prog_make_${ac_make}_set=no;;
     16754esac
     16755rm -f conftest.make
     16756fi
     16757if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
     16758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     16759$as_echo "yes" >&6; }
     16760  SET_MAKE=
     16761else
     16762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     16763$as_echo "no" >&6; }
     16764  SET_MAKE="MAKE=${MAKE-make}"
     16765fi
     16766
    1661116767
    1661216768# Checks for libraries.
     
    1666216818
    1666316819
    16664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ProfilingIsEnabledForAllThreads in -lprofiler" >&5
    16665 $as_echo_n "checking for ProfilingIsEnabledForAllThreads in -lprofiler... " >&6; }
    16666 if ${ac_cv_lib_profiler_ProfilingIsEnabledForAllThreads+:} false; then :
     16820# Checks for header files.
     16821ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
     16822if test "x$ac_cv_type_size_t" = xyes; then :
     16823
     16824else
     16825
     16826cat >>confdefs.h <<_ACEOF
     16827#define size_t unsigned int
     16828_ACEOF
     16829
     16830fi
     16831
     16832# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
     16833# for constant arguments.  Useless!
     16834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
     16835$as_echo_n "checking for working alloca.h... " >&6; }
     16836if ${ac_cv_working_alloca_h+:} false; then :
    1666716837  $as_echo_n "(cached) " >&6
    1666816838else
    16669   ac_check_lib_save_LIBS=$LIBS
    16670 LIBS="-lprofiler  $LIBS"
    16671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     16839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1667216840/* end confdefs.h.  */
    16673 
    16674 /* Override any GCC internal prototype to avoid an error.
    16675    Use char because int might match the return type of a GCC
    16676    builtin and then its argument prototype would still apply.  */
    16677 #ifdef __cplusplus
    16678 extern "C"
    16679 #endif
    16680 char ProfilingIsEnabledForAllThreads ();
     16841#include <alloca.h>
    1668116842int
    1668216843main ()
    1668316844{
    16684 return ProfilingIsEnabledForAllThreads ();
     16845char *p = (char *) alloca (2 * sizeof (int));
     16846                          if (p) return 0;
    1668516847  ;
    1668616848  return 0;
     
    1668816850_ACEOF
    1668916851if ac_fn_c_try_link "$LINENO"; then :
    16690   ac_cv_lib_profiler_ProfilingIsEnabledForAllThreads=yes
    16691 else
    16692   ac_cv_lib_profiler_ProfilingIsEnabledForAllThreads=no
     16852  ac_cv_working_alloca_h=yes
     16853else
     16854  ac_cv_working_alloca_h=no
    1669316855fi
    1669416856rm -f core conftest.err conftest.$ac_objext \
    1669516857    conftest$ac_exeext conftest.$ac_ext
    16696 LIBS=$ac_check_lib_save_LIBS
    16697 fi
    16698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_profiler_ProfilingIsEnabledForAllThreads" >&5
    16699 $as_echo "$ac_cv_lib_profiler_ProfilingIsEnabledForAllThreads" >&6; }
    16700 if test "x$ac_cv_lib_profiler_ProfilingIsEnabledForAllThreads" = xyes; then :
    16701   HAVE_LIBPROFILER=1
    16702 else
    16703   HAVE_LIBPROFILER=0
    16704 fi
    16705 
    16706  if test "$HAVE_LIBPROFILER" -eq 1; then
    16707   WITH_LIBPROFILER_TRUE=
    16708   WITH_LIBPROFILER_FALSE='#'
    16709 else
    16710   WITH_LIBPROFILER_TRUE='#'
    16711   WITH_LIBPROFILER_FALSE=
    16712 fi
    16713 
    16714 
    16715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -ltcmalloc" >&5
    16716 $as_echo_n "checking for malloc in -ltcmalloc... " >&6; }
    16717 if ${ac_cv_lib_tcmalloc_malloc+:} false; then :
     16858fi
     16859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
     16860$as_echo "$ac_cv_working_alloca_h" >&6; }
     16861if test $ac_cv_working_alloca_h = yes; then
     16862
     16863$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
     16864
     16865fi
     16866
     16867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
     16868$as_echo_n "checking for alloca... " >&6; }
     16869if ${ac_cv_func_alloca_works+:} false; then :
    1671816870  $as_echo_n "(cached) " >&6
    1671916871else
    16720   ac_check_lib_save_LIBS=$LIBS
    16721 LIBS="-ltcmalloc  $LIBS"
    16722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     16872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1672316873/* end confdefs.h.  */
    16724 
    16725 /* Override any GCC internal prototype to avoid an error.
    16726    Use char because int might match the return type of a GCC
    16727    builtin and then its argument prototype would still apply.  */
    16728 #ifdef __cplusplus
    16729 extern "C"
     16874#ifdef __GNUC__
     16875# define alloca __builtin_alloca
     16876#else
     16877# ifdef _MSC_VER
     16878#  include <malloc.h>
     16879#  define alloca _alloca
     16880# else
     16881#  ifdef HAVE_ALLOCA_H
     16882#   include <alloca.h>
     16883#  else
     16884#   ifdef _AIX
     16885 #pragma alloca
     16886#   else
     16887#    ifndef alloca /* predefined by HP cc +Olibcalls */
     16888void *alloca (size_t);
     16889#    endif
     16890#   endif
     16891#  endif
     16892# endif
    1673016893#endif
    16731 char malloc ();
     16894
    1673216895int
    1673316896main ()
    1673416897{
    16735 return malloc ();
     16898char *p = (char *) alloca (1);
     16899                                    if (p) return 0;
    1673616900  ;
    1673716901  return 0;
     
    1673916903_ACEOF
    1674016904if ac_fn_c_try_link "$LINENO"; then :
    16741   ac_cv_lib_tcmalloc_malloc=yes
    16742 else
    16743   ac_cv_lib_tcmalloc_malloc=no
     16905  ac_cv_func_alloca_works=yes
     16906else
     16907  ac_cv_func_alloca_works=no
    1674416908fi
    1674516909rm -f core conftest.err conftest.$ac_objext \
    1674616910    conftest$ac_exeext conftest.$ac_ext
    16747 LIBS=$ac_check_lib_save_LIBS
    16748 fi
    16749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tcmalloc_malloc" >&5
    16750 $as_echo "$ac_cv_lib_tcmalloc_malloc" >&6; }
    16751 if test "x$ac_cv_lib_tcmalloc_malloc" = xyes; then :
    16752   HAVE_LIBTCMALLOC=1
    16753 else
    16754   HAVE_LIBTCMALLOC=0
    16755 fi
    16756 
    16757  if test "$HAVE_LIBTCMALLOC" -eq 1; then
    16758   WITH_LIBTCMALLOC_TRUE=
    16759   WITH_LIBTCMALLOC_FALSE='#'
    16760 else
    16761   WITH_LIBTCMALLOC_TRUE='#'
    16762   WITH_LIBTCMALLOC_FALSE=
    16763 fi
    16764 
    16765 
    16766 # Checks for header files.
    16767 for ac_header in libintl.h malloc.h unistd.h
     16911fi
     16912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
     16913$as_echo "$ac_cv_func_alloca_works" >&6; }
     16914
     16915if test $ac_cv_func_alloca_works = yes; then
     16916
     16917$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
     16918
     16919else
     16920  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
     16921# that cause trouble.  Some versions do not even contain alloca or
     16922# contain a buggy version.  If you still want to use their alloca,
     16923# use ar to extract alloca.o from them instead of compiling alloca.c.
     16924
     16925ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
     16926
     16927$as_echo "#define C_ALLOCA 1" >>confdefs.h
     16928
     16929
     16930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
     16931$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
     16932if ${ac_cv_os_cray+:} false; then :
     16933  $as_echo_n "(cached) " >&6
     16934else
     16935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     16936/* end confdefs.h.  */
     16937#if defined CRAY && ! defined CRAY2
     16938webecray
     16939#else
     16940wenotbecray
     16941#endif
     16942
     16943_ACEOF
     16944if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     16945  $EGREP "webecray" >/dev/null 2>&1; then :
     16946  ac_cv_os_cray=yes
     16947else
     16948  ac_cv_os_cray=no
     16949fi
     16950rm -f conftest*
     16951
     16952fi
     16953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
     16954$as_echo "$ac_cv_os_cray" >&6; }
     16955if test $ac_cv_os_cray = yes; then
     16956  for ac_func in _getb67 GETB67 getb67; do
     16957    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     16958ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
     16959if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
     16960
     16961cat >>confdefs.h <<_ACEOF
     16962#define CRAY_STACKSEG_END $ac_func
     16963_ACEOF
     16964
     16965    break
     16966fi
     16967
     16968  done
     16969fi
     16970
     16971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
     16972$as_echo_n "checking stack direction for C alloca... " >&6; }
     16973if ${ac_cv_c_stack_direction+:} false; then :
     16974  $as_echo_n "(cached) " >&6
     16975else
     16976  if test "$cross_compiling" = yes; then :
     16977  ac_cv_c_stack_direction=0
     16978else
     16979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     16980/* end confdefs.h.  */
     16981$ac_includes_default
     16982int
     16983find_stack_direction (int *addr, int depth)
     16984{
     16985  int dir, dummy = 0;
     16986  if (! addr)
     16987    addr = &dummy;
     16988  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
     16989  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
     16990  return dir + dummy;
     16991}
     16992
     16993int
     16994main (int argc, char **argv)
     16995{
     16996  return find_stack_direction (0, argc + !argv + 20) < 0;
     16997}
     16998_ACEOF
     16999if ac_fn_c_try_run "$LINENO"; then :
     17000  ac_cv_c_stack_direction=1
     17001else
     17002  ac_cv_c_stack_direction=-1
     17003fi
     17004rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
     17005  conftest.$ac_objext conftest.beam conftest.$ac_ext
     17006fi
     17007
     17008fi
     17009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
     17010$as_echo "$ac_cv_c_stack_direction" >&6; }
     17011cat >>confdefs.h <<_ACEOF
     17012#define STACK_DIRECTION $ac_cv_c_stack_direction
     17013_ACEOF
     17014
     17015
     17016fi
     17017
     17018for ac_header in fenv.h float.h inttypes.h libintl.h limits.h malloc.h stddef.h stdlib.h string.h unistd.h
    1676817019do :
    1676917020  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    1677417025_ACEOF
    1677517026
    16776 else
    16777   echo "Error: Missing required header"; exit 1
    1677817027fi
    1677917028
     
    1678217031
    1678317032# Checks for typedefs, structures, and compiler characteristics.
    16784 ac_fn_c_check_type "$LINENO" "_Float32" "ac_cv_type__Float32" "
    16785 "
    16786 if test "x$ac_cv_type__Float32" = xyes; then :
    16787 
    16788 cat >>confdefs.h <<_ACEOF
    16789 #define HAVE__FLOAT32 1
    16790 _ACEOF
    16791 
    16792 
    16793 $as_echo "#define HAVE_KEYWORDS_FLOATXX /**/" >>confdefs.h
    16794 
    16795 fi
    16796 
    16797 
    16798 # Checks for compiler flags.
    16799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wcast-function-type" >&5
    16800 $as_echo_n "checking whether C compiler accepts -Wcast-function-type... " >&6; }
    16801 if ${m4cfa_cv_check_cflags___Wcast_function_type+:} false; then :
     17033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
     17034$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
     17035if ${ac_cv_header_stdbool_h+:} false; then :
    1680217036  $as_echo_n "(cached) " >&6
    1680317037else
    16804 
    16805         m4cfa_check_save_flags=$CFLAGS
    16806         CFLAGS="$CFLAGS  -Wcast-function-type"
    16807         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     17038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1680817039/* end confdefs.h.  */
     17040
     17041             #include <stdbool.h>
     17042             #ifndef bool
     17043              "error: bool is not defined"
     17044             #endif
     17045             #ifndef false
     17046              "error: false is not defined"
     17047             #endif
     17048             #if false
     17049              "error: false is not 0"
     17050             #endif
     17051             #ifndef true
     17052              "error: true is not defined"
     17053             #endif
     17054             #if true != 1
     17055              "error: true is not 1"
     17056             #endif
     17057             #ifndef __bool_true_false_are_defined
     17058              "error: __bool_true_false_are_defined is not defined"
     17059             #endif
     17060
     17061             struct s { _Bool s: 1; _Bool t; } s;
     17062
     17063             char a[true == 1 ? 1 : -1];
     17064             char b[false == 0 ? 1 : -1];
     17065             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
     17066             char d[(bool) 0.5 == true ? 1 : -1];
     17067             /* See body of main program for 'e'.  */
     17068             char f[(_Bool) 0.0 == false ? 1 : -1];
     17069             char g[true];
     17070             char h[sizeof (_Bool)];
     17071             char i[sizeof s.t];
     17072             enum { j = false, k = true, l = false * true, m = true * 256 };
     17073             /* The following fails for
     17074                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
     17075             _Bool n[m];
     17076             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
     17077             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
     17078             /* Catch a bug in an HP-UX C compiler.  See
     17079                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
     17080                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
     17081              */
     17082             _Bool q = true;
     17083             _Bool *pq = &q;
    1680917084
    1681017085int
    1681117086main ()
    1681217087{
     17088
     17089             bool e = &s;
     17090             *pq |= q;
     17091             *pq |= ! q;
     17092             /* Refer to every declared value, to avoid compiler optimizations.  */
     17093             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
     17094                     + !m + !n + !o + !p + !q + !pq);
    1681317095
    1681417096  ;
     
    1681717099_ACEOF
    1681817100if ac_fn_c_try_compile "$LINENO"; then :
    16819   m4cfa_cv_check_cflags___Wcast_function_type=yes
    16820 else
    16821   m4cfa_cv_check_cflags___Wcast_function_type=no
     17101  ac_cv_header_stdbool_h=yes
     17102else
     17103  ac_cv_header_stdbool_h=no
    1682217104fi
    1682317105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    16824         CFLAGS=$m4cfa_check_save_flags
    16825 fi
    16826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $m4cfa_cv_check_cflags___Wcast_function_type" >&5
    16827 $as_echo "$m4cfa_cv_check_cflags___Wcast_function_type" >&6; }
    16828 if test "x$m4cfa_cv_check_cflags___Wcast_function_type" = xyes; then :
    16829 
    16830 $as_echo "#define HAVE_CAST_FUNCTION_TYPE /**/" >>confdefs.h
    16831 
    16832 else
    16833   :
    16834 fi
     17106fi
     17107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
     17108$as_echo "$ac_cv_header_stdbool_h" >&6; }
     17109   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
     17110if test "x$ac_cv_type__Bool" = xyes; then :
     17111
     17112cat >>confdefs.h <<_ACEOF
     17113#define HAVE__BOOL 1
     17114_ACEOF
     17115
     17116
     17117fi
     17118
     17119
     17120if test $ac_cv_header_stdbool_h = yes; then
     17121
     17122$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
     17123
     17124fi
     17125
     17126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
     17127$as_echo_n "checking for inline... " >&6; }
     17128if ${ac_cv_c_inline+:} false; then :
     17129  $as_echo_n "(cached) " >&6
     17130else
     17131  ac_cv_c_inline=no
     17132for ac_kw in inline __inline__ __inline; do
     17133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     17134/* end confdefs.h.  */
     17135#ifndef __cplusplus
     17136typedef int foo_t;
     17137static $ac_kw foo_t static_foo () {return 0; }
     17138$ac_kw foo_t foo () {return 0; }
     17139#endif
     17140
     17141_ACEOF
     17142if ac_fn_c_try_compile "$LINENO"; then :
     17143  ac_cv_c_inline=$ac_kw
     17144fi
     17145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     17146  test "$ac_cv_c_inline" != no && break
     17147done
     17148
     17149fi
     17150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
     17151$as_echo "$ac_cv_c_inline" >&6; }
     17152
     17153case $ac_cv_c_inline in
     17154  inline | yes) ;;
     17155  *)
     17156    case $ac_cv_c_inline in
     17157      no) ac_val=;;
     17158      *) ac_val=$ac_cv_c_inline;;
     17159    esac
     17160    cat >>confdefs.h <<_ACEOF
     17161#ifndef __cplusplus
     17162#define inline $ac_val
     17163#endif
     17164_ACEOF
     17165    ;;
     17166esac
     17167
     17168ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
     17169case $ac_cv_c_int16_t in #(
     17170  no|yes) ;; #(
     17171  *)
     17172
     17173cat >>confdefs.h <<_ACEOF
     17174#define int16_t $ac_cv_c_int16_t
     17175_ACEOF
     17176;;
     17177esac
     17178
     17179ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
     17180case $ac_cv_c_int32_t in #(
     17181  no|yes) ;; #(
     17182  *)
     17183
     17184cat >>confdefs.h <<_ACEOF
     17185#define int32_t $ac_cv_c_int32_t
     17186_ACEOF
     17187;;
     17188esac
     17189
     17190ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
     17191case $ac_cv_c_int8_t in #(
     17192  no|yes) ;; #(
     17193  *)
     17194
     17195cat >>confdefs.h <<_ACEOF
     17196#define int8_t $ac_cv_c_int8_t
     17197_ACEOF
     17198;;
     17199esac
     17200
     17201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
     17202$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
     17203if ${ac_cv_c_restrict+:} false; then :
     17204  $as_echo_n "(cached) " >&6
     17205else
     17206  ac_cv_c_restrict=no
     17207   # The order here caters to the fact that C++ does not require restrict.
     17208   for ac_kw in __restrict __restrict__ _Restrict restrict; do
     17209     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     17210/* end confdefs.h.  */
     17211typedef int * int_ptr;
     17212        int foo (int_ptr $ac_kw ip) {
     17213        return ip[0];
     17214       }
     17215int
     17216main ()
     17217{
     17218int s[1];
     17219        int * $ac_kw t = s;
     17220        t[0] = 0;
     17221        return foo(t)
     17222  ;
     17223  return 0;
     17224}
     17225_ACEOF
     17226if ac_fn_c_try_compile "$LINENO"; then :
     17227  ac_cv_c_restrict=$ac_kw
     17228fi
     17229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     17230     test "$ac_cv_c_restrict" != no && break
     17231   done
     17232
     17233fi
     17234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
     17235$as_echo "$ac_cv_c_restrict" >&6; }
     17236
     17237 case $ac_cv_c_restrict in
     17238   restrict) ;;
     17239   no) $as_echo "#define restrict /**/" >>confdefs.h
     17240 ;;
     17241   *)  cat >>confdefs.h <<_ACEOF
     17242#define restrict $ac_cv_c_restrict
     17243_ACEOF
     17244 ;;
     17245 esac
     17246
     17247ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
     17248if test "x$ac_cv_type_size_t" = xyes; then :
     17249
     17250else
     17251
     17252cat >>confdefs.h <<_ACEOF
     17253#define size_t unsigned int
     17254_ACEOF
     17255
     17256fi
     17257
     17258ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
     17259case $ac_cv_c_uint16_t in #(
     17260  no|yes) ;; #(
     17261  *)
     17262
     17263
     17264cat >>confdefs.h <<_ACEOF
     17265#define uint16_t $ac_cv_c_uint16_t
     17266_ACEOF
     17267;;
     17268  esac
     17269
     17270ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
     17271case $ac_cv_c_uint32_t in #(
     17272  no|yes) ;; #(
     17273  *)
     17274
     17275$as_echo "#define _UINT32_T 1" >>confdefs.h
     17276
     17277
     17278cat >>confdefs.h <<_ACEOF
     17279#define uint32_t $ac_cv_c_uint32_t
     17280_ACEOF
     17281;;
     17282  esac
     17283
     17284ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
     17285case $ac_cv_c_uint8_t in #(
     17286  no|yes) ;; #(
     17287  *)
     17288
     17289$as_echo "#define _UINT8_T 1" >>confdefs.h
     17290
     17291
     17292cat >>confdefs.h <<_ACEOF
     17293#define uint8_t $ac_cv_c_uint8_t
     17294_ACEOF
     17295;;
     17296  esac
     17297
     17298
     17299# Checks for library functions.
     17300for ac_func in memset putenv strchr strtol
     17301do :
     17302  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     17303ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
     17304if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
     17305  cat >>confdefs.h <<_ACEOF
     17306#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     17307_ACEOF
     17308
     17309fi
     17310done
    1683517311
    1683617312
     
    1684517321
    1684617322#==============================================================================
    16847 ac_config_files="$ac_config_files Makefile driver/Makefile src/Makefile benchmark/Makefile tests/Makefile longrun_tests/Makefile tools/Makefile tools/prettyprinter/Makefile"
     17323ac_config_files="$ac_config_files Makefile driver/Makefile src/Makefile benchmark/Makefile tests/Makefile tests/preempt_longrun/Makefile tools/Makefile tools/prettyprinter/Makefile"
    1684817324
    1684917325
     
    1699617472if test -z "${WITH_LIBFIBRE_TRUE}" && test -z "${WITH_LIBFIBRE_FALSE}"; then
    1699717473  as_fn_error $? "conditional \"WITH_LIBFIBRE\" was never defined.
    16998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
    16999 fi
    17000 if test -z "${WITH_LIBPROFILER_TRUE}" && test -z "${WITH_LIBPROFILER_FALSE}"; then
    17001   as_fn_error $? "conditional \"WITH_LIBPROFILER\" was never defined.
    17002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
    17003 fi
    17004 if test -z "${WITH_LIBTCMALLOC_TRUE}" && test -z "${WITH_LIBTCMALLOC_FALSE}"; then
    17005   as_fn_error $? "conditional \"WITH_LIBTCMALLOC\" was never defined.
    1700617474Usually this means the macro was only invoked conditionally." "$LINENO" 5
    1700717475fi
     
    1799118459    "benchmark/Makefile") CONFIG_FILES="$CONFIG_FILES benchmark/Makefile" ;;
    1799218460    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
    17993     "longrun_tests/Makefile") CONFIG_FILES="$CONFIG_FILES longrun_tests/Makefile" ;;
     18461    "tests/preempt_longrun/Makefile") CONFIG_FILES="$CONFIG_FILES tests/preempt_longrun/Makefile" ;;
    1799418462    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
    1799518463    "tools/prettyprinter/Makefile") CONFIG_FILES="$CONFIG_FILES tools/prettyprinter/Makefile" ;;
Note: See TracChangeset for help on using the changeset viewer.