1htpasswd_LTFLAGS="" 2htdigest_LTFLAGS="" 3rotatelogs_LTFLAGS="" 4logresolve_LTFLAGS="" 5htdbm_LTFLAGS="" 6ab_LTFLAGS="" 7checkgid_LTFLAGS="" 8htcacheclean_LTFLAGS="" 9httxt2dbm_LTFLAGS="" 10 11AC_ARG_ENABLE(static-support,APACHE_HELP_STRING(--enable-static-support,Build a statically linked version of the support binaries),[ 12if test "$enableval" = "yes" ; then 13 APR_ADDTO(htpasswd_LTFLAGS, [-static]) 14 APR_ADDTO(htdigest_LTFLAGS, [-static]) 15 APR_ADDTO(rotatelogs_LTFLAGS, [-static]) 16 APR_ADDTO(logresolve_LTFLAGS, [-static]) 17 APR_ADDTO(htdbm_LTFLAGS, [-static]) 18 APR_ADDTO(ab_LTFLAGS, [-static]) 19 APR_ADDTO(checkgid_LTFLAGS, [-static]) 20 APR_ADDTO(htcacheclean_LTFLAGS, [-static]) 21 APR_ADDTO(httxt2dbm_LTFLAGS, [-static]) 22fi 23]) 24 25AC_ARG_ENABLE(static-htpasswd,APACHE_HELP_STRING(--enable-static-htpasswd,Build a statically linked version of htpasswd),[ 26if test "$enableval" = "yes" ; then 27 APR_ADDTO(htpasswd_LTFLAGS, [-static]) 28else 29 APR_REMOVEFROM(htpasswd_LTFLAGS, [-static]) 30fi 31]) 32APACHE_SUBST(htpasswd_LTFLAGS) 33 34AC_ARG_ENABLE(static-htdigest,APACHE_HELP_STRING(--enable-static-htdigest,Build a statically linked version of htdigest),[ 35if test "$enableval" = "yes" ; then 36 APR_ADDTO(htdigest_LTFLAGS, [-static]) 37else 38 APR_REMOVEFROM(htdigest_LTFLAGS, [-static]) 39fi 40]) 41APACHE_SUBST(htdigest_LTFLAGS) 42 43AC_ARG_ENABLE(static-rotatelogs,APACHE_HELP_STRING(--enable-static-rotatelogs,Build a statically linked version of rotatelogs),[ 44if test "$enableval" = "yes" ; then 45 APR_ADDTO(rotatelogs_LTFLAGS, [-static]) 46else 47 APR_REMOVEFROM(rotatelogs_LTFLAGS, [-static]) 48fi 49]) 50APACHE_SUBST(rotatelogs_LTFLAGS) 51 52AC_ARG_ENABLE(static-logresolve,APACHE_HELP_STRING(--enable-static-logresolve,Build a statically linked version of logresolve),[ 53if test "$enableval" = "yes" ; then 54 APR_ADDTO(logresolve_LTFLAGS, [-static]) 55else 56 APR_REMOVEFROM(logresolve_LTFLAGS, [-static]) 57fi 58]) 59APACHE_SUBST(logresolve_LTFLAGS) 60 61AC_ARG_ENABLE(static-htdbm,APACHE_HELP_STRING(--enable-static-htdbm,Build a statically linked version of htdbm),[ 62if test "$enableval" = "yes" ; then 63 APR_ADDTO(htdbm_LTFLAGS, [-static]) 64else 65 APR_REMOVEFROM(htdbm_LTFLAGS, [-static]) 66fi 67]) 68APACHE_SUBST(htdbm_LTFLAGS) 69 70AC_ARG_ENABLE(static-ab,APACHE_HELP_STRING(--enable-static-ab,Build a statically linked version of ab),[ 71if test "$enableval" = "yes" ; then 72 APR_ADDTO(ab_LTFLAGS, [-static]) 73else 74 APR_REMOVEFROM(ab_LTFLAGS, [-static]) 75fi 76]) 77APACHE_SUBST(ab_LTFLAGS) 78 79AC_ARG_ENABLE(static-checkgid,APACHE_HELP_STRING(--enable-static-checkgid,Build a statically linked version of checkgid),[ 80if test "$enableval" = "yes" ; then 81 APR_ADDTO(checkgid_LTFLAGS, [-static]) 82else 83 APR_REMOVEFROM(checkgid_LTFLAGS, [-static]) 84fi 85]) 86APACHE_SUBST(checkgid_LTFLAGS) 87 88AC_ARG_ENABLE(static-htcacheclean,APACHE_HELP_STRING(--enable-static-htcacheclean,Build a statically linked version of htcacheclean),[ 89if test "$enableval" = "yes" ; then 90 APR_ADDTO(htcacheclean_LTFLAGS, [-static]) 91else 92 APR_REMOVEFROM(htcacheclean_LTFLAGS, [-static]) 93fi 94]) 95APACHE_SUBST(htcacheclean_LTFLAGS) 96 97AC_ARG_ENABLE(static-httxt2dbm,APACHE_HELP_STRING(--enable-static-httxt2dbm,Build a statically linked version of httxt2dbm),[ 98if test "$enableval" = "yes" ; then 99 APR_ADDTO(httxt2dbm_LTFLAGS, [-static]) 100else 101 APR_REMOVEFROM(httxt2dbm, [-static]) 102fi 103]) 104APACHE_SUBST(httxt2dbm_LTFLAGS) 105 106# Configure or check which of the non-portable support programs can be enabled. 107 108NONPORTABLE_SUPPORT="" 109case $host in 110 *mingw*) 111 ;; 112 *) 113 NONPORTABLE_SUPPORT="checkgid" 114 ;; 115esac 116APACHE_SUBST(NONPORTABLE_SUPPORT) 117 118# Configure the ulimit -n command used by apachectl. 119 120case $host in 121 *aix*) 122 # this works in any locale, unlike the default command below, which 123 # fails in a non-English locale if the hard limit is unlimited 124 # since the display of the limit will translate "unlimited", but 125 # ulimit only accepts English "unlimited" on input 126 APACHECTL_ULIMIT="ulimit -S -n unlimited" 127 ;; 128 *alpha*-dec-osf*) 129 # Tru64: -H is for setting, not retrieving 130 APACHECTL_ULIMIT="ulimit -S -n \`ulimit -h -n\`" 131 ;; 132 *) 133 if TMP_ULIMIT=`ulimit -H -n` && ulimit -S -n $TMP_ULIMIT ; then 134 APACHECTL_ULIMIT="ulimit -S -n \`ulimit -H -n\`" 135 else 136 APACHECTL_ULIMIT="" 137 fi 138 ;; 139esac 140APACHE_SUBST(APACHECTL_ULIMIT) 141