3 # AC_PROG_OBJC([LIST-OF-COMPILERS])
5 AC_DEFUN([AS_PROG_OBJC],
8 [m4_default([$1], [objcc objc gcc cc CC])],
12 AC_SUBST(OBJC_LDFLAGS)
13 if test "x$OBJC" != xnone ; then
14 _AM_DEPENDENCIES(OBJC)
15 AC_MSG_CHECKING([if Objective C compiler works])
16 cat >>conftest.m <<EOF
17 #include <objc/Object.h>
40 ${OBJC} conftest.m ${OBJC_LDFLAGS} >&5 2>&5
41 if test -f a.out -o -f a.exe ; then
45 echo failed program is: >&5
48 rm -f conftest.m a.out a.exe
49 AC_MSG_RESULT([$result])