-if [ "x$1" = "xc" ]; then
- ./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
-elif [ "x$1" = "xl" ]; then
- ./configure CC=clang CFLAGS='-g -O0 -ftrapv -Wno-cast-align -Wno-gnu' --enable-kdbus $args
- make clean
-elif [ "x$1" = "xs" ]; then
- scan-build ./configure CFLAGS='-g -O0 -ftrapv' --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 -ftrapv' --enable-kdbus $args"
- echo
-fi
+cd $oldpwd
+
+echo
+echo "----------------------------------------------------------------"
+echo "Initialized build system. For a common configuration please run:"
+echo "----------------------------------------------------------------"
+echo
+echo "$topdir/configure CFLAGS='-g -O0 -ftrapv' --enable-kdbus $args"
+echo