Re: GTK, autoconf and FreeBSD
- From: Ralf Corsepius <corsepiu faw uni-ulm de>
- To: Philip Kendall <pak21 srcf ucam org>
- Cc: GTK List <gtk-list gnome org>
- Subject: Re: GTK, autoconf and FreeBSD
- Date: 18 Dec 2001 06:13:29 +0100
Am Mon, 2001-12-17 um 18.47 schrieb Philip Kendall:
> Hi.
>
> First of all, apologies if this has already been answered. I have attempted
> to RTFFAQ and RTF list archives, but couldn't find anything relevant.
>
> On FreeBSD, the gtk-config script is renamed to gtk<version>-config, and
> the following change is made to gtk.m4 so that the autoconf macros work:
>
> colon:pak21:~$ cat /usr/ports/x11-toolkits/gtk12/files/patch-gtk.m4
> --- gtk.m4.orig Fri Feb 9 22:56:43 2001
> +++ gtk.m4 Fri Feb 9 22:57:20 2001
> @@ -37,7 +37,7 @@
> fi
> fi
>
> - AC_PATH_PROG(GTK_CONFIG, gtk-config, no)
> + AC_PATH_PROG(GTK_CONFIG, gtk-config, gtk12-config, no)
> min_gtk_version=ifelse([$1], ,0.99.7,$1)
> AC_MSG_CHECKING(for GTK - version >= $min_gtk_version)
> no_gtk=""
[..]
> Has anyone else tried doing this and got it to work, or is it just that
> the FreeBSD patch is broken?
Yes, the patch broken multiple ways.
1. With autoconf-2.13
AC_PATH_PROG(GTK_CONFIG, gtk-config gtk12-config, no)
would have been correct (The arg-list is bugged)
With autoconf > 2.13
AC_PATH_PROG([GTK_CONFIG],[gtk-config gtk12-config],[no])
is better.
2. There is no need to extend the list. If wanting to override
GTK_CONFIG, just pass it from the command line:
GTK_CONFIG=`gtk-config` ./configure
3. Cf. Havoc's reponse.
Furthermore, you might want to read about AC_PATH_PROG in autoconf.info.
Ralf
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]