dnl this magic incantation is needed to prevent AC_PROG_CC from setting the
dnl default CFLAGS (something like "-g -O2") - we don't need this as add
dnl -g and -O flags ourselves below
-CFLAGS=${CFLAGS=}
+CFLAGS=${CFLAGS:=}
AC_PROG_CC
dnl is -traditional needed for correct compilations
dnl defines CXXFLAGS
dnl
dnl see CFLAGS line above
-CXXFLAGS=${CXXFLAGS=}
+CXXFLAGS=${CXXFLAGS:=}
AC_PROG_CXX
AC_LANG_RESTORE
dnl and finally the userland threads
THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
;;
- *-*-aix* )
+ *-*-darwin*)
+ dnl Darwin / Mac OS X just uses -lpthread tested below
+ THREAD_OPTS=""
+ ;;
+ *-*-aix*)
dnl AIX calls the library libpthreads - thanks IBM!
THREAD_OPTS="pthreads"
;;