Top 10k strings from gtk-2.0.m4 in <root> / bin / pc / Emulators / fuse-hc2000-hacks.7z / src / fuse / m4 /
Back to the directory listing
2 #include <stdio.h>
2 #include <gtk/gtk.h>
2 if test x$PKG_CONFIG != xno ; then
1 dnl pass to pkg-config
1 dnl checks the results of pkg-config to some extent)
1 dnl Test for GTK+, and define GTK_CFLAGS and GTK_LIBS, if gthread is specified in MODULES,
1 dnl Now check if the installed GTK+ is sufficiently new. (Also sanity
1 dnl Get the cflags and libraries from pkg-config
1 dnl AM_PATH_GTK_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
1 ],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
1 ], [ return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ],
1 AC_DEFUN([AM_PATH_GTK_2_0],
1 AC_ARG_ENABLE(gtktest, [ --disable-gtktest do not try to compile and run a test GTK+ program],
1 #include <stdlib.h>
1 # Taken from GTK+ 2.4.3 by PAK 2004/07/06
1 # Owen Taylor 1997-2001
1 # Configure paths for GTK+
1 tmp_version = g_strdup("$min_gtk_version");
1 system ("touch conf.gtktest");
1 rm -f conf.gtktest
1 return 1;
1 pkg_config_args=gtk+-2.0
1 no_gtk=yes
1 no_gtk=""
1 min_gtk_version=ifelse([$1], ,2.0.0,$1)
1 int major, minor, micro;
1 if test x"$no_gtk" = x ; then
1 if test "x$no_gtk" = x ; then
1 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
1 if ((gtk_major_version != $gtk_config_major_version) ||
1 for module in . $4
1 enable_gtktest=no
1 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
1 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
1 echo "***"
1 char *tmp_version;
1 ac_save_LIBS="$LIBS"
1 ac_save_CFLAGS="$CFLAGS"
1 AC_SUBST(GTK_LIBS)
1 AC_SUBST(GTK_CFLAGS)
1 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
1 AC_MSG_CHECKING(for GTK+ - version >= $min_gtk_version)
1 /* HP/UX 9 (%@#!) writes to sscanf strings */
1 (gtk_minor_version != GTK_MINOR_VERSION) ||
1 no_gtk=yes
1 if test "x$enable_gtktest" = "xyes" ; then
1 if pkg-config --atleast-pkgconfig-version 0.7 ; then
1 if $PKG_CONFIG --uninstalled $pkg_config_args; then
1 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
1 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
1 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
1 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
1 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
1 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
1 , enable_gtktest=yes)
1 ## don't try to run the test against uninstalled libtool libs
1 printf("%s, bad version string\n", "$min_gtk_version");
1 ifelse([$3], , :, [$3])
1 ifelse([$2], , :, [$2])
1 if test "$PKG_CONFIG" = "no" ; then
1 gtk_major_version, gtk_minor_version, gtk_micro_version);
1 exit(1);
1 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
1 GTK_LIBS=""
1 GTK_CFLAGS=""
1 AC_MSG_RESULT(yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version))
1 AC_MSG_RESULT(no)
1 rm -f conf.gtktest
1 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
1 printf("*** to point to the correct configuration files\n");
1 printf("*** required on your system.\n");
1 printf("*** library (version %d.%d.%d)\n",
1 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
1 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
1 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
1 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
1 printf ("*** was found! If pkg-config was correct, then it is best\n");
1 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
1 no_gtk=yes
1 if ((gtk_major_version > major) ||
1 esac
1 echo "*** pkg-config too old; version 0.7 or better required."
1 case "$module" in
1 ac_save_LIBS="$LIBS"
1 ac_save_CFLAGS="$CFLAGS"
1 PKG_CONFIG=no
1 LIBS="$GTK_LIBS $LIBS"
1 CFLAGS="$CFLAGS $GTK_CFLAGS"
1 AC_TRY_RUN([
1 (gtk_minor_version != $gtk_config_minor_version) ||
1 (gtk_micro_version != $gtk_config_micro_version))
1 major, minor, micro);
1 if test -f conf.gtktest ; then
1 else
1 echo "*** See http://pkgconfig.sourceforge.net"
1 echo "*** A new enough version of pkg-config was not found."
1 LIBS="$ac_save_LIBS"
1 CFLAGS="$ac_save_CFLAGS"
1 return 0;
1 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
1 printf("***\n");
1 printf("*** so that the correct libraries are found at run-time))\n");
1 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
1 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
1 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
1 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
1 printf("*** being found. The easiest way to fix this is to remove the old version\n");
1 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
1 printf("*** If you have already installed a sufficiently new version, this error\n");
1 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
1 [ echo "*** The test program failed to compile or link. See the file config.log for the"
1 [ echo "*** The test program compiled, but did not run. This usually means"
1 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
1 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
1 gthread)
1 ;;
1 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ],
1 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
1 echo "*** to the installed location Also, make sure you have run ldconfig if that"
1 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
1 echo "*** is required on your system"
1 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."])
1 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
1 echo "*** If you have an old version installed, it is best to remove it, although"
1 echo "*** Could not run GTK+ test program, checking why..."
1 LIBS="$ac_save_LIBS"
1 LIBS="$LIBS $GTK_LIBS"
1 CFLAGS="$ac_save_CFLAGS"
1 CFLAGS="$CFLAGS $GTK_CFLAGS"
1 AC_TRY_LINK([
1 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
1 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
1 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
1 (gtk_micro_version != GTK_MICRO_VERSION))
1 pkg_config_args="$pkg_config_args gthread-2.0"
1 gtk_major_version, gtk_minor_version, gtk_micro_version);
1 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
1 gtk_major_version, gtk_minor_version, gtk_micro_version);