Browse Source

No gcc flag -fvisibility if MINGW, CYGWIN

Add flag WINCONSOLE to be used in makefile.am
pre-master-46
Holger Vogt 7 years ago
parent
commit
035156be66
  1. 25
      configure.ac

25
configure.ac

@ -327,6 +327,8 @@ if test "x$with_ngshared" != x && test "x$with_ngshared" != xno ; then
CFLAGS="$CFLAGS -xldscope=hidden"
fi
;;
*mingw* | *msys* | *cygwin* )
;;
*)
CFLAGS="$CFLAGS -fvisibility=hidden"
;;
@ -547,6 +549,29 @@ AC_ARG_WITH([wingui],
AC_MSG_RESULT([$with_wingui])
AM_CONDITIONAL([WINGUI], [test "x$with_wingui" = xyes])
case $host_os in
*mingw* | *msys* )
has_win32=yes
if test "x$with_wingui" = xyes; then
has_winconsole=no
else
if test "x$with_ngshared" = xyes; then
has_winconsole=no
else
has_winconsole=yes
fi
fi
;;
*cygwin* )
has_cyg=yes
;;
*)
has_win32=no
has_cyg=no
;;
esac
AM_CONDITIONAL([WINCONSOLE], [test "x$has_winconsole" = xyes])
case $with_wingui in
yes )
AC_DEFINE([X_DISPLAY_MISSING])

Loading…
Cancel
Save