with_krbafs broken

Mark Eichin eichin at kitten.gen.ma.us
Fri Jun 19 18:01:46 CEST 1998


arla 0.7.2, configure.in:

AC_ARG_WITH(krbafs,
[  --with-krbafs=dir       use libkrbafs (from cmu, extracted from kth-krb) in dir],
[if test "X$with_krbafs" = "X"; then
  AC_MSG_ERROR([You have to give the path to krbafs lib])
else
  with_krbafs=yes
fi]
)

Note that with_krbafs is *where the path is stored* - so that when you
set it to "yes" you obliterate the argument.  This has the amusing but
regrettable side effect of introducing -Lyes into the compile command
lines... 

Untested but likely patch follows - just diverts the string to another
variable.  It might be cleaner to just ditch the else clause
altogether and change the later test to a case...
				_Mark_ <eichin at kitten.gen.ma.us>
				The Herd Of Kittens

*** configure.in	1998/06/19 15:58:40	1.1
--- configure.in	1998/06/19 15:59:07
***************
*** 180,185 ****
--- 180,186 ----
  [if test "X$with_krbafs" = "X"; then
    AC_MSG_ERROR([You have to give the path to krbafs lib])
  else
+   krb_afs_path=${with_krbafs}
    with_krbafs=yes
  fi]
  )
***************
*** 284,290 ****
    RXKAD="rxkad"
    RXKAD_LIBS="-L../rxkad -lrxkad $KRB_LIB_FLAGS"
    if test "X$with_krbafs" = "Xyes"; then
!     KAFS_LIBS="-L${with_krbafs} -lkafs"
    else
      KAFS_LIBS="-L${KRB_LIB_DIR} -lkafs"
    fi
--- 285,291 ----
    RXKAD="rxkad"
    RXKAD_LIBS="-L../rxkad -lrxkad $KRB_LIB_FLAGS"
    if test "X$with_krbafs" = "Xyes"; then
!     KAFS_LIBS="-L${krbafs_path} -lkafs"
    else
      KAFS_LIBS="-L${KRB_LIB_DIR} -lkafs"
    fi





More information about the Arla-drinkers mailing list