1 dnl aclocal.m4 generated automatically by aclocal 1.3
3 dnl Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
4 dnl This Makefile.in is free software; the Free Software Foundation
5 dnl gives unlimited permission to copy and/or distribute it,
6 dnl with or without modifications, as long as this notice is preserved.
8 dnl This program is distributed in the hope that it will be useful,
9 dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10 dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11 dnl PARTICULAR PURPOSE.
13 dnl MY_DEFINE(VARIABLE)
15 [cat >> confdefs.h <<EOF
20 dnl CONFIG_INTERFACE(package,macro_name,interface_id,help
22 dnl action-if-yes-or-dynamic,
24 dnl action-if-yes,action-if-dynamic,action-if-no)
26 AC_DEFUN(CONFIG_INTERFACE,
27 [AC_ARG_ENABLE($1,[$4],
28 [case "x$enable_$1" in xyes|xdynamic) $5 ;; esac])
32 AM_CONDITIONAL(ENABLE_$2, true)
36 dynamic_targets="$dynamic_targets interface_$3.\$(so)"
47 dnl alsa.m4 starts form here
48 dnl Configure Paths for Alsa
49 dnl Christopher Lansdown (lansdoct@cs.alfred.edu)
51 dnl modified for TiMidity++ by Isaku Yamahata(yamahata@kusm.kyoto-u.ac.jp)
53 dnl AM_PATH_ALSA_LOCAL(MINIMUM-VERSION)
54 dnl Test for libasound, and define ALSA_CFLAGS and ALSA_LIBS as appropriate.
55 dnl if there exit ALSA, define have_alsa=yes, otherwise no.
56 dnl enables arguments --with-alsa-prefix= --with-alsa-enc-prefix= --disable-alsatest
58 AC_DEFUN(AM_PATH_ALSA_LOCAL,
60 dnl Get the clfags and libraries for alsa
63 AC_ARG_WITH(alsa-prefix,[ --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)],
64 [alsa_prefix="$withval"], [alsa_prefix=""])
65 AC_ARG_WITH(alsa-inc-prefix, [ --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)],
66 [alsa_inc_prefix="$withval"], [alsa_inc_prefix=""])
67 AC_ARG_ENABLE(alsatest, [ --disable-alsatest Do not try to compile and run a test Alsa program], [enable_alsatest=no], [enable_alsatest=yes])
69 dnl Add any special include directories
70 AC_MSG_CHECKING(for ALSA CFLAGS)
71 if test "$alsa_inc_prefix" != "" ; then
72 ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
73 CFLAGS="$CFLAGS -I$alsa_inc_prefix"
75 AC_MSG_RESULT($ALSA_CFLAGS)
77 dnl add any special lib dirs
78 AC_MSG_CHECKING(for ALSA LDFLAGS)
79 if test "$alsa_prefix" != "" ; then
80 ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
84 dnl add the alsa library
85 ALSA_LIBS="$ALSA_LIBS -lasound"
86 AC_MSG_RESULT($ALSA_LIBS)
88 dnl Check for the presence of the library
89 dnl if test $enable_alsatest = yes; then
90 dnl AC_MSG_CHECKING(for working libasound)
92 dnl #include <sys/asoundlib.h>
99 dnl [AC_MSG_RESULT("present")],
100 dnl [AC_MSG_RESULT("not found. ")
101 dnl AC_MSG_ERROR(Fatal error: Install alsa-lib package or use --with-alsa-prefix option...)],
102 dnl [AC_MSG_RESULT(unsopported)
103 dnl AC_MSG_ERROR(Cross-compiling isn't supported...)]
107 dnl Check for a working version of libasound that is of the right version.
108 min_alsa_version=ifelse([$1], ,0.1.1,$1)
109 AC_MSG_CHECKING(for libasound headers version >= $min_alsa_version)
111 alsa_min_major_version=`echo $min_alsa_version | \
112 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
113 alsa_min_minor_version=`echo $min_alsa_version | \
114 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
115 alsa_min_micro_version=`echo $min_alsa_version | \
116 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
119 #include <sys/asoundlib.h>
121 /* ensure backward compatibility */
122 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
123 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
125 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
126 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
128 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
129 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
132 # if(SND_LIB_MAJOR > $alsa_min_major_version)
135 # if(SND_LIB_MAJOR < $alsa_min_major_version)
139 # if(SND_LIB_MINOR > $alsa_min_minor_version)
142 # if(SND_LIB_MINOR < $alsa_min_minor_version)
146 # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
153 [AC_MSG_RESULT(found.)
155 [AC_MSG_RESULT(not present.)]
158 dnl Now that we know that we have the right version, let's see if we have the library and not just the headers.
159 AC_CHECK_LIB([asound], [snd_cards],,
160 [AC_MSG_RESULT(No linkable libasound was found.)]
163 dnl That should be it. Now just export out symbols:
164 AC_SUBST(ALSA_CFLAGS)
167 dnl alsa.m4 ends here
170 dnl CHECK_DLSYM_UNDERSCORE([ACTION-IF-NEED [, ACTION IF-NOT-NEED]])
172 dnl CC CFLAGS CPPFLAGS LDFLAGS LIBS SHCFLAGS SHLD SHLDFLAGS
173 dnl ac_cv_header_dlfcn_h lib_dl_opt so
174 AC_DEFUN(CHECK_DLSYM_UNDERSCORE,
175 [dnl Check if dlsym need a leading underscore
176 AC_MSG_CHECKING(whether your dlsym() needs a leading underscore)
177 AC_CACHE_VAL(timidity_cv_func_dlsym_underscore,
178 [case "$ac_cv_header_dlfcn_h" in
179 yes) i_dlfcn=define;;
190 #include <dlfcn.h> /* the dynamic linker include file for Sunos/Solaris */
192 #include <sys/types.h>
206 int mode = RTLD_LAZY ;
208 handle = dlopen("./dyna.$so", mode) ;
209 if (handle == NULL) {
214 symbol = dlsym(handle, "fred") ;
215 if (symbol == NULL) {
216 /* try putting a leading underscore */
217 symbol = dlsym(handle, "_fred") ;
218 if (symbol == NULL) {
231 : Call the object file tmp-dyna.o in case dlext=o.
232 if ${CC-cc} $CFLAGS $SHCFLAGS $CPPFLAGS -c dyna.c > /dev/null 2>&1 &&
233 mv dyna.o tmp-dyna.o > /dev/null 2>&1 &&
234 $SHLD $SHLDFLAGS -o dyna.$so tmp-dyna.o > /dev/null 2>&1 &&
235 ${CC-cc} -o fred $CFLAGS $CPPFLAGS $LDFLAGS fred.c $LIBS $lib_dl_opt > /dev/null 2>&1; then
238 1) AC_MSG_WARN(Test program failed using dlopen. Perhaps you should not use dynamic loading.)
240 2) AC_MSG_WARN(Test program failed using dlsym. Perhaps you should not use dynamic loading.)
242 3) timidity_cv_func_dlsym_underscore=yes
244 4) timidity_cv_func_dlsym_underscore=no
248 AC_MSG_WARN(I can't compile and run the test program.)
250 rm -f dyna.c dyna.o dyna.$so tmp-dyna.o fred.c fred.o fred
252 case "x$timidity_cv_func_dlsym_underscore" in
263 dnl contains program from perl5
265 AC_DEFUN(CONTAINS_INIT,
266 [dnl Some greps do not return status, grrr.
267 AC_MSG_CHECKING(whether grep returns status)
268 echo "grimblepritz" >grimble
269 if grep blurfldyick grimble >/dev/null 2>&1 ; then
270 contains="./contains"
271 elif grep grimblepritz grimble >/dev/null 2>&1 ; then
274 contains="./contains"
277 dnl the following should work in any shell
279 grep) AC_MSG_RESULT(yes)
282 AC_MSG_RESULT(AGH! Grep doesn't return a status. Attempting remedial action.)
283 cat >./contains <<'EOSS'
284 grep "[$]1" "[$]2" >.greptmp && cat .greptmp && test -s .greptmp
286 chmod +x "./contains"
292 dnl CONTAINS(word,filename,action-if-found,action-if-not-found)
294 [if $contains "^[$1]"'[$]' $2 >/dev/null 2>&1; then
302 dnl SET_UNIQ_WORDS(shell-variable,words...)
303 AC_DEFUN(SET_UNIQ_WORDS,
304 [rm -f wordtmp >/dev/null 2>&1
307 CONTAINS([$f],wordtmp,:,[echo $f >>wordtmp; val="$val $f"])
310 rm -f wordtmp >/dev/null 2>&1
314 dnl WAPI_CHECK_FUNC(FUNCTION, INCLUDES, TEST-BODY,
315 [ACTION-FI-FOUND [, ACTION-IF-NOT-FOUND]])
316 AC_DEFUN(WAPI_CHECK_FUNC,
317 [AC_MSG_CHECKING(for $1)
318 AC_CACHE_VAL(wapi_cv_func_$1,
319 [AC_TRY_LINK([#include <windows.h>
322 wapi_cv_func_$1=yes, wapi_cv_func_$1=no)])
323 if eval "test \"`echo '$wapi_cv_func_'$1`\" = yes"; then
325 ifelse([$4], , :, [$4])
334 dnl WAPI_CHECK_LIB(LIBRARY, FUNCTION,
335 dnl INCLUDES, TEST-BODY
336 dnl [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND
337 dnl [, OTHER-LIBRARIES]]])
338 AC_DEFUN(WAPI_CHECK_LIB,
339 [AC_MSG_CHECKING([for $2 in -l$1])
340 ac_lib_var=`echo $1['_']$2 | sed 'y%./+-%__p_%'`
341 AC_CACHE_VAL(wapi_cv_lib_$ac_lib_var,
342 [ac_save_LIBS="$LIBS"
344 AC_TRY_LINK([#include <windows.h>
347 eval "wapi_cv_lib_$ac_lib_var=yes",
348 eval "wapi_cv_lib_$ac_lib_var=no")
351 if eval "test \"`echo '$wapi_cv_lib_'$ac_lib_var`\" = yes"; then
353 ifelse([$5], ,LIBS="-l$1 $LIBS", [$5])
362 dnl EXTRACT_CPPFLAGS(CPPFLAGS-to-append,others-to-append,FLAGS)
363 AC_DEFUN(EXTRACT_CPPFLAGS,
366 .-I?*|.-D?*) $1="[$]$1 $f" ;;
372 # Define a conditional.
374 AC_DEFUN(AM_CONDITIONAL,
385 # Do all the work for Automake. This macro actually does too much --
386 # some checks are only needed if your package does certain things.
387 # But this isn't really a big deal.
392 dnl AM_INIT_AUTOMAKE(package,version, [no-define])
394 AC_DEFUN(AM_INIT_AUTOMAKE,
395 [AC_REQUIRE([AM_PROG_INSTALL])
400 dnl test to see if srcdir already configured
401 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
402 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
405 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
406 AC_DEFINE_UNQUOTED(VERSION, "$VERSION"))
407 AC_REQUIRE([AM_SANITY_CHECK])
408 AC_REQUIRE([AC_ARG_PROGRAM])
409 dnl FIXME This is truly gross.
410 missing_dir=`cd $ac_aux_dir && pwd`
411 AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
412 AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
413 AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
414 AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
415 AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
416 AC_REQUIRE([AC_PROG_MAKE_SET])])
421 AC_DEFUN(AM_PROG_INSTALL,
422 [AC_REQUIRE([AC_PROG_INSTALL])
423 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
424 AC_SUBST(INSTALL_SCRIPT)dnl
428 # Check to make sure that the build environment is sane.
431 AC_DEFUN(AM_SANITY_CHECK,
432 [AC_MSG_CHECKING([whether build environment is sane])
435 echo timestamp > conftestfile
436 # Do `set' in a subshell so we don't clobber the current shell's
437 # arguments. Must try -L first in case configure is actually a
438 # symlink; some systems play weird games with the mod time of symlinks
439 # (eg FreeBSD returns the mod time of the symlink's containing
442 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
443 if test "[$]*" = "X"; then
445 set X `ls -t $srcdir/configure conftestfile`
447 if test "[$]*" != "X $srcdir/configure conftestfile" \
448 && test "[$]*" != "X conftestfile $srcdir/configure"; then
450 # If neither matched, then we have a broken ls. This can happen
451 # if, for instance, CONFIG_SHELL is bash and it inherits a
452 # broken ls alias from the environment. This has actually
453 # happened. Such a system could not be considered "sane".
454 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
455 alias in your environment])
458 test "[$]2" = conftestfile
464 AC_MSG_ERROR([newly created file is older than distributed files!
465 Check your system clock])
470 dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
471 dnl The program must properly implement --version.
472 AC_DEFUN(AM_MISSING_PROG,
473 [AC_MSG_CHECKING(for working $2)
474 # Run test in a subshell; some versions of sh will print an error if
475 # an executable is not found, even if stderr is redirected.
476 # Redirect stdin to placate older versions of autoconf. Sigh.
477 if ($2 --version) < /dev/null > /dev/null 2>&1; then
482 AC_MSG_RESULT(missing)
486 # Like AC_CONFIG_HEADER, but automatically create stamp file.
488 AC_DEFUN(AM_CONFIG_HEADER,
490 AC_CONFIG_HEADER([$1])
491 dnl When config.status generates a header, we must update the stamp-h file.
492 dnl This file resides in the same directory as the config header
493 dnl that is generated. We must strip everything past the first ":",
494 dnl and everything past the last "/".
495 AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
496 ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
497 <<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
499 for am_file in <<$1>>; do
500 case " <<$>>CONFIG_HEADERS " in
501 *" <<$>>am_file "*<<)>>
502 echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
505 am_indx=`expr "<<$>>am_indx" + 1`
512 AC_DEFUN(AM_PATH_LISPDIR,
513 [# If set to t, that means we are running in a shell under Emacs.
514 # If you have an Emacs named "t", then use the full path.
515 test "$EMACS" = t && EMACS=
516 AC_PATH_PROG(EMACS, emacs xemacs, no)
517 if test $EMACS != "no"; then
518 AC_MSG_CHECKING([where .elc files should go])
519 dnl Set default value
520 lispdir="\$(datadir)/emacs/site-lisp"
521 if test "x$prefix" = "xNONE"; then
522 if test -d $ac_default_prefix/share/emacs/site-lisp; then
523 lispdir="\$(prefix)/share/emacs/site-lisp"
525 if test -d $ac_default_prefix/lib/emacs/site-lisp; then
526 lispdir="\$(prefix)/lib/emacs/site-lisp"
530 if test -d $prefix/share/emacs/site-lisp; then
531 lispdir="\$(prefix)/share/emacs/site-lisp"
533 if test -d $prefix/lib/emacs/site-lisp; then
534 lispdir="\$(prefix)/lib/emacs/site-lisp"
538 AC_MSG_RESULT($lispdir)
542 # Check to see if we're running under Win32, without using
543 # AC_CANONICAL_*. If so, set output variable EXEEXT to ".exe".
544 # Otherwise set it to "".
547 dnl This knows we add .exe if we're building in the Cygwin32
548 dnl environment. But if we're not, then it compiles a test program
549 dnl to see if there is a suffix for executables.
551 [AC_REQUIRE([AM_CYGWIN32])
552 AC_REQUIRE([AM_MINGW32])
553 AC_MSG_CHECKING([for executable suffix])
554 AC_CACHE_VAL(am_cv_exeext,
555 [if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then
558 cat > am_c_test.c << 'EOF'
560 /* Nothing needed here */
563 ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
565 for file in am_c_test.*; do
569 *) am_cv_exeext=`echo $file | sed -e s/am_c_test//` ;;
573 test x"${am_cv_exeext}" = x && am_cv_exeext=no
576 test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
577 AC_MSG_RESULT(${am_cv_exeext})
580 # Check to see if we're running under Cygwin32, without using
581 # AC_CANONICAL_*. If so, set output variable CYGWIN32 to "yes".
582 # Otherwise set it to "no".
585 AC_DEFUN(AM_CYGWIN32,
586 [AC_CACHE_CHECK(for Cygwin32 environment, am_cv_cygwin32,
587 [AC_TRY_COMPILE(,[return __CYGWIN32__;],
588 am_cv_cygwin32=yes, am_cv_cygwin32=no)
591 test "$am_cv_cygwin32" = yes && CYGWIN32=yes])
593 # Check to see if we're running under Mingw, without using
594 # AC_CANONICAL_*. If so, set output variable MINGW32 to "yes".
595 # Otherwise set it to "no".
599 [AC_CACHE_CHECK(for Mingw32 environment, am_cv_mingw32,
600 [AC_TRY_COMPILE(,[return __MINGW32__;],
601 am_cv_mingw32=yes, am_cv_mingw32=no)
604 test "$am_cv_mingw32" = yes && MINGW32=yes])
606 # Configure paths for GTK+
607 # Owen Taylor 97-11-3
609 dnl AM_PATH_GTK([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
610 dnl Test for GTK, and define GTK_CFLAGS and GTK_LIBS
612 AC_DEFUN(AM_PATH_GTK,
614 dnl Get the cflags and libraries from the gtk-config script
616 AC_ARG_WITH(gtk-prefix,[ --with-gtk-prefix=PFX Prefix where GTK is installed (optional)],
617 gtk_config_prefix="$withval", gtk_config_prefix="")
618 AC_ARG_WITH(gtk-exec-prefix,[ --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)],
619 gtk_config_exec_prefix="$withval", gtk_config_exec_prefix="")
620 AC_ARG_ENABLE(gtktest, [ --disable-gtktest Do not try to compile and run a test GTK program],
621 , enable_gtktest=yes)
623 if test x$gtk_config_exec_prefix != x ; then
624 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
625 if test x${GTK_CONFIG+set} != xset ; then
626 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
629 if test x$gtk_config_prefix != x ; then
630 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
631 if test x${GTK_CONFIG+set} != xset ; then
632 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
636 AC_PATH_PROG(GTK_CONFIG, gtk-config, no)
637 min_gtk_version=ifelse([$1], ,0.99.7,$1)
638 AC_MSG_CHECKING(for GTK - version >= $min_gtk_version)
640 if test "$GTK_CONFIG" = "no" ; then
643 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
644 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
645 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
646 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
647 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
648 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
649 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
650 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
651 if test "x$enable_gtktest" = "xyes" ; then
652 ac_save_CFLAGS="$CFLAGS"
654 CFLAGS="$CFLAGS $GTK_CFLAGS"
655 LIBS="$LIBS $GTK_LIBS"
657 dnl Now check if the installed GTK is sufficiently new. (Also sanity
658 dnl checks the results of gtk-config to some extent
668 int major, minor, micro;
671 system ("touch conf.gtktest");
673 /* HP/UX 9 (%@#!) writes to sscanf strings */
674 tmp_version = g_strdup("$min_gtk_version");
675 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
676 printf("%s, bad version string\n", "$min_gtk_version");
680 if ((gtk_major_version != $gtk_config_major_version) ||
681 (gtk_minor_version != $gtk_config_minor_version) ||
682 (gtk_micro_version != $gtk_config_micro_version))
684 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
685 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
686 gtk_major_version, gtk_minor_version, gtk_micro_version);
687 printf ("*** was found! If gtk-config was correct, then it is best\n");
688 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
689 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
690 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
691 printf("*** required on your system.\n");
692 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
693 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
694 printf("*** before re-running configure\n");
698 if ((gtk_major_version > major) ||
699 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
700 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
706 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
707 gtk_major_version, gtk_minor_version, gtk_micro_version);
708 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
709 major, minor, micro);
710 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
712 printf("*** If you have already installed a sufficiently new version, this error\n");
713 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
714 printf("*** being found. The easiest way to fix this is to remove the old version\n");
715 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
716 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
717 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
718 printf("*** so that the correct libraries are found at run-time))\n");
723 ],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
724 CFLAGS="$ac_save_CFLAGS"
728 if test "x$no_gtk" = x ; then
730 ifelse([$2], , :, [$2])
733 if test "$GTK_CONFIG" = "no" ; then
734 echo "*** The gtk-config script installed by GTK could not be found"
735 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
736 echo "*** your path, or set the GTK_CONFIG environment variable to the"
737 echo "*** full path to gtk-config."
739 if test -f conf.gtktest ; then
742 echo "*** Could not run GTK test program, checking why..."
743 CFLAGS="$CFLAGS $GTK_CFLAGS"
744 LIBS="$LIBS $GTK_LIBS"
748 ], [ return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ],
749 [ echo "*** The test program compiled, but did not run. This usually means"
750 echo "*** that the run-time linker is not finding GTK or finding the wrong"
751 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
752 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
753 echo "*** to the installed location Also, make sure you have run ldconfig if that"
754 echo "*** is required on your system"
756 echo "*** If you have an old version installed, it is best to remove it, although"
757 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
759 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
760 echo "*** came with the system with the command"
762 echo "*** rpm --erase --nodeps gtk gtk-devel" ],
763 [ echo "*** The test program failed to compile or link. See the file config.log for the"
764 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
765 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
766 echo "*** may want to edit the gtk-config script: $GTK_CONFIG" ])
767 CFLAGS="$ac_save_CFLAGS"
773 ifelse([$3], , :, [$3])