* restore LIBS when iconv library is not found
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@45986
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
[[
+#include <stdlib.h>
#include <iconv.h>
]],
[[
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
[[
+#include <stdlib.h>
#include <iconv.h>
]],
[[
count = iconv(ic, NULL, NULL, NULL, NULL);
]])],
[have_iconv="yes"],
- [have_iconv="no"])
+ [
+ have_iconv="no"
+ LIBS=${LIBS_save}
+ ])
AC_MSG_RESULT([${have_iconv}])
fi
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
[[
+#include <stdlib.h>
#include <iconv.h>
]],
[[
size_t count = iconv(ic, NULL, NULL, NULL, NULL);
]])],
[have_iconv="yes"],
- [have_iconv="no"])
- LDFLAGS="${LDFLAGS_save}"
+ [
+ have_iconv="no"
+ LIBS=${LIBS_save}
+ ])
AC_MSG_RESULT([${have_iconv}])
fi