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