Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r1f86d5e r274da98  
    637637LIBOBJS
    638638CFA_BACKEND_CC
     639ALLOCA
    639640WITH_LIBFIBRE_FALSE
    640641WITH_LIBFIBRE_TRUE
     
    19601961} # ac_fn_cxx_try_link
    19611962
     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
    19622017# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
    19632018# -------------------------------------------------------
     
    20512106} # ac_fn_c_check_header_mongrel
    20522107
    2053 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
    2054 # -------------------------------------------
    2055 # Tests whether TYPE exists after having included INCLUDES, setting cache
    2056 # variable VAR accordingly.
    2057 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 ()
    20582113{
    20592114  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    2060   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    2061 $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; }
    20622117if eval \${$3+:} false; then :
    20632118  $as_echo_n "(cached) " >&6
    20642119else
    20652120  eval "$3=no"
    2066   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
    20672126/* end confdefs.h.  */
    2068 $4
     2127$ac_includes_default
     2128             enum { N = $2 / 2 - 1 };
    20692129int
    20702130main ()
    20712131{
    2072 if (sizeof ($2))
    2073          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
    20742136  ;
    20752137  return 0;
     
    20792141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    20802142/* end confdefs.h.  */
    2081 $4
     2143$ac_includes_default
     2144                enum { N = $2 / 2 - 1 };
    20822145int
    20832146main ()
    20842147{
    2085 if (sizeof (($2)))
    2086             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
    20872153  ;
    20882154  return 0;
     
    20922158
    20932159else
    2094   eval "$3=yes"
     2160  case $ac_type in #(
     2161  int$2_t) :
     2162    eval "$3=yes" ;; #(
     2163  *) :
     2164    eval "$3=\$ac_type" ;;
     2165esac
    20952166fi
    20962167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    20972168fi
    20982169rm -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
    20992176fi
    21002177eval ac_res=\$$3
     
    21032180  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
    21042181
    2105 } # 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
    21062237cat >config.log <<_ACEOF
    21072238This file contains any messages produced by compilers while
     
    25362667
    25372668
    2538 # http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4/ax_check_compile_flag.m4
    2539 
    25402669
    25412670# don't use the default CFLAGS as they unconditonnaly add -O2
     
    50545183
    50555184
     5185        # deprecated
    50565186# These are often not installed and people miss seeing the "no", so stop the configure.
    50575187for ac_prog in 'bison -y' byacc
     
    1660416734
    1660516735
     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
    1660616767
    1660716768# Checks for libraries.
     
    1665816819
    1665916820# Checks for header files.
    16660 for ac_header in libintl.h malloc.h unistd.h
     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 :
     16837  $as_echo_n "(cached) " >&6
     16838else
     16839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     16840/* end confdefs.h.  */
     16841#include <alloca.h>
     16842int
     16843main ()
     16844{
     16845char *p = (char *) alloca (2 * sizeof (int));
     16846                          if (p) return 0;
     16847  ;
     16848  return 0;
     16849}
     16850_ACEOF
     16851if ac_fn_c_try_link "$LINENO"; then :
     16852  ac_cv_working_alloca_h=yes
     16853else
     16854  ac_cv_working_alloca_h=no
     16855fi
     16856rm -f core conftest.err conftest.$ac_objext \
     16857    conftest$ac_exeext conftest.$ac_ext
     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 :
     16870  $as_echo_n "(cached) " >&6
     16871else
     16872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     16873/* end confdefs.h.  */
     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
     16893#endif
     16894
     16895int
     16896main ()
     16897{
     16898char *p = (char *) alloca (1);
     16899                                    if (p) return 0;
     16900  ;
     16901  return 0;
     16902}
     16903_ACEOF
     16904if ac_fn_c_try_link "$LINENO"; then :
     16905  ac_cv_func_alloca_works=yes
     16906else
     16907  ac_cv_func_alloca_works=no
     16908fi
     16909rm -f core conftest.err conftest.$ac_objext \
     16910    conftest$ac_exeext conftest.$ac_ext
     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
    1666117019do :
    1666217020  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
     
    1666717025_ACEOF
    1666817026
    16669 else
    16670   echo "Error: Missing required header"; exit 1
    1667117027fi
    1667217028
     
    1667517031
    1667617032# Checks for typedefs, structures, and compiler characteristics.
    16677 ac_fn_c_check_type "$LINENO" "_Float32" "ac_cv_type__Float32" "
    16678 "
    16679 if test "x$ac_cv_type__Float32" = xyes; then :
    16680 
    16681 cat >>confdefs.h <<_ACEOF
    16682 #define HAVE__FLOAT32 1
    16683 _ACEOF
    16684 
    16685 
    16686 $as_echo "#define HAVE_KEYWORDS_FLOATXX /**/" >>confdefs.h
    16687 
    16688 fi
    16689 
    16690 
    16691 # Checks for compiler flags.
    16692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wcast-function-type" >&5
    16693 $as_echo_n "checking whether C compiler accepts -Wcast-function-type... " >&6; }
    16694 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 :
    1669517036  $as_echo_n "(cached) " >&6
    1669617037else
    16697 
    16698         m4cfa_check_save_flags=$CFLAGS
    16699         CFLAGS="$CFLAGS  -Wcast-function-type"
    16700         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     17038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1670117039/* 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;
    1670217084
    1670317085int
    1670417086main ()
    1670517087{
     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);
    1670617095
    1670717096  ;
     
    1671017099_ACEOF
    1671117100if ac_fn_c_try_compile "$LINENO"; then :
    16712   m4cfa_cv_check_cflags___Wcast_function_type=yes
    16713 else
    16714   m4cfa_cv_check_cflags___Wcast_function_type=no
     17101  ac_cv_header_stdbool_h=yes
     17102else
     17103  ac_cv_header_stdbool_h=no
    1671517104fi
    1671617105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    16717         CFLAGS=$m4cfa_check_save_flags
    16718 fi
    16719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $m4cfa_cv_check_cflags___Wcast_function_type" >&5
    16720 $as_echo "$m4cfa_cv_check_cflags___Wcast_function_type" >&6; }
    16721 if test "x$m4cfa_cv_check_cflags___Wcast_function_type" = xyes; then :
    16722 
    16723 $as_echo "#define HAVE_CAST_FUNCTION_TYPE /**/" >>confdefs.h
    16724 
    16725 else
    16726   :
    16727 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
    1672817311
    1672917312
Note: See TracChangeset for help on using the changeset viewer.