mirror of
https://gitlab.xiph.org/xiph/ezstream.git
synced 2024-11-03 04:17:18 -05:00
Autoconf 2.61 has a nice macro AC_USE_SYSTEM_EXTENSIONS. Use it, depend on
autoconf-2.61 for it and remove the annoying _GNU_SOURCE and _XOPEN_SOURCE ... dung. Autoconf takes care of this, and even checks for more useful stuff for us. git-svn-id: https://svn.xiph.org/trunk/ezstream@12537 0101bb08-14d6-0310-b084-bc0e0c8e3800
This commit is contained in:
parent
aab6c56ae2
commit
d196074741
12
configure.in
12
configure.in
@ -1,11 +1,12 @@
|
||||
dnl INITIALIZATION
|
||||
|
||||
AC_INIT([ezstream], [0.3.0], [grmo@users.sourceforge.net])
|
||||
AC_PREREQ(2.54)
|
||||
AC_PREREQ(2.61)
|
||||
AC_CONFIG_SRCDIR(src/ezstream.c)
|
||||
AM_INIT_AUTOMAKE
|
||||
AM_CONFIG_HEADER(config.h)
|
||||
AM_MAINTAINER_MODE
|
||||
AC_USE_SYSTEM_EXTENSIONS
|
||||
|
||||
|
||||
dnl SETUP
|
||||
@ -30,18 +31,9 @@ if test -z "$GCC"; then
|
||||
PROFILE="-g -p"
|
||||
;;
|
||||
esac
|
||||
|
||||
case "$host" in
|
||||
*openbsd* | *irix*)
|
||||
;;
|
||||
*) AC_DEFINE([_XOPEN_SOURCE], 600, [Define if you have POSIX and XPG specifications])
|
||||
;;
|
||||
esac
|
||||
|
||||
else
|
||||
XIPH_CPPFLAGS="-Wall -ffast-math -fsigned-char"
|
||||
PROFILE="-pg -g"
|
||||
AC_DEFINE([_GNU_SOURCE], 1, [Define to include GNU extensions to POSIX])
|
||||
fi
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user