This should fix OpenBSD for good.
Thanks Wilbern Cobb and Thorsten Glaser.
This commit is contained in:
@@ -25,7 +25,7 @@ AC_CANONICAL_SYSTEM
|
||||
case "$target" in
|
||||
*-*-linux*)
|
||||
CFLAGS="$CFLAGS -D__LINUX__"
|
||||
NFLAGS="$NFLAGS -D__LINUX__ -f elf"
|
||||
NFLAGS="$NFLAGS -D__LINUX__ -f elf -DELF"
|
||||
;;
|
||||
*-*-*openbsd*)
|
||||
CFLAGS="$CFLAGS -D__LINUX__ -D__FreeBSD__"
|
||||
@@ -33,7 +33,7 @@ case "$target" in
|
||||
;;
|
||||
*-*-*bsd*)
|
||||
CFLAGS="$CFLAGS -D__LINUX__ -D__FreeBSD__"
|
||||
NFLAGS="$NFLAGS -D__LINUX__ -D__FreeBSD__ -f elf"
|
||||
NFLAGS="$NFLAGS -D__LINUX__ -D__FreeBSD__ -DELF -f elf"
|
||||
;;
|
||||
*-*-cygwin* | *-*-*ming*)
|
||||
CFLAGS="$CFLAGS -D__LINUX__"
|
||||
@@ -78,7 +78,7 @@ else
|
||||
AC_MSG_ERROR(zlib is required)
|
||||
fi
|
||||
|
||||
AC_ARG_WITH(opengl,[ --without-opengl Build without OpenGL support ],with_opengl=no)
|
||||
AC_ARG_WITH(opengl,[ --without-opengl Build without OpenGL support ],with_opengl=$withval)
|
||||
AC_MSG_CHECKING(for OpenGL support)
|
||||
if test x$with_opengl != xno; then
|
||||
with_opengl=no
|
||||
@@ -100,7 +100,7 @@ else
|
||||
AC_MSG_RESULT(disabled by user)
|
||||
fi
|
||||
|
||||
AC_ARG_ENABLE(png, [ --without-png Build without PNG screenshot support ],with_png=no)
|
||||
AC_ARG_WITH(png, [ --without-png Build without PNG screenshot support ],with_png=$withval)
|
||||
AC_MSG_CHECKING(for libPNG support)
|
||||
if test x$with_png != xno; then
|
||||
with_png=no
|
||||
|
||||
Reference in New Issue
Block a user