summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1999-06-29 19:50:50 +0000
committerWerner Koch <wk@gnupg.org>1999-06-29 19:50:50 +0000
commitbba3511df4c794edc15fabfab76ce1f172c159f9 (patch)
treeeb48f7140893c9ffd13f7e85abc4596a6498d972 /acinclude.m4
parentb82ec51ba3b31641b777fccd9ea5f01cefa0ea91 (diff)
downloadlibgcrypt-bba3511df4c794edc15fabfab76ce1f172c159f9.tar.gz
See ChangeLog: Tue Jun 29 21:44:25 CEST 1999 Werner Koch
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m423
1 files changed, 17 insertions, 6 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 4e1645b8..54299533 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -560,11 +560,20 @@ AC_CHECK_TOOL(AS, as, false)
# GNUPG_SYS_SYMBOL_UNDERSCORE - does the compiler prefix global symbols
# with an underscore?
AC_DEFUN(GNUPG_SYS_SYMBOL_UNDERSCORE,
-[if test "$cross_compiling" = yes; then
- AC_MSG_CHECKING([for _ prefix in compiled symbols])
- ac_cv_sys_symbol_underscore=yes
- AC_MSG_RESULT(assume yes)
-else
+[ac_cv_sys_symbol_underscore="check"
+case "${target}" in
+ i386-emx-os2 | i[3456]86-pc-os2*emx )
+ ac_cv_sys_symbol_underscore=yes
+ ;;
+ *)
+ if test "$cross_compiling" = yes; then
+ ac_cv_sys_symbol_underscore=yes
+ fi
+ ;;
+esac
+
+if test "$ac_cv_sys_symbol_underscore" = "check"; then
+ac_cv_sys_symbol_underscore=""
AC_REQUIRE([GNUPG_PROG_NM])dnl
AC_REQUIRE([GNUPG_SYS_NM_PARSE])dnl
AC_MSG_CHECKING([for _ prefix in compiled symbols])
@@ -597,8 +606,10 @@ else
fi
rm -rf conftest*
])
-AC_MSG_RESULT($ac_cv_sys_symbol_underscore)
+else
+AC_MSG_CHECKING([for _ prefix in compiled symbols])
fi
+AC_MSG_RESULT($ac_cv_sys_symbol_underscore)
if test x$ac_cv_sys_symbol_underscore = xyes; then
AC_DEFINE(WITH_SYMBOL_UNDERSCORE,1,
[define if compiled symbols have a leading underscore])