mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Check for libkvm
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@16980 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8ad301ac43
commit
3f3ea84192
4 changed files with 123 additions and 41 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2003-06-21 Adam Fedor <fedor@gnu.org>
|
||||||
|
|
||||||
|
* configure.ac: Check for libkvm.
|
||||||
|
* configure, Headers/gnustep/base/config.h.in: Regen.
|
||||||
|
|
||||||
2003-06-20 Adam Fedor <fedor@gnu.org>
|
2003-06-20 Adam Fedor <fedor@gnu.org>
|
||||||
|
|
||||||
* Documentation/Makefile.postamble (after-clean): Remove Base
|
* Documentation/Makefile.postamble (after-clean): Remove Base
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
/* Define if SO_REUSEADDR is broken on this system */
|
/* Define if SO_REUSEADDR is broken on this system */
|
||||||
#undef BROKEN_SO_REUSEADDR
|
#undef BROKEN_SO_REUSEADDR
|
||||||
|
|
||||||
/* Define if your system terminates the final argument in /proc/$$/cmdline */
|
/* Define if your system terminates the final argument in /proc/28891/cmdline */
|
||||||
#undef CMDLINE_TERMINATED
|
#undef CMDLINE_TERMINATED
|
||||||
|
|
||||||
/* Define if constructors are automatically loaded */
|
/* Define if constructors are automatically loaded */
|
||||||
|
@ -28,9 +28,6 @@
|
||||||
*/
|
*/
|
||||||
#undef HAVE_DIRENT_H
|
#undef HAVE_DIRENT_H
|
||||||
|
|
||||||
/* Define if you have dladdr */
|
|
||||||
#undef HAVE_DLADDR
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <float.h> header file. */
|
/* Define to 1 if you have the <float.h> header file. */
|
||||||
#undef HAVE_FLOAT_H
|
#undef HAVE_FLOAT_H
|
||||||
|
|
||||||
|
@ -82,12 +79,18 @@
|
||||||
/* Define to 1 if you have the <libc.h> header file. */
|
/* Define to 1 if you have the <libc.h> header file. */
|
||||||
#undef HAVE_LIBC_H
|
#undef HAVE_LIBC_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `dl' library (-ldl). */
|
||||||
|
#undef HAVE_LIBDL
|
||||||
|
|
||||||
/* Define to 1 if you have the `giconv' library (-lgiconv). */
|
/* Define to 1 if you have the `giconv' library (-lgiconv). */
|
||||||
#undef HAVE_LIBGICONV
|
#undef HAVE_LIBGICONV
|
||||||
|
|
||||||
/* Define to 1 if you have the `iconv' library (-liconv). */
|
/* Define to 1 if you have the `iconv' library (-liconv). */
|
||||||
#undef HAVE_LIBICONV
|
#undef HAVE_LIBICONV
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `kvm' library (-lkvm). */
|
||||||
|
#undef HAVE_LIBKVM
|
||||||
|
|
||||||
/* Define to 1 if you have the `m' library (-lm). */
|
/* Define to 1 if you have the `m' library (-lm). */
|
||||||
#undef HAVE_LIBM
|
#undef HAVE_LIBM
|
||||||
|
|
||||||
|
|
117
configure
vendored
117
configure
vendored
|
@ -10546,6 +10546,53 @@ fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
#--------------------------------------------------------------------
|
||||||
|
# Check if short and int values need to be word aligned
|
||||||
|
#--------------------------------------------------------------------
|
||||||
|
echo "$as_me:$LINENO: checking short/int needs to be word aligned" >&5
|
||||||
|
echo $ECHO_N "checking short/int needs to be word aligned... $ECHO_C" >&6
|
||||||
|
if test "$cross_compiling" = yes; then
|
||||||
|
NEED_WORD_ALIGNMENT=1
|
||||||
|
else
|
||||||
|
cat >conftest.$ac_ext <<_ACEOF
|
||||||
|
#line $LINENO "configure"
|
||||||
|
#include "confdefs.h"
|
||||||
|
#include "$srcdir/config/config.align.c"
|
||||||
|
_ACEOF
|
||||||
|
rm -f conftest$ac_exeext
|
||||||
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
||||||
|
(eval $ac_link) 2>&5
|
||||||
|
ac_status=$?
|
||||||
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
||||||
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||||
|
(eval $ac_try) 2>&5
|
||||||
|
ac_status=$?
|
||||||
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); }; }; then
|
||||||
|
NEED_WORD_ALIGNMENT=0
|
||||||
|
else
|
||||||
|
echo "$as_me: program exited with status $ac_status" >&5
|
||||||
|
echo "$as_me: failed program was:" >&5
|
||||||
|
cat conftest.$ac_ext >&5
|
||||||
|
( exit $ac_status )
|
||||||
|
NEED_WORD_ALIGNMENT=1
|
||||||
|
fi
|
||||||
|
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
||||||
|
fi
|
||||||
|
|
||||||
|
cat >>confdefs.h <<_ACEOF
|
||||||
|
#define NEED_WORD_ALIGNMENT $NEED_WORD_ALIGNMENT
|
||||||
|
_ACEOF
|
||||||
|
|
||||||
|
if test $NEED_WORD_ALIGNMENT = 1; then
|
||||||
|
echo "$as_me:$LINENO: result: yes" >&5
|
||||||
|
echo "${ECHO_T}yes" >&6
|
||||||
|
else
|
||||||
|
echo "$as_me:$LINENO: result: no" >&5
|
||||||
|
echo "${ECHO_T}no" >&6
|
||||||
|
fi
|
||||||
|
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
# This function needed by NSString for handling of %@ printf directive.
|
# This function needed by NSString for handling of %@ printf directive.
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
|
@ -10929,52 +10976,74 @@ echo "${ECHO_T}no" >&6
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
# Check if short and int values need to be word aligned
|
# If /proc doesn't work, try kvm (on FreeBSD, for instance)
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
echo "$as_me:$LINENO: checking short/int needs to be word aligned" >&5
|
|
||||||
echo $ECHO_N "checking short/int needs to be word aligned... $ECHO_C" >&6
|
echo "$as_me:$LINENO: checking for kvm_getenvv in -lkvm" >&5
|
||||||
if test "$cross_compiling" = yes; then
|
echo $ECHO_N "checking for kvm_getenvv in -lkvm... $ECHO_C" >&6
|
||||||
NEED_WORD_ALIGNMENT=1
|
if test "${ac_cv_lib_kvm_kvm_getenvv+set}" = set; then
|
||||||
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||||
else
|
else
|
||||||
cat >conftest.$ac_ext <<_ACEOF
|
ac_check_lib_save_LIBS=$LIBS
|
||||||
|
LIBS="-lkvm $LIBS"
|
||||||
|
cat >conftest.$ac_ext <<_ACEOF
|
||||||
#line $LINENO "configure"
|
#line $LINENO "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
#include "$srcdir/config/config.align.c"
|
|
||||||
|
/* Override any gcc2 internal prototype to avoid an error. */
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C"
|
||||||
|
#endif
|
||||||
|
/* We use char because int might match the return type of a gcc2
|
||||||
|
builtin and then its argument prototype would still apply. */
|
||||||
|
char kvm_getenvv ();
|
||||||
|
#ifdef F77_DUMMY_MAIN
|
||||||
|
# ifdef __cplusplus
|
||||||
|
extern "C"
|
||||||
|
# endif
|
||||||
|
int F77_DUMMY_MAIN() { return 1; }
|
||||||
|
#endif
|
||||||
|
int
|
||||||
|
main ()
|
||||||
|
{
|
||||||
|
kvm_getenvv ();
|
||||||
|
;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
_ACEOF
|
_ACEOF
|
||||||
rm -f conftest$ac_exeext
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
||||||
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
||||||
(eval $ac_link) 2>&5
|
(eval $ac_link) 2>&5
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
(exit $ac_status); } &&
|
||||||
|
{ ac_try='test -s conftest$ac_exeext'
|
||||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||||
(eval $ac_try) 2>&5
|
(eval $ac_try) 2>&5
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
(exit $ac_status); }; }; then
|
(exit $ac_status); }; }; then
|
||||||
NEED_WORD_ALIGNMENT=0
|
ac_cv_lib_kvm_kvm_getenvv=yes
|
||||||
else
|
else
|
||||||
echo "$as_me: program exited with status $ac_status" >&5
|
echo "$as_me: failed program was:" >&5
|
||||||
echo "$as_me: failed program was:" >&5
|
|
||||||
cat conftest.$ac_ext >&5
|
cat conftest.$ac_ext >&5
|
||||||
( exit $ac_status )
|
ac_cv_lib_kvm_kvm_getenvv=no
|
||||||
NEED_WORD_ALIGNMENT=1
|
|
||||||
fi
|
fi
|
||||||
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
|
||||||
|
LIBS=$ac_check_lib_save_LIBS
|
||||||
fi
|
fi
|
||||||
|
echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_getenvv" >&5
|
||||||
cat >>confdefs.h <<_ACEOF
|
echo "${ECHO_T}$ac_cv_lib_kvm_kvm_getenvv" >&6
|
||||||
#define NEED_WORD_ALIGNMENT $NEED_WORD_ALIGNMENT
|
if test $ac_cv_lib_kvm_kvm_getenvv = yes; then
|
||||||
|
cat >>confdefs.h <<_ACEOF
|
||||||
|
#define HAVE_LIBKVM 1
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
|
||||||
if test $NEED_WORD_ALIGNMENT = 1; then
|
LIBS="-lkvm $LIBS"
|
||||||
echo "$as_me:$LINENO: result: yes" >&5
|
|
||||||
echo "${ECHO_T}yes" >&6
|
|
||||||
else
|
|
||||||
echo "$as_me:$LINENO: result: no" >&5
|
|
||||||
echo "${ECHO_T}no" >&6
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
# Include redefinition of main () only if needed.
|
# Include redefinition of main () only if needed.
|
||||||
# On some systems - force redefinition to be used as the /proc stuff
|
# On some systems - force redefinition to be used as the /proc stuff
|
||||||
|
|
31
configure.ac
31
configure.ac
|
@ -703,6 +703,22 @@ else
|
||||||
fi
|
fi
|
||||||
AC_CHECK_HEADERS(wchar.h)
|
AC_CHECK_HEADERS(wchar.h)
|
||||||
|
|
||||||
|
#--------------------------------------------------------------------
|
||||||
|
# Check if short and int values need to be word aligned
|
||||||
|
#--------------------------------------------------------------------
|
||||||
|
AC_MSG_CHECKING(short/int needs to be word aligned)
|
||||||
|
AC_TRY_RUN([#include "$srcdir/config/config.align.c"],
|
||||||
|
NEED_WORD_ALIGNMENT=0,
|
||||||
|
NEED_WORD_ALIGNMENT=1,
|
||||||
|
NEED_WORD_ALIGNMENT=1)
|
||||||
|
AC_DEFINE_UNQUOTED(NEED_WORD_ALIGNMENT, $NEED_WORD_ALIGNMENT,
|
||||||
|
[Define if your system needs to have short/int word aligned])
|
||||||
|
if test $NEED_WORD_ALIGNMENT = 1; then
|
||||||
|
AC_MSG_RESULT(yes)
|
||||||
|
else
|
||||||
|
AC_MSG_RESULT(no)
|
||||||
|
fi
|
||||||
|
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
# This function needed by NSString for handling of %@ printf directive.
|
# This function needed by NSString for handling of %@ printf directive.
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
|
@ -770,20 +786,9 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
# Check if short and int values need to be word aligned
|
# If /proc doesn't work, try kvm (on FreeBSD, for instance)
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
AC_MSG_CHECKING(short/int needs to be word aligned)
|
AC_CHECK_LIB(kvm, kvm_getenvv)
|
||||||
AC_TRY_RUN([#include "$srcdir/config/config.align.c"],
|
|
||||||
NEED_WORD_ALIGNMENT=0,
|
|
||||||
NEED_WORD_ALIGNMENT=1,
|
|
||||||
NEED_WORD_ALIGNMENT=1)
|
|
||||||
AC_DEFINE_UNQUOTED(NEED_WORD_ALIGNMENT, $NEED_WORD_ALIGNMENT,
|
|
||||||
[Define if your system needs to have short/int word aligned])
|
|
||||||
if test $NEED_WORD_ALIGNMENT = 1; then
|
|
||||||
AC_MSG_RESULT(yes)
|
|
||||||
else
|
|
||||||
AC_MSG_RESULT(no)
|
|
||||||
fi
|
|
||||||
|
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
# Include redefinition of main () only if needed.
|
# Include redefinition of main () only if needed.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue