]> Pileus Git - ~andy/gtk/commitdiff
Added trailing newline, hopefully will fix the problem with esac
authorOwen Taylor <owt1@cornell.edu>
Mon, 16 Mar 1998 06:36:05 +0000 (06:36 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Mon, 16 Mar 1998 06:36:05 +0000 (06:36 +0000)
Mon Mar 16 01:33:36 1998  Owen Taylor  <owt1@cornell.edu>

* gtk-config.in: Added trailing newline, hopefully will
  fix the problem with esac disappearing.

* gtk/Makefile.am (test-debug): Improved test targets
  will work with --enable-shared
         [From:  Raja R Harinath  <harinath@cs.umn.edu>]

   * gtk.m4: Not all shells understand $(...).  Use `...` instead.
         [From:  Raja R Harinath  <harinath@cs.umn.edu>]
- use AM_PATH_PROG instead of AM_CHECK_PROG, so the user
  can specify programs not in their path.

* Makefile.am: added gtk.m4 to EXTRA_DIST

12 files changed:
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
docs/Makefile.am
docs/gtk-config.txt
gtk-config.in
gtk.m4
gtk/Makefile.am

index 68f7e9a97a4b7192505ae75c5f39de3e788c4a10..83c8fc09dc5fac175d5be86106792ed05707ccd7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,19 @@
+Mon Mar 16 01:33:36 1998  Owen Taylor  <owt1@cornell.edu>
+
+       * gtk-config.in: Added trailing newline, hopefully will
+         fix the problem with esac disappearing.
+
+       * gtk/Makefile.am (test-debug): Improved test targets
+         will work with --enable-shared
+           [From:  Raja R Harinath  <harinath@cs.umn.edu>]
+
+       * gtk.m4: Not all shells understand $(...).  Use `...` instead.
+           [From:  Raja R Harinath  <harinath@cs.umn.edu>]
+       - use AM_PATH_PROG instead of AM_CHECK_PROG, so the user
+         can specify programs not in their path.
+  
+       * Makefile.am: added gtk.m4 to EXTRA_DIST
+
 Sun Mar 15 23:44:10 1998  Tim Janik  <timj@gimp.org>
 
        * gtk/gtkwidget.h:
index 68f7e9a97a4b7192505ae75c5f39de3e788c4a10..83c8fc09dc5fac175d5be86106792ed05707ccd7 100644 (file)
@@ -1,3 +1,19 @@
+Mon Mar 16 01:33:36 1998  Owen Taylor  <owt1@cornell.edu>
+
+       * gtk-config.in: Added trailing newline, hopefully will
+         fix the problem with esac disappearing.
+
+       * gtk/Makefile.am (test-debug): Improved test targets
+         will work with --enable-shared
+           [From:  Raja R Harinath  <harinath@cs.umn.edu>]
+
+       * gtk.m4: Not all shells understand $(...).  Use `...` instead.
+           [From:  Raja R Harinath  <harinath@cs.umn.edu>]
+       - use AM_PATH_PROG instead of AM_CHECK_PROG, so the user
+         can specify programs not in their path.
+  
+       * Makefile.am: added gtk.m4 to EXTRA_DIST
+
 Sun Mar 15 23:44:10 1998  Tim Janik  <timj@gimp.org>
 
        * gtk/gtkwidget.h:
index 68f7e9a97a4b7192505ae75c5f39de3e788c4a10..83c8fc09dc5fac175d5be86106792ed05707ccd7 100644 (file)
@@ -1,3 +1,19 @@
+Mon Mar 16 01:33:36 1998  Owen Taylor  <owt1@cornell.edu>
+
+       * gtk-config.in: Added trailing newline, hopefully will
+         fix the problem with esac disappearing.
+
+       * gtk/Makefile.am (test-debug): Improved test targets
+         will work with --enable-shared
+           [From:  Raja R Harinath  <harinath@cs.umn.edu>]
+
+       * gtk.m4: Not all shells understand $(...).  Use `...` instead.
+           [From:  Raja R Harinath  <harinath@cs.umn.edu>]
+       - use AM_PATH_PROG instead of AM_CHECK_PROG, so the user
+         can specify programs not in their path.
+  
+       * Makefile.am: added gtk.m4 to EXTRA_DIST
+
 Sun Mar 15 23:44:10 1998  Tim Janik  <timj@gimp.org>
 
        * gtk/gtkwidget.h:
index 68f7e9a97a4b7192505ae75c5f39de3e788c4a10..83c8fc09dc5fac175d5be86106792ed05707ccd7 100644 (file)
@@ -1,3 +1,19 @@
+Mon Mar 16 01:33:36 1998  Owen Taylor  <owt1@cornell.edu>
+
+       * gtk-config.in: Added trailing newline, hopefully will
+         fix the problem with esac disappearing.
+
+       * gtk/Makefile.am (test-debug): Improved test targets
+         will work with --enable-shared
+           [From:  Raja R Harinath  <harinath@cs.umn.edu>]
+
+       * gtk.m4: Not all shells understand $(...).  Use `...` instead.
+           [From:  Raja R Harinath  <harinath@cs.umn.edu>]
+       - use AM_PATH_PROG instead of AM_CHECK_PROG, so the user
+         can specify programs not in their path.
+  
+       * Makefile.am: added gtk.m4 to EXTRA_DIST
+
 Sun Mar 15 23:44:10 1998  Tim Janik  <timj@gimp.org>
 
        * gtk/gtkwidget.h:
index 68f7e9a97a4b7192505ae75c5f39de3e788c4a10..83c8fc09dc5fac175d5be86106792ed05707ccd7 100644 (file)
@@ -1,3 +1,19 @@
+Mon Mar 16 01:33:36 1998  Owen Taylor  <owt1@cornell.edu>
+
+       * gtk-config.in: Added trailing newline, hopefully will
+         fix the problem with esac disappearing.
+
+       * gtk/Makefile.am (test-debug): Improved test targets
+         will work with --enable-shared
+           [From:  Raja R Harinath  <harinath@cs.umn.edu>]
+
+       * gtk.m4: Not all shells understand $(...).  Use `...` instead.
+           [From:  Raja R Harinath  <harinath@cs.umn.edu>]
+       - use AM_PATH_PROG instead of AM_CHECK_PROG, so the user
+         can specify programs not in their path.
+  
+       * Makefile.am: added gtk.m4 to EXTRA_DIST
+
 Sun Mar 15 23:44:10 1998  Tim Janik  <timj@gimp.org>
 
        * gtk/gtkwidget.h:
index 68f7e9a97a4b7192505ae75c5f39de3e788c4a10..83c8fc09dc5fac175d5be86106792ed05707ccd7 100644 (file)
@@ -1,3 +1,19 @@
+Mon Mar 16 01:33:36 1998  Owen Taylor  <owt1@cornell.edu>
+
+       * gtk-config.in: Added trailing newline, hopefully will
+         fix the problem with esac disappearing.
+
+       * gtk/Makefile.am (test-debug): Improved test targets
+         will work with --enable-shared
+           [From:  Raja R Harinath  <harinath@cs.umn.edu>]
+
+       * gtk.m4: Not all shells understand $(...).  Use `...` instead.
+           [From:  Raja R Harinath  <harinath@cs.umn.edu>]
+       - use AM_PATH_PROG instead of AM_CHECK_PROG, so the user
+         can specify programs not in their path.
+  
+       * Makefile.am: added gtk.m4 to EXTRA_DIST
+
 Sun Mar 15 23:44:10 1998  Tim Janik  <timj@gimp.org>
 
        * gtk/gtkwidget.h:
index 68f7e9a97a4b7192505ae75c5f39de3e788c4a10..83c8fc09dc5fac175d5be86106792ed05707ccd7 100644 (file)
@@ -1,3 +1,19 @@
+Mon Mar 16 01:33:36 1998  Owen Taylor  <owt1@cornell.edu>
+
+       * gtk-config.in: Added trailing newline, hopefully will
+         fix the problem with esac disappearing.
+
+       * gtk/Makefile.am (test-debug): Improved test targets
+         will work with --enable-shared
+           [From:  Raja R Harinath  <harinath@cs.umn.edu>]
+
+       * gtk.m4: Not all shells understand $(...).  Use `...` instead.
+           [From:  Raja R Harinath  <harinath@cs.umn.edu>]
+       - use AM_PATH_PROG instead of AM_CHECK_PROG, so the user
+         can specify programs not in their path.
+  
+       * Makefile.am: added gtk.m4 to EXTRA_DIST
+
 Sun Mar 15 23:44:10 1998  Tim Janik  <timj@gimp.org>
 
        * gtk/gtkwidget.h:
index db06cafbbba9880ff9625b2ecd8f343ea145f5ab..ecf1ad7c6281409d5559940c2c7b022cb415ff72 100644 (file)
@@ -8,6 +8,7 @@ EXTRA_DIST =    \
        Makefile.sgml           \
        gtkdocs_fix             \
        gtkfaq.sgml             \
+        gtk-config.txt          \
        gtk_tut.sgml            \
        gtk_tut_it.sgml         \
        debugging.txt           \
index 5e3b6da67946bb09e2c1faf04bf31b1b4634cf5b..50896934213929c4bd43816f487941a9dd4be883 100644 (file)
@@ -65,13 +65,13 @@ This macro:
    is later than MINIMUM-VERSION. (A default version will be used
    if not specified)
 
- * If the required version was found, sets the GDK_CFLAGS variable to
-   the output of `gtk-config --cflags` and the GDK_LIBS variable to
+ * If the required version was found, sets the GTK_CFLAGS variable to
+   the output of `gtk-config --cflags` and the GTK_LIBS variable to
    the output of `gtk-config --libs`, and calls AC_SUBST() for these
    variables so they can be used in generated makefiles, and then
    executes ACTION-IF-FOUND.
 
- * If the required version was not found, sets GDK_CFLAGS and GDK_LIBS
+ * If the required version was not found, sets GTK_CFLAGS and GTK_LIBS
    to empty strings, and executes ACTION-IF-NOT-FOUND.
 
 This macro is in file 'gtk.m4' which is installed in $datadir/aclocal.
index 251f6275d5e9af5875d80122580896175deb3670..db0f4d3d7befbad5359a0903bf123c969caa0403 100644 (file)
@@ -26,4 +26,4 @@ case $1 in
     echo "${usage}" 1>&2
     exit 1
     ;;
-esac
\ No newline at end of file
+esac
diff --git a/gtk.m4 b/gtk.m4
index cba6514b48ffdba47d009dc751be1d8f8ff5ee86..f6f933cc4de48a681acae05454b6130a32828f20 100644 (file)
--- a/gtk.m4
+++ b/gtk.m4
@@ -8,13 +8,13 @@ AC_DEFUN(AM_PATH_GTK,
 [dnl 
 dnl Get the cflags and libraries from the gtk-config script
 dnl
-  AC_CHECK_PROG(GTK_CONFIG, gtk-config, gtk-config, no)
+  AC_PATH_PROG(GTK_CONFIG, gtk-config, no)
   min_gtk_version=ifelse([$1], ,0.99.7,$1)
   AC_MSG_CHECKING(for GTK - version >= $min_gtk_version)
   no_gtk=""
   if test "$GTK_CONFIG" != "no" ; then
-    GTK_CFLAGS=$($GTK_CONFIG --cflags)
-    GTK_LIBS=$($GTK_CONFIG --libs)
+    GTK_CFLAGS=`$GTK_CONFIG --cflags`
+    GTK_LIBS=`$GTK_CONFIG --libs`
     ac_save_CFLAGS="$CFLAGS"
     ac_save_LIBS="$LIBS"
     CFLAGS="$CFLAGS $GTK_CFLAGS"
index d85cae19171afd25b8753f18a4f7f702185ee6c9..0c367b36e96e2a12eac18e095f8eca9ac0371f3e 100644 (file)
@@ -263,7 +263,7 @@ testinput_DEPENDENCIES = $(DEPS)
 testselection_DEPENDENCIES = $(DEPS)
 simple_DEPENDENCIES = $(DEPS)
 
-.PHONY: files
+.PHONY: files test test-debug
 
 files:
        @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
@@ -271,7 +271,11 @@ files:
        done
 
 test: testgtk
-       ( CWD=`pwd` ; cd $(srcdir) ; $$CWD/testgtk )
+       builddir=`pwd`; cd $(top_builddir); top_builddir=`pwd`; \
+       cd $$builddir; cd $(srcdir); \
+       $(SHELL) $$top_builddir/libtool --mode=execute $$builddir/testgtk
 
 test-debug: testgtk
-       ( CWD=`pwd` ; cd $(srcdir) ; gdb $$CWD/testgtk )
+       builddir=`pwd`; cd $(top_builddir); top_builddir=`pwd`; \
+       cd $$builddir; cd $(srcdir); \
+       $(SHELL) $$top_builddir/libtool --mode=execute gdb $$builddir/testgtk