41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
$OpenBSD: patch-configure_in,v 1.9 2004/04/06 05:35:59 miod Exp $
|
|
--- configure.in.orig 2004-02-29 22:30:21.000000000 +0000
|
|
+++ configure.in 2004-04-05 19:34:26.000000000 +0000
|
|
@@ -85,6 +85,8 @@ if test -z "$PRESET_CFLAGS"; then
|
|
# sunos has too many warnings for this to be useful
|
|
# motorola too
|
|
;;
|
|
+ *m88k*-openbsd*)
|
|
+ ;;
|
|
*m88k*)
|
|
# Motorola cc/ld does not like -02 but is ok on -O
|
|
CFLAGS=`echo $CFLAGS | sed -e 's/-O[0-9]/-O/'`
|
|
@@ -1591,6 +1593,8 @@ dnl during compile.
|
|
;;
|
|
esac
|
|
;;
|
|
+ *m88k*-openbsd*)
|
|
+ ;;
|
|
*m88k*)
|
|
CFLAGS="$CFLAGS -D_SQUID_MOTOROLA_"
|
|
AC_DEFINE(GETTIMEOFDAY_NO_TZP)
|
|
@@ -1603,18 +1607,6 @@ dnl during compile.
|
|
;;
|
|
esac
|
|
|
|
-# Remove optimization for GCC 2.95.[123]
|
|
-# gcc -O[2] on *BSD and Linux (x86) causes pointers to magically become NULL
|
|
-if test "$GCC" = "yes"; then
|
|
- GCCVER=`$CC -v 2>&1 | awk '$2 == "version" {print $3}'`
|
|
- case "$GCCVER" in
|
|
- [2.95.[123]])
|
|
- echo "Removing -O for gcc on $host with GCC $GCCVER"
|
|
- CFLAGS="`echo $CFLAGS | sed -e 's/-O[[0-9]]*//'`"
|
|
- ;;
|
|
- esac
|
|
-fi
|
|
-
|
|
# Recommended by Balint Nagy Endre <bne@CareNet.hu>
|
|
case "$host" in
|
|
*-univel-sysv4.2MP)
|