2 ## ---------------------------------------------------------------------
3 ## autoopts-config.in -- Tell a client where to find installed autoopts
5 ## Autoopts copyright 1992-2002 Bruce Korb
7 ## Time-stamp: "2002-09-14 11:28:43 bkorb"
8 ## Author: Bruce Korb <bkorb@gnu.org>
9 ## Maintainer: Bruce Korb <bkorb@gnu.org>
10 ## Created: Mon Jun 30 15:35:12 1997
12 ## ---------------------------------------------------------------------
13 ## $Id: autoopts-config.in,v 2.14 2002/09/14 18:36:27 bkorb Exp $
14 ## ---------------------------------------------------------------------
20 datadir
=${prefix}/share
21 includedir
=${prefix}/include
23 bindir
=${exec_prefix}/bin
24 libdir
=${exec_prefix}/lib
31 tag
=libopts-
`echo ${version} | sed 's,:,.,g'`
32 autogen
="${bindir}/autogen${exeext}"
33 ldflags
="-L${libdir} -lopts"
35 pkgdatadir
="${datadir}/${package}"
36 libsrc
="${pkgdatadir}/${tag}.tar.gz"
37 static_libs
="${libdir}/libopts.a"
38 everything
="NOT FOR DISPLAY"
40 [ "${includedir}" = "/usr/include" ] && cflags
="" || cflags
="-I${includedir}"
44 optlist
="autogen bindir cflags exec_prefix ldflags libs libsrc package
45 pkgdatadir prefix static_libs version everything"
48 do eval echo_
${o}=false
; done
53 Usage: autoopts-config <<OPTION>> [ ... ]
54 Options may be one or more of:
60 echo '"everything" will print out the list of names and values.'
64 if test $# -eq 0; then
68 # Figure out what's wanted
70 while test $# -gt 0; do
71 o
=`echo $1 | sed 's,^-*,,;s/-/_/g'`
76 do eval echo_
${o}=true
79 help | h |
\? ) usage
0 ;;
81 *) eval "f=\$echo_${o}" || usage
1 2>&1
82 [ -n "$f" ] || usage
1 2>&1
83 eval echo_
${o}=true || usage
1 2>&1
93 do if eval \
${echo_${o}}
94 then eval printf \""%-12s --> %s\\n"\" ${o} \"\
${${o}}\" ; fi
98 do if eval \
${echo_${o}}
99 then eval echo \
${${o}} ; fi
104 ## end autoopts-config.in