mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 13:10:34 +00:00
hopefully this works for both newer and older autoconf :P
This commit is contained in:
parent
6426f41ea6
commit
43b6aed397
1 changed files with 5 additions and 4 deletions
|
@ -1316,8 +1316,9 @@ else
|
|||
fi
|
||||
|
||||
dnl Set $prefix and $exec_prefix to $ac_default_prefix if they are not set
|
||||
test "x$prefix" = "xNONE" && prefix=$ac_default_prefix
|
||||
test "x$exec_prefix" = "xNONE" && exec_prefix="${prefix}"
|
||||
test "x$prefix" = "xNONE" && eval prefix="${ac_default_prefix}"
|
||||
test "x$exec_prefix" = "xNONE" && eval exec_prefix="${prefix}"
|
||||
test "x$datarootdir" = "x" && eval exec_prefix="${prefix}/share"
|
||||
|
||||
if test "x$SYSTYPE" = "xWIN32"; then
|
||||
default_globalconf="~/${PACKAGE}.conf"
|
||||
|
@ -1327,7 +1328,7 @@ if test "x$SYSTYPE" = "xWIN32"; then
|
|||
else
|
||||
default_globalconf="/etc/${PACKAGE}.conf"
|
||||
default_userconf="~/.${PACKAGE}rc"
|
||||
eval foo="$datadir"
|
||||
eval foo="$datarootdir"
|
||||
default_sharepath="$foo/games/$PACKAGE"
|
||||
default_userpath="~/.$PACKAGE"
|
||||
fi
|
||||
|
@ -1356,7 +1357,7 @@ AC_DEFINE_UNQUOTED(FS_USERCFG, "$userconf", [Define this to the location of the
|
|||
|
||||
AC_ARG_WITH(sharepath,
|
||||
[ --with-sharepath=DIR Use DIR for shared game data, defaults to
|
||||
'.' or \${datadir}/games/quakeforge (if new style)],
|
||||
'.' or \${datarootdir}/games/quakeforge (if new style)],
|
||||
sharepath=$withval, sharepath="auto")
|
||||
if test "x$sharepath" = "xauto" -o "x$sharepath" = "xyes" -o "x$sharepath" = "x"; then
|
||||
sharepath="$default_sharepath"
|
||||
|
|
Loading…
Reference in a new issue