summaryrefslogtreecommitdiff
path: root/autoopts/mk-autoopts-pc.in
blob: e14d396281e2c7213a97f66f8ca79f1639a9aa0b (plain)
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
#! @CONFIG_SHELL@
## ---------------------------------------------------------------------
## mk-autoopts-pc.in -- Describe AutoOpts configuration
##
##  Autoopts Copyright (c) 1992-2012 by Bruce Korb
##
## DO NOT EDIT THIS FILE   (mk-autoopts-pc.in)
## 
## It has been AutoGen-ed  August 11, 2012 at 09:41:23 AM by AutoGen 5.16.2pre7
## From the definitions    aoconf.def
## and the template file   aoconf.tpl
##
      prefix="@prefix@"
 datarootdir="@datarootdir@"
     datadir="@datadir@"
     package="@PACKAGE@"
  includedir="@includedir@"
 exec_prefix="@exec_prefix@"
      bindir="@bindir@"
      libdir="@libdir@"
      ldopts="@AG_LDFLAGS@"
      exeext="@EXEEXT@"
     version="@AO_CURRENT@:@AO_REVISION@:@AO_AGE@"
      dotver="@AO_CURRENT@.@AO_REVISION@.@AO_AGE@"
  pkgdatadir="${datadir}/${package}"
     autogen="${bindir}/autogen${exeext}"
     ldflags="-L${libdir} -lopts"
        libs="${ldflags}"
      libsrc="${pkgdatadir}/libopts-${dotver}.tar.gz"
 static_libs="${libdir}/libopts.a"
      cflags="-I${includedir}"
test 'X@ENABLE_STATIC@' = Xno && static_libs=''
case "${libdir}" in
/lib | /lib64 | /usr/lib | /usr/lib64 )
    ldopts=''
    ldflags=-lopts
    ;;

* )
    test -n "${ldopts}" && \
        ldflags="${ldopts}${libdir} ${ldflags}"
    ;;
esac
libs=${ldflags}
test "${includedir}" = "/usr/include" && cflags=""
PS4='>mk-aopc> '
dirname=`dirname ${1}`
test -d ${dirname} || mkdir -p ${dirname} || exit 1

cat > ${1} <<-  _EOF_
	# pkg-config information for AutoOpts ${dotver}
	#
	prefix="${prefix}"
	datarootdir="${datarootdir}"
	datadir="${datadir}"
	package="${package}"
	includedir="${includedir}"
	exec_prefix="${exec_prefix}"
	bindir="${bindir}"
	libdir="${libdir}"
	ldopts="${ldopts}"
	exeext="${exeext}"
	version="${version}"
	dotver="${dotver}"
	pkgdatadir="${pkgdatadir}"
	autogen="${autogen}"
	libs="${libs}"
	libsrc="${libsrc}"
	static_libs="${static_libs}"

	Name:           AutoOpts
	Description:    A semi-automated generated/library option parser
	URL:            http://www.gnu.org/software/autogen
	Version:        ${dotver}
	Libs:           ${ldflags}
	Cflags:         ${cflags}
	_EOF_
## end of mk-autoopts-pc.in