blob: 9a25bcef6adb43e95bb1c49a8f8693e204d606b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
http://svn.gna.org/viewcvs/gnustep?view=revision&revision=34602
Backport configure script improvements.
--- libs/dbuskit/branches/0.1/configure.ac 2012/01/20 14:38:55 34601
+++ libs/dbuskit/branches/0.1/configure.ac 2012/01/20 14:39:24 34602
@@ -4,8 +4,17 @@
LT_INIT
AC_CONFIG_MACRO_DIR([m4])
AC_CANONICAL_SYSTEM
+
+#Override the OBJC variable if it is empty and CC is also set.
+if test -n "$CC"; then
+ if test -z "$OBJC"; then
+ OBJC="$CC"
+ fi
+fi
+
AC_PROG_CC(clang gcc cc c1 egcs)
AC_PROG_CPP
+AC_PROG_OBJC(clang gcc objcc objc cc CC)
AC_LANG(Objective C)
PKG_PROG_PKG_CONFIG([])
AC_LANG_PUSH(C)
@@ -129,7 +138,7 @@
fi
AC_SUBST(OBJC_RUNTIME_H)
-
+AC_SUBST(OBJC)
CFLAGS="$saved_CFLAGS"
CPPFLAGS="$saved_CPPFLAGS"
LDFLAGS="$saved_LDFLAGS"
|