/[inetutils]/inetutils/configure.ac
ViewVC logotype

Diff of /inetutils/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by ams, Mon Apr 29 20:31:24 2002 UTC revision 1.8 by gray, Tue May 14 15:12:42 2002 UTC
# Line 404  if test "$ac_cv_header_utmpx_h" = yes; t Line 404  if test "$ac_cv_header_utmpx_h" = yes; t
404    AC_CHECK_MEMBERS([struct utmpx.ut_tv], , , [#include <utmpx.h>])    AC_CHECK_MEMBERS([struct utmpx.ut_tv], , , [#include <utmpx.h>])
405  fi  fi
406    
407  AC_CHECK_MEMBERS([stuct ifreq.ifr_index, struct ifreq.ifr_netmask,  # AC_CHECK_MEMBERS (as of version 2.53 ) fails to recognize the presense
408                    struct ifreq.ifr_broadaddr], , ,  # of a structure member which is itself of an aggregate type. To work
409    # around the bug, we first check for a non-aggregate sub-member of the
410    # member in question and then create an appropriate HAVE_ define.
411    AC_CHECK_MEMBERS([stuct ifreq.ifr_index,
412                      struct ifreq.ifr_netmask.sa_family,
413                      struct ifreq.ifr_broadaddr.sa_family], , ,
414                   [#include <sys/socket.h>                   [#include <sys/socket.h>
415                    #include <net/if.h>])                    #include <net/if.h>])
416    
417    AH_BOTTOM([
418    #ifdef HAVE_STRUCT_IFREQ_IFR_NETMASK_SA_FAMILY
419    # define HAVE_STRUCT_IFREQ_IFR_NETMASK
420    #endif
421    #ifdef HAVE_STRUCT_IFREQ_IFR_BROADADDR_SA_FAMILY
422    # define HAVE_STRUCT_IFREQ_IFR_BROADADDR
423    #endif])
424    
425  AC_CHECK_MEMBERS([struct sockaddr.sa_len], , ,  AC_CHECK_MEMBERS([struct sockaddr.sa_len], , ,
426                   [#include <sys/types.h>                   [#include <sys/types.h>
427                    #include <sys/socket.h>])                    #include <sys/socket.h>])
# Line 610  if test "$ac_cv_func_hstrerror" = yes -o Line 623  if test "$ac_cv_func_hstrerror" = yes -o
623  fi  fi
624    
625  AH_BOTTOM(  AH_BOTTOM(
626  [#ifndef HAVE_DECL_HSTRERROR  [#if !defined(HAVE_DECL_HSTRERROR) || !HAVE_DECL_HSTRERROR
627  extern const char *hstrerror __P ((int));  extern const char *hstrerror __P ((int));
628  #endif])  #endif])
629    
# Line 618  extern const char *hstrerror __P ((int)) Line 631  extern const char *hstrerror __P ((int))
631    
632  AC_DECL_SYS_SIGLIST  AC_DECL_SYS_SIGLIST
633    
634  AC_CHECK_DECL(crypt, , , [#include <unistd.h>])  AC_CHECK_DECLS(crypt, , , [#include <unistd.h>])
635    
636  dnl EWOULDBLOCK is more or less the BSD version of posix EAGAIN.  dnl EWOULDBLOCK is more or less the BSD version of posix EAGAIN.
637  IU_CHECK_MACRO(EWOULDBLOCK, [#include <errno.h>], , ,  IU_CHECK_MACRO(EWOULDBLOCK, [#include <errno.h>], , ,
638    AC_DEFINE(EWOULDBLOCK, EAGAIN, 1, [FIXME]))    AC_DEFINE(EWOULDBLOCK, EAGAIN, 1, [FIXME]))
639  AC_CHECK_DECL(errno, , , [#include <errno.h>])  AC_CHECK_DECLS(errno, , , [#include <errno.h>])
640    
641  dnl See whether <syslog.h> will declare special internal stuff if we define  dnl See whether <syslog.h> will declare special internal stuff if we define
642  dnl SYSLOG_NAMES before including it.  We check for various syslog internal  dnl SYSLOG_NAMES before including it.  We check for various syslog internal
# Line 652  AC_CHECK_DECLS([fclose, pclose], , , [#i Line 665  AC_CHECK_DECLS([fclose, pclose], , , [#i
665  AC_CHECK_DECLS([getcwd, getlogin, getpass, getusershell, ttyname], , ,  AC_CHECK_DECLS([getcwd, getlogin, getpass, getusershell, ttyname], , ,
666                 [#include <unistd.h>])                 [#include <unistd.h>])
667  AH_BOTTOM(  AH_BOTTOM(
668  [#ifndef HAVE_DECL_GETLOGIN  [#if !HAVE_DECL_GETLOGIN
669  extern char *getlogin __P((void));  extern char *getlogin __P((void));
670  #endif])  #endif])
671  AH_BOTTOM(  AH_BOTTOM(
672  [#ifndef HAVE_DECL_GETCWD  [#if !HAVE_DECL_GETCWD
673  extern char *getcwd __P((char *, size_t));  extern char *getcwd __P((char *, size_t));
674  #endif])  #endif])
675  AH_BOTTOM(  AH_BOTTOM(
676  [#ifndef HAVE_DECL_GETPASS  [#if !HAVE_DECL_GETPASS
677  extern char *getpass __P((const char *));  extern char *getpass __P((const char *));
678  #endif])  #endif])
679  AH_BOTTOM(  AH_BOTTOM(
680  [#ifndef HAVE_DECL_TTYNAME  [#if !HAVE_DECL_TTYNAME
681  extern char *ttyname __P ((int));  extern char *ttyname __P ((int));
682  #endif])  #endif])
683    
684  AC_CHECK_DECLS([strerror, strchr], , , [#include <string.h>])  AC_CHECK_DECLS([strerror, strchr], , , [#include <string.h>])
685  AH_BOTTOM(  AH_BOTTOM(
686  [#ifndef HAVE_DECL_STRERROR  [#if !HAVE_DECL_STRERROR
687  extern const char *strerror __P ((int));  extern const char *strerror __P ((int));
688  #endif])  #endif])
689  AH_BOTTOM(  AH_BOTTOM(
690  [#ifndef HAVE_DECL_STRCHR  [#if !HAVE_DECL_STRCHR
691  extern char *strchr __P ((char *str, int ch));  extern char *strchr __P ((char *str, int ch));
692  extern char *strrchr __P ((char *str, int ch));  extern char *strrchr __P ((char *str, int ch));
693  #endif  #endif
# Line 698  AC_CHECK_DECLS(htons, , , Line 711  AC_CHECK_DECLS(htons, , ,
711      #endif      #endif
712      #include <netinet/in.h> ])      #include <netinet/in.h> ])
713    
714  if test "$ac_cv_func_setenv" = no; then  
715    dnl Our home-grown version of setenv needs to use ENVIRON  dnl Our home-grown version of setenv needs to use ENVIRON
716    AC_CHECK_DECLS(environ, , ,  AC_CHECK_DECLS(environ, , ,
717      [ #ifdef HAVE_UNISTD_H    [ #ifdef HAVE_UNISTD_H
718        # include <unistd.h>      # include <unistd.h>
719        #endif      #endif
720        #ifdef HAVE_STDLIB_H      #ifdef HAVE_STDLIB_H
721        # include <stdlib.h>      # include <stdlib.h>
722        #endif ])      #endif ])
 fi  
723    
724  dnl See if we have h_errno (the test is here so we can use -lresolv  dnl See if we have h_errno (the test is here so we can use -lresolv
725  dnl if necessary).  dnl if necessary).

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26