Crossfire Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CF: configure.in problems



I am running 

  - RH 6.0 with kernel 2.2.13.
  - autoconf-2.13-5
  
When I use the --enable-old-layout=yes option, both the datadir and
localstatedir get set. The problem is the following code:

if eval "test x$old_layout = xyes"; then
        ndatadir=`eval echo ${datadir}`
        nlocaldir=`eval echo ${localstatedir}`

With the eval in there using a localstatdir of
'${DESTDIR}'/var/lib/games/crossfire gets evaluated to just
/var/lib/games/crossfire

To test this, I inserted the following code:

if eval "test x$old_layout = xyes"; then
        ndatadir=`eval echo ${datadir}`
        nlocaldir=`eval echo ${localstatedir}`
        echo "Debug : ${localstatedir}"
        echo "Debug : ${nlocaldir}"

The output is as follows:

Debug : ${DESTDIR}/var/lib/games/crossfire
Debug : /var/lib/games/crossfire

Removing the eval so the code looks like this:

if eval "test x$old_layout = xyes"; then
        ndatadir=`eval echo ${datadir}`
        nlocaldir=`echo ${localstatedir}`
        echo "Debug : ${localstatedir}"
        echo "Debug : ${nlocaldir}"

The output is as follows:

Debug : ${DESTDIR}/var/lib/games/crossfire
Debug : ${DESTDIR}/var/lib/games/crossfire

What I don't get is why ndatadir works fine, but the nlocaldir does not.

-- 
Bob Tanner <tanner@real-time.com>       | Phone : (612)943-8700
http://www.real-time.com                | Fax   : (612)943-8500
Key fingerprint =  6C E9 51 4F D5 3E 4C 66 62 A9 10 E5 35 85 39 D9 

-
[you can put yourself on the announcement list only or unsubscribe altogether
by sending an email stating your wishes to crossfire-request@ifi.uio.no]