configure
changeset 7948 1f4a0e0b7167
parent 7946 da791f11e20c
child 7967 1023f2add7fe
equal deleted inserted replaced
7946:da791f11e20c 7948:1f4a0e0b7167
   336    then DATADIR=/var/lib/prosody
   336    then DATADIR=/var/lib/prosody
   337    else DATADIR=$PREFIX/var/lib/prosody
   337    else DATADIR=$PREFIX/var/lib/prosody
   338    fi
   338    fi
   339 fi
   339 fi
   340 
   340 
       
   341 if [ "$PREFIX_SET" = "yes" -a ! "$LIBDIR_SET" = "yes" ]
       
   342 then
       
   343    LIBDIR=$PREFIX/lib
       
   344 fi
       
   345 
   341 detect_lua_version() {
   346 detect_lua_version() {
   342    detected_lua=`$1 -e 'print(_VERSION:match(" (5%.[123])$"))' 2> /dev/null`
   347    detected_lua=`$1 -e 'print(_VERSION:match(" (5%.[123])$"))' 2> /dev/null`
   343    if [ "$detected_lua" != "nil" ]
   348    if [ "$detected_lua" != "nil" ]
   344    then
   349    then
   345       if [ "$LUA_VERSION_SET" != "yes" ]
   350       if [ "$LUA_VERSION_SET" != "yes" ]