chiark / gitweb /
Revert "journalctl: remove unexpected behavior of journalctl -b"
[elogind.git] / autogen.sh
index 33d8fcda2342ad7cb91deba510f6fd24b54f4a26..e6289b3bcbecad92b0dc2978e409d5e6f2d90be0 100755 (executable)
@@ -25,7 +25,7 @@ if [ -f .git/hooks/pre-commit.sample ] && [ ! -f .git/hooks/pre-commit ]; then
 fi
 
 if which gtkdocize >/dev/null 2>/dev/null; then
-        gtkdocize --docdir docs/
+        gtkdocize --docdir docs/ --flavour no-tmpl
         gtkdocargs=--enable-gtk-doc
 else
         echo "You don't have gtk-doc installed, and thus won't be able to generate the documentation."
@@ -54,7 +54,13 @@ args="$args \
 fi
 
 if [ "x$1" = "xc" ]; then
-        ./configure CFLAGS='-g -O0 -Wp,-U_FORTIFY_SOURCE' $args
+        ./configure CFLAGS='-g -O0 -ftrapv' --enable-kdbus $args
+        make clean
+elif [ "x$1" = "xg" ]; then
+        ./configure CFLAGS='-g -Og -ftrapv' --enable-kdbus $args
+        make clean
+elif [ "x$1" = "xa" ]; then
+        ./configure CFLAGS='-g -O0 -Wsuggest-attribute=pure -Wsuggest-attribute=const -ftrapv' --enable-kdbus $args
         make clean
 else
         echo
@@ -62,6 +68,6 @@ else
         echo "Initialized build system. For a common configuration please run:"
         echo "----------------------------------------------------------------"
         echo
-        echo "./configure CFLAGS='-g -O0 -Wp,-U_FORTIFY_SOURCE' $args"
+        echo "./configure CFLAGS='-g -O0 -ftrapv' --enable-kdbus $args"
         echo
 fi