1 Index: gdb-7.4.50.20120602/gdb/config.in
2 ===================================================================
3 --- gdb-7.4.50.20120602.orig/gdb/config.in 2012-06-02 21:49:26.147399232 +0200
4 +++ gdb-7.4.50.20120602/gdb/config.in 2012-06-02 21:49:27.206398845 +0200
6 /* Define if librpm library is being used. */
9 +/* Define to 1 if you have the `selinux' library (-lselinux). */
10 +#undef HAVE_LIBSELINUX
12 /* Define to 1 if you have the <libunwind-ia64.h> header file. */
13 #undef HAVE_LIBUNWIND_IA64_H
16 /* Define to 1 if you have the `sbrk' function. */
19 +/* Define to 1 if you have the <selinux/selinux.h> header file. */
20 +#undef HAVE_SELINUX_SELINUX_H
22 /* Define to 1 if you have the `setlocale' function. */
25 Index: gdb-7.4.50.20120602/gdb/configure
26 ===================================================================
27 --- gdb-7.4.50.20120602.orig/gdb/configure 2012-06-02 21:49:27.139398869 +0200
28 +++ gdb-7.4.50.20120602/gdb/configure 2012-06-02 21:49:50.890390179 +0200
29 @@ -12745,6 +12745,64 @@ $as_echo "#define HAVE_PERSONALITY 1" >>
33 +for ac_header in selinux/selinux.h
35 + ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
36 +if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
37 + cat >>confdefs.h <<_ACEOF
38 +#define HAVE_SELINUX_SELINUX_H 1
45 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for security_get_boolean_active in -lselinux" >&5
46 +$as_echo_n "checking for security_get_boolean_active in -lselinux... " >&6; }
47 +if test "${ac_cv_lib_selinux_security_get_boolean_active+set}" = set; then :
48 + $as_echo_n "(cached) " >&6
50 + ac_check_lib_save_LIBS=$LIBS
51 +LIBS="-lselinux $LIBS"
52 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53 +/* end confdefs.h. */
55 +/* Override any GCC internal prototype to avoid an error.
56 + Use char because int might match the return type of a GCC
57 + builtin and then its argument prototype would still apply. */
61 +char security_get_boolean_active ();
65 +return security_get_boolean_active ();
70 +if ac_fn_c_try_link "$LINENO"; then :
71 + ac_cv_lib_selinux_security_get_boolean_active=yes
73 + ac_cv_lib_selinux_security_get_boolean_active=no
75 +rm -f core conftest.err conftest.$ac_objext \
76 + conftest$ac_exeext conftest.$ac_ext
77 +LIBS=$ac_check_lib_save_LIBS
79 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_security_get_boolean_active" >&5
80 +$as_echo "$ac_cv_lib_selinux_security_get_boolean_active" >&6; }
81 +if test "x$ac_cv_lib_selinux_security_get_boolean_active" = x""yes; then :
82 + cat >>confdefs.h <<_ACEOF
83 +#define HAVE_LIBSELINUX 1
86 + LIBS="-lselinux $LIBS"
92 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
93 # except that the argument to --with-sysroot is optional.
94 Index: gdb-7.4.50.20120602/gdb/gdbserver/config.in
95 ===================================================================
96 --- gdb-7.4.50.20120602.orig/gdb/gdbserver/config.in 2012-04-19 21:34:51.000000000 +0200
97 +++ gdb-7.4.50.20120602/gdb/gdbserver/config.in 2012-06-02 21:49:55.945388329 +0200
99 /* Define to 1 if you have the `dl' library (-ldl). */
102 +/* Define to 1 if you have the `selinux' library (-lselinux). */
103 +#undef HAVE_LIBSELINUX
105 /* Define to 1 if you have the <linux/elf.h> header file. */
106 #undef HAVE_LINUX_ELF_H
109 /* Define to 1 if you have the `readlink' function. */
112 +/* Define to 1 if you have the <selinux/selinux.h> header file. */
113 +#undef HAVE_SELINUX_SELINUX_H
115 /* Define to 1 if you have the <sgtty.h> header file. */
118 Index: gdb-7.4.50.20120602/gdb/gdbserver/configure
119 ===================================================================
120 --- gdb-7.4.50.20120602.orig/gdb/gdbserver/configure 2012-04-20 19:58:49.000000000 +0200
121 +++ gdb-7.4.50.20120602/gdb/gdbserver/configure 2012-06-02 21:49:54.485388864 +0200
122 @@ -5532,6 +5532,64 @@ if $want_ipa ; then
126 +for ac_header in selinux/selinux.h
128 + ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
129 +if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
130 + cat >>confdefs.h <<_ACEOF
131 +#define HAVE_SELINUX_SELINUX_H 1
138 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for security_get_boolean_active in -lselinux" >&5
139 +$as_echo_n "checking for security_get_boolean_active in -lselinux... " >&6; }
140 +if test "${ac_cv_lib_selinux_security_get_boolean_active+set}" = set; then :
141 + $as_echo_n "(cached) " >&6
143 + ac_check_lib_save_LIBS=$LIBS
144 +LIBS="-lselinux $LIBS"
145 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
146 +/* end confdefs.h. */
148 +/* Override any GCC internal prototype to avoid an error.
149 + Use char because int might match the return type of a GCC
150 + builtin and then its argument prototype would still apply. */
154 +char security_get_boolean_active ();
158 +return security_get_boolean_active ();
163 +if ac_fn_c_try_link "$LINENO"; then :
164 + ac_cv_lib_selinux_security_get_boolean_active=yes
166 + ac_cv_lib_selinux_security_get_boolean_active=no
168 +rm -f core conftest.err conftest.$ac_objext \
169 + conftest$ac_exeext conftest.$ac_ext
170 +LIBS=$ac_check_lib_save_LIBS
172 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_security_get_boolean_active" >&5
173 +$as_echo "$ac_cv_lib_selinux_security_get_boolean_active" >&6; }
174 +if test "x$ac_cv_lib_selinux_security_get_boolean_active" = x""yes; then :
175 + cat >>confdefs.h <<_ACEOF
176 +#define HAVE_LIBSELINUX 1
179 + LIBS="-lselinux $LIBS"