-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathconfigure.ac
More file actions
96 lines (88 loc) · 3.35 KB
/
Copy pathconfigure.ac
File metadata and controls
96 lines (88 loc) · 3.35 KB
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
AC_INIT([fastdb], [0.1], [raknop@lbl.gov])
AM_INIT_AUTOMAKE([foreign])
AC_CONFIG_FILES([
Makefile
src/Makefile
src/webserver/Makefile
src/config.py
src/webserver/static/fastdb.js
src/webserver/static/fastdb_start.js
src/webserver/static/objectinfo.js
src/webserver/static/objectlist.js
src/webserver/static/objectsearch.js
src/webserver/static/resetpasswd_start.js
src/webserver/templates/fastdb_webap.html
share/Makefile
client/Makefile
])
AC_ARG_WITH( installdir,
[AS_HELP_STRING([--with-installdir=DIR], [Directory to install to [/usr/local/fastdb]])],
[installdir=$withval],
[installdir=/usr/local/fastdb] )
AC_ARG_WITH( external-url,
[AS_HELP_STRING([--with-external-url=URL], [How the site is accessed externally; should end in / ["/"]])],
[external_url=$withval],
[external_url=""] )
AC_ARG_WITH( dbhost,
[AS_HELP_STRING([--with-dbhost=HOST], [Postgres host [postgres]])],
[dbhost=$withval],
[dbhost=postgres] )
AC_ARG_WITH( dbport,
[AS_HELP_STRING([--with-dbport=PORT], [Postgres port [5432]])],
[dbport=$withval],
[dbport=5432] )
AC_ARG_WITH( dbdatabase,
[AS_HELP_STRING([--with-dbdatabase=PORT], [Database name [fastdb]])],
[dbdatabase=$withval],
[dbdatabase=fastdb] )
AC_ARG_WITH( dbuser,
[AS_HELP_STRING([--with-dbuser=USER], [Postgres username [postgres]])],
[dbuser=$withval],
[dbuser=postgres] )
AC_ARG_WITH( db-passwd-file,
[AS_HELP_STRING([--with-db-passwd-file=PWFILE], [File with postgres password [/secrets/pgpasswd]])],
[dbpasswdfile=$withval],
[dbpasswdfile=/secrets/pgpasswd] )
AC_ARG_WITH( secret-key-file,
[AS_HELP_STRING([--with-secret-key-file=KEYFILE], [File with flask secret key [/secrets/secretkey]])],
[secretkeyfile=$withval],
[secretkeyfile=/secrets/secretkey] )
AC_ARG_WITH( email-from,
[AS_HELP_STRING([--with-email-from=EMAILFROM], [Who is email from? [fastdb@nowhere.org]])],
[emailfrom=$withval],
[emailfrom=fastdb@nowhere.org] )
AC_ARG_WITH( smtp-server,
[AS_HELP_STRING([--with-smtp-server=SMTPSERVER], [smtp server [localhost]])],
[smtpserver=$withval],
[smtpserver=localhost] )
AC_ARG_WITH( smtp-port,
[AS_HELP_STRING([--with-smtp-port=SMTPPORT], [smtp port [25]])],
[smtpport=$withval],
[smtpport=25] )
AC_ARG_ENABLE( smtp-ssl,
[AS_HELP_STRING([--enable-smtp-ssl], [smtp server uses ssl])],
[smtpusessl=True],
[smtpusessl=False] )
AC_ARG_WITH( smtp-user,
[AS_HELP_STRING([--with-smtp-user=USER], [smtp username])],
[smtpusername=$withval],
[smtpusername=None] )
AC_ARG_WITH( smtp-password,
[AS_HELP_STRING([--with-smtp-password=PASSWORD], [smtp password])],
[smtppassword=$withval],
[smtppassword=None] )
AC_SUBST(installdir)
AC_SUBST(dbhost)
AC_SUBST(dbport)
AC_SUBST(dbdatabase)
AC_SUBST(dbuser)
AC_SUBST(dbpasswdfile)
AC_SUBST(secretkeyfile)
AC_SUBST(emailfrom)
AC_SUBST(smtpserver)
AC_SUBST(smtpport)
AC_SUBST(smtpusessl)
AC_SUBST(smtpusername)
AC_SUBST(smtppassword)
AC_SUBST(external_url)
AC_OUTPUT