#!/bin/sh CXX=${CXX-g++} PREFIX=/usr STATIC_LIB_ONLY=no VERSION=0.8.0 ## ## 1. ARGS ## Reading configure arguments ## while : do case $# in 0) break ;; esac option=$1 ; shift case $option in --*=*) optarg=`echo $option | sed -e 's/^[^=]*=//'` arguments="$arguments $option" ;; esac case $option in --prefix* | --pre*) PREFIX=$optarg ;; --static*) STATIC_LIB_ONLY=yes ;; -help | --help | --hel | --he) # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat << EOF Usage: configure [options] Options: [defaults in brackets after descriptions] Configuration: --help print this message Directory and file names: --prefix=PREFIX install the library in PREFIX/include and PREFIX/lib [/usr] --static build only the static version of the library [both static and dynamic] EOF exit 0; ;; *) echo "${option}: invalid command-line switch" exit 1 ;; esac done cat > Makefile <> Makefile <> Makefile cat >> Makefile <