Debian Codegraph @

texmf-dist/source/bibtex/urlbst/configure.ac

raw
1 dnl Process this file with autoconf to produce a configure script
2 AC_INIT(urlbst, 0.9.1, [email protected])
3 RELEASEDATE="2023 January 30"
4 AC_SUBST(RELEASEDATE)
5
6 AC_SUBST(REPOURL, [https://heptapod.host/nxg/urlbst])
7 AC_SUBST(CTANURL, [https://ctan.org/pkg/urlbst])
8
9 AC_REVISION(@PACKAGE_VERSION@)
10
11 dnl COPYRIGHTYEARS="2002-03, 2005-12, 2014, 2019, 2022, 2023"
12 dnl simpler...
13 COPYRIGHTYEARS="2002–23"
14 AC_SUBST(COPYRIGHTYEARS)
15
16 AC_PREREQ(2.50)
17
18 AC_CONFIG_SRCDIR([urlbst.in])
19
20 AC_PATH_PROG(PERL, perl)
21
22
23 dnl Add --with-eprints: tune default support for eprints
24 WITHEPRINTS=1
25 AC_SUBST(WITHEPRINTS)
26 EPRINTURL=https://arxiv.org/abs/
27 AC_SUBST(EPRINTURL)
28
29 dnl Add --with-doi: tune default support for DOI fields
30 WITHDOIRESOLVER=1
31 AC_SUBST(WITHDOIRESOLVER)
32 DOIURL=https://doi.org/
33 AC_SUBST(DOIURL)
34
35 dnl Add --with-pubmed
36 WITHPUBMEDRESOLVER=1
37 AC_SUBST(WITHPUBMEDRESOLVER)
38 PUBMEDURL=http://www.ncbi.nlm.nih.gov/pubmed/
39 AC_SUBST(PUBMEDURL)
40
41 AC_ARG_WITH(eprints,
42 [ --with-eprints[[=url]] Include eprint support by default, giving optional URL],
43 if test "$withval" = "yes"; then
44 WITHEPRINTS=1
45 elif test "$withval" = "no"; then
46 WITHEPRINTS=0
47 else
48 WITHEPRINTS=1
49 EPRINTURL=$withval
50 fi)
51
52 AC_ARG_WITH(doi,
53 [ --with-doi=[[=url]] Include support for a DOI resolver by default, giving optional URL],
54 if test "$withval" = yes; then
55 WITHDOIRESOLVER=1
56 elif test "$withval" = no; then
57 WITHDOIRESOLVER=0
58 else
59 WITHDOIRESOLVER=1
60 DOIURL=$withval
61 fi)
62
63 AC_ARG_WITH(pubmed,
64 [ --with-pubmed=[[=url]] Include support for a PUBMED resolver by default, giving optional URL],
65 if test "$withval" = yes; then
66 WITHPUBMEDRESOLVER=1
67 elif test "$withval" = no; then
68 WITHPUBMEDRESOLVER=0
69 else
70 WITHPUBMEDRESOLVER=1
71 PUBMEDURL=$withval
72 fi)
73
74
75 dnl Add --with-href: set default support for hyperlinks
76 dnl Default is to have no hyperlinks
77 WITHHREF=0
78 AC_SUBST(WITHHREF)
79
80 AC_ARG_WITH(href,
81 [ --with-href[[=int]] Include eprint hyperlinks (0/1/2=none/hypertex/hyperref)],
82 if test "$withval" = yes; then
83 WITHHREF=2
84 elif test "$withval" = no; then
85 WITHHREF=0
86 else
87 WITHHREF=$withval
88 fi)
89
90
91 AC_CONFIG_FILES(Makefile)
92 AC_CONFIG_FILES(urlbst, [chmod +x urlbst])
93
94 AC_OUTPUT