pass through arbitrary configure arguments in autogen.sh
Steven G. Johnson
6 years ago
0 | 0 | #!/bin/sh |
1 | ||
2 | configure_args="" | |
3 | ||
4 | while test $# -ge 1; do | |
5 | case $1 in | |
6 | --enable-*) configure_args="$configure_args $1" ;; | |
7 | --disable-*) configure_args="$configure_args $1" ;; | |
8 | --with-*) configure_args="$configure_args $1" ;; | |
9 | --without-*) configure_args="$configure_args $1" ;; | |
10 | *) echo "unknown argument $1"; exit 1 ;; | |
11 | esac | |
12 | shift | |
13 | done | |
14 | 1 | |
15 | 2 | # paranoia: sometimes autoconf doesn't get things right the first time |
16 | 3 | autoreconf --verbose --install --symlink --force |
17 | 4 | autoreconf --verbose --install --symlink --force |
18 | 5 | autoreconf --verbose --install --symlink --force |
19 | 6 | |
20 | ./configure --with-hdf4 --enable-maintainer-mode $configure_args | |
7 | ./configure --with-hdf4 --enable-maintainer-mode $* |