diff options
author | Raja R Harinath <harinath@src.gnome.org> | 1998-02-14 02:08:20 +0000 |
---|---|---|
committer | Raja R Harinath <harinath@src.gnome.org> | 1998-02-14 02:08:20 +0000 |
commit | 559b75fd96d98147250a4b11df3045c7734e54ce (patch) | |
tree | ab4fda5b56586eb94b0bbd51381b0cf8fb44d18e /macros/gnome-objc-checks.m4 | |
parent | f367f792ac1c8c697503bff7dc12b942b78c562e (diff) | |
download | shared-mime-info-559b75fd96d98147250a4b11df3045c7734e54ce.tar.gz |
Solaris /bin/sh doesn't understand `test -e'.
* gnome-objc-checks.m4 (GNOME_INIT_OBJC): Solaris /bin/sh doesn't
understand `test -e'.
- Hari
svn path=/trunk/; revision=74
Diffstat (limited to 'macros/gnome-objc-checks.m4')
-rw-r--r-- | macros/gnome-objc-checks.m4 | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/macros/gnome-objc-checks.m4 b/macros/gnome-objc-checks.m4 index ac8bdf5c..472e46d8 100644 --- a/macros/gnome-objc-checks.m4 +++ b/macros/gnome-objc-checks.m4 @@ -2,20 +2,19 @@ AC_DEFUN([GNOME_CHECK_OBJC], [ dnl Look for an ObjC compiler. dnl FIXME: extend list of possible names of ObjC compilers. - AC_CHECK_PROGS(OBJC, $OBJC gcc, "") + AC_CHECK_PROGS(OBJC, $OBJC gcc, "") + oLIBS=$LIBS + LIBS="$LIBS $PTHREAD_LIB" + AC_SUBST(PTHREAD_LIB) + AC_CHECK_FUNC(sched_yield,,[ + AC_CHECK_LIB(posix4,sched_yield,PTHREAD_LIB="$PTHREAD_LIB -lposix4")]) + LIBS=$oLIBS - oLIBS=$LIBS - LIBS="$LIBS $PTHREAD_LIB" - AC_SUBST(PTHREAD_LIB) - AC_CHECK_FUNC(sched_yield,,[ - AC_CHECK_LIB(posix4,sched_yield,PTHREAD_LIB="$PTHREAD_LIB -lposix4")]) - LIBS=$oLIBS - - AC_CACHE_CHECK([if Objective C compiler ($OBJC) works], - ac_cv_prog_objc_works, [ - if test -n "$OBJC"; then - cat > conftest.m <<EOF + AC_CACHE_CHECK([if Objective C compiler ($OBJC) works], + ac_cv_prog_objc_works, [ + if test -n "$OBJC"; then + cat > conftest.m <<EOF #include <objc/Object.h> @interface myRandomObj : Object { @@ -32,28 +31,29 @@ int main () { } EOF - $OBJC -o conftest $LDFLAGS conftest.m -lobjc $PTHREAD_LIB 1>&AC_FD_CC 2>&1 - result=$? - rm -f conftest* + $OBJC -o conftest $LDFLAGS conftest.m -lobjc $PTHREAD_LIB 1>&AC_FD_CC 2>&1 + result=$? + rm -f conftest* - if test $result -eq 0; then - ac_cv_prog_objc_works=yes - fi - else - ac_cv_prog_objc_works=no - fi - ]) + if test $result -eq 0; then + ac_cv_prog_objc_works=yes + fi + else + ac_cv_prog_objc_works=no + fi + ]) - AM_CONDITIONAL(OBJECTIVE_C, test x$ac_cv_prog_objc_works = xyes) + AM_CONDITIONAL(OBJECTIVE_C, test x$ac_cv_prog_objc_works = xyes) ]) AC_DEFUN([GNOME_INIT_OBJC], [ - AC_MSG_CHECKING(Loading obGnomeConf.sh values) - if test -e $gnome_prefix/obGnomeConf.sh; then + AC_MSG_CHECKING(for obGnomeConf.sh file in $gnome_prefix) + if test -f $gnome_prefix/obGnomeConf.sh; then . $gnome_prefix/obGnomeConf.sh AC_MSG_RESULT(found) else + AC_MSG_RESULT(not found) AC_MSG_ERROR(Could not find the obGnomeConf.sh file that is generated by gnome-objc install) fi AC_SUBST(OBGNOME_LIBS) |