10395
10395
dnl Written for Xfce by Benedikt Meurer <benny@xfce.org>.
10397
dnl This program is free software; you can redistribute it and/or modify it
10398
dnl under the terms of the GNU General Public License as published by the Free
10399
dnl Software Foundation; either version 2 of the License, or (at your option)
10400
dnl any later version.
10402
dnl This program is distributed in the hope that it will be useful, but WITHOUT
10403
dnl ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10404
dnl FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
10407
dnl You should have received a copy of the GNU General Public License along with
10408
dnl this program; if not, write to the Free Software Foundation, Inc., 59 Temple
10409
dnl Place, Suite 330, Boston, MA 02111-1307 USA
10397
dnl This program is free software; you can redistribute it and/or modify
10398
dnl it under the terms of the GNU General Public License as published by
10399
dnl the Free Software Foundation; either version 2 of the License, or
10400
dnl (at your option) any later version.
10402
dnl This program is distributed in the hope that it will be useful,
10403
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
10404
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10405
dnl GNU General Public License for more details.
10407
dnl You should have received a copy of the GNU General Public License along
10408
dnl with this program; if not, write to the Free Software Foundation, Inc.,
10409
dnl 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
10411
10411
dnl xdt-depends
10412
10412
dnl -----------
10825
10825
dnl Written for Xfce by Benedikt Meurer <benny@xfce.org>.
10827
dnl This program is free software; you can redistribute it and/or modify it
10828
dnl under the terms of the GNU General Public License as published by the Free
10829
dnl Software Foundation; either version 2 of the License, or (at your option)
10830
dnl any later version.
10832
dnl This program is distributed in the hope that it will be useful, but WITHOUT
10833
dnl ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10834
dnl FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
10837
dnl You should have received a copy of the GNU General Public License along with
10838
dnl this program; if not, write to the Free Software Foundation, Inc., 59 Temple
10839
dnl Place, Suite 330, Boston, MA 02111-1307 USA
10827
dnl This program is free software; you can redistribute it and/or modify
10828
dnl it under the terms of the GNU General Public License as published by
10829
dnl the Free Software Foundation; either version 2 of the License, or
10830
dnl (at your option) any later version.
10832
dnl This program is distributed in the hope that it will be useful,
10833
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
10834
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10835
dnl GNU General Public License for more details.
10837
dnl You should have received a copy of the GNU General Public License along
10838
dnl with this program; if not, write to the Free Software Foundation, Inc.,
10839
dnl 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
10841
10841
dnl xdt-depends
10842
10842
dnl -----------
10897
10897
-Wmissing-noreturn -Wshadow -Wpointer-arith \
10898
10898
-Wcast-align -Wformat-security \
10899
10899
-Winit-self -Wmissing-include-dirs -Wundef \
10900
-Wmissing-format-attribute -Wnested-externs \
10900
-Wmissing-format-attribute -Wnested-externs"
10902
10901
CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
10903
if test x`uname` = x"Linux"; then
10904
xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -fstack-protector"
10904
10907
if test x"$enable_debug" = x"full"; then
10905
10908
AC_DEFINE([DEBUG_TRACE], [1], [Define for tracing support])
10906
xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -O0 -g3 -Werror"
10909
xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -O0 -g -Werror"
10907
10910
CPPFLAGS="$CPPFLAGS -DG_ENABLE_DEBUG"
10908
10911
AC_MSG_RESULT([full])
10984
10987
if test "x$have_gnuc_visibility" = "xyes"; then
10985
10988
CPPFLAGS="$CPPFLAGS -DHAVE_GNUC_VISIBILITY"
10986
XDT_SUPPORTED_FLAGS([xdt_vis_hidden_cflags], [-fvisibility=hidden])
10989
xdt_vis_hidden_cflags=""
10990
XDT_SUPPORTED_FLAGS([xdt_vis_hidden_cflags], [-xldscope=hidden])
10991
if test "x$xdt_vis_hidden_cflags" = "x"; then
10992
XDT_SUPPORTED_FLAGS([xdt_vis_hidden_cflags], [-fvisibility=hidden])
10987
10994
CFLAGS="$CFLAGS $xdt_vis_hidden_cflags"
11111
11118
dnl Written for Xfce by Benedikt Meurer <benny@xfce.org>.
11113
dnl This program is free software; you can redistribute it and/or modify it
11114
dnl under the terms of the GNU General Public License as published by the Free
11115
dnl Software Foundation; either version 2 of the License, or (at your option)
11116
dnl any later version.
11118
dnl This program is distributed in the hope that it will be useful, but WITHOUT
11119
dnl ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11120
dnl FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11123
dnl You should have received a copy of the GNU General Public License along with
11124
dnl this program; if not, write to the Free Software Foundation, Inc., 59 Temple
11125
dnl Place, Suite 330, Boston, MA 02111-1307 USA
11120
dnl This program is free software; you can redistribute it and/or modify
11121
dnl it under the terms of the GNU General Public License as published by
11122
dnl the Free Software Foundation; either version 2 of the License, or
11123
dnl (at your option) any later version.
11125
dnl This program is distributed in the hope that it will be useful,
11126
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
11127
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11128
dnl GNU General Public License for more details.
11130
dnl You should have received a copy of the GNU General Public License along
11131
dnl with this program; if not, write to the Free Software Foundation, Inc.,
11132
dnl 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.