diff options
Diffstat (limited to 'lang/php4/scripts/configure.php')
-rw-r--r-- | lang/php4/scripts/configure.php | 102 |
1 files changed, 102 insertions, 0 deletions
diff --git a/lang/php4/scripts/configure.php b/lang/php4/scripts/configure.php new file mode 100644 index 000000000000..69b378289b80 --- /dev/null +++ b/lang/php4/scripts/configure.php @@ -0,0 +1,102 @@ +#!/bin/sh +# $FreeBSD$ + +if [ -f ${WRKDIR}/Makefile.inc ]; then + exit +fi + +tempfile=`/usr/bin/mktemp -t checklist` + +if [ "${BATCH}" ]; then + echo "${SEL_OPTIONS}" > $tempfile +else + if [ -f "${OPTION_FILE}" ]; then + for i in `${CAT} ${OPTION_FILE}` + do + export $i + done + fi + /usr/bin/dialog --title "configuration options" --clear --checklist "\n\ +Please select desired options:" -1 -1 16 \ +BCMATH "bc style precision math functions" ${WITH_BCMATH:-OFF} \ +BZIP2 "bzip2 library support" ${WITH_BZIP2:-OFF} \ +CALENDAR "calendar conversion support" ${WITH_CALENDAR:-OFF} \ +CRACK "crack support" ${WITH_CRACK:-OFF} \ +CTYPE "ctype functions" ${WITH_CTYPE:-OFF} \ +CURL "CURL support" ${WITH_CURL:-OFF} \ +DBASE "dBase library support" ${WITH_DBASE:-OFF} \ +DBX "dbx support" ${WITH_DBX:-OFF} \ +DOMXML "DOM support" ${WITH_DOMXML:-OFF} \ +DOMXSLT "DOM XSLT and EXSLT support (implies DOMXML)" ${WITH_DOMXSLT:-OFF} \ +EXIF "EXIF support" ${WITH_EXIF:-OFF} \ +FILEPRO "filePro support" ${WITH_FILEPRO:-OFF} \ +FTP "FTP support" ${WITH_FTP:-OFF} \ +GD "GD library support" ${WITH_GD:-OFF} \ +GDBM "GDBM database support" ${WITH_GDBM:-OFF} \ +GETTEXT "gettext library support" ${WITH_GETTEXT:-OFF} \ +GMP "GNU MP support" ${WITH_GMP:-OFF} \ +HYPERWAVE "Hyperwave support" ${WITH_HYPERWAVE:-OFF} \ +ICONV "iconv support" ${WITH_ICONV:-OFF} \ +IMAP "IMAP support" ${WITH_IMAP:-OFF} \ +INTERBASE "Interbase 6 database support (Firebird)" ${WITH_INTERBASE:-OFF} \ +MBSTRING "multibyte string support" ${WITH_MBSTRING:-OFF} \ +MCAL "Modular Calendar Access Library support" ${WITH_MCAL:-OFF} \ +MCVE "MCVE support" ${WITH_MCVE:-OFF} \ +MCRYPT "Encryption support" ${WITH_MCRYPT:-OFF} \ +MHASH "Crypto-hashing support" ${WITH_MHASH:-OFF} \ +MIME "mime_magic support" ${WITH_MIME:-OFF} \ +MING "ming shockwave flash support" ${WITH_MING:-OFF} \ +MYSQL "MySQL database support" ${WITH_MYSQL:-OFF} \ +NCURSES "ncurses support (CLI only)" ${WITH_NCURSES:-OFF} \ +OPENLDAP "OpenLDAP support" ${WITH_OPENLDAP:-OFF} \ +OPENSSL "OpenSSL support" ${WITH_OPENSSL:-OFF} \ +PCNTL "pcntl support (CLI only)" ${WITH_PCNTL:-OFF} \ +PCRE "Perl Compatible Regular Expression support" ${WITH_PCRE:-OFF} \ +PDFLIB "PDFlib support" ${WITH_PDFLIB:-OFF} \ +POSIX "POSIX-like functions" ${WITH_POSIX:-OFF} \ +POSTGRESQL "PostgreSQL database support" ${WITH_POSTGRESQL:-OFF} \ +PSPELL "pspell support" ${WITH_PSPELL:-OFF} \ +READLINE "readline support (CLI only)" ${WITH_READLINE:-OFF} \ +RECODE "recode support" ${WITH_RECODE:-OFF} \ +SESSION "session support" ${WITH_SESSION:-OFF} \ +SHMOP "shmop support" ${WITH_SHMOP:-OFF} \ +SNMP "SNMP support" ${WITH_SNMP:-OFF} \ +SOCKETS "sockets support" ${WITH_SOCKETS:-OFF} \ +SYBASEDB "Sybase/MS-SQL database support (DB-lib)" ${WITH_SYBASEDB:-OFF} \ +SYBASECT "Sybase/MS-SQL database support (CT-lib)" ${WITH_SYBASECT:-OFF} \ +SYSVSEM "System V semaphore support" ${WITH_SYSVSEM:-OFF} \ +SYSVSHM "System V shared memory support" ${WITH_SYSVSHM:-OFF} \ +TOKENIZER "tokenizer support" ${WITH_TOKENIZER:-OFF} \ +UNIXODBC "unixODBC support" ${WITH_UNIXODBC:-OFF} \ +WDDX "WDDX support" ${WITH_WDDX:-OFF} \ +XML "XML support" ${WITH_XML:-OFF} \ +XMLRPC "XMLRPC-EPI support" ${WITH_XMLRPC:-OFF} \ +XSLT "XSLT Sablotron support" ${WITH_XSLT:-OFF} \ +YAZ "YAZ support (ANSI/NISO Z39.50)" ${WITH_YAZ:-OFF} \ +YP "YP/NIS support" ${WITH_YP:-OFF} \ +ZIP "ZIP support" ${WITH_ZIP:-OFF} \ +ZLIB "ZLIB support" ${WITH_ZLIB:-OFF} \ +2> $tempfile +fi + +retval=$? + +if [ -s $tempfile ]; then + set `${CAT} $tempfile | ${SED} 's|"||g'` +fi +rm -f $tempfile + +case $retval in + 0) if [ -z "$*" ]; then + echo "Nothing selected" + fi + ;; + 1) echo "Cancel pressed." + exit 1 + ;; +esac +exec > ${WRKDIR}/Makefile.inc +while [ $1 ]; do + echo "WITH_$1=yes"; + shift +done |