root/configure.in

Revision 2ea77243f4b484e20c2101cda30ec9fa0e30ea7b, 14.1 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 5 years ago)

Paul Querna's patch plus some fixed warnings.
removal of serf
update of autoconf to find apr (for stomp, sigh)
and detection of libcurl stuffs for the new libcurl based http module

refs #172

  • Property mode set to 100755
Line 
1 AC_INIT(src/noitd.c)
2
3 node=`hostname | cut -f1 -d '.' | tr '[A-Z]' '[a-z]'`
4 if test -f ".configure.$node"; then
5         echo "***********************************************************"
6         echo "* Loading node specific configure settings for $node."
7         echo "***********************************************************"
8         . ./.configure.$node
9 fi
10
11 AC_CANONICAL_HOST
12 AC_CONFIG_HEADER(src/noit_config.h)
13 AC_CONFIG_HEADER(src/jlog/jlog_config.h)
14
15 AC_PROG_CC
16 AC_C_INLINE
17 AC_C_BIGENDIAN
18 AC_PROG_CPP
19 AC_PROG_RANLIB
20 AC_PROG_INSTALL
21 AC_PROG_LN_S
22 AC_PATH_PROG(AR, ar)
23 AC_PATH_PROGS(PERL, perl)
24 AC_PATH_PROGS(XSLTPROC, xsltproc)
25 AC_PATH_PROGS(XMLLINT, xmllint)
26 AC_PATH_PROGS(JAVA, java)
27 AC_PATH_PROGS(JAVAC, javac)
28 AC_PATH_PROGS(JAR, jar)
29 AC_PATH_PROG(NROFF, nroff)
30 AC_SUBST(PERL)
31
32 if test "x$CC" = "xgcc" ; then
33   CFLAGS="$CFLAGS -g -Wall"
34 else
35   CFLAGS="$CFLAGS -g"
36 fi
37
38 CPPFLAGS="$CPPFLAGS "'-I$(top_srcdir)/src'
39
40 case $host in
41 *-*-darwin*)
42         PICFLAGS="-fPIC"
43         MODULELD="$CC -bundle -flat_namespace -undefined suppress"
44         SHLD="$CC -dynamiclib -flat_namespace -undefined suppress"
45         MODULEEXT=bundle
46         RLDFLAG="-Wl,--rpath="
47         ;;
48 *-*-solaris*)
49         AC_MSG_CHECKING([32 or 64 bit Solaris assembly])
50         if test -n "`echo $CFLAGS | grep m64`"; then
51                 AC_MSG_RESULT([64])
52                 ATOMIC_OBJS="noit_atomic_sol_x86_64.o"
53         else
54                 AC_MSG_RESULT([32])
55                 ATOMIC_OBJS="noit_atomic_sol_x86_32.o"
56         fi
57         PICFLAGS="-Kpic"
58         MODULELD="$CC -G"
59         SHLD="$CC -G"
60         MODULEEXT=so
61         RLDFLAG="-R"
62         WHOLE_ARCHIVE="-Wl,-z -Wl,allextract"
63         NOWHOLE_ARCHIVE="-Wl,-z -Wl,defaultextract"
64         ;;
65 *-*-openbsd*)
66         PICFLAGS="-fpic"
67         LDFLAGS="$LDFLAGS -Wl,-E"
68         MODULELD="$CC -shared"
69         SHLD="$CC -shared"
70         MODULEEXT=so
71         LDFLAGS="$LDFLAGS -L/usr/local/lib"
72         CFLAGS="$CFLAGS -I/usr/local/include"
73         RLDFLAG="-Wl,--rpath="
74         WHOLE_ARCHIVE="-Wl,--whole-archive"
75         NOWHOLE_ARCHIVE="-Wl,--no-whole-archive"
76         ;;
77 *-*-linux*)
78         LDFLAGS="$LDFLAGS -Wl,-E"
79         CPPFLAGS="$CPPFLAGS"
80         PICFLAGS="-fpic"
81         MODULELD="$CC -shared"
82         SHLD="$CC -shared"
83         MODULEEXT=so
84         RLDFLAG="-Wl,--rpath="
85         WHOLE_ARCHIVE="-Wl,--whole-archive"
86         NOWHOLE_ARCHIVE="-Wl,--no-whole-archive"
87         ;;
88 *-*-freebsd*)
89         PICFLAGS="-fpic"
90         MODULELD="$CC -shared"
91         LDFLAGS="$LDFLAGS -export-dynamic -L/usr/local/lib"
92         CFLAGS="$CFLAGS -I/usr/local/include"
93         MODULEEXT=so
94         RLDFLAG="-Wl,--rpath="
95         ;;
96 *)
97         PICFLAGS="-fpic"
98         MODULELD="$CC -shared"
99         MODULEEXT=so
100         RLDFLAG="-Wl,--rpath="
101         ;;
102 esac
103 AC_SUBST(SHLD)
104 AC_SUBST(RLDFLAG)
105 AC_SUBST(MODULELD)
106 AC_SUBST(MODULEEXT)
107 AC_SUBST(WHOLE_ARCHIVE)
108 AC_SUBST(NOWHOLE_ARCHIVE)
109 AC_SUBST(ATOMIC_OBJS)
110 AC_DEFINE_UNQUOTED(MODULEEXT, "$MODULEEXT", [module extension])
111 AC_MSG_CHECKING([enable build/install of the Java IEP bits])
112
113 if test -z "$ac_cv_path_JAVA" ; then
114         AC_MSG_RESULT([no])
115 else
116         JAVAPARTS=java
117         AC_MSG_RESULT([yes])
118 fi
119 AC_SUBST(JAVAPARTS)
120
121 NOIT_SVNVERSION=`svnversion`
122 AC_DEFINE_UNQUOTED(NOIT_SVNVERSION, "$NOIT_SVNVERSION", [svn version from wc])
123
124 # Checks for data types
125 AC_CHECK_SIZEOF(char, 1)
126 AC_CHECK_SIZEOF(short int, 2)
127 AC_CHECK_SIZEOF(int, 4)
128 AC_CHECK_SIZEOF(long int, 4)
129 AC_CHECK_SIZEOF(long long int, 8)
130 AC_CHECK_SIZEOF(void *, 1)
131
132 AC_CHECK_LIB(z, compress2, , [AC_MSG_ERROR(*** zlib is required ***)])
133 AC_CHECK_LIB(rt, sem_init, , )
134 AC_CHECK_LIB(posix4, sem_wait, , )
135 AC_CHECK_LIB(pthread, pthread_create, , )
136 AC_CHECK_FUNC(uuid_generate, , [
137   AC_MSG_WARN([uuid_generate not available])
138   AC_CHECK_LIB(uuid, uuid_generate, , [AC_MSG_ERROR(*** uuid is required ***)])])
139
140 # Some libraries provide an unparse_lower command
141 # we use that, so if it isn't present, we'll need
142 # to implement it.
143 AC_CHECK_FUNC(uuid_unparse_lower, [AC_DEFINE(HAVE_UUID_UNPARSE_LOWER)], )
144 AC_CHECK_LIB(util, openpty, , )
145 AC_CHECK_LIB(termcap, tputs, , )
146 AC_CHECK_LIB(curses, clear, , [AC_MSG_ERROR([curses not found, but required])])
147
148 CPPFLAGS="$CPPFLAGS `pcre-config --cflags`"
149 LDFLAGS="$LDFLAGS `pcre-config --libs`"
150 AC_CHECK_LIB(pcre, pcre_compile, ,
151         [
152                 AC_MSG_ERROR([libpcre not found, but required])
153         ]
154 )
155 AC_CHECK_LIB(crypto, ERR_load_CRYPTO_strings, ,
156         [
157                 AC_MSG_ERROR([libcrypto not found, but required])
158         ]
159 )
160 AC_CHECK_LIB(ssl, SSL_library_init, ,
161         [
162                 AC_MSG_ERROR([libssl not found, but required])
163         ]
164 )
165
166 old_LIBS=$LIBS
167 old_CFLAGS=$CFLAGS
168 AC_CHECK_LIB(pq, PQconnectdb,
169         [
170                 LIBS="$LIBS -lpq"
171                 PGLIBS="$LIBS"
172                 AC_SUBST(PGLIBS)
173         ],
174         [
175                 AC_MSG_ERROR([libpq required])
176         ]
177 )
178
179 AC_MSG_CHECKING([libpq includes])
180 PQICFLAGS=`pg_config --includedir`
181 if test -n "$PQICFLAGS" ; then
182   CFLAGS="$CFLAGS -I$PQICFLAGS"
183 fi
184
185 AC_TRY_LINK([
186         #include <libpq-fe.h>
187         ],
188         [ PGconn *dbh = PQconnectdb(""); ],
189         [],
190         [ AC_MSG_ERROR([Cannot compile/link against libpq]) ]
191 )
192 PGCFLAGS=$CFLAGS
193 AC_SUBST(PGCFLAGS)
194
195 AC_CHECK_HEADERS(mysql.h mysql/mysql.h)
196
197 if test "$ac_cv_header_mysql_h" = "no" -a "$ac_cv_header_mysql_mysql_h" = "no" ; then
198         AC_MSG_WARN([No libmysqlclient, skipping mysql module])
199         AC_SUBST(MYCFLAGS)
200         AC_SUBST(MYLIBS)
201 else
202         LIBS=$old_LIBS
203         CFLAGS=$old_CFLAGS
204        
205         if test -z "$MYLIBS" ; then
206           MYLIBS="-lmysqlclient_r -lz -lssl -lcrypto"
207         fi
208        
209         old_CFLAGS=$CFLAGS
210         old_LIBS=$LIBS
211         CFLAGS="$CFLAGS $MYCFLAGS"
212         LIBS="$MYLIBS"
213        
214         AC_CHECK_FUNC(mysql_real_connect,
215                 [
216                         BUILD_MODULES="$BUILD_MODULES mysql.$MODULEEXT"
217                         MYCFLAGS="$CFLAGS"
218                         MYLIBS="$LIBS"
219                         AC_SUBST(MYCFLAGS)
220                         AC_SUBST(MYLIBS)
221                 ],
222                 [
223                         AC_MSG_WARN([No libmysqlclient, skipping mysql module])
224                         AC_SUBST(MYCFLAGS)
225                         AC_SUBST(MYLIBS)
226                 ]
227         )
228        
229        
230         LIBS=$old_LIBS
231         CFLAGS=$old_CFLAGS
232 fi
233
234 ########
235 #
236 # CHECK FOR VARIOUS MODULE CRITERIA
237 # We don't track the libs themselves, as we'll just explictly link
238 # against the in the makefile if we enable them to build (by adding
239 # them to the BUILD_MODULES list).
240 #
241 ########
242
243 # Should we build snmp checks?
244 SAVELIBS="$LIBS"
245 AC_CHECK_LIB(netsnmp, snmp_sess_open,
246         [
247                 BUILD_MODULES="$BUILD_MODULES snmp.$MODULEEXT"
248         ],
249         [
250                 AC_MSG_WARN([No libnetsnmp, skipping snmp module])
251         ]
252 )
253 LIBS="$SAVELIBS"
254
255 # Should we build ssh2 checks?
256 SAVELIBS="$LIBS"
257 AC_CHECK_LIB(ssh2, libssh2_session_init_ex,
258         [
259                 BUILD_MODULES="$BUILD_MODULES ssh2.$MODULEEXT"
260         ],
261         [
262                 AC_MSG_WARN([No libssh2, skipping ssh2 module])
263         ]
264 )
265 LIBS="$SAVELIBS"
266
267 AC_MSG_CHECKING([libxml2 cflags])
268 XML2CFLAGS=`xml2-config --cflags`
269 CFLAGS="$CFLAGS $XML2CFLAGS"
270 AC_MSG_RESULT([$XML2CFLAGS])
271
272 AC_MSG_CHECKING([libxml2 libs])
273 XML2LIBS=`xml2-config --libs`
274 LIBS="$LIBS $XML2LIBS"
275 AC_MSG_RESULT([$XML2LIBS])
276
277 AC_CHECK_FUNC(xmlParseDocument, , [AC_MSG_ERROR(*** libxml2 is required ***)])
278
279 AC_MSG_CHECKING([libxslt cflags])
280 XSLTCFLAGS=`xslt-config --cflags`
281 CFLAGS="$CFLAGS $XSLTCFLAGS"
282 AC_MSG_RESULT([$XSLTCFLAGS])
283
284 AC_MSG_CHECKING([libxslt libs])
285 XSLTLIBS=`xslt-config --libs`
286 LIBS="$LIBS $XSLTLIBS"
287 AC_MSG_RESULT([$XSLTLIBS])
288
289 AC_CHECK_FUNC(xsltParseStylesheetDoc, , [AC_MSG_ERROR(*** libxslt is required ***)])
290
291 APRPREFIX="`apr-1-config --prefix`"
292 AC_SUBST(APRPREFIX)
293 AC_MSG_RESULT([$APRPREFIX])
294
295 AC_MSG_CHECKING([libapr cflags])
296 APRCFLAGS="`apr-1-config --cflags --cppflags --includes`"
297 AC_SUBST(APRCFLAGS)
298 AC_MSG_RESULT([$APRCFLAGS])
299
300 AC_MSG_CHECKING([libapr libs])
301 APRLIBS="`apr-1-config --link-ld --ldflags --libs`"
302 AC_SUBST(APRLIBS)
303 AC_MSG_RESULT([$APRLIBS])
304
305 AC_MSG_CHECKING([libcurl cflags])
306 CURLCFLAGS="`curl-config --cflags`"
307 AC_SUBST(CURLCFLAGS)
308 AC_MSG_RESULT([$CURLCFLAGS])
309
310 AC_MSG_CHECKING([libcurl libs])
311 CURLLIBS="`curl-config --libs`"
312 AC_SUBST(CURLLIBS)
313 AC_MSG_RESULT([$CURLLIBS])
314
315 AC_TRY_LINK([],
316         [ issetugid(); ],
317         [ ac_cv_libc_defines_issetugid="yes" ],
318         [ ac_cv_libc_defines_issetugid="no" ]
319 )
320 if test "x$ac_cv_libc_defines_issetugid" = "xyes" ; then
321         AC_DEFINE(HAVE_ISSETUGID)
322 fi
323
324 AC_MSG_CHECKING([whether sem_init works])
325 AC_TRY_RUN(
326         [
327 #include <semaphore.h>
328 int main(void){sem_t s;return (0 != sem_init(&s,0,0));}
329         ],
330         [
331                 AC_MSG_RESULT(yes)
332                 AC_DEFINE(WORKING_SEM_INIT)
333         ],
334         [
335                 AC_MSG_RESULT(no)
336                 AC_MSG_WARN([****** sem_init() is broken, I'll implement one myself.])
337         ]
338 )
339
340 AC_FUNC_STRFTIME
341 AC_CHECK_FUNCS(ssetugid strlcpy strnstrn openpty inet_pton inet_ntop getopt \
342                poll)
343
344 # Checks for header files.
345 AC_CHECK_HEADERS(sys/file.h sys/types.h dirent.h sys/param.h fcntl.h errno.h limits.h \
346                  sys/resource.h pthread.h semaphore.h pwd.h stdio.h stdlib.h string.h \
347                  ctype.h unistd.h time.h pty.h sys/stat.h sys/event.h libkern/OSAtomic.h \
348                  term.h termio.h termios.h curses.h sys/cdefs.h grp.h netinet/in_systm.h \
349                  sys/ioctl_compat.h sys/filio.h util.h sys/time.h sys/mman.h \
350                  stropts.h sys/stream.h alloca.h sys/wait.h)
351
352 AC_CHECK_FUNCS(getpwnam_r)
353 GETPWNAM_R_POSIX
354 AC_CHECK_FUNCS(getgrnam_r)
355 GETGRNAM_R_POSIX
356
357 AC_MSG_CHECKING(for tputs() function final argument type)
358 AC_EGREP_CPP([tputs.*[(][       ]*char[         ]*[)]],
359                 [#if defined(HAVE_TERM_H)
360                  #include <term.h>
361                  #endif
362                  #if defined(HAVE_CURSES_H)
363                  #include <curses.h>
364                  #endif],
365                 [AC_MSG_RESULT(char)
366                  AC_DEFINE(TPUTS_TAKES_CHAR)],
367                 [AC_MSG_RESULT(not char)])
368
369 AC_CACHE_CHECK([for epoll support], ac_cv_have_epoll, [
370         AC_TRY_LINK(
371                 [ #include <sys/types.h> ],
372                 [ u_int a; a = epoll_create(); ],
373                 [ ac_cv_have_epoll="yes" ],
374                 [ ac_cv_have_epoll="no" ]
375         )
376 ])
377 if test "x$ac_cv_have_epoll" = "xyes" ; then
378         AC_DEFINE(HAVE_EPOLL)
379         EVENTER_OBJS="$EVENTER_OBJS eventer_epoll_impl.o"
380         AC_DEFINE_UNQUOTED(DEFAULT_EVENTER, "epoll")
381         have_epoll=1
382 fi
383
384 AC_CACHE_CHECK([for kqueue support], ac_cv_have_kqueue, [
385         AC_TRY_LINK(
386                 [ #include <sys/types.h> ],
387                 [ u_int a; a = kqueue(); ],
388                 [ ac_cv_have_kqueue="yes" ],
389                 [ ac_cv_have_kqueue="no" ]
390         )
391 ])
392 if test "x$ac_cv_have_kqueue" = "xyes" ; then
393         AC_DEFINE(HAVE_KQUEUE)
394         EVENTER_OBJS="$EVENTER_OBJS eventer_kqueue_impl.o"
395         AC_DEFINE_UNQUOTED(DEFAULT_EVENTER, "kqueue")
396         have_kqueue=1
397 fi
398
399 AC_CACHE_CHECK([for Solaris ports support], ac_cv_have_ports, [
400         AC_TRY_LINK(
401                 [ #include <port.h> ],
402                 [ u_int a; a = port_create(); ],
403                 [ ac_cv_have_ports="yes" ],
404                 [ ac_cv_have_ports="no" ]
405         )
406 ])
407 if test "x$ac_cv_have_ports" = "xyes" ; then
408         AC_DEFINE(HAVE_PORTS)
409         EVENTER_OBJS="$EVENTER_OBJS eventer_ports_impl.o"
410         AC_DEFINE_UNQUOTED(DEFAULT_EVENTER, "ports")
411         have_ports=1
412 fi
413
414 AC_SUBST(EVENTER_OBJS)
415
416 AC_CACHE_CHECK([for u_int type], ac_cv_have_u_int, [
417         AC_TRY_COMPILE(
418                 [ #include <sys/types.h> ],
419                 [ u_int a; a = 1;],
420                 [ ac_cv_have_u_int="yes" ],
421                 [ ac_cv_have_u_int="no" ]
422         )
423 ])
424 if test "x$ac_cv_have_u_int" = "xyes" ; then
425         AC_DEFINE(HAVE_U_INT)
426         have_u_int=1
427 fi
428
429 AC_CACHE_CHECK([for intXX_t types], ac_cv_have_intxx_t, [
430         AC_TRY_COMPILE(
431                 [ #include <sys/types.h> ],
432                 [ int8_t a; int16_t b; int32_t c; a = b = c = 1;],
433                 [ ac_cv_have_intxx_t="yes" ],
434                 [ ac_cv_have_intxx_t="no" ]
435         )
436 ])
437 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
438         AC_DEFINE(HAVE_INTXX_T)
439         have_intxx_t=1
440 fi
441        
442 AC_CACHE_CHECK([for int64_t type], ac_cv_have_int64_t, [
443         AC_TRY_COMPILE(
444                 [ #include <sys/types.h> ],
445                 [ int64_t a; a = 1;],
446                 [ ac_cv_have_int64_t="yes" ],
447                 [ ac_cv_have_int64_t="no" ]
448         )
449 ])
450 if test "x$ac_cv_have_int64_t" = "xyes" ; then
451         AC_DEFINE(HAVE_INT64_T)
452         have_int64_t=1
453 fi
454        
455 AC_CACHE_CHECK([for u_intXX_t types], ac_cv_have_u_intxx_t, [
456         AC_TRY_COMPILE(
457                 [ #include <sys/types.h> ],
458                 [ u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;],
459                 [ ac_cv_have_u_intxx_t="yes" ],
460                 [ ac_cv_have_u_intxx_t="no" ]
461         )
462 ])
463 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
464         AC_DEFINE(HAVE_U_INTXX_T)
465         have_u_intxx_t=1
466 fi
467
468 AC_CACHE_CHECK([for u_int64_t types], ac_cv_have_u_int64_t, [
469         AC_TRY_COMPILE(
470                 [ #include <sys/types.h> ],
471                 [ u_int64_t a; a = 1;],
472                 [ ac_cv_have_u_int64_t="yes" ],
473                 [ ac_cv_have_u_int64_t="no" ]
474         )
475 ])
476 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
477         AC_DEFINE(HAVE_U_INT64_T)
478         have_u_int64_t=1
479 fi
480
481 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
482            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
483 then
484         AC_MSG_CHECKING([for intXX_t and u_intXX_t types in sys/bitypes.h])
485         AC_TRY_COMPILE(
486                 [
487 #include <sys/bitypes.h>
488                 ],
489                 [
490                         int8_t a; int16_t b; int32_t c;
491                         u_int8_t e; u_int16_t f; u_int32_t g;
492                         a = b = c = e = f = g = 1;
493                 ],
494                 [
495                         AC_DEFINE(HAVE_U_INTXX_T)
496                         AC_DEFINE(HAVE_INTXX_T)
497                         AC_MSG_RESULT(yes)
498                 ],
499                 [AC_MSG_RESULT(no)]
500         )
501 fi
502
503 if test -z "$have_u_intxx_t" ; then
504         AC_CACHE_CHECK([for uintXX_t types], ac_cv_have_uintxx_t, [
505                 AC_TRY_COMPILE(
506                         [
507 #include <sys/types.h>
508                         ],
509                         [ uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; ],
510                         [ ac_cv_have_uintxx_t="yes" ],
511                         [ ac_cv_have_uintxx_t="no" ]
512                 )
513         ])
514         if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
515                 AC_DEFINE(HAVE_UINTXX_T)
516         fi
517 fi
518
519 AC_CACHE_CHECK([for socklen_t], ac_cv_have_socklen_t, [
520         AC_TRY_COMPILE(
521                 [
522 #include <sys/types.h>
523 #include <sys/socket.h>
524                 ],
525                 [socklen_t foo; foo = 1235;],
526                 [ ac_cv_have_socklen_t="yes" ],
527                 [ ac_cv_have_socklen_t="no" ]
528         )
529 ])
530 if test "x$ac_cv_have_socklen_t" = "xyes" ; then
531         AC_DEFINE(HAVE_SOCKLEN_T)
532 fi
533
534 AC_CACHE_CHECK([for size_t], ac_cv_have_size_t, [
535         AC_TRY_COMPILE(
536                 [
537 #include <sys/types.h>
538                 ],
539                 [ size_t foo; foo = 1235; ],
540                 [ ac_cv_have_size_t="yes" ],
541                 [ ac_cv_have_size_t="no" ]
542         )
543 ])
544 if test "x$ac_cv_have_size_t" = "xyes" ; then
545         AC_DEFINE(HAVE_SIZE_T)
546 fi
547
548 AC_CACHE_CHECK([for ssize_t], ac_cv_have_ssize_t, [
549         AC_TRY_COMPILE(
550                 [
551 #include <sys/types.h>
552                 ],
553                 [ ssize_t foo; foo = 1235; ],
554                 [ ac_cv_have_ssize_t="yes" ],
555                 [ ac_cv_have_ssize_t="no" ]
556         )
557 ])
558 if test "x$ac_cv_have_ssize_t" = "xyes" ; then
559         AC_DEFINE(HAVE_SSIZE_T)
560 fi
561
562 AC_SUBST(BUILD_MODULES)
563
564 docdir="docs"
565 mansubdir="man"
566 AC_SUBST(docdir)
567 AC_SUBST(mansubdir)
568 SHCFLAGS="$PICFLAGS $CFLAGS"
569 AC_SUBST(SHCFLAGS)
570
571 AC_MSG_CHECKING([Resolving libexec path...])
572 fullpath=$libexecdir
573 while test "x$temppath" != "x$fullpath" ; do
574   temppath=$fullpath
575   fullpath=`eval echo ${fullpath}`
576 done
577 fullpath=`echo $fullpath | sed "s~NONE~$ac_default_prefix~"`
578 AC_MSG_RESULT([$fullpath/noit])
579 AC_DEFINE_UNQUOTED(MODULES_DIR, "${fullpath}/noit")
580 MODULES_DIR=${fullpath}/noit
581 AC_SUBST(MODULES_DIR)
582
583 AC_MSG_CHECKING([Resolving sysconfdir path...])
584 fullpath=$sysconfdir
585 while test "x$temppath" != "x$fullpath" ; do
586   temppath=$fullpath
587   fullpath=`eval echo ${fullpath}`
588 done
589 fullpath=`echo $fullpath | sed "s~NONE~$ac_default_prefix~"`
590 AC_MSG_RESULT([$fullpath])
591 AC_DEFINE_UNQUOTED(ETC_DIR, "${fullpath}")
592 ETC_DIR=${fullpath}
593 AC_SUBST(ETC_DIR)
594
595
596 AC_OUTPUT([
597 Makefile
598 src/Makefile
599 src/eventer/Makefile
600 src/jlog/Makefile
601 src/jlog/perl/Makefile.PL
602 src/udns/Makefile
603 src/man/Makefile
604 src/modules/Makefile
605 src/modules-lua/Makefile
606 src/utils/Makefile
607 src/noitedit/Makefile
608 src/lua/Makefile
609 src/stomp/Makefile
610 src/java/Makefile
611 src/java/run-iep.sh
612 sql/Makefile
613 test/Makefile
614 ])
Note: See TracBrowser for help on using the browser.