5 while test $# -ge 1; do
7 --verbose) verbose=yes ;;
8 --enable-*) configure_args="$configure_args $1" ;;
9 --disable-*) configure_args="$configure_args $1" ;;
10 --with-*) configure_args="$configure_args $1" ;;
11 --without-*) configure_args="$configure_args $1" ;;
12 *) echo "unknown argument $1"; exit 1 ;;
17 touch swig/nlopt.scm.in
21 # paranoia: sometimes autoconf doesn't get things right the first time
22 autoreconf --verbose --install --symlink --force
23 autoreconf --verbose --install --symlink --force
24 autoreconf --verbose --install --symlink --force
26 config=good # hackery so darcs_test still outputs config.log w/failed configure
28 ./configure --enable-maintainer-mode $configure_args || config=bad
30 if test x$verbose = xyes; then
34 test $config = bad && exit 1