X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=autogen.sh;h=20f013a7ac569f352d552b45a8b5c336db27bc7e;hp=33d8fcda2342ad7cb91deba510f6fd24b54f4a26;hb=949138ccc3417748b0978980e4a1c67955dd4ba4;hpb=5ea373e101fe7153b0038d9cde015de5f6a6d314 diff --git a/autogen.sh b/autogen.sh index 33d8fcda2..20f013a7a 100755 --- a/autogen.sh +++ b/autogen.sh @@ -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,14 +54,26 @@ args="$args \ fi if [ "x$1" = "xc" ]; then - ./configure CFLAGS='-g -O0 -Wp,-U_FORTIFY_SOURCE' $args + ./configure CFLAGS='-g -O0 -ftrapv' --enable-compat-libs --enable-kdbus $args make clean +elif [ "x$1" = "xg" ]; then + ./configure CFLAGS='-g -Og -ftrapv' --enable-compat-libs --enable-kdbus $args + make clean +elif [ "x$1" = "xa" ]; then + ./configure CFLAGS='-g -O0 -Wsuggest-attribute=pure -Wsuggest-attribute=const -ftrapv' --enable-compat-libs --enable-kdbus $args + make clean +elif [ "x$1" = "xl" ]; then + ./configure CC=clang CFLAGS='-g -O0 -ftrapv -Wno-gnu' --enable-compat-libs --enable-kdbus $args + make clean +elif [ "x$1" = "xs" ]; then + scan-build ./configure CFLAGS='-g -O0 -ftrapv' --enable-compat-libs --enable-kdbus $args + scan-build make else echo echo "----------------------------------------------------------------" 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-compat-libs --enable-kdbus $args" echo fi