diff options
author | Arturo Espinosa <unammx@src.gnome.org> | 1998-02-11 11:01:47 +0800 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1998-02-11 11:01:47 +0800 |
commit | 68ab0fcf20bb6957b56d70c704bc8b9ef5ad0cd9 (patch) | |
tree | 09264fdcb0ee409276be28086cb82256704e0d85 /macros/gnome-objc-checks.m4 | |
parent | 4fdf7de508224509cf62f87f879c9fce6ee1d2ea (diff) | |
download | gsoc2013-evolution-68ab0fcf20bb6957b56d70c704bc8b9ef5ad0cd9.tar gsoc2013-evolution-68ab0fcf20bb6957b56d70c704bc8b9ef5ad0cd9.tar.gz gsoc2013-evolution-68ab0fcf20bb6957b56d70c704bc8b9ef5ad0cd9.tar.bz2 gsoc2013-evolution-68ab0fcf20bb6957b56d70c704bc8b9ef5ad0cd9.tar.lz gsoc2013-evolution-68ab0fcf20bb6957b56d70c704bc8b9ef5ad0cd9.tar.xz gsoc2013-evolution-68ab0fcf20bb6957b56d70c704bc8b9ef5ad0cd9.tar.zst gsoc2013-evolution-68ab0fcf20bb6957b56d70c704bc8b9ef5ad0cd9.zip |
Gnome/Objc automake/autoconf setup
svn path=/trunk/; revision=15
Diffstat (limited to 'macros/gnome-objc-checks.m4')
-rw-r--r-- | macros/gnome-objc-checks.m4 | 47 |
1 files changed, 30 insertions, 17 deletions
diff --git a/macros/gnome-objc-checks.m4 b/macros/gnome-objc-checks.m4 index 96f0aa4bb5..48a7818619 100644 --- a/macros/gnome-objc-checks.m4 +++ b/macros/gnome-objc-checks.m4 @@ -14,22 +14,22 @@ dnl FIXME: extend list of possible names of ObjC compilers. 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 - { - } - @end - @implementation myRandomObj - @end - int main () { - /* No, you are not seeing double. Remember that square brackets - are the autoconf m4 quotes. */ - id myid = [[myRandomObj alloc]]; - [[myid free]]; - return 0; - } - EOF + cat > conftest.m <<EOF +#include <objc/Object.h> +@interface myRandomObj : Object +{ +} +@end +@implementation myRandomObj +@end +int main () { + /* No, you are not seeing double. Remember that square brackets + are the autoconf m4 quotes. */ + id myid = [[myRandomObj alloc]]; + [[myid free]]; + return 0; +} +EOF $OBJC -o conftest $LDFLAGS conftest.m -lobjc $PTHREAD_LIB 1>&AC_FD_CC 2>&1 result=$? @@ -44,4 +44,17 @@ dnl FIXME: extend list of possible names of ObjC compilers. ]) AM_CONDITIONAL(OBJECTIVE_C, test x$ac_cv_prog_objc_works = xyes) -])
\ No newline at end of file +]) + +AC_DEFUN([GNOME_INIT_OBJC], +[ + AC_MSG_CHECKING(Loading obGnomeConf.sh values) + if test -e $gnome_prefix/obGnomeConf.sh; then + . $gnome_prefix/obGnomeConf.sh + AC_MSG_RESULT(found) + else + AC_MSG_ERROR(Could not find the obGnomeConf.sh file that is generated by gnome-objc install) + fi + AC_SUBST(OBGNOME_LIBS) + AC_SUBST(OBGTK_LIBS) +]) |