Clean up and document API for hashes
[p5sagit/p5-mst-13.2.git] / configure
index 5316745..30af30d 100755 (executable)
--- a/configure
+++ b/configure
 #
 
 (exit $?0) || exec sh $0 $argv:q
-if test $0 -ef `echo $0 | sed -e s/configure/Configure/`; then
-       echo "You're configure and Configure scripts seem to be identical."
+
+case "$0" in
+*configure)
+    if cmp $0 `echo $0 | sed -e s/configure/Configure/` >/dev/null; then
+       echo "Your configure and Configure scripts seem to be identical."
        echo "This can happen on filesystems that aren't fully case sensitive."
        echo "You'll have to explicitely extract Configure and run that."
        exit 1
-fi
+    fi
+    ;;
+esac
+
 opts=''
 verbose=''
 create='-e'
@@ -40,6 +46,7 @@ It emulates the following GNU configure options (must be fully spelled out):
        --help
        --no-create
        --prefix=PREFIX
+       --cache-file  (ignored)
        --quiet
        --silent
        --verbose
@@ -58,6 +65,9 @@ EOM
                opts="$opts $arg"
                shift
                ;;
+       --cache-file=*)
+               shift           # Just ignore it.
+               ;;
        --quiet|--silent)
                exec >/dev/null 2>&1
                shift