1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-18 10:56:53 +00:00
nixpkgs/pkgs/development/interpreters/php/builder.sh
Wouter den Breejen 78746b036b PHP can take mysql as a arugment
svn path=/nixpkgs/trunk/; revision=9558
2007-10-30 16:04:45 +00:00

25 lines
525 B
Bash

source $stdenv/setup
alias lex=flex
configureFlags="$configureFlags \
--with-libxml-dir=$libxml2 \
--with-apxs2=$apacheHttpd/bin/apxs \
--without-libexpat-dir"
if test -n "$unixODBC"; then
configureFlags="$configureFlags --with-unixODBC=$unixODBC"
fi
if test -n "$postgresql"; then
configureFlags="$configureFlags --with-pgsql=$postgresql"
fi
if test -n "$mysql"; then
configureFlags="$configureFlags --with-mysql=$mysql"
fi
makeFlags="APXS_LIBEXECDIR=$out/modules $makeFlags"
genericBuild