1
0
Fork 0

Packaging fixes.

This commit is contained in:
curt 1999-06-04 20:35:47 +00:00
parent 3bfd20a2b9
commit dc729fae17
3 changed files with 12 additions and 10 deletions

View file

@ -27,6 +27,8 @@ else
SERIAL_LIBS =
endif
DEFS += -DPKGLIBDIR=\"$(pkglibdir)\"
EXTRA_DIST = 3dfx.sh runfgfs.in runfgfs.bat.in
bin_PROGRAMS = fgfs

View file

@ -196,7 +196,7 @@ fgOPTIONS::fgOPTIONS() :
#elif defined( MACOS )
fg_root = ":";
#else
fg_root = "/usr/local/lib/FlightGear";
fg_root = PKGLIBDIR;
#endif
}

View file

@ -26,19 +26,19 @@ dnl
dnl
dnl
AC_DEFUN(wi_EXTRA_LDIR, [
libdir="$1"
if test -r $libdir ; then
mylibdir="$1"
if test -r $mylibdir ; then
case "$LDFLAGS" in
*-L${libdir}*)
# echo " + already had $libdir" 1>&6
*-L${mylibdir}*)
# echo " + already had $mylibdir" 1>&6
;;
*)
if test "$LDFLAGS" = "" ; then
LDFLAGS="-L$libdir"
LDFLAGS="-L$mylibdir"
else
LDFLAGS="$LDFLAGS -L$libdir"
LDFLAGS="$LDFLAGS -L$mylibdir"
fi
echo " + found $libdir" 1>&6
echo " + found $mylibdir" 1>&6
;;
esac
fi
@ -99,8 +99,8 @@ for exdir in $exdirs ; do
incdir="${exdir}/include${subexdir}"
wi_EXTRA_IDIR($incdir)
libdir="${exdir}/lib${subexdir}"
wi_EXTRA_LDIR($libdir)
mylibdir="${exdir}/lib${subexdir}"
wi_EXTRA_LDIR($mylibdir)
progdir="${exdir}/bin${subexdirr}"
wi_EXTRA_PDIR($progdir)