2001-08-28 06:14:20 +02:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
|
AC_INIT(fpga.c)
|
|
|
|
|
|
|
|
|
|
dnl Checks for programs.
|
|
|
|
|
AC_PROG_CC
|
|
|
|
|
|
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
|
|
|
|
|
|
AC_CANONICAL_HOST
|
|
|
|
|
# $host
|
|
|
|
|
|
|
|
|
|
AC_CYGWIN
|
|
|
|
|
AC_SUBST(CYGWIN)
|
2001-09-15 20:27:04 +02:00
|
|
|
AC_CHECK_HEADERS(malloc.h)
|
2001-08-28 06:14:20 +02:00
|
|
|
|
2001-11-17 18:57:58 +01:00
|
|
|
# Darwin requires -no-cpp-precomp
|
|
|
|
|
case "${host}" in
|
|
|
|
|
*-*-darwin*)
|
2003-04-23 07:27:44 +02:00
|
|
|
CPPFLAGS="-no-cpp-precomp $CPPFLAGS"
|
|
|
|
|
CFLAGS="-no-cpp-precomp $CFLAGS"
|
2001-11-17 18:57:58 +01:00
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
|
2001-08-28 06:14:20 +02:00
|
|
|
# The -fPIC flag is used to tell the compiler to make position
|
|
|
|
|
# independent code. It is needed when making shared objects.
|
|
|
|
|
|
|
|
|
|
AC_MSG_CHECKING("for flag to make position independent code")
|
|
|
|
|
PICFLAG=-fPIC
|
|
|
|
|
case "${host}" in
|
|
|
|
|
|
|
|
|
|
*-*-cygwin*)
|
|
|
|
|
PICFLAG=
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
*-*-hpux*)
|
|
|
|
|
PICFLAG=+z
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
esac
|
|
|
|
|
AC_SUBST(PICFLAG)
|
|
|
|
|
AC_MSG_RESULT($PICFLAG)
|
|
|
|
|
|
|
|
|
|
AC_MSG_CHECKING("for shared library link flag")
|
|
|
|
|
shared=-shared
|
|
|
|
|
case "${host}" in
|
|
|
|
|
|
|
|
|
|
*-*-cygwin*)
|
2001-09-30 18:45:10 +02:00
|
|
|
shared="-shared -Wl,--enable-auto-image-base"
|
2001-08-28 06:14:20 +02:00
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
*-*-hpux*)
|
|
|
|
|
shared="-b"
|
|
|
|
|
;;
|
|
|
|
|
|
2001-11-17 18:57:58 +01:00
|
|
|
*-*-darwin1.[0123])
|
|
|
|
|
shared="-bundle -undefined suppress"
|
2001-11-04 06:03:21 +01:00
|
|
|
;;
|
2001-09-20 05:21:01 +02:00
|
|
|
|
|
|
|
|
*-*-darwin*)
|
2001-11-17 18:57:58 +01:00
|
|
|
shared="-bundle -undefined suppress -flat_namespace"
|
2001-09-20 05:21:01 +02:00
|
|
|
;;
|
|
|
|
|
|
2001-08-28 06:14:20 +02:00
|
|
|
esac
|
|
|
|
|
AC_SUBST(shared)
|
|
|
|
|
AC_MSG_RESULT($shared)
|
|
|
|
|
|
|
|
|
|
AC_MSG_CHECKING("for Win32")
|
|
|
|
|
WIN32=no
|
|
|
|
|
case "${host}" in
|
|
|
|
|
|
|
|
|
|
*-*-cygwin*)
|
|
|
|
|
WIN32=yes
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
AC_SUBST(WIN32)
|
|
|
|
|
AC_MSG_RESULT($WIN32)
|
|
|
|
|
|
2004-01-15 21:52:32 +01:00
|
|
|
AX_CPP_IDENT
|
2002-08-12 02:27:10 +02:00
|
|
|
|
2001-08-28 06:14:20 +02:00
|
|
|
AC_OUTPUT(Makefile)
|