forked from enlightenment/efl
m4: Save cflags before restoring them
If we do CFLAGS=${SAVE_CFLAGS}, it is important to do SAVE_CFLAGS=${CFLAGS} first...
This commit is contained in:
parent
90bbc21d02
commit
9a9222e3fc
|
@ -50,6 +50,7 @@ dnl check if the compiler supports POSIX threads
|
||||||
if test "x${_efl_have_posix_threads}" = "xyes" ; then
|
if test "x${_efl_have_posix_threads}" = "xyes" ; then
|
||||||
|
|
||||||
SAVE_LIBS=${LIBS}
|
SAVE_LIBS=${LIBS}
|
||||||
|
SAVE_CFLAGS=${CFLAGS}
|
||||||
LIBS="${LIBS} ${LIBMULTITHREAD}"
|
LIBS="${LIBS} ${LIBMULTITHREAD}"
|
||||||
AC_LINK_IFELSE(
|
AC_LINK_IFELSE(
|
||||||
[AC_LANG_PROGRAM([[
|
[AC_LANG_PROGRAM([[
|
||||||
|
@ -101,6 +102,7 @@ efl_have_posix_threads_spinlock="no"
|
||||||
|
|
||||||
if test "x${_efl_have_posix_threads}" = "xyes" ; then
|
if test "x${_efl_have_posix_threads}" = "xyes" ; then
|
||||||
SAVE_LIBS=${LIBS}
|
SAVE_LIBS=${LIBS}
|
||||||
|
SAVE_CFLAGS=${CFLAGS}
|
||||||
LIBS="${LIBS} ${LIBMULTITHREAD}"
|
LIBS="${LIBS} ${LIBMULTITHREAD}"
|
||||||
AC_LINK_IFELSE(
|
AC_LINK_IFELSE(
|
||||||
[AC_LANG_PROGRAM([[
|
[AC_LANG_PROGRAM([[
|
||||||
|
|
Loading…
Reference in New Issue