@@ -715,6 +715,7 @@ with_libxslt
715
715
with_libxml
716
716
XML2_CONFIG
717
717
with_ossp_uuid
718
+ with_selinux
718
719
with_openssl
719
720
with_bonjour
720
721
with_ldap
@@ -837,6 +838,7 @@ with_pam
837
838
with_ldap
838
839
with_bonjour
839
840
with_openssl
841
+ with_selinux
840
842
with_readline
841
843
with_libedit_preferred
842
844
with_ossp_uuid
@@ -848,6 +850,7 @@ with_gnu_ld
848
850
enable_largefile
849
851
enable_float4_byval
850
852
enable_float8_byval
853
+ enable_float8_byval
851
854
'
852
855
ac_precious_vars='build_alias
853
856
host_alias
@@ -858,6 +861,7 @@ LDFLAGS
858
861
LIBS
859
862
CPPFLAGS
860
863
CPP
864
+ CPPFLAGS
861
865
LDFLAGS_EX
862
866
LDFLAGS_SL
863
867
DOCBOOKSTYLE'
@@ -1533,6 +1537,7 @@ Optional Packages:
1533
1537
--with-ldap build with LDAP support
1534
1538
--with-bonjour build with Bonjour support
1535
1539
--with-openssl build with OpenSSL support
1540
+ --with-selinux build with SELinux support
1536
1541
--without-readline do not use GNU Readline nor BSD Libedit for editing
1537
1542
--with-libedit-preferred
1538
1543
prefer BSD Libedit over GNU Readline
@@ -5364,6 +5369,40 @@ fi
5364
5369
$as_echo "$with_openssl" >&6; }
5365
5370
5366
5371
5372
+ #
5373
+ # SELinux
5374
+ #
5375
+ { $as_echo "$as_me:$LINENO: checking whether to build with SELinux support" >&5
5376
+ $as_echo_n "checking whether to build with SELinux support... " >&6; }
5377
+
5378
+
5379
+
5380
+ # Check whether --with-selinux was given.
5381
+ if test "${with_selinux+set}" = set; then
5382
+ withval=$with_selinux;
5383
+ case $withval in
5384
+ yes)
5385
+ :
5386
+ ;;
5387
+ no)
5388
+ :
5389
+ ;;
5390
+ *)
5391
+ { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-selinux option" >&5
5392
+ $as_echo "$as_me: error: no argument expected for --with-selinux option" >&2;}
5393
+ { (exit 1); exit 1; }; }
5394
+ ;;
5395
+ esac
5396
+
5397
+ else
5398
+ with_selinux=no
5399
+
5400
+ fi
5401
+
5402
+
5403
+
5404
+ { $as_echo "$as_me:$LINENO: result: $with_selinux" >&5
5405
+ $as_echo "$with_selinux" >&6; }
5367
5406
5368
5407
#
5369
5408
# Readline
@@ -9291,6 +9330,89 @@ fi
9291
9330
9292
9331
fi
9293
9332
9333
+ # for contrib/sepgsql
9334
+ if test "$with_selinux" = yes; then
9335
+
9336
+ { $as_echo "$as_me:$LINENO: checking for getpeercon_raw in -lselinux" >&5
9337
+ $as_echo_n "checking for getpeercon_raw in -lselinux... " >&6; }
9338
+ if test "${ac_cv_lib_selinux_getpeercon_raw+set}" = set; then
9339
+ $as_echo_n "(cached) " >&6
9340
+ else
9341
+ ac_check_lib_save_LIBS=$LIBS
9342
+ LIBS="-lselinux $LIBS"
9343
+ cat >conftest.$ac_ext <<_ACEOF
9344
+ /* confdefs.h. */
9345
+ _ACEOF
9346
+ cat confdefs.h >>conftest.$ac_ext
9347
+ cat >>conftest.$ac_ext <<_ACEOF
9348
+ /* end confdefs.h. */
9349
+
9350
+ /* Override any GCC internal prototype to avoid an error.
9351
+ Use char because int might match the return type of a GCC
9352
+ builtin and then its argument prototype would still apply. */
9353
+ #ifdef __cplusplus
9354
+ extern "C"
9355
+ #endif
9356
+ char getpeercon_raw ();
9357
+ int
9358
+ main ()
9359
+ {
9360
+ return getpeercon_raw ();
9361
+ ;
9362
+ return 0;
9363
+ }
9364
+ _ACEOF
9365
+ rm -f conftest.$ac_objext conftest$ac_exeext
9366
+ if { (ac_try="$ac_link"
9367
+ case "(($ac_try" in
9368
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9369
+ *) ac_try_echo=$ac_try;;
9370
+ esac
9371
+ eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9372
+ $as_echo "$ac_try_echo") >&5
9373
+ (eval "$ac_link") 2>conftest.er1
9374
+ ac_status=$?
9375
+ grep -v '^ *+' conftest.er1 >conftest.err
9376
+ rm -f conftest.er1
9377
+ cat conftest.err >&5
9378
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379
+ (exit $ac_status); } && {
9380
+ test -z "$ac_c_werror_flag" ||
9381
+ test ! -s conftest.err
9382
+ } && test -s conftest$ac_exeext && {
9383
+ test "$cross_compiling" = yes ||
9384
+ $as_test_x conftest$ac_exeext
9385
+ }; then
9386
+ ac_cv_lib_selinux_getpeercon_raw=yes
9387
+ else
9388
+ $as_echo "$as_me: failed program was:" >&5
9389
+ sed 's/^/| /' conftest.$ac_ext >&5
9390
+
9391
+ ac_cv_lib_selinux_getpeercon_raw=no
9392
+ fi
9393
+
9394
+ rm -rf conftest.dSYM
9395
+ rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9396
+ conftest$ac_exeext conftest.$ac_ext
9397
+ LIBS=$ac_check_lib_save_LIBS
9398
+ fi
9399
+ { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_getpeercon_raw" >&5
9400
+ $as_echo "$ac_cv_lib_selinux_getpeercon_raw" >&6; }
9401
+ if test "x$ac_cv_lib_selinux_getpeercon_raw" = x""yes; then
9402
+ cat >>confdefs.h <<_ACEOF
9403
+ #define HAVE_LIBSELINUX 1
9404
+ _ACEOF
9405
+
9406
+ LIBS="-lselinux $LIBS"
9407
+
9408
+ else
9409
+ { { $as_echo "$as_me:$LINENO: error: library 'libselinux' is required for SELinux support" >&5
9410
+ $as_echo "$as_me: error: library 'libselinux' is required for SELinux support" >&2;}
9411
+ { (exit 1); exit 1; }; }
9412
+ fi
9413
+
9414
+ fi
9415
+
9294
9416
# for contrib/uuid-ossp
9295
9417
if test "$with_ossp_uuid" = yes ; then
9296
9418
{ $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
0 commit comments