/[path-sandbox]/trunk/configure.ac
Gentoo

Diff of /trunk/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 215 Revision 216
72else 72else
73 AC_MSG_RESULT([off_t]) 73 AC_MSG_RESULT([off_t])
74 AC_DEFINE([TRUNCATE_T], [off_t], [truncate arg type]) 74 AC_DEFINE([TRUNCATE_T], [off_t], [truncate arg type])
75fi 75fi
76 76
77dnl Check if we have glibc or clone
78AC_MSG_CHECKING([for glibc])
79AC_TRY_COMPILE([
80#include <features.h>
81], [
82#if !defined(__GLIBC__)
83# error no glibc
84#endif
85
86int main (void)
87{
88 return 0;
89}
90], [have_glibc="yes"], [have_glibc="no"])
91if test x"$have_glibc" = xyes ; then
92 AC_MSG_RESULT([yes])
93else
94 AC_MSG_RESULT([no])
95fi
96AM_CONDITIONAL([HAVE_GLIBC], [test x"$have_glibc" = xyes])
97
77dnl we need to handle symbols differently based upon their version, 98dnl we need to handle symbols differently based upon their version,
78dnl but we have to know which symbols the libc supports first 99dnl but we have to know which symbols the libc supports first
79AC_MSG_CHECKING([libc path]) 100AC_MSG_CHECKING([libc path])
80echo "int main(void) { return 0; }" > libctest.c 101echo "int main(void) { return 0; }" > libctest.c
81$CC -Wall -o libctest libctest.c 102$CC -Wall -o libctest libctest.c
107 [enable building for multilib setups (default=disabled)]), 128 [enable building for multilib setups (default=disabled)]),
108 [enable_multilib="$enableval"], 129 [enable_multilib="$enableval"],
109 [enable_multilib="no"] 130 [enable_multilib="no"]
110) 131)
111 132
112if test "$enable_multilib"x != xno ; then 133if test x"$enable_multilib" != xno ; then
113 AC_DEFINE_UNQUOTED([SB_HAVE_MULTILIB], [1], [have multilib enabled system]) 134 AC_DEFINE_UNQUOTED([SB_HAVE_MULTILIB], [1], [have multilib enabled system])
114fi 135fi
115 136
116AC_OUTPUT([ 137AC_OUTPUT([
117 Makefile 138 Makefile

Legend:
Removed from v.215  
changed lines
  Added in v.216

  ViewVC Help
Powered by ViewVC 1.1.20