diff -ruN portage-prefix-2.1.14.orig/configure.in portage-prefix-2.1.14/configure.in --- portage-prefix-2.1.14.orig/configure.in 2006-07-13 11:08:56.000000000 +0200 +++ portage-prefix-2.1.14/configure.in 2006-07-13 11:09:50.000000000 +0200 @@ -9,10 +9,22 @@ dnl AC_ARG_VAR(portagegroup, the group that portage will operate under [defaults to 'portage']) case "${prefix}" in - '') AC_MSG_ERROR([bad value ${prefix} for --prefix, must not be empty]) ;; - */) AC_MSG_ERROR([bad value ${prefix} for --prefix, must not end with '/']) ;; + '') AC_MSG_ERROR([bad value '${prefix}' for --prefix, must not be empty]) ;; + */) AC_MSG_ERROR([bad value '${prefix}' for --prefix, must not end with '/']) ;; /*|NONE) ;; - *) AC_MSG_ERROR([bad value ${prefix} for --prefix, must start with /]) ;; + *) AC_MSG_ERROR([bad value '${prefix}' for --prefix, must start with /]) ;; +esac + +AC_ARG_WITH(offset-prefix, +AC_HELP_STRING([--with-offset-prefix], [specify the installation prefix for all packages , defaults to '']), +[DOMAIN_PREFIX=$withval], +[DOMAIN_PREFIX='']) + +case "${DOMAIN_PREFIX}" in + '') ;; + */) AC_MSG_ERROR([bad value '${DOMAIN_PREFIX}' for --with-offset-prefix, must not end with /]) ;; + /*) ;; + *) AC_MSG_ERROR([bad value '${DOMAIN_PREFIX}' for --with-offset-prefix, must start with /]) ;; esac AC_CANONICAL_BUILD @@ -195,11 +207,6 @@ AC_MSG_ERROR([error finding the user id of ${rootuser}]) fi -AC_ARG_WITH(offset-prefix, -AC_HELP_STRING([--with-offset-prefix], [specify the installation prefix for all packages , defaults to /]), -[DOMAIN_PREFIX=$withval], -[DOMAIN_PREFIX='/']) - DEFAULT_PATH="${DOMAIN_PREFIX}/usr/bin:${DOMAIN_PREFIX}/usr/sbin:${DOMAIN_PREFIX}/bin:${DOMAIN_PREFIX}/sbin:${prefix}/bin" AC_ARG_WITH(default-path, AC_HELP_STRING([--with-default-path], [specify the PATH available to the portage build environment ]),