msm: consistency for equally ranked keys
[platform/upstream/rpm.git] / autogen.sh
index 9fad0b7..f7ea2cf 100755 (executable)
@@ -1,18 +1,20 @@
 #!/bin/sh
 
-(cd popt; ./autogen.sh --noconfigure "$@")
-libtoolize --copy --force
-aclocal
-autoheader
-automake
-autoconf
+export CPPFLAGS
+export CFLAGS
+export LDFLAGS
 
-if [ "$1" = "--noconfigure" ]; then 
-    exit 0;
-fi
+autoreconf -i
 
-if [ X"$@" = X  -a "X`uname -s`" = "XLinux" ]; then
-    ./configure --disable-shared --prefix=/usr
-else
-    ./configure --disable-shared "$@"
-fi
+case "$1" in
+  "--noconfigure")
+    exit 0;
+    ;;
+  "--rpmconfigure")
+    shift
+    eval "`rpm --eval %configure`" "$@"
+    ;;
+  *)
+    ./configure "$@"
+    ;;
+esac