Commit e6dab3d7 authored by Eric Anholt's avatar Eric Anholt

Fix the AC_TRY_RUN for sys/linker.h which had no hope due to lacking a

    main() to instead use a nice AC_CHECK_HEADERS that works. Also, fix the
    nearby SYSV IPC check which was lacking an argument and giving bogus
    results (it's "AC_TRY_LINK(includes, main, yes, no)").
parent eef16c36
2005-12-30 Eric Anholt <anholt@FreeBSD.org>
* configure.ac:
Fix the AC_TRY_RUN for sys/linker.h which had no hope due to lacking a
main() to instead use a nice AC_CHECK_HEADERS that works. Also, fix
the nearby SYSV IPC check which was lacking an argument and giving
bogus results (it's "AC_TRY_LINK(includes, main, yes, no)").
2005-12-29 Eric Anholt <anholt@FreeBSD.org>
* include/dix-config.h.in:
......
......@@ -132,20 +132,17 @@ if test "x$ac_cv_mtrr_h" = xyes; then
fi
dnl FreeBSD kldload support (sys/linker.h)
AC_CACHE_CHECK([for sys/linker.h],
ac_cv_sys_linker_h,
[AC_TRY_RUN([
#include <sys/param.h>
#include <sys/linker.h>
],
AC_CHECK_HEADERS([sys/linker.h],
[ac_cv_sys_linker_h=yes],
[ac_cv_sys_linker_h=no])])
[ac_cv_sys_linker_h=no],
[#include <sys/param.h>])
AM_CONDITIONAL(FREEBSD_KLDLOAD, [test "x$ac_cv_sys_linker_h" = xyes])
AC_CACHE_CHECK([for SYSV IPC],
ac_cv_sysv_ipc,
[AC_TRY_LINK([
#include <sys/shm.h>
],[
int main () {
int id;
id = shmget(IPC_PRIVATE, 512, SHM_W | SHM_R);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment