Complete.Org: Mailing Lists: Archives: freeciv-dev: November 1998:
[Freeciv-Dev] configure.in nitpicking
Home

[Freeciv-Dev] configure.in nitpicking

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] configure.in nitpicking
From: Per Mathisen <permath@xxxxxxxxxxx>
Date: Mon, 16 Nov 1998 14:07:39 +0100 (MET)

Hi fellow freecivers,

There is no need for AC_SUBST(VERSION) or AC_SUBST(PACKAGE) when you
use AM_INIT_AUTOMAKE, it is redundant.

If you remove the -nodefine directive used in AM_INIT_AUTOMAKE,
you can remove the AC_DEFINE_UNQUOTED(PACKAGE, $PACKAGE) and 
AC_DEFINE_UNQUTOED(VERSION,$VERSION) lines, as AM_INIT_AUTOMAKE 
will do exactly the same. I do not understand why the -nodefine directive
was put there in the first place. Unlike the current configure.in, the
built in macro defines PACKAGE as "$FREECIV" and not just $FREECIV
(pay attention to the ""s), the latter being is wrong and breaks gettext.

IMHO, the new X library check macros are way too complicated. How about
redefining $LIBS for each OS type instead? Like:
        AC_CANONICAL_HOST
        case $host_os in
                linux*)
                        LIBS="$LIBS -L/usr/X11/lib -lX11 -lXX -letc"
                freebsd*)
                        LIBS="$LIBS -L/usr/weird/place -lX11 -letc"
                solaris*)
                        lIBS="$LIBS -L/usr/openwin/sucks -lX10 -letc"
                *)
                        LIBS="$LIBS -L/default/place -lX11 -letc"
        esac

Yours,
Per



[Prev in Thread] Current Thread [Next in Thread]