1#! /bin/sh
2
3#
4# Script to give the appropriate compiler flags and linker flags
5# to use when building code that uses LibDAQ modules.
6#
7
8prefix=@prefix@
9exec_prefix=@exec_prefix@
10LIBDIR=@libdir@
11STATIC_LIBS="@STATIC_LIBS@"
12
13static=0
14show_libs=0
15while [ "$#" != 0 ]
16do
17	case "$1" in
18
19	--static)
20		static=1
21		;;
22
23	--libs)
24		show_libs=1
25		;;
26
27	esac
28	shift
29done
30
31if [ "$static" = 1 ]
32then
33	#
34	# Include LIBS so that the flags include libraries containing
35	# routines that LibDAQ uses.
36	#
37	if [ "$show_libs" = 1 ] ; then
38		echo "-L$LIBDIR -ldaq_static_modules $STATIC_LIBS"
39	fi
40fi
41