Browse Source

add optional GDBM based NDBM support

master
parent
commit
fd5283d832
  1. 15
      apache/apache.spec

15
apache/apache.spec

@ -124,6 +124,9 @@ Release: 20030211
%option with_mod_php3_openssl no
%option with_mod_php3_zlib no
# package options (braindead ones only)
%option with_gdbm_ndbm no
# fixing implicit inter-module dependencies and correlations
%if "%{with_mod_php}" == "yes"
%if "%{with_mod_php3}" == "yes"
@ -154,6 +157,10 @@ ERROR: with_mod_php conflicts with with_mod_php3
%define with_mod_php3_zlib yes
%endif
%endif
%if "%{with_php_gdbm}" == "yes"
%undefine with_gdbm_ndbm
%define with_gdbm_ndbm yes
%endif
# list of sources
Source0: http://www.apache.org/dist/httpd/apache_%{V_apache}.tar.gz
@ -279,6 +286,9 @@ BuildPreReq: openldap, openssl
BuildPreReq: PAM
PreReq: PAM
%endif
%if "%{with_gdbm_ndbm}" == "yes"
BuildPreReq: gdbm, gdbm::with_ndbm = yes
%endif
AutoReq: no
AutoReqProv: no
@ -701,6 +711,11 @@ AutoReqProv: no
cflags="$cflags -I%{l_prefix}/include"
ldflags="$ldflags -L%{l_prefix}/lib"
libs="$libs -lldap -llber -lssl -lcrypto"
%endif
%if "%{with_gdbm_ndbm}" == "yes"
cflags="$cflags -I%{l_prefix}/include"
ldflags="$ldflags -L%{l_prefix}/lib"
libs="$libs -lndbm -lgdbm"
%endif
CC="%{l_cc}" \
CFLAGS="$cflags" \

Loading…
Cancel
Save