aboutsummaryrefslogtreecommitdiffstats
path: root/autogen.sh
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2011-12-23 13:38:46 +0100
committerKay Sievers <kay.sievers@vrfy.org>2011-12-23 13:38:46 +0100
commitf71a55810f09fc010b44689aa00823a745ff83c6 (patch)
tree99a91329171c0264cc80db0691be6b618154a985 /autogen.sh
parent749f464f9169acc5f0aa25c7ce5428353ebbe664 (diff)
downloadudev-f71a55810f09fc010b44689aa00823a745ff83c6.tar.gz
autogen.sh: moce CFLAGS from to configure.ac; print common ./configure options
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh25
1 files changed, 8 insertions, 17 deletions
diff --git a/autogen.sh b/autogen.sh
index e7bd9c2a..50923f0a 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -3,21 +3,6 @@
gtkdocize
autoreconf --install --symlink
-MYCFLAGS="-g -Wall \
--Wmissing-declarations -Wmissing-prototypes \
--Wnested-externs -Wpointer-arith \
--Wpointer-arith -Wsign-compare -Wchar-subscripts \
--Wstrict-prototypes -Wshadow \
--Wformat-security -Wtype-limits"
-
-case "$CFLAGS" in
- *-O[0-9]*)
- ;;
- *)
- MYCFLAGS="$MYCFLAGS -O2"
- ;;
-esac
-
libdir() {
echo $(cd $1/$(gcc -print-multi-os-directory); pwd)
}
@@ -28,8 +13,14 @@ args="--prefix=/usr \
--libdir=$(libdir /usr/lib) \
--with-rootlibdir=$(libdir /lib) \
--libexecdir=/lib/udev \
---with-systemdsystemunitdir=/lib/systemd/system
+--with-systemdsystemunitdir=/lib/systemd/system \
--with-selinux \
--enable-gtk-doc"
-./configure $args CFLAGS="${CFLAGS} ${MYCFLAGS}" $@
+echo
+echo "---------------------------------------------------------------------"
+echo "Initialized udev build system. For a common configuration please run:"
+echo "---------------------------------------------------------------------"
+echo
+echo "# ./configure $args"
+echo