--- /usr/lib/frugalware/fwmakepkg.orig 2005-07-24 00:23:58.000000000 +0200 +++ /usr/lib/frugalware/fwmakepkg.new 2005-07-24 21:38:48.000000000 +0200 @@ -11,6 +11,7 @@ Fprefix="/usr" Fsysconfdir="/etc" Flocalstatedir="/var" +Fconfopts="--prefix=$Fprefix" Fmessage() { if [ "$USE_COLOR" = "Y" -o "$USE_COLOR" = "y" ]; then @@ -168,7 +169,11 @@ Fcd Fmessage "Configuring..." if [ -x configure ]; then - ./configure --prefix="$Fprefix" --sysconfdir="$Fsysconfdir" --localstatedir="$Flocalstatedir" "$@" || Fdie + grep -q sysconfdir configure && \ + Fconfopts="$Fconfopts --sysconfdir=$Fsysconfdir" + grep -q localstatedir configure && \ + Fconfopts="$Fconfopts --localstatedir=$Flocalstatedir" + ./configure "$Fconfopts" "$@" || Fdie elif [ -f Makefile.PL ]; then perl Makefile.PL "$@" || Fdie Fsed `perl -e 'printf "%vd", $^V'` "current" Makefile