openbsd-ports/emulators/uae/patches/patch-configure
naddy 9cd84e9c71 Skip a broken configure test whose result isn't used and which only
succeeded out of sheer luck until struct ostatfs was removed in rev 1.108
of <sys/mount.h>.
2012-09-16 18:00:00 +00:00

56 lines
1.5 KiB
Plaintext

$OpenBSD: patch-configure,v 1.3 2012/09/16 18:00:00 naddy Exp $
Get the list of mounted filesystems: this isn't used outside of
configure, so just skip the broken tests.
--- configure.orig Fri Jul 1 15:00:17 2005
+++ configure Sun Sep 16 16:13:14 2012
@@ -1973,17 +1973,9 @@ echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
if test "$ac_test_CFLAGS" = set; then
CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
- if test "$GCC" = yes; then
- CFLAGS="-g -O2"
- else
- CFLAGS="-g"
- fi
+ CFLAGS="-g"
else
- if test "$GCC" = yes; then
- CFLAGS="-O2"
- else
- CFLAGS=
- fi
+ CFLAGS=
fi
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
@@ -11105,7 +11097,7 @@ done
# Determine how to get the list of mounted filesystems.
-list_mounted_fs=
+list_mounted_fs=no
# If the getmntent function is available but not in the standard library,
# make sure LIBS contains -lsun (on Irix4) or -lseq (on PTX).
@@ -12605,7 +12597,7 @@ _ACEOF
fi
-if [ $target = "p.os" ]; then
+if [ "$target" = "p.os" ]; then
HAVE_POS=yes
else
echo "$as_me:$LINENO: checking for pOS" >&5
@@ -13858,8 +13850,7 @@ fi
if test $ac_cv_c_compiler_gnu = yes; then
WARNING_CFLAGS="-Wall -Wno-unused -Wno-format -W -Wmissing-prototypes -Wstrict-prototypes"
- OPTIMIZE_CFLAGS="-O2 -fomit-frame-pointer"
- CFLAGS=
+ OPTIMIZE_CFLAGS="-fomit-frame-pointer"
fi
if [ "x$DO_PROFILING" = "xyes" ]; then