autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re: ac_definedir / Re: Sane way of making installation pathsavailable to


From: Guido Draheim
Subject: re: ac_definedir / Re: Sane way of making installation pathsavailable to C ?
Date: Thu, 27 Feb 2003 22:14:30 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.1) Gecko/20020826

http://ac-archive.sf.net/Miscellaneous/ac_define_dir.html

John Levon schrieb:
Is there some relatively sane way of making stuff like $bindir path
available to C programs (via config.h preferably) ? I'm entirely sure
I'm not the only one who's had to solve this problem a number of times.

Currently we have (hold your bags nearby) :

if test "$prefix" = "NONE"; then
        prefix="$ac_default_prefix"
fi
if test "$exec_prefix" = "NONE"; then
        exec_prefix="$prefix"
fi
if test "$bindir" = "NONE"; then
        bindir="$prefix/bin"
fi
if test "$datadir" = "NONE"; then
        datadir="$prefix/share"
fi
OP_DATADIR=`eval echo "$datadir/$PACKAGE/"`
OP_BINDIR=`eval echo "$bindir/"`
AC_SUBST(OP_BINDIR)
AC_SUBST(OP_DATADIR)

into a version.h file.

regards
john








reply via email to

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