#! /bin/sh

prefix="/var/folders/tb/y368xp_x10s3ty1b_mtl5mxr0000gn/T/tmph6y8ljl7/wheel/platlib"
exec_prefix=${prefix}

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

Known values for OPTION are:

  --prefix              NEST install prefix for architecture-independent files
  --exec-prefix         NEST install prefix for architecture-dependent files
  --libs                print library linking information for extension modules
  --cflags              print pre-processor and compiler flags
  --includes            print includes
  --compiler            print the compiler used to compile NEST
  --compiler-name       Print the compiler name used to compile NEST
  --compiler-version    Print the compiler version used to compile NEST
  --python-executable   print full path to Python interpreter used
  --python-version      print Python version string for interpreter
  --static-libraries    print "ON" if configured for static libraries, "OFF" otherwise
  --docdir              print the relative path (to prefix) to the installed documentation
  --datadir             print the relative path (to prefix) to the installed data
  --libdir              print the relative path (to prefix) to the installed libraries
  --help                display this help and exit
  --version             output version information

EOF

    exit "${1}"
}

if test $# -eq 0; then
    usage 1
fi

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

    case "$1" in
    --prefix=*)
        prefix="${optarg}"
        ;;
    --prefix)
        echo "${prefix}"
        ;;
    --exec-prefix)
        echo "${exec_prefix}"
        ;;
    --version)
        echo "3.10.0-rc.2"
        ;;
    --help)
        usage 0
        ;;
    --includes)
        echo " -I/var/folders/tb/y368xp_x10s3ty1b_mtl5mxr0000gn/T/tmph6y8ljl7/wheel/platlib/include/nest -I/opt/homebrew/include -I/opt/homebrew/Cellar/gsl/2.8/include -I/opt/homebrew/include -I/opt/homebrew/include "
        ;;
    --cflags)
        echo " -Wall -Xclang -fopenmp -O2  -O3 -DNDEBUG -std=c++20"
        ;;
    --libs)
        echo "-L${prefix}/lib/nest /opt/homebrew/lib/libltdl.dylib /opt/homebrew/Cellar/gsl/2.8/lib/libgsl.dylib /opt/homebrew/Cellar/gsl/2.8/lib/libgslcblas.dylib    /opt/homebrew/lib/libomp.dylib  "
        ;;
    --compiler)
        echo "/usr/bin/clang++"
        ;;
    --compiler-name)
        echo "AppleClang"
        ;;
    --compiler-version)
        echo "17.0.0.17000013"
        ;;
    --python-executable)
        echo "/private/var/folders/tb/y368xp_x10s3ty1b_mtl5mxr0000gn/T/cibw-run-17_va263/cp310-macosx_arm64/build/venv/bin/python"
        ;;
    --python-version)
        echo "3.10.11"
        ;;

    --static-libraries)
        echo "OFF"
        ;;
    --docdir)
        echo "share/doc/nest"
        ;;
    --datadir)
        echo "nest/share/nest"
        ;;
    --libdir)
        echo "lib"
        ;;
    *)
        usage 1
        ;;
    esac
    shift
done

exit 0
