From 1ca1719471ac79f1cfd4e2e002d917f6efb90e78 Mon Sep 17 00:00:00 2001 From: paul Date: Thu, 4 Dec 2008 21:58:43 +0000 Subject: [PATCH] add --enable-ancient-libc for compiling on systems (like debian stable as of Dec 2008) that need -D_XOPEN_SOURCE=600 -D_BSD_SOURCE to access PThread r/w locks and other modern stuff git-svn-id: http://subversion.jackaudio.org/jack/trunk/jack@3162 0c269be4-1314-0410-8aa9-9f06e86f4224 --- configure.ac | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 801e9ae..21ad563 100644 --- a/configure.ac +++ b/configure.ac @@ -251,6 +251,15 @@ AM_CONDITIONAL(USE_POSIX_SHM, $USE_POSIX_SHM) JACK_CORE_CFLAGS="-I\$(top_srcdir)/config -I\$(top_srcdir) \ -I\$(top_srcdir) -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall" +JACK_LIBC_HELPER_FLAGS= +AC_ARG_ENABLE(ancient_libc, + AC_HELP_STRING([--enable-ancient-libc],[Add required CFLAGS for libc versions too old to expose PThread R/W Lock and other modern code]), + JACK_LIBC_HELPER_FLAGS="-D_XOPEN_SOURCE=600 -D_BSD_SOURCE", + JACK_LIBC_HELPER_FLAGS="" + ) + +JACK_CORE_CFLAGS="$JACK_CORE_CFLAGS $JACK_LIBC_HELPER_FLAGS" + AC_ARG_WITH(cpu-target, [ --with-cpu-target=cpu-type explicit, overriding argument for gcc -march= flag]) @@ -265,7 +274,7 @@ dnl ---------------------------------------------------------------------- if test "$target_cpu" = "powerpc64" ; then AC_ARG_ENABLE(cell, - [ --enable-cell enable Cell BE support (default=no)],, + AC_HELP_STRING([--enable-cell],[enable Cell BE support (default=no)]),, [ enable_cell=no ]) if test "x$enable_cell" = xyes; then @@ -283,7 +292,7 @@ if test "$target_cpu" = "powerpc" -o "$target_cpu" = "powerpc64" ; then ############################ AC_ARG_ENABLE(altivec, - [ --enable-altivec enable Altivec support (default=auto)],, + AC_HELP_STRING([--enable-altivec],[enable Altivec support (default=auto)]),, [ enable_altivec=yes ]) if test "x$enable_altivec" = xyes; then -- 2.11.4.GIT