~ubuntu-branches/debian/sid/gxneur/sid

« back to all changes in this revision

Viewing changes to .pc/03_disable_werror.patch/configure.in

  • Committer: Package Import Robot
  • Author(s): Luk Claes
  • Date: 2012-07-05 20:04:58 UTC
  • Revision ID: package-import@ubuntu.com-20120705200458-rqbioyvjdnx3c5iw
Tags: 0.15.0-2.1
* Non-maintainer upload.
* Remove -Werror so it does not complain about deprecated declarations
  (Closes: #665670).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
AC_INIT(configure.in)
 
2
AC_PREREQ(2.59)
 
3
AM_CONFIG_HEADER(config.h)
 
4
 
 
5
AC_CONFIG_MACRO_DIR(m4)
 
6
AM_INIT_AUTOMAKE(gxneur, 0.15.0)
 
7
 
 
8
AC_PROG_LIBTOOL
 
9
AC_PROG_INSTALL
 
10
 
 
11
AC_LANG_C
 
12
AM_PROG_CC_C_O
 
13
AC_PROG_MAKE_SET
 
14
 
 
15
AC_HEADER_STDC
 
16
 
 
17
PKG_PROG_PKG_CONFIG([0.20])
 
18
 
 
19
PKG_CHECK_MODULES(XNEURCONF, [xnconfig = 0.15.0])
 
20
PKG_CHECK_MODULES(XNEURLIB, [xneur = 0.15.0])
 
21
 
 
22
PKG_CHECK_MODULES(X11, [x11 >= 1.1], found_x11="yes", found_x11="no")
 
23
if test "x$found_x11" = "xno"; then
 
24
        AC_PATH_XTRA
 
25
 
 
26
        if test "x$no_x" = "xyes"; then
 
27
                AC_MSG_ERROR([Can't locate your X11 installation])
 
28
        fi
 
29
 
 
30
        X11_CFLAGS="$X_CFLAGS"
 
31
        X11_LIBS="$X_LIBS -lX11"
 
32
 
 
33
        AC_SUBST(X11_CFLAGS)
 
34
        AC_SUBST(X11_LIBS)
 
35
else
 
36
        X11_LIBS="$X11_LIBS"
 
37
        AC_SUBST(X11_LIBS)
 
38
fi
 
39
 
 
40
#PKG_CHECK_MODULES(GTK, [gtk+-3.0], found_gtk="yes", found_gtk="no")
 
41
#if test "x$found_gtk" = "xno"; then
 
42
        PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.20.0], found_gtk="yes", found_gtk="no")
 
43
        if test "x$found_gtk" = "xno"; then
 
44
                PKG_CHECK_MODULES(GTK, [gtk+-2.0 < 2.20.0])
 
45
        else
 
46
                AC_DEFINE(WITH_GTK_NEW, 1, [Define if you use GTK+ >= 2.20.0 support])
 
47
        fi
 
48
#else
 
49
#       AC_DEFINE(WITH_GTK_NEW, 1, [Define if you use GTK+ >= 2.20.0 support])
 
50
#fi
 
51
 
 
52
 
 
53
AC_ARG_WITH(appindicator, [  --without-appindicator     Compile without AppIndicator library support])
 
54
if test "x$with_appindicator" != "xno"; then
 
55
        APPINDICATOR_REQUIRED=0.2.9
 
56
 
 
57
        PKG_CHECK_MODULES(APP_INDICATOR, [appindicator-0.1 >= $APPINDICATOR_REQUIRED], found_appindicator="yes", found_appindicator="no")
 
58
        if test "x$found_appindicator" = "xno"; then
 
59
                PKG_CHECK_MODULES(APP_INDICATOR, [appindicator-0.1 < $APPINDICATOR_REQUIRED], found_deprec_appindicator="yes", found_deprec_appindicator="no")
 
60
 
 
61
                if test "x$found_deprec_appindicator" = "xyes"; then
 
62
                        AC_DEFINE(HAVE_APP_INDICATOR, 1, [Have AppIndicator])
 
63
                        AC_DEFINE(HAVE_DEPREC_APP_INDICATOR, 1, [Have Deprecated AppIndicator])
 
64
                fi 
 
65
        else
 
66
                AC_DEFINE(HAVE_APP_INDICATOR, 1, [Have AppIndicator])
 
67
        fi
 
68
fi
 
69
 
 
70
AC_DEFINE(PACKAGE_GCONF_DIR, "/apps/" PACKAGE, [Define GConf directory for settings])
 
71
 
 
72
AC_DEFINE(KB_PROP_COMMAND, "/usr/bin/gnome-keyboard-properties", [Define keyboard properties command])
 
73
 
 
74
PKG_CHECK_MODULES(GLADE, [libglade-2.0 >= 2.6.0])
 
75
AC_SUBST(GLADE_CFLAGS)
 
76
AC_SUBST(GLADE_LIBS)
 
77
 
 
78
#PKG_CHECK_MODULES(GCONF, [gconf-2.0 >= 2.0])
 
79
AC_ARG_WITH(gconf, [  --without-gconf   Compile without GConf support])
 
80
if test "x$with_gconf" != "xno"; then
 
81
        PKG_CHECK_MODULES(GCONF, [gconf-2.0 >= 2.0], found_gconf="yes", found_gconf="no")
 
82
        if test "x$found_gconf" = "xyes"; then
 
83
                AC_DEFINE(HAVE_GCONF, 1, [Have GConf])
 
84
        fi
 
85
fi
 
86
 
 
87
AM_GNU_GETTEXT_VERSION([0.16.1])
 
88
AM_GNU_GETTEXT([external])
 
89
 
 
90
DEFAULT_CFLAGS="-Wall -Wextra -Werror -g0 -fPIC -std=gnu99"
 
91
AC_SUBST(DEFAULT_CFLAGS)
 
92
 
 
93
AC_OUTPUT([Makefile gxneur.desktop src/Makefile pixmaps/Makefile glade/Makefile po/Makefile.in])
 
94
 
 
95
cat << EOF
 
96
 
 
97
$PACKAGE $VERSION configured successfully:
 
98
 
 
99
        Installing into:        $prefix
 
100
 
 
101
        Compiler flags:         $CFLAGS
 
102
 
 
103
        X11 compiler flags:     $X11_CFLAGS
 
104
        X11 linker flags:       $X11_LIBS
 
105
 
 
106
        GTK compiler flags:     $GTK_CFLAGS
 
107
        GTK linker flags:       $GTK_LIBS
 
108
 
 
109
        XNeur Config flags:     $XNEURCONF_CFLAGS
 
110
        XNeur Config libs:      $XNEURCONF_LIBS
 
111
 
 
112
        XNeur flags:            $XNEURLIB_CFLAGS
 
113
        XNeur libs:             $XNEURLIB_LIBS
 
114
 
 
115
EOF
 
116
 
 
117
#if (test "x$found_gtk2" != "xno") || (test "x$found_gtk3" != "xno"); then
 
118
if (test "x$found_gtk2" != "xno"); then
 
119
cat <<EOF
 
120
        Use GTK+ >= 2.20.0 support
 
121
 
 
122
EOF
 
123
fi
 
124
 
 
125
if test "x$with_appindicator" != "xno"; then
 
126
        if test "x$found_appindicator" != "xno"; then
 
127
cat <<EOF
 
128
        Use App Indicator 0.1 >= $APPINDICATOR_REQUIRED support
 
129
 
 
130
EOF
 
131
        else
 
132
        if test "x$found_deprec_appindicator" != "xno"; then
 
133
cat <<EOF
 
134
        Use App Indicator 0.1 < $APPINDICATOR_REQUIRED support
 
135
 
 
136
EOF
 
137
        fi
 
138
        fi
 
139
fi