]> The Tcpdump Group git mirrors - tcpdump/blob - configure.in
(AC_C___ATTRIBUTE__): add
[tcpdump] / configure.in
1 dnl @(#) $Header: /tcpdump/master/tcpdump/configure.in,v 1.111 2000-04-01 12:09:57 assar Exp $ (LBL)
2 dnl
3 dnl Copyright (c) 1994, 1995, 1996, 1997
4 dnl The Regents of the University of California. All rights reserved.
5 dnl
6 dnl Process this file with autoconf to produce a configure script.
7 dnl
8
9 AC_REVISION($Revision: 1.111 $)
10 AC_PREREQ(2.13)
11 AC_INIT(tcpdump.c)
12
13 AC_CANONICAL_SYSTEM
14
15 umask 002
16
17 if test -z "$PWD" ; then
18 PWD=`pwd`
19 fi
20
21 AC_LBL_C_INIT(V_CCOPT, V_INCLS)
22 AC_C_INLINE
23 AC_C___ATTRIBUTE__
24
25 AC_CHECK_HEADERS(fcntl.h malloc.h memory.h rpc/rpcent.h)
26 AC_HEADER_TIME
27
28 case "$target_os" in
29
30 linux*)
31 AC_MSG_CHECKING(Linux kernel version)
32 AC_CACHE_VAL(ac_cv_linux_vers,
33 ac_cv_linux_vers=`uname -r 2>&1 | \
34 sed -n -e '$s/.* //' -e '$s/\..*//p'`)
35 AC_MSG_RESULT($ac_cv_linux_vers)
36 if test $ac_cv_linux_vers -lt 2 ; then
37 AC_MSG_ERROR(version 2 or higher required; see the INSTALL doc for more info)
38 fi
39 AC_DEFINE(HAVE_NET_SLIP_H)
40 ;;
41
42 *)
43 AC_CHECK_HEADERS(net/slip.h)
44 ;;
45 esac
46
47
48 AC_CHECK_HEADERS(smi.h)
49 AC_CHECK_LIB(smi, main)
50 AC_MSG_CHECKING([whether to enable libsmi])
51 AC_TRY_RUN([ /* libsmi available check */
52 #include <smi.h>
53 main()
54 {
55 if (smiInit(""))
56 exit(1);
57 else
58 exit(0);
59 }
60 ],
61 [ AC_MSG_RESULT(yes)
62 AC_DEFINE(LIBSMI)
63 libsmi=yes],
64 [ AC_MSG_RESULT(no)
65 libsmi=no],
66 [ AC_MSG_RESULT(not when cross-compiling)
67 libsmi=no]
68 )
69
70
71 CFLAGS="$CFLAGS -Dss_family=__ss_family -Dss_len=__ss_len"
72 AC_MSG_CHECKING([whether to enable ipv6])
73 AC_ARG_ENABLE(ipv6,
74 [ --enable-ipv6 enable ipv6 (with ipv4) support
75 --disable-ipv6 disable ipv6 support],
76 [ case "$enableval" in
77 yes) AC_MSG_RESULT(yes)
78 AC_DEFINE(ENABLE_IPV6)
79 LOCALSRC="print-ip6.c print-ip6opts.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC"
80 AC_DEFINE(INET6)
81 ipv6=yes
82 ;;
83 *)
84 AC_MSG_RESULT(no)
85 ipv6=no
86 ;;
87 esac ],
88
89 AC_TRY_RUN([ /* AF_INET6 available check */
90 #include <sys/types.h>
91 #include <sys/socket.h>
92 main()
93 {
94 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
95 exit(1);
96 else
97 exit(0);
98 }
99 ],
100 [ AC_MSG_RESULT(yes)
101 AC_DEFINE(ENABLE_IPV6)
102 LOCALSRC="print-ip6.c print-ip6opts.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC"
103 AC_DEFINE(INET6)
104 ipv6=yes],
105 [ AC_MSG_RESULT(no)
106 ipv6=no],
107 [ AC_MSG_RESULT(no)
108 ipv6=no]
109 ))
110
111 ipv6type=unknown
112 ipv6lib=none
113 ipv6trylibc=no
114
115 if test "$ipv6" = "yes"; then
116 AC_MSG_CHECKING([ipv6 stack type])
117 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
118 case $i in
119 inria)
120 dnl http://www.kame.net/
121 AC_EGREP_CPP(yes, [dnl
122 #include <netinet/in.h>
123 #ifdef IPV6_INRIA_VERSION
124 yes
125 #endif],
126 [ipv6type=$i;
127 CFLAGS="-DINET6 $CFLAGS"])
128 ;;
129 kame)
130 dnl http://www.kame.net/
131 AC_EGREP_CPP(yes, [dnl
132 #include <netinet/in.h>
133 #ifdef __KAME__
134 yes
135 #endif],
136 [ipv6type=$i;
137 ipv6lib=inet6;
138 ipv6libdir=/usr/local/v6/lib;
139 ipv6trylibc=yes;
140 CFLAGS="-DINET6 $CFLAGS"])
141 ;;
142 linux-glibc)
143 dnl http://www.v6.linux.or.jp/
144 AC_EGREP_CPP(yes, [dnl
145 #include <features.h>
146 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
147 yes
148 #endif],
149 [ipv6type=$i;
150 CFLAGS="-DINET6 $CFLAGS"])
151 ;;
152 linux-libinet6)
153 dnl http://www.v6.linux.or.jp/
154 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
155 ipv6type=$i
156 ipv6lib=inet6
157 ipv6libdir=/usr/inet6/lib
158 ipv6trylibc=yes;
159 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
160 fi
161 ;;
162 toshiba)
163 AC_EGREP_CPP(yes, [dnl
164 #include <sys/param.h>
165 #ifdef _TOSHIBA_INET6
166 yes
167 #endif],
168 [ipv6type=$i;
169 ipv6lib=inet6;
170 ipv6libdir=/usr/local/v6/lib;
171 CFLAGS="-DINET6 $CFLAGS"])
172 ;;
173 v6d)
174 AC_EGREP_CPP(yes, [dnl
175 #include </usr/local/v6/include/sys/v6config.h>
176 #ifdef __V6D__
177 yes
178 #endif],
179 [ipv6type=$i;
180 ipv6lib=v6;
181 ipv6libdir=/usr/local/v6/lib;
182 CFLAGS="-I/usr/local/v6/include $CFLAGS"])
183 ;;
184 zeta)
185 AC_EGREP_CPP(yes, [dnl
186 #include <sys/param.h>
187 #ifdef _ZETA_MINAMI_INET6
188 yes
189 #endif],
190 [ipv6type=$i;
191 ipv6lib=inet6;
192 ipv6libdir=/usr/local/v6/lib;
193 CFLAGS="-DINET6 $CFLAGS"])
194 ;;
195 esac
196 if test "$ipv6type" != "unknown"; then
197 break
198 fi
199 done
200 AC_MSG_RESULT($ipv6type)
201 fi
202
203 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
204 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
205 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
206 echo "You have $ipv6lib library, using it"
207 else
208 if test "$ipv6trylibc" = "yes"; then
209 echo "You do not have $ipv6lib library, using libc"
210 else
211 echo 'Fatal: no $ipv6lib library found. cannot continue.'
212 echo "You need to fetch lib$ipv6lib.a from appropriate"
213 echo 'ipv6 kit and compile beforehand.'
214 exit 1
215 fi
216 fi
217 fi
218
219
220 if test "$ipv6" = "yes"; then
221 AC_CHECK_FUNCS(getaddrinfo, [dnl
222 AC_MSG_CHECKING(getaddrinfo bug)
223 AC_TRY_RUN([
224 #include <sys/types.h>
225 #include <netdb.h>
226 #include <string.h>
227 #include <sys/socket.h>
228 #include <netinet/in.h>
229
230 main()
231 {
232 int passive, gaierr, inet4 = 0, inet6 = 0;
233 struct addrinfo hints, *ai, *aitop;
234 char straddr[INET6_ADDRSTRLEN], strport[16];
235
236 for (passive = 0; passive <= 1; passive++) {
237 memset(&hints, 0, sizeof(hints));
238 hints.ai_family = AF_UNSPEC;
239 hints.ai_flags = passive ? AI_PASSIVE : 0;
240 hints.ai_socktype = SOCK_STREAM;
241 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
242 (void)gai_strerror(gaierr);
243 goto bad;
244 }
245 for (ai = aitop; ai; ai = ai->ai_next) {
246 if (ai->ai_addr == NULL ||
247 ai->ai_addrlen == 0 ||
248 getnameinfo(ai->ai_addr, ai->ai_addrlen,
249 straddr, sizeof(straddr), strport, sizeof(strport),
250 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
251 goto bad;
252 }
253 switch (ai->ai_family) {
254 case AF_INET:
255 if (strcmp(strport, "54321") != 0) {
256 goto bad;
257 }
258 if (passive) {
259 if (strcmp(straddr, "0.0.0.0") != 0) {
260 goto bad;
261 }
262 } else {
263 if (strcmp(straddr, "127.0.0.1") != 0) {
264 goto bad;
265 }
266 }
267 inet4++;
268 break;
269 case AF_INET6:
270 if (strcmp(strport, "54321") != 0) {
271 goto bad;
272 }
273 if (passive) {
274 if (strcmp(straddr, "::") != 0) {
275 goto bad;
276 }
277 } else {
278 if (strcmp(straddr, "::1") != 0) {
279 goto bad;
280 }
281 }
282 inet6++;
283 break;
284 case AF_UNSPEC:
285 goto bad;
286 break;
287 #ifdef AF_UNIX
288 case AF_UNIX:
289 #else
290 #ifdef AF_LOCAL
291 case AF_LOCAL:
292 #endif
293 #endif
294 default:
295 /* another family support? */
296 break;
297 }
298 }
299 }
300
301 /* supported family should be 2, unsupported family should be 0 */
302 if (!(inet4 == 0 || inet4 == 2))
303 goto bad;
304 if (!(inet6 == 0 || inet6 == 2))
305 goto bad;
306
307 if (aitop)
308 freeaddrinfo(aitop);
309 exit(0);
310
311 bad:
312 if (aitop)
313 freeaddrinfo(aitop);
314 exit(1);
315 }
316 ],
317 AC_MSG_RESULT(good)
318 buggygetaddrinfo=no,
319 AC_MSG_RESULT(buggy)
320 buggygetaddrinfo=yes,
321 AC_MSG_RESULT(buggy)
322 buggygetaddrinfo=yes)], [buggygetaddrinfo=yes])
323
324 if test "$buggygetaddrinfo" = "yes"; then
325 if test "$ipv6type" != "linux"; then
326 echo 'Fatal: You must get working getaddrinfo() function.'
327 echo ' or you can specify "--disable-ipv6"'.
328 exit 1
329 else
330 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
331 echo ' Better upgreade your system library to newest version'
332 echo ' of GNU C library (aka glibc).'
333 fi
334 fi
335 AC_REPLACE_FUNCS(getaddrinfo getnameinfo)
336 fi
337 AC_REPLACE_FUNCS(inet_ntop inet_pton inet_aton)
338
339 dnl portability macros for getaddrinfo/getnameinfo
340 dnl
341 dnl Check for sa_len
342 AC_CHECK_SA_LEN(ac_cv_sockaddr_has_sa_len)
343 if test "$ac_cv_sockaddr_has_sa_len" = no; then
344 missing_includes=yes
345 fi
346
347 dnl
348 dnl check __P macro
349 AC_CHECK_PORTABLE_PROTO(ac_cv_portable_proto)
350 if test "$ac_cv_portable_proto" = no; then
351 missing_includes=yes
352 fi
353
354 dnl
355 dnl check sizeof basic types.
356 dnl They're very likely to be wrong for cross-compiling.
357 AC_CHECK_SIZEOF(char, 1)
358 AC_CHECK_SIZEOF(short, 2)
359 AC_CHECK_SIZEOF(int, 4)
360 AC_CHECK_SIZEOF(long, 4)
361
362 dnl
363 dnl Checks for u_intXX_t
364 dnl AC_CHECK_BITTYPES(ac_cv_bittypes)
365 dnl if test "$ac_cv_bittypes" = no; then
366 dnl missing_includes=yes
367 dnl fi
368
369 dnl
370 dnl Checks for addrinfo structure
371 AC_STRUCT_ADDRINFO(ac_cv_addrinfo)
372 if test "$ac_cv_addrinfo" = no; then
373 missing_includes=yes
374 fi
375
376 dnl
377 dnl Checks for NI_MAXSERV
378 AC_NI_MAXSERV(ac_cv_maxserv)
379 if test "$ac_cv_maxserv" = no; then
380 missing_includes=yes
381 fi
382
383 dnl
384 dnl Checks for NI_NAMEREQD
385 AC_NI_NAMEREQD(ac_cv_namereqd)
386 if test "$ac_cv_namereqd" = no; then
387 missing_includes=yes
388 fi
389
390 dnl
391 dnl Checks for sockaddr_storage structure
392 AC_STRUCT_SA_STORAGE(ac_cv_sa_storage)
393 if test "$ac_cv_sa_storage" = no; then
394 missing_includes=yes
395 fi
396
397 dnl
398 dnl Checks for IN[6]ADDRSZ
399 AC_CHECK_ADDRSZ(ac_cv_addrsz)
400 if test "$ac_cv_addrsz" = no; then
401 missing_includes=yes
402 fi
403
404 dnl
405 dnl Checks for RES_USE_INET6
406 AC_CHECK_RES_USE_INET6(ac_cv_res_inet6)
407 if test "$ac_cv_res_inet6" = no; then
408 missing_includes=yes
409 fi
410
411 dnl
412 dnl Checks for res_state_ext structure
413 AC_STRUCT_RES_STATE_EXT(ac_cv_res_state_ext)
414 if test "$ac_cv_res_state_ext" = no; then
415 missing_includes=yes
416 fi
417
418 dnl
419 dnl Checks if res_state structure has nsort member.
420 AC_STRUCT_RES_STATE(ac_cv_res_state)
421
422 dnl
423 dnl set additional include path if necessary
424 if test "$missing_includes" = "yes"; then
425 CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing"
426 V_INCLS="$V_INCLS -I\$(srcdir)/missing"
427 fi
428
429
430 AC_REPLACE_FUNCS(vfprintf strcasecmp strlcat strlcpy)
431 AC_CHECK_FUNCS(ether_ntohost setlinebuf gethostbyname2)
432
433 usegetipnodeby=yes
434 AC_CHECK_FUNCS(getipnodebyname getipnodebyaddr freeaddrinfo,
435 [], [usegetipnodeby=no])
436 if test $usegetipnodeby = yes; then
437 AC_DEFINE(USE_GETIPNODEBY)
438 fi
439
440 needsnprintf=no
441 AC_CHECK_FUNCS(vsnprintf snprintf asprintf asnprintf vasprintf vasnprintf,,
442 [needsnprintf=yes])
443 if test $needsnprintf = yes; then
444 LIBOBJS="$LIBOBJS snprintf.o"
445 fi
446
447 dnl The following generates a warning from autoconf...
448 errprint(__file__:__line__: please ignore the next warning:
449 )dnl
450 AC_C_BIGENDIAN
451
452 AC_CHECK_LIB(dnet, main)
453 AC_CHECK_LIB(rpc, main)
454 AC_CHECK_LIB(nsl, getrpcbynumber)
455 dnl AC_CHECK_LIB(z, uncompress)
456 dnl AC_CHECK_HEADERS(zlib.h)
457
458 AC_LBL_TYPE_SIGNAL
459
460 AC_LBL_LIBPCAP(V_PCAPDEP, V_INCLS)
461
462 V_GROUP=0
463 if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
464 V_GROUP=wheel
465 fi
466 case "$target_os" in
467
468 aix*)
469 dnl Workaround to enable certain features
470 AC_DEFINE(_SUN)
471 ;;
472
473 irix*)
474 V_GROUP=sys
475 ;;
476
477 linux*)
478 V_INCLS="$V_INCLS -I\$(srcdir)/linux-include"
479 ;;
480
481 osf*)
482 V_GROUP=system
483 dnl Workaround around ip_hl vs. ip_vhl problem in netinet/ip.h
484 AC_DEFINE(__STDC__,2)
485 ;;
486
487 solaris*)
488 V_GROUP=sys
489 ;;
490 esac
491
492 if test -f /dev/bpf0 ; then
493 V_GROUP=bpf
494 fi
495
496 AC_LBL_CHECK_TYPE(u_int8_t, u_char)
497 AC_LBL_CHECK_TYPE(int16_t, short)
498 AC_LBL_CHECK_TYPE(u_int16_t, u_short)
499 AC_LBL_CHECK_TYPE(int32_t, int)
500 AC_LBL_CHECK_TYPE(u_int32_t, u_int)
501
502 AC_LBL_DEVEL(V_CCOPT)
503
504 AC_LBL_SOCKADDR_SA_LEN
505
506 AC_MSG_CHECKING(if ether_header uses ether_addr structs)
507 AC_CACHE_VAL(ac_cv_ether_header_has_ea,
508 LBL_SAVE_CFLAGS="$CFLAGS"
509 CFLAGS="$CFLAGS $V_INCLS"
510 AC_TRY_COMPILE([
511 # include <sys/types.h>
512 # if __STDC__
513 /* osf3 has REALLY good prototyes */
514 struct mbuf;
515 struct rtentry;
516 # endif
517 # include <sys/socket.h>
518 # include <net/if.h>
519 # include <netinet/in.h>
520 # include <netinet/if_ether.h>],
521 [u_int i =
522 sizeof(((struct ether_header *)0)->ether_dhost.ether_addr_octet)],
523 ac_cv_ether_header_has_ea=yes,
524 ac_cv_ether_header_has_ea=no)
525 CFLAGS="$LBL_SAVE_CFLAGS")
526 AC_MSG_RESULT($ac_cv_ether_header_has_ea)
527 if test $ac_cv_ether_header_has_ea = yes ; then
528 AC_DEFINE(ETHER_HEADER_HAS_EA)
529 fi
530
531 AC_MSG_CHECKING(if ether_arp uses ether_addr structs)
532 AC_CACHE_VAL(ac_cv_ether_arp_has_ea,
533 LBL_SAVE_CFLAGS="$CFLAGS"
534 CFLAGS="$CFLAGS $V_INCLS"
535 AC_TRY_COMPILE([
536 # include <sys/types.h>
537 # if __STDC__
538 /* osf3 has REALLY good prototyes */
539 struct mbuf;
540 struct rtentry;
541 # endif
542 # include <sys/socket.h>
543 # include <net/if.h>
544 # include <netinet/in.h>
545 # include <netinet/if_ether.h>],
546 [u_int i =
547 sizeof(((struct ether_arp *)0)->arp_sha.ether_addr_octet)],
548 ac_cv_ether_arp_has_ea=yes,
549 ac_cv_ether_arp_has_ea=no)
550 CFLAGS="$LBL_SAVE_CFLAGS")
551 AC_MSG_RESULT($ac_cv_ether_arp_has_ea)
552 if test $ac_cv_ether_arp_has_ea = yes ; then
553 AC_DEFINE(ETHER_ARP_HAS_EA)
554 fi
555
556 AC_MSG_CHECKING(if ether_arp uses erp_xsha member)
557 AC_CACHE_VAL(ac_cv_struct_ether_arp_x,
558 LBL_SAVE_CFLAGS="$CFLAGS"
559 CFLAGS="$CFLAGS $V_INCLS"
560 AC_TRY_COMPILE([
561 # include <sys/types.h>
562 # include <sys/socket.h>
563 # if __STDC__
564 /* osf3 has REALLY good prototyes */
565 struct mbuf;
566 struct rtentry;
567 # endif
568 # include <net/if.h>
569 # include <netinet/in.h>
570 # include <netinet/if_ether.h>],
571 [u_int i = sizeof( ((struct ether_arp *)0)->arp_xsha)],
572 ac_cv_struct_ether_arp_x=yes,
573 ac_cv_struct_ether_arp_x=no)
574 CFLAGS="$LBL_SAVE_CFLAGS")
575 AC_MSG_RESULT($ac_cv_struct_ether_arp_x)
576 if test $ac_cv_struct_ether_arp_x = yes ; then
577 AC_DEFINE(ETHER_ARP_HAS_X)
578 fi
579
580 AC_LBL_UNALIGNED_ACCESS
581
582 AC_VAR_H_ERRNO
583
584 AC_MSG_CHECKING(for SSLeay)
585 ac_cv_ssleay_path=no
586 incdir=no
587 for dir in /usr /usr/local /usr/local/ssl /usr/pkg; do
588 if test -d $dir/lib -a -f $dir/lib/libcrypto.a; then
589 ac_cv_ssleay_path=$dir
590 fi
591 if test -d $dir/include/ssleay -a -f $dir/include/ssleay/des.h; then
592 incdir="-I$dir/include/ssleay"
593 elif test -d $dir/include/openssl -a -f $dir/include/openssl/des.h; then
594 incdir="-I$dir/include -I$dir/include/openssl"
595 elif test -d $dir/include -a -f $dir/include/des.h; then
596 incdir="-I$dir/include"
597 fi
598 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
599 break;
600 else
601 ac_cv_ssleay_path=no
602 incdir=no
603 fi
604 done
605 AC_MSG_RESULT($ac_cv_ssleay_path)
606 if test "$ac_cv_ssleay_path" != no; then
607 V_INCLS="$V_INCLS $incdir"
608 LIBS="$LIBS -L$dir/lib"
609 if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
610 LIBS="$LIBS -lRSAglue"
611 fi
612 if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
613 LIBS="$LIBS -lrsaref"
614 fi
615 AC_CHECK_LIB(crypto, des_cbc_encrypt)
616
617 bak_CPPFLAGS=$CPPFLAGS
618 CPPFLAGS="$CPPFLAGS $V_INCLS"
619 AC_CHECK_HEADERS(cast.h rc5.h)
620
621 if test "$ac_cv_header_cast_h" = "yes"; then
622 AC_MSG_CHECKING(for buggy CAST128)
623 AC_TRY_RUN(dnl
624 [
625 #include <cast.h>
626 main()
627 {
628 unsigned char key[] = {0x01,0x23,0x45,0x67,0x12};
629 unsigned char in[] = {0x01,0x23,0x45,0x67,0x89,0xAB,0xCD,0xEF};
630 unsigned char out[sizeof(in)];
631 unsigned char ok[] = {0x7A,0xC8,0x16,0xD1,0x6E,0x9B,0x30,0x2E};
632 CAST_KEY ks;
633 CAST_set_key(&ks, sizeof(key), key);
634 CAST_ecb_encrypt(in, out, &ks, CAST_ENCRYPT);
635 if (memcmp(out, ok, sizeof(ok)) != 0)
636 return 0;
637 else
638 return 1;
639 }],
640 [buggy_cast128=yes],
641 [buggy_cast128=no],
642 [buggy_cast128="cross-compiling, assume yes"])
643 AC_MSG_RESULT($buggy_cast128)
644 if test "$buggy_cast128" != no; then
645 echo "NOTE: SSLeay 0.9.0b has a bug in CAST128 en/decoding routine."
646 echo "disabling CAST128 support."
647 AC_DEFINE(HAVE_BUGGY_CAST128)
648 fi
649 fi
650
651 CPPFLAGS=$bak_CPPFLAGS
652 fi
653
654 if test -r ${srcdir}/lbl/gnuc.h ; then
655 rm -f gnuc.h
656 ln -s ${srcdir}/lbl/gnuc.h gnuc.h
657 fi
658
659 AC_SUBST(V_CCOPT)
660 AC_SUBST(V_GROUP)
661 AC_SUBST(V_INCLS)
662 AC_SUBST(V_PCAPDEP)
663 AC_SUBST(LOCALSRC)
664
665 AC_PROG_INSTALL
666
667 AC_CONFIG_HEADER(config.h)
668
669 AC_OUTPUT_COMMANDS([if test -f .devel; then
670 echo timestamp > stamp-h
671 cat Makefile-devel-adds >> Makefile
672 make depend
673 fi])
674 AC_OUTPUT(Makefile)
675 exit 0