Re-enable recording of extended-reasons through tyvar expansion
[hiphop-php.git] / configure
blob6ab03c61a7b3590d225c9011d13ad6177b367ebe
1 #!/usr/bin/env bash
3 DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
5 if [ "$1" = '--help' ] || [ "$1" = '-h' ]; then
6 echo "usage: $0 -Dvariable=argument ..."
7 echo ''
8 echo 'Variables: '
9 options=`cat $DIR/CMake/Options.cmake | grep option | sed -e 's/^[ \t]*//' |
10 sed 's/\s*option(/ -D/; s/ "/=ON|OFF : /;
11 s/" / : Default: /; s/)$//' | sort`
12 options=" -DCMAKE_BUILD_TYPE=Debug|Release|RelWithDebInfo|MinSizeRel : Sets build type \
13 : Default: Release
14 $options"
15 if which column > /dev/null; then
16 options=`echo "$options" | column -t -s : `
18 echo "$options"
19 exit 2
22 cmake "$@" .