Skip to content

Commit

Permalink
Better support for OpenGL and Tcl/Tk frameworks on MacOSX
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.osgeo.org/grass/grass/trunk@32345 15284696-431f-4ddb-bdfa-cd5b030d7da7
  • Loading branch information
glynnc committed Jul 27, 2008
1 parent e3072e1 commit 9faee47
Show file tree
Hide file tree
Showing 5 changed files with 703 additions and 580 deletions.
30 changes: 30 additions & 0 deletions aclocal.m4
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,36 @@ ifelse($8,[],[
LDFLAGS=${ac_save_ldflags}
])

dnl $1 = function
dnl $2 = descriptive name
dnl $3 = result variable
dnl $4 = LIBS initialiser (added to $3)
dnl $5 = LDFLAGS initialiser (not added to $3)
dnl $6 = LIBS initialiser (not added to $3)
dnl $7 = ACTION-IF-FOUND
dnl $8 = ACTION-IF-NOT-FOUND

define(LOC_CHECK_FUNC,[
ac_save_libs="$LIBS"
ac_save_ldflags="$LDFLAGS"
LIBS="$4 $6 $LIBS"
LDFLAGS="$5 $LDFLAGS"
AC_CHECK_FUNC($1,[
ifelse($7,[],[
$3="$$3 $4"
],$7)
],[
ifelse($8,[],[
ifelse($2,[],
[AC_MSG_ERROR([*** Unable to locate $2.])],
[AC_MSG_ERROR([*** Unable to locate $1.])]
)
],$8)
])
LIBS=${ac_save_libs}
LDFLAGS=${ac_save_ldflags}
])

AC_DEFUN([LOC_CHECK_VERSION_STRING],[
AC_MSG_CHECKING($3 version)
ac_save_cppflags="$CPPFLAGS"
Expand Down
Loading

0 comments on commit 9faee47

Please sign in to comment.