Changeset 2985 in orxonox.OLD for orxonox/branches/osX/aclocal.m4
- Timestamp:
- Nov 25, 2004, 3:08:36 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/osX/aclocal.m4
r2984 r2985 1010 1010 ]) 1011 1011 1012 1013 dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not) 1014 dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page 1015 dnl also defines GSTUFF_PKG_ERRORS on error 1016 AC_DEFUN(PKG_CHECK_MODULES, [ 1017 succeeded=no 1018 1019 if test -z "$PKG_CONFIG"; then 1020 AC_PATH_PROG(PKG_CONFIG, pkg-config, no) 1021 fi 1022 1023 if test "$PKG_CONFIG" = "no" ; then 1024 echo "*** The pkg-config script could not be found. Make sure it is" 1025 echo "*** in your path, or set the PKG_CONFIG environment variable" 1026 echo "*** to the full path to pkg-config." 1027 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." 1028 else 1029 PKG_CONFIG_MIN_VERSION=0.9.0 1030 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 1031 AC_MSG_CHECKING(for $2) 1032 1033 if $PKG_CONFIG --exists "$2" ; then 1034 AC_MSG_RESULT(yes) 1035 succeeded=yes 1036 1037 AC_MSG_CHECKING($1_CFLAGS) 1038 $1_CFLAGS=`$PKG_CONFIG --cflags "$2"` 1039 AC_MSG_RESULT($$1_CFLAGS) 1040 1041 AC_MSG_CHECKING($1_LIBS) 1042 $1_LIBS=`$PKG_CONFIG --libs "$2"` 1043 AC_MSG_RESULT($$1_LIBS) 1044 else 1045 $1_CFLAGS="" 1046 $1_LIBS="" 1047 ## If we have a custom action on failure, don't print errors, but 1048 ## do set a variable so people can do so. 1049 $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` 1050 ifelse([$4], ,echo $$1_PKG_ERRORS,) 1051 fi 1052 1053 AC_SUBST($1_CFLAGS) 1054 AC_SUBST($1_LIBS) 1055 else 1056 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." 1057 echo "*** See http://www.freedesktop.org/software/pkgconfig" 1058 fi 1059 fi 1060 1061 if test $succeeded = yes; then 1062 ifelse([$3], , :, [$3]) 1063 else 1064 ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4]) 1065 fi 1066 ]) 1067 1068 1069
Note: See TracChangeset
for help on using the changeset viewer.