Mercurial > hg > xemacs-beta
diff configure @ 5676:dede3f658f8e
Sanity check package roots in configure.
author | Stephen J. Turnbull <stephen@xemacs.org> |
---|---|
date | Sat, 04 Aug 2012 23:26:26 +0900 |
parents | bc51e191aaea |
children | ede80ef92a74 |
line wrap: on
line diff
--- a/configure Fri Aug 03 03:45:02 2012 +0900 +++ b/configure Sat Aug 04 23:26:26 2012 +0900 @@ -21156,6 +21156,70 @@ - Consider configuring with --with-pdump." ;; esac + +echo " +Package Search (a 'root' contains '{xemacs,mule,site}-packages'):" + +if test -n "$with_early_packages"; then + case "$with_early_packages" in *:* ) case "$opsys" in *cygwin* ) + echo " WARNING: Paths containing spaces will be misinterpreted." ;; +esac +with_early_packages="`echo '' $with_early_packages | sed -e 's/^ //' -e 's/:/ /g'`";; esac + echo " User package roots: $with_early_packages" +else + echo " User package roots: ~/.xemacs" +fi + +with_late_packages_expanded=$with_late_packages +while true; do + case "$with_late_packages_expanded" in + *\$* ) eval "with_late_packages_expanded=$with_late_packages_expanded" ;; + *) break ;; + esac +done +case "$with_late_packages_expanded" in *:* ) case "$opsys" in *cygwin* ) + echo " WARNING: Paths containing spaces will be misinterpreted." ;; +esac +with_late_packages_expanded="`echo '' $with_late_packages_expanded | sed -e 's/^ //' -e 's/:/ /g'`";; esac +echo " System package roots: $with_late_packages_expanded" +for path in $with_late_packages_expanded; do + if test ! -d $path; then + echo " WARNING: $path was specified, but doesn't exist." + echo " WARNING: XEmacs functionality will be noticably limited until" + echo " WARNING: some packages are installed." + elif test ! -d "$path/xemacs-packages" \ + -a ! -d "$path/mule-packages" \ + -a ! -d "$path/site-packages"; then + echo " WARNING: No packages found in $path." + echo " WARNING: XEmacs functionality will be noticably limited until" + echo " WARNING: some packages are installed." + fi +done +if test -z "$with_late_packages"; then + echo " XEmacs BUG: with_late_packages is unset. Please report this!" +fi + +if test -n "$with_last_packages"; then + case "$with_last_packages" in *:* ) case "$opsys" in *cygwin* ) + echo " WARNING: Paths containing spaces will be misinterpreted." ;; +esac +with_last_packages="`echo '' $with_last_packages | sed -e 's/^ //' -e 's/:/ /g'`";; esac + echo " Legacy package roots: $with_last_packages" + for path in $with_last_packages; do + if test ! -d $path; then + echo " WARNING: $path was specified, but doesn't exist." + echo " WARNING: If you don't need this setting, it is recommended" + echo " WARNING: that you not use it." + elif test ! -d "$path/xemacs-packages" \ + -a ! -d "$path/mule-packages" \ + -a ! -d "$path/site-packages"; then + echo " WARNING: No packages found in $path." + echo " WARNING: If you don't need this setting, it is recommended" + echo " WARNING: that you not use it." + fi + done +fi + echo " Window System:" if test "$with_msw" = "yes"; then