Top 10k strings from glib-2.0.m4
in <root> / bin / pc / Emulators / fuse-hc2000-hacks.7z / src / fuse / m4 /
Back to the directory listing
3 ;; 2 #include <stdio.h> 2 #include <glib.h> 2 if test x$PKG_CONFIG != xno ; then 1 dnl gthread is specified in MODULES, pass to pkg-config 1 dnl checks the results of pkg-config to some extent) 1 dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if gmodule, gobject or 1 dnl Now check if the installed GLIB is sufficiently new. (Also sanity 1 dnl Get the cflags and libraries from pkg-config 1 dnl AM_PATH_GLIB_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]]) 1 ],, no_glib=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) 1 ], [ return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ], 1 AC_DEFUN([AM_PATH_GLIB_2_0], 1 AC_ARG_ENABLE(glibtest, [ --disable-glibtest do not try to compile and run a test GLIB program], 1 #include <stdlib.h> 1 # Taken from Glib 2.4.2 by PAK 2004/07/06 1 # Owen Taylor 1997-2001 1 # Configure paths for GLIB 1 tmp_version = g_strdup("$min_glib_version"); 1 system ("touch conf.glibtest"); 1 rm -f conf.glibtest 1 return 1; 1 pkg_config_args=glib-2.0 1 no_glib=yes 1 no_glib="" 1 min_glib_version=ifelse([$1], ,2.0.0,$1) 1 int major, minor, micro; 1 if test x"$no_glib" = x ; then 1 if test "x$no_glib" = x ; then 1 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 1 if ((glib_major_version != $glib_config_major_version) || 1 for module in . $4 1 enable_glibtest=no 1 else if ((glib_major_version != GLIB_MAJOR_VERSION) || 1 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH" 1 echo "***" 1 char *tmp_version; 1 AC_SUBST(GOBJECT_QUERY) 1 AC_SUBST(GLIB_MKENUMS) 1 AC_SUBST(GLIB_LIBS) 1 AC_SUBST(GLIB_GENMARSHAL) 1 AC_SUBST(GLIB_CFLAGS) 1 AC_PATH_PROG(PKG_CONFIG, pkg-config, no) 1 AC_MSG_CHECKING(for GLIB - version >= $min_glib_version) 1 /* HP/UX 9 (%@#!) writes to sscanf strings */ 1 (glib_minor_version != GLIB_MINOR_VERSION) || 1 no_glib=yes 1 if test "x$enable_glibtest" = "xyes" ; then 1 if $PKG_CONFIG --uninstalled $pkg_config_args; then 1 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then 1 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then 1 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \ 1 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \ 1 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \ 1 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0` 1 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0` 1 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args` 1 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0` 1 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args` 1 , enable_glibtest=yes) 1 ## don't try to run the test against uninstalled libtool libs 1 printf("%s, bad version string\n", "$min_glib_version"); 1 ifelse([$3], , :, [$3]) 1 ifelse([$2], , :, [$2]) 1 if test "$PKG_CONFIG" = "no" ; then 1 glib_major_version, glib_minor_version, glib_micro_version); 1 exit(1); 1 GOBJECT_QUERY="" 1 GLIB_MKENUMS="" 1 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); 1 GLIB_LIBS="" 1 GLIB_GENMARSHAL="" 1 GLIB_CFLAGS="" 1 AC_MSG_RESULT(yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)) 1 AC_MSG_RESULT(no) 1 rm -f conf.glibtest 1 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%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("*** GLIB 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 GLib. You may also be able to fix the error\n"); 1 no_glib=yes 1 if ((glib_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="$GLIB_LIBS $LIBS" 1 CFLAGS="$CFLAGS $GLIB_CFLAGS" 1 AC_TRY_RUN([ 1 (glib_minor_version != $glib_config_minor_version) || 1 (glib_micro_version != $glib_config_micro_version)) 1 major, minor, micro); 1 if test -f conf.glibtest ; then 1 else 1 echo "*** See http://www.freedesktop.org/software/pkgconfig/" 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 GLIB (%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 GLIB, 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 GLIB 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("*** GLIB 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 ((glib_major_version == major) && (glib_minor_version > minor)) || 1 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro))) 1 gthread) 1 gobject) 1 gmodule) 1 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ], 1 echo "*** version of GLIB. If it is not finding GLIB, 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 GLIB or finding the wrong" 1 echo "*** is required on your system" 1 echo "*** exact error that occured. This usually means GLIB 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 GLIB test program, checking why..." 1 ac_save_LIBS="$LIBS" 1 ac_save_CFLAGS="$CFLAGS" 1 LIBS="$ac_save_LIBS" 1 LIBS="$LIBS $GLIB_LIBS" 1 CFLAGS="$ac_save_CFLAGS" 1 CFLAGS="$CFLAGS $GLIB_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 (glib_micro_version != GLIB_MICRO_VERSION)) 1 pkg_config_args="$pkg_config_args gthread-2.0" 1 pkg_config_args="$pkg_config_args gobject-2.0" 1 pkg_config_args="$pkg_config_args gmodule-2.0" 1 glib_major_version, glib_minor_version, glib_micro_version); 1 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version, 1 glib_major_version, glib_minor_version, glib_micro_version);