]>
Commit | Line | Data |
---|---|---|
f412e1b4 PS |
1 | --- 1/gdb/config.in 2012-03-09 18:40:28.001871023 +0100 |
2 | +++ ./gdb/config.in 2012-03-09 18:41:46.552621113 +0100 | |
3 | @@ -245,6 +245,9 @@ | |
4 | /* Define if librpm library is being used. */ | |
5 | #undef HAVE_LIBRPM | |
6 | ||
7 | +/* Define to 1 if you have the `selinux' library (-lselinux). */ | |
8 | +#undef HAVE_LIBSELINUX | |
9 | + | |
10 | /* Define if libunwind library is being used. */ | |
11 | #undef HAVE_LIBUNWIND | |
12 | ||
13 | @@ -483,6 +486,9 @@ | |
14 | /* Define to 1 if you have the `sbrk' function. */ | |
15 | #undef HAVE_SBRK | |
16 | ||
17 | +/* Define to 1 if you have the <selinux/selinux.h> header file. */ | |
18 | +#undef HAVE_SELINUX_SELINUX_H | |
19 | + | |
20 | /* Define to 1 if you have the `setlocale' function. */ | |
21 | #undef HAVE_SETLOCALE | |
22 | ||
23 | --- 1/gdb/configure 2012-03-09 18:40:28.183870443 +0100 | |
24 | +++ ./gdb/configure 2012-03-09 18:41:45.783623559 +0100 | |
25 | @@ -15557,6 +15557,64 @@ $as_echo "#define HAVE_PERSONALITY 1" >> | |
26 | ||
27 | fi | |
28 | ||
29 | +for ac_header in selinux/selinux.h | |
30 | +do : | |
31 | + ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default" | |
32 | +if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then : | |
33 | + cat >>confdefs.h <<_ACEOF | |
34 | +#define HAVE_SELINUX_SELINUX_H 1 | |
35 | +_ACEOF | |
36 | + | |
37 | +fi | |
38 | + | |
39 | +done | |
40 | + | |
41 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for security_get_boolean_active in -lselinux" >&5 | |
42 | +$as_echo_n "checking for security_get_boolean_active in -lselinux... " >&6; } | |
43 | +if test "${ac_cv_lib_selinux_security_get_boolean_active+set}" = set; then : | |
44 | + $as_echo_n "(cached) " >&6 | |
45 | +else | |
46 | + ac_check_lib_save_LIBS=$LIBS | |
47 | +LIBS="-lselinux $LIBS" | |
48 | +cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
49 | +/* end confdefs.h. */ | |
50 | + | |
51 | +/* Override any GCC internal prototype to avoid an error. | |
52 | + Use char because int might match the return type of a GCC | |
53 | + builtin and then its argument prototype would still apply. */ | |
54 | +#ifdef __cplusplus | |
55 | +extern "C" | |
56 | +#endif | |
57 | +char security_get_boolean_active (); | |
58 | +int | |
59 | +main () | |
60 | +{ | |
61 | +return security_get_boolean_active (); | |
62 | + ; | |
63 | + return 0; | |
64 | +} | |
65 | +_ACEOF | |
66 | +if ac_fn_c_try_link "$LINENO"; then : | |
67 | + ac_cv_lib_selinux_security_get_boolean_active=yes | |
68 | +else | |
69 | + ac_cv_lib_selinux_security_get_boolean_active=no | |
70 | +fi | |
71 | +rm -f core conftest.err conftest.$ac_objext \ | |
72 | + conftest$ac_exeext conftest.$ac_ext | |
73 | +LIBS=$ac_check_lib_save_LIBS | |
74 | +fi | |
75 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_security_get_boolean_active" >&5 | |
76 | +$as_echo "$ac_cv_lib_selinux_security_get_boolean_active" >&6; } | |
77 | +if test "x$ac_cv_lib_selinux_security_get_boolean_active" = x""yes; then : | |
78 | + cat >>confdefs.h <<_ACEOF | |
79 | +#define HAVE_LIBSELINUX 1 | |
80 | +_ACEOF | |
81 | + | |
82 | + LIBS="-lselinux $LIBS" | |
83 | + | |
84 | +fi | |
85 | + | |
86 | + | |
87 | ||
88 | # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR, | |
89 | # except that the argument to --with-sysroot is optional. |