freebsd-ports/net/libcmis/files/patch-configure
Baptiste Daroussin 7deec06274 Fix build with clang
Submitted by:	dim
2012-05-07 20:00:39 +00:00

35 lines
838 B
Text

--- configure.orig 2012-05-07 21:34:01.900594469 +0200
+++ configure 2012-05-07 21:57:05.241595943 +0200
@@ -3178,19 +3178,6 @@
fi
-if test x"$enable_werror" != "xno"; then :
-
- CFLAGS="$CFLAGS -Werror"
- CXXFLAGS="$CXXFLAGS -Werror"
-
-fi
-if test x"$GCC" = xyes; then :
-
- # Be tough with warnings and produce less careless code
- CFLAGS="$CFLAGS -Wall -pedantic"
- CXXFLAGS="$CXXFLAGS -Wall -pedantic"
-
-fi
LIBCMIS_API_VERSION=0.2
@@ -15971,6 +15958,12 @@
ac_config_files="$ac_config_files Makefile libcmis.pc src/Makefile src/libcmis/Makefile"
+if test x"$enable_werror" != "xno"; then :
+
+ CFLAGS="$CFLAGS -Werror"
+ CXXFLAGS="$CXXFLAGS -Werror"
+
+fi
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure