|
11 | 11 | # This configure script is free software; the Free Software Foundation |
12 | 12 | # gives unlimited permission to copy, distribute and modify it. |
13 | 13 | # |
14 | | -# Copyright (c) 1996-2015, PostgreSQL Global Development Group |
| 14 | +# Copyright (c) 1996-2016, PostgreSQL Global Development Group |
15 | 15 | ## -------------------- ## |
16 | 16 | ## M4sh Initialization. ## |
17 | 17 | ## -------------------- ## |
@@ -709,6 +709,7 @@ with_libxml |
709 | 709 | XML2_CONFIG |
710 | 710 | UUID_EXTRA_OBJS |
711 | 711 | with_uuid |
| 712 | +with_systemd |
712 | 713 | with_selinux |
713 | 714 | with_openssl |
714 | 715 | krb_srvtab |
@@ -830,6 +831,7 @@ with_ldap |
830 | 831 | with_bonjour |
831 | 832 | with_openssl |
832 | 833 | with_selinux |
| 834 | +with_systemd |
833 | 835 | with_readline |
834 | 836 | with_libedit_preferred |
835 | 837 | with_uuid |
@@ -1518,6 +1520,7 @@ Optional Packages: |
1518 | 1520 | --with-bonjour build with Bonjour support |
1519 | 1521 | --with-openssl build with OpenSSL support |
1520 | 1522 | --with-selinux build with SELinux support |
| 1523 | + --with-systemd build with systemd support |
1521 | 1524 | --without-readline do not use GNU Readline nor BSD Libedit for editing |
1522 | 1525 | --with-libedit-preferred |
1523 | 1526 | prefer BSD Libedit over GNU Readline |
@@ -1617,7 +1620,7 @@ Copyright (C) 2012 Free Software Foundation, Inc. |
1617 | 1620 | This configure script is free software; the Free Software Foundation |
1618 | 1621 | gives unlimited permission to copy, distribute and modify it. |
1619 | 1622 |
|
1620 | | -Copyright (c) 1996-2015, PostgreSQL Global Development Group |
| 1623 | +Copyright (c) 1996-2016, PostgreSQL Global Development Group |
1621 | 1624 | _ACEOF |
1622 | 1625 | exit |
1623 | 1626 | fi |
@@ -5694,6 +5697,41 @@ fi |
5694 | 5697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_selinux" >&5 |
5695 | 5698 | $as_echo "$with_selinux" >&6; } |
5696 | 5699 |
|
| 5700 | +# |
| 5701 | +# Systemd |
| 5702 | +# |
| 5703 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with systemd support" >&5 |
| 5704 | +$as_echo_n "checking whether to build with systemd support... " >&6; } |
| 5705 | + |
| 5706 | + |
| 5707 | + |
| 5708 | +# Check whether --with-systemd was given. |
| 5709 | +if test "${with_systemd+set}" = set; then : |
| 5710 | + withval=$with_systemd; |
| 5711 | + case $withval in |
| 5712 | + yes) |
| 5713 | + |
| 5714 | +$as_echo "#define USE_SYSTEMD 1" >>confdefs.h |
| 5715 | + |
| 5716 | + ;; |
| 5717 | + no) |
| 5718 | + : |
| 5719 | + ;; |
| 5720 | + *) |
| 5721 | + as_fn_error $? "no argument expected for --with-systemd option" "$LINENO" 5 |
| 5722 | + ;; |
| 5723 | + esac |
| 5724 | + |
| 5725 | +else |
| 5726 | + with_systemd=no |
| 5727 | + |
| 5728 | +fi |
| 5729 | + |
| 5730 | + |
| 5731 | + |
| 5732 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_systemd" >&5 |
| 5733 | +$as_echo "$with_systemd" >&6; } |
| 5734 | + |
5697 | 5735 | # |
5698 | 5736 | # Readline |
5699 | 5737 | # |
@@ -10473,6 +10511,17 @@ fi |
10473 | 10511 |
|
10474 | 10512 | done |
10475 | 10513 |
|
| 10514 | +fi |
| 10515 | + |
| 10516 | +if test "$with_systemd" = yes ; then |
| 10517 | + ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default" |
| 10518 | +if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes; then : |
| 10519 | + |
| 10520 | +else |
| 10521 | + as_fn_error $? "header file <systemd/sd-daemon.h> is required for systemd support" "$LINENO" 5 |
| 10522 | +fi |
| 10523 | + |
| 10524 | + |
10476 | 10525 | fi |
10477 | 10526 |
|
10478 | 10527 | if test "$with_libxml" = yes ; then |
@@ -13026,6 +13075,12 @@ esac |
13026 | 13075 | ;; |
13027 | 13076 | esac |
13028 | 13077 |
|
| 13078 | + case " $LIBOBJS " in |
| 13079 | + *" win32security.$ac_objext "* ) ;; |
| 13080 | + *) LIBOBJS="$LIBOBJS win32security.$ac_objext" |
| 13081 | + ;; |
| 13082 | +esac |
| 13083 | + |
13029 | 13084 | case " $LIBOBJS " in |
13030 | 13085 | *" win32setlocale.$ac_objext "* ) ;; |
13031 | 13086 | *) LIBOBJS="$LIBOBJS win32setlocale.$ac_objext" |
@@ -13232,7 +13287,7 @@ if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then |
13232 | 13287 | $as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h |
13233 | 13288 |
|
13234 | 13289 | fi |
13235 | | - for ac_func in rl_completion_matches rl_filename_completion_function |
| 13290 | + for ac_func in rl_completion_matches rl_filename_completion_function rl_reset_screen_size |
13236 | 13291 | do : |
13237 | 13292 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13238 | 13293 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
|
0 commit comments