| version 1.1, 2001/05/02 17:11:33 |
version 1.2, 2001/11/07 16:25:13 |
| |
| lib_dir=@libdir@ | lib_dir=@libdir@ |
| include_dir=@includedir@ | include_dir=@includedir@ |
| | |
| | enable_net=@enable_net@ |
| | enable_3d=@enable_3d@ |
| | enable_pacs=@enable_pacs@ |
| | enable_sound=@enable_sound@ |
| | enable_ai=@enable_ai@ |
| | |
| usage() | usage() |
| { | { |
| cat <<EOF | cat <<EOF |
| |
| [--libs] | [--libs] |
| [--libtool] | [--libtool] |
| [--cflags] | [--cflags] |
| | [--without-network] |
| [--without-3d] | [--without-3d] |
| | [--without-pacs] |
| | [--without-sound] |
| [--without-ai] | [--without-ai] |
| [--without-network] | |
| EOF | EOF |
| exit $1 | exit $1 |
| } | } |
| |
| --libtool) | --libtool) |
| echo_libtool=yes | echo_libtool=yes |
| ;; | ;; |
| | --without-net|--without-network) |
| | without_net=yes |
| | ;; |
| --without-3d) | --without-3d) |
| without_3d=yes | without_3d=yes |
| ;; | ;; |
| | --without-pacs) |
| | without_pacs=yes |
| | ;; |
| --without-ai) | --without-ai) |
| without_ai=yes | without_ai=yes |
| ;; | ;; |
| --without-net|--without-network) | --without-snd|--without-sound) |
| without_net=yes | without_sound=yes |
| ;; | ;; |
| *) | *) |
| usage 1 1>&2 | usage 1 1>&2 |
| |
| if test "$echo_libs" = "yes" | if test "$echo_libs" = "yes" |
| then | then |
| lib_misc="-lnelmisc" | lib_misc="-lnelmisc" |
| | lib_net="-lnelnet" |
| lib_3d="-lnel3d" | lib_3d="-lnel3d" |
| | lib_pacs="-lnelpacs" |
| | lib_sound="-lnelsnd" |
| lib_ai="-lnelai" | lib_ai="-lnelai" |
| lib_net="-lnelnet" | |
| | |
| libs="$lib_misc" | libs="$lib_misc" |
| | |
| if test "$without_3d" != "yes" | if test "$without_net" != "yes" -a "$enable_net" = "yes" |
| | then |
| | libs="$libs $lib_net" |
| | fi |
| | |
| | if test "$without_3d" != "yes" -a "$enable_3d" = "yes" |
| then | then |
| libs="$libs $lib_3d" | libs="$libs $lib_3d" |
| fi | fi |
| | |
| if test "$without_ai" != "yes" | if test "$without_pacs" != "yes" -a "$enable_pacs" = "yes" |
| then | then |
| libs="$libs $lib_ai" | libs="$libs $lib_pacs" |
| fi | fi |
| | |
| if test "$without_net" != "yes" | if test "$without_sound" != "yes" -a "$enable_sound" = "yes" |
| then | then |
| libs="$libs $lib_net" | libs="$libs $lib_sound" |
| | fi |
| | |
| | if test "$without_ai" != "yes" -a "$enable_ai" = "yes" |
| | then |
| | libs="$libs $lib_ai" |
| fi | fi |
| | |
| echo -L@libdir@ $libs | echo -L@libdir@ $libs |
| |
| if test "$echo_libtool" = "yes" | if test "$echo_libtool" = "yes" |
| then | then |
| libtool_misc="$lib_dir/libnelmisc.la" | libtool_misc="$lib_dir/libnelmisc.la" |
| | libtool_net="$lib_dir/libnelnet.la" |
| libtool_3d="$lib_dir/libnel3d.la" | libtool_3d="$lib_dir/libnel3d.la" |
| | libtool_pacs="$lib_dir/libnelpacs.la" |
| | libtool_sound="$lib_dir/libnelsnd.la" |
| libtool_ai="$lib_dir/libnelai.la" | libtool_ai="$lib_dir/libnelai.la" |
| libtool_net="$lib_dir/libnelnet.la" | |
| | |
| libtool="$libtool_misc" | libtool="$libtool_misc" |
| | |
| | if test "$without_net" != "yes" |
| | then |
| | libtool="$libtool $libtool_net" |
| | fi |
| | |
| if test "$without_3d" != "yes" | if test "$without_3d" != "yes" |
| then | then |
| libtool="$libtool $libtool_3d" | libtool="$libtool $libtool_3d" |
| fi | fi |
| | |
| if test "$without_ai" != "yes" | if test "$without_pacs" != "yes" |
| then | then |
| libtool="$libtool $libtool_ai" | libtool="$libtool $libtool_pacs" |
| fi | fi |
| | |
| if test "$without_net" != "yes" | if test "$without_sound" != "yes" |
| then | then |
| libtool="$libtool $libtool_net" | libtool="$libtool $libtool_sound" |
| | fi |
| | |
| | if test "$without_ai" != "yes" |
| | then |
| | libtool="$libtool $libtool_ai" |
| fi | fi |
| | |
| echo $libtool | echo $libtool |
| fi | fi |
| | |
| # EOF | # EOF |
| | |