Skip to content
This repository
tag: 4.1.1
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 131 lines (113 sloc) 2.214 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130
#!/bin/sh

comp_prefix=@OBJSDIR@
moddir=`@CYGPATH_W@ $comp_prefix/finclude`
libdir=`@CYGPATH_W@ $comp_prefix/lib`
version=@PACKAGE_VERSION@

usage()
{
    cat <<EOF
Usage: FoX-config [OPTION]

Known values for OPTION are:

  --libs print library linking information
  --fcflags print pre-processor and compiler flags
  --help display this help and exit
  --version display version information
EOF

    exit $1
}

FLAGS=both
MODULES=
while test $# -gt 0; do
    case "$1" in
    -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
    *) optarg= ;;
    esac

    case "$1" in
    --version)
echo ${version}
exit 0
;;

    --help)
usage 0
;;

    --fcflags)
        FLAGS=FC
        ;;

    --libs)
        FLAGS=LD
        ;;

    --common)
        MODULES="$MODULES common utils fsys"
        ;;
    --utils)
        MODULES="$MODULES utils fsys"
        ;;
    --wxml)
        MODULES="$MODULES wxml common utils fsys"
        ;;
    --wcml)
        MODULES="$MODULES wcml wxml common utils fsys"
        ;;
    --sax)
        MODULES="$MODULES sax common utils fsys"
        ;;
    --dom)
        MODULES="$MODULES dom sax wxml common utils fsys"
        ;;
    --wkml)
        MODULES="$MODULES wkml wxml common utils fsys"
        ;;

    *)
usage
exit 1
;;
    esac
    shift
done

if [ "x$MODULES" = x ]; then
# MODULES="dom sax wcml wxml common utils fsys"
  MODULES="dom sax wkml wcml wxml common utils fsys"
fi

case $MODULES in *fsys*)
  LIBS=$libdir/libFoX_fsys.@LIBEXT@
  ;;
esac
case $MODULES in *utils*)
  LIBS="$libdir/libFoX_utils.@LIBEXT@ $LIBS"
  ;;
esac
case $MODULES in *common*)
  LIBS="$libdir/libFoX_common.@LIBEXT@ $LIBS"
  ;;
esac
case $MODULES in *wxml*)
  LIBS="$libdir/libFoX_wxml.@LIBEXT@ $LIBS"
  ;;
esac
case $MODULES in *wcml*)
  LIBS="$libdir/libFoX_wcml.@LIBEXT@ $LIBS"
  ;;
esac
case $MODULES in *sax*)
  LIBS="$libdir/libFoX_sax.@LIBEXT@ $LIBS"
  ;;
esac
case $MODULES in *dom*)
  LIBS="$libdir/libFoX_dom.@LIBEXT@ $LIBS"
  ;;
esac
case $MODULES in *wkml*)
  LIBS="$libdir/libFoX_wkml.@LIBEXT@ $LIBS"
  ;;
esac


case $FLAGS in
  FC)
    echo @FC_MOD_FLAG@"$moddir"
    ;;
  LD)
    echo $LIBS
    ;;
  both)
    echo @FC_MOD_FLAG@"$moddir" $LIBS
esac

exit 0
Something went wrong with that request. Please try again.