Fixed "-g -Wall" as it doesn't need to be supported on all compilers.
[gnokii.git] / configure.in
index 3670353..ded8f4b 100644 (file)
@@ -32,7 +32,9 @@ test x"$prefix" = xNONE && prefix="$ac_default_prefix"
 
 AC_ARG_ENABLE(debug, 
        [  --enable-debug          compile with debug code],
-       [ CFLAGS="-g -Wall"
+       [ if test "x$GCC" = "xyes"; then
+               CFLAGS="-ggdb3 -Wall"
+         fi
          AC_DEFINE(DEBUG)
          debug="yes" ],
        [ debug="no"  ]
@@ -328,7 +330,7 @@ else
       AC_MSG_WARN(Disabling xgnokii.)
    else
       AC_CHECK_LIB(Xpm, XpmWriteFileFromXpmImage,
-            [ XPM_CFLAGS="-I$x_includes" XPM_LIBS="-L$x_libraries -lX11 -lXpm"
+            [ XPM_CFLAGS="-I$x_includes" XPM_LIBS="-L$x_libraries -lXpm -lX11"
               AC_DEFINE(XPM) ],
             AC_MSG_WARN(Cannot found library libXpm - disabling XPM support.),
             [ -L$x_libraries -lX11 ]