Blame
Date:
Wed May 25 14:01:49 2022 UTC
Message:
disable landlock it's currently unused (the net process unfortunately can't sensibly make use of it: breaks the DNS...) In the future I'd like to move the parsers in their own (sandboxed) process, so don't delete the landlock code yet.
001
2022-01-15
op
AC_INIT([telescope], [0.7.1-current], [telescope@omarpolo.com], [telescope], [gemini://telescope.omarpolo.com])
002
2022-02-24
op
AC_CONFIG_AUX_DIR(etc)
003
2021-03-08
op
AC_CONFIG_LIBOBJ_DIR(compat)
004
2021-07-27
op
AC_CANONICAL_HOST
005
2021-03-12
op
AM_INIT_AUTOMAKE([-Wall foreign subdir-objects])
006
2021-03-29
op
AC_PROG_CC_C99
007
2021-03-19
op
AC_USE_SYSTEM_EXTENSIONS
008
2021-06-15
op
AC_PROG_YACC
009
2021-03-02
op
010
2021-03-02
op
PKG_PROG_PKG_CONFIG
011
2021-03-02
op
012
2021-11-26
op
AC_ARG_VAR(HOSTCC, [The C compiler on the host.])
013
2021-11-26
op
AC_ARG_VAR(HOSTCFLAGS, [CFLAGS for the host compiler])
014
2021-11-26
op
015
2021-11-26
op
test -z "${HOSTCC}" && HOSTCC='$(CC)'
016
2021-11-26
op
test -z "${HOSTCFLAGS}" && HOSTCFLAGS='$(CFLAGS)'
017
2021-11-26
op
018
2021-08-19
op
AC_ARG_WITH([libimsg],
019
2021-08-19
op
AS_HELP_STRING([--with-libimsg],
020
2021-08-19
op
[Build with imsg-compat library (default: disabled)]))
021
2021-08-19
op
022
2021-08-19
op
AC_ARG_WITH([libbsd],
023
2021-08-19
op
AS_HELP_STRING([--with-libbsd],
024
2021-08-19
op
[Build with libbsd library (default: disabled)]))
025
2021-08-19
op
026
2021-08-19
op
AS_IF([test "x$with_libbsd" = "xyes"], [
027
2021-08-19
op
PKG_CHECK_MODULES([libbsd], [libbsd-overlay libbsd-ctor], [
028
2021-08-19
op
CFLAGS="$libbsd_CFLAGS $CFLAGS"
029
2021-08-19
op
LIBS="$libbsd_LIBS $LIBS"
030
2021-08-19
op
])
031
2021-08-19
op
])
032
2021-08-19
op
033
2021-03-08
op
AC_REPLACE_FUNCS([
034
2021-03-08
op
asprintf \
035
2021-03-08
op
err \
036
2021-07-28
op
explicit_bzero \
037
2021-03-08
op
freezero \
038
2021-03-08
op
getdtablecount \
039
2021-03-08
op
getdtablesize \
040
2021-03-08
op
getprogname \
041
2021-03-13
op
memmem \
042
2021-03-12
op
recallocarray \
043
2021-07-14
op
strcasestr \
044
2021-03-08
op
strlcat \
045
2021-03-08
op
strlcpy \
046
2021-04-25
op
strsep \
047
2021-03-08
op
strtonum \
048
2021-03-08
op
setproctitle \
049
2021-03-08
op
])
050
2021-03-08
op
051
2021-05-14
op
AC_MSG_CHECKING([for sys/queue.h with TAILQ_FOREACH_SAFE])
052
2021-05-14
op
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
053
2021-05-14
op
#include <sys/queue.h>
054
2021-05-14
op
#include <stddef.h>
055
2021-05-14
op
], [
056
2021-05-14
op
TAILQ_HEAD(tailhead, entry) head;
057
2021-05-14
op
struct entry {
058
2021-05-14
op
TAILQ_ENTRY(entry) entries;
059
2021-05-14
op
} *np, *nt;
060
2021-05-14
op
TAILQ_INIT(&head);
061
2021-05-14
op
TAILQ_FOREACH_SAFE(np, &head, entries, nt) {
062
2021-05-14
op
/* nop */ ;
063
2021-05-14
op
}
064
2021-05-14
op
return 0;
065
2021-05-14
op
])], [
066
2021-05-14
op
AC_MSG_RESULT(yes)
067
2021-05-14
op
AC_DEFINE([HAVE_QUEUE_H], 1, [QUEUE_H])
068
2021-05-14
op
], AC_MSG_RESULT(no))
069
2021-05-14
op
070
2021-03-08
op
AC_CHECK_DECL(PR_SET_NAME, AC_DEFINE([HAVE_PR_SET_NAME], 1, [pr_set_name]), [],
071
2021-03-08
op
[[#include <sys/prctl.h>]])
072
2021-03-08
op
073
2021-03-06
op
AC_SEARCH_LIBS([initscr], [ncursesw ncurses], [], [
074
2021-03-06
op
AC_MSG_ERROR([requires either ncursesw or ncurses library])
075
2021-03-06
op
])
076
2021-03-02
op
077
2021-08-19
op
AC_SEARCH_LIBS([keyname], [ncursesw ncurses tinfow tinfo], [], [
078
2021-08-19
op
AC_MSG_ERROR([requires either ncursesw or ncurses library with terminfo support])
079
2021-08-19
op
])
080
2021-08-19
op
081
2021-03-06
op
AC_CHECK_LIB(tls, tls_init, [], [
082
2021-03-06
op
AC_MSG_ERROR([requires libtls])
083
2021-03-06
op
])
084
2021-03-02
op
085
2021-07-27
op
case "$host_os" in
086
2021-07-27
op
*openbsd*)
087
2021-07-27
op
AC_CHECK_LIB([event], [event_init], [],
088
2021-07-27
op
[AC_MSG_ERROR([requires libevent])])
089
2021-07-27
op
;;
090
2021-07-27
op
*)
091
2021-07-27
op
PKG_CHECK_MODULES([libevent2], [libevent_core >= 2], [
092
2021-07-27
op
AC_DEFINE([HAVE_EVENT2], 1, [1 if using event2])
093
2021-07-27
op
CFLAGS="$libevent2_CFLAGS $CFLAGS"
094
2021-07-27
op
LIBS="$libevent2_LIBS $LIBS"
095
2021-07-27
op
], [AC_MSG_ERROR([requires libevent])])
096
2021-07-27
op
;;
097
2021-07-27
op
esac
098
2021-03-02
op
099
2021-08-19
op
AS_IF([test "x$with_libimsg" = "xyes"], [
100
2021-08-19
op
PKG_CHECK_MODULES([libimsg], [libimsg], [
101
2021-08-19
op
CFLAGS="$libimsg_CFLAGS $CFLAGS"
102
2021-08-19
op
LIBS="$libimsg_LIBS $LIBS"
103
2021-08-19
op
])
104
2021-08-19
op
])
105
2021-08-19
op
106
2021-08-19
op
AC_SEARCH_LIBS([imsg_init], [util], [
107
2021-08-19
op
AC_DEFINE([HAVE_IMSG], 1,
108
2021-08-19
op
[Define to 1 if you have imsg functions (-lutil or -limsg).])
109
2021-08-19
op
], [
110
2021-08-19
op
AC_LIBOBJ(imsg)
111
2021-08-19
op
AC_LIBOBJ(imsg-buffer)
112
2021-08-19
op
]
113
2021-08-19
op
)
114
2021-08-19
op
115
2021-08-19
op
AC_CHECK_LIB(util, ohash_init, [], [
116
2021-03-17
op
AC_LIBOBJ(ohash)
117
2021-06-23
op
AC_LIBOBJ(fmt_scaled)
118
2021-03-08
op
])
119
2021-03-02
op
120
2021-03-16
op
AC_CHECK_FUNCS([asr_run])
121
2021-03-16
op
122
2022-05-25
op
# don't check for landlock: it currently unusable.
123
2022-05-25
op
dnl AC_CHECK_HEADERS([linux/landlock.h])
124
2021-10-08
op
125
2021-03-15
op
# check compiler flags
126
2021-03-15
op
AC_DEFUN([CC_ADD_CHECK_FLAGS], [
127
2021-03-15
op
AC_MSG_CHECKING([if $CC supports $1 flag])
128
2021-03-15
op
old_CFLAGS="$CFLAGS"
129
2021-03-15
op
CFLAGS="$CFLAGS $1"
130
2021-03-15
op
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])],
131
2021-03-15
op
AC_MSG_RESULT(yes),
132
2021-03-15
op
AC_MSG_RESULT(no)
133
2021-03-15
op
CFLAGS="$old_CFLAGS")
134
2021-03-15
op
])
135
2021-03-15
op
CC_ADD_CHECK_FLAGS([-Wall])
136
2021-03-15
op
CC_ADD_CHECK_FLAGS([-Wextra])
137
2022-01-20
op
CC_ADD_CHECK_FLAGS([-Wmissing-declarations])
138
2021-03-15
op
CC_ADD_CHECK_FLAGS([-Wmissing-prototypes])
139
2021-03-15
op
CC_ADD_CHECK_FLAGS([-Wstrict-prototypes])
140
2021-03-15
op
CC_ADD_CHECK_FLAGS([-Wwrite-strings])
141
2021-03-15
op
CC_ADD_CHECK_FLAGS([-Wno-unused-parameter])
142
2022-01-20
op
CC_ADD_CHECK_FLAGS([-Wpointer-arith])
143
2022-01-20
op
CC_ADD_CHECK_FLAGS([-Wsign-compare])
144
2022-01-20
op
CC_ADD_CHECK_FLAGS([-Wcast-align])
145
2021-03-15
op
146
2021-03-02
op
AC_CONFIG_HEADERS([config.h])
147
2021-03-02
op
AC_CONFIG_FILES([
148
2021-03-02
op
Makefile
149
2022-01-20
op
test/Makefile
150
2022-02-26
op
pages/about_about.gmi
151
2022-02-26
op
pages/about_blank.gmi
152
2021-07-20
op
pages/about_crash.gmi
153
2022-02-26
op
pages/about_help.gmi
154
2022-02-26
op
pages/about_license.gmi
155
2022-02-26
op
pages/about_new.gmi
156
2022-02-26
op
pages/bookmarks.gmi
157
2021-03-02
op
])
158
2021-03-02
op
159
2021-03-02
op
AC_OUTPUT
Omar Polo