1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/x11-toolkits/wxgtk24/files/patch-configure
Max Khon fdd36110e1 - Make X11BASE-clean.
- Bump PORTREVISION.
2006-11-28 23:41:12 +00:00

82 lines
2.3 KiB
Plaintext

--- configure.orig Tue Nov 4 19:54:04 2003
+++ configure Tue Nov 4 20:12:59 2003
@@ -11436,6 +11436,7 @@
SEARCH_INCLUDE="\
+ $X11BASE/include \
/usr/local/include \
\
/usr/Motif-1.2/include \
@@ -11731,7 +11731,7 @@
if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
- if test "$USE_DARWIN" = 1; then
+ if test "$USE_DARWIN" = 1 -o "$USE_FREEBSD" = 1; then
system_zlib_h_ok="yes"
else
echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6
@@ -16099,6 +16099,13 @@
WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
fi
;;
+
+ *-*-freebsd* )
+ WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
+ WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
+ WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}"
+ WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
+ ;;
esac
WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
@@ -18679,7 +18686,7 @@
;;
esac
- THREAD_OPTS="$THREAD_OPTS pthread none"
+ THREAD_OPTS=
THREADS_OK=no
for flag in $THREAD_OPTS; do
@@ -18736,6 +18743,8 @@
THREADS_CFLAGS=""
done
+ THREADS_OK=yes
+
if test "x$THREADS_OK" != "xyes"; then
wxUSE_THREADS=no
echo "configure: warning: No thread support on this system... disabled" 1>&2
@@ -18752,7 +18761,6 @@
flag="-D_THREAD_SAFE"
;;
*-freebsd*)
- flag="-D_THREAD_SAFE"
;;
*-hp-hpux* )
flag="-D_REENTRANT"
@@ -19529,21 +19537,6 @@
CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
;;
esac
-fi
-
-if test "$wxUSE_OPTIMISE" = "no" ; then
- OPTIMISE=
-else
- if test "$GCC" = yes ; then
- OPTIMISE="-O2"
- case "${host}" in
- i586-*-*|i686-*-* )
- OPTIMISE="${OPTIMISE} "
- ;;
- esac
- else
- OPTIMISE="-O"
- fi
fi
if test "$WXWIN_COMPATIBILITY_2" = "yes"; then