Index: .cvsignore =================================================================== RCS file: .cvsignore diff -N .cvsignore *** /dev/null Mon Nov 15 13:08:10 1999 --- /tmp/cvs09952aa Mon Nov 15 13:15:41 1999 *************** *** 0 **** --- 1,20 ---- + Makefile + confdefs.h + config.cache + config.h + config.h.in + config.log + config.status + configure + make-ssh-known-hosts + make-ssh-known-hosts.1 + scp + ssh + ssh-add + ssh-agent + ssh-askpass + ssh-keygen + ssh.1 + sshd + sshd.8 + stamp-h.in Index: ChangeLog =================================================================== RCS file: /cvs/misc/ssh/ChangeLog,v retrieving revision 1.1.1.4 retrieving revision 1.5 diff -c -c -r1.1.1.4 -r1.5 *** ChangeLog 1999/10/22 18:32:02 1.1.1.4 --- ChangeLog 1999/10/25 20:49:35 1.5 *************** *** 1,3 **** --- 1,9 ---- + 1999-10-25 Greg A. Woods + + * rsaglue.c, configure.in: do the right thing with including + RSAREF headers so that things work right for the installed + library as well as for local sources. + Thu Apr 29 10:46:21 1999 Timo J. Rinne * Replaced OSF1/C2 security support with more complete SIA *************** *** 673,678 **** --- 679,711 ---- Mon Dec 16 17:50:08 EET 1996 Tomi Salo * New option: X11DisplayOffset, from Jari Kokko + + Sun Dec 8 17:33:04 1996 Greg A. Woods + + * newchannels.c (auth_input_request_forwarding): don't take the + address of a function. + + * includes.h: declare strerror(), getenv(), and strtok() if + !STDC_HEADERS. + - turn off HAVE_SYS_IOCTL_H for all sun's. + - handle HAVE_MEMORY_H and HAVE_MALLOC_H. + + * configure config.h.in: regenerated with autoconf-2.12. + + * configure.in (host): support m68k.*-*-sunos4* by adding the + correct floating point flags to CFLAGS and LDFLAGS. + (--with-unproto): add support for setting the right CFLAGS to use + unproto. + (AC_PREREQ): use autoconf-2.12. + (CFLAGS): force -I/usr/local/include ala what's done with LIBS. + (--with-libwrap): add "-I`dirname $withval`/../include" to CFLAGS + [though this should probably be a prefix now ala unproto]. + (AC_REPLACE_FUNCS): need strtok(). + (AC_CHECK_HEADERS): memory.h and malloc.h. + + * config.sub (basic_machine): add support for various varieties of + floating support on Sun3s (for when X11 libraries are compiled + with -f68881, for example). Wed Nov 20 00:43:08 1996 Tero Kivinen Index: Makefile.in =================================================================== RCS file: /cvs/misc/ssh/Makefile.in,v retrieving revision 1.1.1.4 retrieving revision 1.3 diff -c -c -r1.1.1.4 -r1.3 *** Makefile.in 1999/10/22 18:31:59 1.1.1.4 --- Makefile.in 1999/10/25 20:28:31 1.3 *************** *** 288,293 **** --- 288,294 ---- RSAREFDEP = @RSAREFDEP@ WRAPLIBS = @WRAPLIBS@ + WRAPINCL = @WRAPINCL@ SSH_INSTALL_MODE= @SSHINSTALLMODE@ *************** *** 411,417 **** $(CC) -o rfc-pg rfc-pg.o .c.o: ! $(CC) -c -I. $(KERBEROS_INCS) -I$(srcdir)/$(GMPDIR) -I$(srcdir)/$(ZLIBDIR) $(DEFS) -DHOST_KEY_FILE=\"$(HOST_KEY_FILE)\" -DHOST_CONFIG_FILE=\"$(HOST_CONFIG_FILE)\" -DSERVER_CONFIG_FILE=\"$(SERVER_CONFIG_FILE)\" -DSSH_PROGRAM=\"$(SSH_PROGRAM)\" -DETCDIR=\"$(etcdir)\" -DPIDDIR=\"$(piddir)\" -DSSH_BINDIR=\"$(bindir)\" -DTIS_MAP_FILE=\"$(TIS_MAP_FILE)\" $(CFLAGS) $(X_CFLAGS) $< sshd: $(SSHD_OBJS) $(GMPDEP) $(RSAREFDEP) $(ZLIBDEP) -rm -f sshd --- 412,418 ---- $(CC) -o rfc-pg rfc-pg.o .c.o: ! $(CC) -c -I. $(KERBEROS_INCS) $(WRAPINCL) -I$(srcdir)/$(GMPDIR) -I$(srcdir)/$(ZLIBDIR) $(DEFS) -DHOST_KEY_FILE=\"$(HOST_KEY_FILE)\" -DHOST_CONFIG_FILE=\"$(HOST_CONFIG_FILE)\" -DSERVER_CONFIG_FILE=\"$(SERVER_CONFIG_FILE)\" -DSSH_PROGRAM=\"$(SSH_PROGRAM)\" -DETCDIR=\"$(etcdir)\" -DPIDDIR=\"$(piddir)\" -DSSH_BINDIR=\"$(bindir)\" -DTIS_MAP_FILE=\"$(TIS_MAP_FILE)\" $(CFLAGS) $(X_CFLAGS) $< sshd: $(SSHD_OBJS) $(GMPDEP) $(RSAREFDEP) $(ZLIBDEP) -rm -f sshd Index: acconfig.h =================================================================== RCS file: /cvs/misc/ssh/acconfig.h,v retrieving revision 1.1.1.4 retrieving revision 1.2 diff -c -c -r1.1.1.4 -r1.2 *** acconfig.h 1999/10/22 18:32:00 1.1.1.4 --- acconfig.h 1999/11/15 17:28:03 1.2 *************** *** 62,67 **** --- 62,70 ---- /* Define to use RSAREF. */ #undef RSAREF + /* Define to use RSAREF unpacked in this source directory. */ + #undef RSAREF_LOCAL_SOURCE + /* Define this to be the path of the rsh program to support executing rsh. */ #undef RSH_PATH Index: config.h.in =================================================================== RCS file: config.h.in diff -N config.h.in *** /tmp/cvs09952ah Mon Nov 15 13:15:42 1999 --- /dev/null Mon Nov 15 13:08:10 1999 *************** *** 1,607 **** - /* config.h.in. Generated automatically from configure.in by autoheader. */ - /* - - acconfig.h - template used by autoheader to create config.h.in - config.h.in - used by autoconf to create config.h - config.h - created by autoconf; contains defines generated by autoconf - - Copyright (c) 1995 Tatu Ylonen - - */ - - - /* Define to empty if the keyword does not work. */ - #undef const - - /* Define to `int' if doesn't define. */ - #undef gid_t - - /* Define if your struct stat has st_blksize. */ - #undef HAVE_ST_BLKSIZE - - /* Define if you have that is POSIX.1 compatible. */ - #undef HAVE_SYS_WAIT_H - - /* Define as __inline if that's what the C compiler calls it. */ - #undef inline - - /* Define if major, minor, and makedev are declared in . */ - #undef MAJOR_IN_MKDEV - - /* Define if major, minor, and makedev are declared in . */ - #undef MAJOR_IN_SYSMACROS - - /* Define to `int' if doesn't define. */ - #undef mode_t - - /* Define to `long' if doesn't define. */ - #undef off_t - - /* Define if you need to in order for stat and other things to work. */ - #undef _POSIX_SOURCE - - /* Define as the return type of signal handlers (int or void). */ - #undef RETSIGTYPE - - /* Define to `unsigned' if doesn't define. */ - #undef size_t - - /* Define if the `S_IS*' macros in do not work properly. */ - #undef STAT_MACROS_BROKEN - - /* Define if you have the ANSI C header files. */ - #undef STDC_HEADERS - - /* Define if you can safely include both and . */ - #undef TIME_WITH_SYS_TIME - - /* Define to `int' if doesn't define. */ - #undef uid_t - - /* Define if your processor stores words with the most significant - byte first (like Motorola and SPARC, unlike Intel and VAX). */ - #undef WORDS_BIGENDIAN - - /* Define if the X Window System is missing or not being used. */ - #undef X_DISPLAY_MISSING - - /* Define this to the canonical name of your host type (e.g., - "sparc-sun-sunos4.0.3"). */ - #undef HOSTTYPE - - /* Define if you have SYSV-style /dev/ptmx and /dev/pts/. */ - #undef HAVE_DEV_PTMX - - /* Define if you have /dev/pts and /dev/ptc devices (as in AIX). */ - #undef HAVE_DEV_PTS_AND_PTC - - /* Define if you have shadow passwords in /etc/security/passwd (AIX style). */ - #undef HAVE_ETC_SECURITY_PASSWD - - /* Define if you have shadow passwords in /etc/security/passwd.adjunct - (SunOS style). */ - #undef HAVE_ETC_SECURITY_PASSWD_ADJUNCT - - - /* Define if you have SIA, Security Integration Architecture (as in - Tru64 UNIX). */ - #undef HAVE_SIA - - /* Define if you have shadow passwords in /etc/shadow (Solaris style). */ - #undef HAVE_ETC_SHADOW - - /* Define if you have system login defaults in /etc/default/login. */ - #undef HAVE_ETC_DEFAULT_LOGIN - - /* Define if utmp structure has host field. */ - #undef HAVE_HOST_IN_UTMP - - /* Define if utmp structure has addr field. */ - #undef HAVE_ADDR_IN_UTMP - - /* Define if utmp structure has id field. */ - #undef HAVE_ID_IN_UTMP - - /* Define if utmp structure has name field. */ - #undef HAVE_NAME_IN_UTMP - - /* Define if utmp structure has pid field. */ - #undef HAVE_PID_IN_UTMP - - /* Define if utmpx structure has syslen field. */ - #undef HAVE_SYSLEN_IN_UTMPX - - /* Define if /var/adm/lastlog or whatever it is called is a directory - (e.g. SGI IRIX). */ - #undef LASTLOG_IS_DIR - - /* Define to use RSAREF. */ - #undef RSAREF - - /* Define this to be the path of the rsh program to support executing rsh. */ - #undef RSH_PATH - - /* Define this to be the path of the xauth program. */ - #undef XAUTH_PATH - - /* Default path for utmp. Determined by configure. */ - #undef SSH_UTMP - - /* Default path for wtmp. Determined by configure. */ - #undef SSH_WTMP - - /* Default path for lastlog. Determined by configure. */ - #undef SSH_LASTLOG - - /* This is defined if we found a lastlog file. The presence of lastlog.h - alone is not a sufficient indicator (at least newer BSD systems have - lastlog but no lastlog.h. */ - #undef HAVE_LASTLOG - - /* Define this if libutil.a contains BSD 4.4 compatible login(), logout(), - and logwtmp() calls. */ - #undef HAVE_LIBUTIL_LOGIN - - /* Location of system mail spool directory. */ - #undef MAIL_SPOOL_DIRECTORY - - /* Name of user's mail spool file if stored in user's home directory. */ - #undef MAIL_SPOOL_FILE - - /* Define this to be the default user path if you don't like the default. - See the --with-path= configure option. */ - #undef DEFAULT_PATH - - /* Define this if O_NONBLOCK does not work on your system (e.g., Ultrix). */ - #undef O_NONBLOCK_BROKEN - - /* Define this if sys/syslog.h needs to be included in addition to syslog.h. - This is the case on some Ultrix versions. */ - #undef NEED_SYS_SYSLOG_H - - /* Define this to leave out that cipher. */ - #undef WITH_IDEA - #undef WITH_DES - #undef WITH_ARCFOUR - #undef WITH_BLOWFISH - #undef WITH_NONE - - /* Define this to include libwrap (tcp_wrappers) support. */ - #undef LIBWRAP - #undef HAVE_LIBWRAP - - /* This is defined to pw_encrypt on Linux when using John Faugh's shadow - password implementation. */ - #undef crypt - - /* This is defined on 386BSD to preted we are on FreeBSD. */ - #undef __FreeBSD__ - - /* If defines, this overrides "tty" as the terminal group. */ - #undef TTY_GROUP - - /* Define this if you want to support Security Dynammics SecurID - cards. */ - #undef HAVE_SECURID - - /* Define this if you want to support TIS Authentication scheme. */ - #undef HAVE_TIS - - /* Define this if you are using HPSUX. HPUX uses non-standard shared - memory communication for X, which seems to be enabled by the display name - matching that of the local host. This circumvents it by using the IP - address instead of the host name in DISPLAY. */ - #undef NONSTANDARD_IP_ADDRESS_X11_KLUDGE - - /* This will enable using magic directory to find x11 sockets */ - #undef HPSUX_NONSTANDARD_X11_KLUDGE - - /* Define this is compiling on HPSUX 7.x. This will avoid including - arpa/inet.h, and will define struct linger in includes.h. */ - #undef HPSUX7_KLUDGES - - /* Define this if inet_network should be used instead of inet_addr. This is - the case on DGUX 5.4. */ - #undef BROKEN_INET_ADDR - - /* Define this if your system does not like sizeof(struct sockaddr_un) as the - size argument in bind and connect calls for unix domain sockets. */ - #undef USE_STRLEN_FOR_AF_UNIX - - /* Define this to use pipes instead of socketpairs for communicating with the - client program. Socketpairs do not seem to work on all systems. */ - #undef USE_PIPES - - /* Define this if speed_t is defined in stdtypes.h or otherwise gets included - into ttymodes.c from system headers. */ - #undef SPEED_T_IN_STDTYPES_H - - /* Define this if compiling on Ultrix. Defining this does not actually require - shadow passwords to be present; this just includes support for them. */ - #undef HAVE_ULTRIX_SHADOW_PASSWORDS - - /* Define this if compiling with SOCKS (the firewall traversal library). */ - #undef SOCKS - #undef SOCKS4 - #undef SOCKS5 - - /* Define these if on SCO Unix. */ - #undef HAVE_SCO_ETC_SHADOW - #undef SCO - - /* Additionally define this if on SCO 3.2v5 Unix */ - #undef SCO5 - - /* Define this if you have getpseudotty() (DYNIX/ptx 2.1) */ - #undef HAVE_GETPSEUDOTTY - - /* Define this if you have sco-style pty:s (ptyp0, ..., ptyp9, ptyp10...) */ - #undef HAVE_DEV_PTYP10 - - /* Define this for HP-UX 10.x shadow passwords */ - #undef HAVE_HPUX_TCB_AUTH - - /* Support for Secure RPC */ - #undef SECURE_RPC - - /* Support for Secure NFS */ - #undef SECURE_NFS - - /* Support for NIS+ */ - #undef NIS_PLUS - - /* Define this to disable all port forwardings in server (except X11) */ - #undef SSHD_NO_PORT_FORWARDING - - /* Define this to disable all port forwardings in client (except X11) */ - #undef SSH_NO_PORT_FORWARDING - - /* Define this to disable X11 forwarding in server */ - #undef SSHD_NO_X11_FORWARDING - - /* Define this to disable X11 forwarding in client */ - #undef SSH_NO_X11_FORWARDING - - /* The code in sshconnect.c is written for SOCKS4. If SOCKS5 should be used - these needs redefining */ - #undef Rconnect - #undef Rgetsockname - #undef Rgetpeername - #undef Rbind - #undef Raccept - #undef Rlisten - #undef Rselect - #undef Rrecvfrom - #undef Rsendto - #undef Rrecv - #undef Rsend - #undef Rread - #undef Rwrite - #undef Rrresvport - #undef Rshutdown - #undef Rlisten - #undef Rclose - #undef Rdup - #undef Rdup2 - #undef Rfclose - #undef Rgethostbyname - - /* Set this to allow group writeability of $HOME, .ssh and authorized_keys */ - #undef ALLOW_GROUP_WRITEABILITY - - /* Define if you want the login patches. */ - #undef USELOGIN - #undef PATH_LOGIN - - /* Define this if your gettimeofday doesn't have TZ parameter */ - #undef HAVE_NO_TZ_IN_GETTIMEOFDAY - - /* Define this if you want to compile in Kerberos support. */ - #undef KERBEROS - - /* Define this if you want to compile in Kerberos V5 support. - KERBEROS must be compiled in as well. This can be done at configure - time with the --with-kerberos5 argument*/ - #undef KRB5 - - /* Define this if you want to pass the Kerberos TGT. */ - #undef KERBEROS_TGT_PASSING - - /* Define this if you dont have SIGINFO as signal but some other macro */ - #undef HAVE_INCOMPATIBLE_SIGINFO - - /* Define this if your spwd struct defined shadow.h have sp_expire field */ - #undef HAVE_STRUCT_SPWD_EXPIRE - - /* Define this if your spwd struct defined shadow.h have sp_inact field */ - #undef HAVE_STRUCT_SPWD_INACT - - /* Define this if you want to enable TCP_NODELAY option */ - #undef ENABLE_TCP_NODELAY - - /* File used to override /etc/nologin on a per-user basis. The default is - /etc/nologin.allow. */ - #undef NOLOGIN_ALLOW - - /* Where to find the X11 socket */ - #undef X11_DIR - - /* Define this if you want to enable SO_LINGER option */ - #undef ENABLE_SO_LINGER - - /* Define this if you want to enable scp statistics option */ - #undef WITH_SCP_STATS - - /* Define this to be the path to the passwd program */ - #undef PASSWD_PATH - - /* Define this if you have SGI proj.h */ - #undef HAVE_SGI_PROJ_H - - /* Define this if you want to have scp statistics on by default */ - #undef SCP_STATISTICS_ENABLED - - /* Define this if you want to have scp statistics on by default for each - file */ - #undef SCP_ALL_STATISTICS_ENABLED - - /* The number of bytes in a int. */ - #undef SIZEOF_INT - - /* The number of bytes in a long. */ - #undef SIZEOF_LONG - - /* The number of bytes in a short. */ - #undef SIZEOF_SHORT - - /* Define if you have the _getpty function. */ - #undef HAVE__GETPTY - - /* Define if you have the authenticate function. */ - #undef HAVE_AUTHENTICATE - - /* Define if you have the clock function. */ - #undef HAVE_CLOCK - - /* Define if you have the crypt function. */ - #undef HAVE_CRYPT - - /* Define if you have the daemon function. */ - #undef HAVE_DAEMON - - /* Define if you have the fchmod function. */ - #undef HAVE_FCHMOD - - /* Define if you have the ftruncate function. */ - #undef HAVE_FTRUNCATE - - /* Define if you have the getdtablesize function. */ - #undef HAVE_GETDTABLESIZE - - /* Define if you have the gethostname function. */ - #undef HAVE_GETHOSTNAME - - /* Define if you have the getpseudotty function. */ - #undef HAVE_GETPSEUDOTTY - - /* Define if you have the getpt function. */ - #undef HAVE_GETPT - - /* Define if you have the getrusage function. */ - #undef HAVE_GETRUSAGE - - /* Define if you have the gettimeofday function. */ - #undef HAVE_GETTIMEOFDAY - - /* Define if you have the initgroups function. */ - #undef HAVE_INITGROUPS - - /* Define if you have the innetgr function. */ - #undef HAVE_INNETGR - - /* Define if you have the isastream function. */ - #undef HAVE_ISASTREAM - - /* Define if you have the makeutx function. */ - #undef HAVE_MAKEUTX - - /* Define if you have the memcpy function. */ - #undef HAVE_MEMCPY - - /* Define if you have the memmove function. */ - #undef HAVE_MEMMOVE - - /* Define if you have the openpty function. */ - #undef HAVE_OPENPTY - - /* Define if you have the putenv function. */ - #undef HAVE_PUTENV - - /* Define if you have the pw_encrypt function. */ - #undef HAVE_PW_ENCRYPT - - /* Define if you have the random function. */ - #undef HAVE_RANDOM - - /* Define if you have the remove function. */ - #undef HAVE_REMOVE - - /* Define if you have the revoke function. */ - #undef HAVE_REVOKE - - /* Define if you have the setlogin function. */ - #undef HAVE_SETLOGIN - - /* Define if you have the setluid function. */ - #undef HAVE_SETLUID - - /* Define if you have the setpgid function. */ - #undef HAVE_SETPGID - - /* Define if you have the setpgrp function. */ - #undef HAVE_SETPGRP - - /* Define if you have the setsid function. */ - #undef HAVE_SETSID - - /* Define if you have the snprintf function. */ - #undef HAVE_SNPRINTF - - /* Define if you have the socketpair function. */ - #undef HAVE_SOCKETPAIR - - /* Define if you have the strchr function. */ - #undef HAVE_STRCHR - - /* Define if you have the strerror function. */ - #undef HAVE_STRERROR - - /* Define if you have the times function. */ - #undef HAVE_TIMES - - /* Define if you have the ttyslot function. */ - #undef HAVE_TTYSLOT - - /* Define if you have the ulimit function. */ - #undef HAVE_ULIMIT - - /* Define if you have the umask function. */ - #undef HAVE_UMASK - - /* Define if you have the vhangup function. */ - #undef HAVE_VHANGUP - - /* Define if you have the waitpid function. */ - #undef HAVE_WAITPID - - /* Define if you have the header file. */ - #undef HAVE_DIRENT_H - - /* Define if you have the header file. */ - #undef HAVE_LASTLOG_H - - /* Define if you have the header file. */ - #undef HAVE_LOGIN_CAP_H - - /* Define if you have the header file. */ - #undef HAVE_MACHINE_ENDIAN_H - - /* Define if you have the header file. */ - #undef HAVE_NDIR_H - - /* Define if you have the header file. */ - #undef HAVE_NETINET_IN_SYSTEM_H - - /* Define if you have the header file. */ - #undef HAVE_NETINET_IN_SYSTM_H - - /* Define if you have the header file. */ - #undef HAVE_NETINET_IP_H - - /* Define if you have the header file. */ - #undef HAVE_NETINET_TCP_H - - /* Define if you have the header file. */ - #undef HAVE_PATHS_H - - /* Define if you have the header file. */ - #undef HAVE_RUSAGE_H - - /* Define if you have the header file. */ - #undef HAVE_SGTTY_H - - /* Define if you have the header file. */ - #undef HAVE_SHADOW_H - - /* Define if you have the header file. */ - #undef HAVE_SYS_CONF_H - - /* Define if you have the header file. */ - #undef HAVE_SYS_DIR_H - - /* Define if you have the header file. */ - #undef HAVE_SYS_IOCTL_H - - /* Define if you have the header file. */ - #undef HAVE_SYS_NDIR_H - - /* Define if you have the header file. */ - #undef HAVE_SYS_RESOURCE_H - - /* Define if you have the header file. */ - #undef HAVE_SYS_SELECT_H - - /* Define if you have the header file. */ - #undef HAVE_SYS_STREAM_H - - /* Define if you have the header file. */ - #undef HAVE_SYS_TIME_H - - /* Define if you have the header file. */ - #undef HAVE_TERMIOS_H - - /* Define if you have the header file. */ - #undef HAVE_ULIMIT_H - - /* Define if you have the header file. */ - #undef HAVE_UNISTD_H - - /* Define if you have the header file. */ - #undef HAVE_USERSEC_H - - /* Define if you have the header file. */ - #undef HAVE_UTIME_H - - /* Define if you have the header file. */ - #undef HAVE_UTMP_H - - /* Define if you have the header file. */ - #undef HAVE_UTMPX_H - - /* Define if you have the aud library (-laud). */ - #undef HAVE_LIBAUD - - /* Define if you have the auth library (-lauth). */ - #undef HAVE_LIBAUTH - - /* Define if you have the bsd library (-lbsd). */ - #undef HAVE_LIBBSD - - /* Define if you have the crypt library (-lcrypt). */ - #undef HAVE_LIBCRYPT - - /* Define if you have the db library (-ldb). */ - #undef HAVE_LIBDB - - /* Define if you have the gen library (-lgen). */ - #undef HAVE_LIBGEN - - /* Define if you have the inet library (-linet). */ - #undef HAVE_LIBINET - - /* Define if you have the m library (-lm). */ - #undef HAVE_LIBM - - /* Define if you have the nsl library (-lnsl). */ - #undef HAVE_LIBNSL - - /* Define if you have the s library (-ls). */ - #undef HAVE_LIBS - - /* Define if you have the sec library (-lsec). */ - #undef HAVE_LIBSEC - - /* Define if you have the security library (-lsecurity). */ - #undef HAVE_LIBSECURITY - - /* Define if you have the seq library (-lseq). */ - #undef HAVE_LIBSEQ - - /* Define if you have the shadow library (-lshadow). */ - #undef HAVE_LIBSHADOW - - /* Define if you have the socket library (-lsocket). */ - #undef HAVE_LIBSOCKET - - /* Define if you have the sun library (-lsun). */ - #undef HAVE_LIBSUN --- 0 ---- Index: config.sub =================================================================== RCS file: /cvs/misc/ssh/config.sub,v retrieving revision 1.1.1.2 retrieving revision 1.3 diff -c -c -r1.1.1.2 -r1.3 *** config.sub 1999/10/22 17:06:26 1.1.1.2 --- config.sub 1999/10/25 20:28:31 1.3 *************** *** 665,670 **** --- 665,679 ---- sun3 | sun3-*) basic_machine=m68k-sun ;; + sun3.68881 | sun3.68881-*) + basic_machine=m68k.68881-sun + ;; + sun3.soft | sun3.soft-*) + basic_machine=m68k.soft-sun + ;; + sun3.fpa | sun3.fpa-*) + basic_machine=m68k.fpa-sun + ;; sun4) basic_machine=sparc-sun ;; Index: configure =================================================================== RCS file: configure diff -N configure *** /tmp/cvs09952ak Mon Nov 15 13:15:43 1999 --- /dev/null Mon Nov 15 13:08:10 1999 *************** *** 1,7968 **** - #! /bin/sh - - # Guess values for system-dependent variables and create Makefiles. - # Generated automatically using autoconf version 2.12 - # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. - # - # This configure script is free software; the Free Software Foundation - # gives unlimited permission to copy, distribute and modify it. - - # Defaults: - ac_help= - ac_default_prefix=/usr/local - # Any additions from configure.in: - ac_help="$ac_help - --enable-deprecated-linux-pw-encrypt - Enable using of deprecated linx pw_encrypt function." - ac_help="$ac_help - --enable-warnings Enable -Wall if using gcc." - ac_help="$ac_help - --with-x use the X Window System" - ac_help="$ac_help - --with-idea Use IDEA (default). - --without-idea Don't use IDEA: avoids patent problems in commercial use" - ac_help="$ac_help - --with-blowfish Include blowfish (default). - --without-blowfish Don't include blowfish" - ac_help="$ac_help - --with-des Include single-DES support. - --without-des Don't allow single DES (default)" - ac_help="$ac_help - --with-arcfour Include arcfour (DO NOT ENABLE, unless you know the security implications of this settings. See README.CIPHERS for more info). - --without-arcfour Don't include arcfour (default)" - ac_help="$ac_help - --with-none Include support for unencrypted connections - --without-none Don't allow unencrypted connections (default)" - ac_help="$ac_help - --with-login[=PATH] Use login -f to finish login connections. " - ac_help="$ac_help - --with-rsh=PATH Specify where to find rsh. - --without-rsh Do not use rsh under any conditions. " - ac_help="$ac_help - --with-path=PATH Default path passed to user shell by sshd." - ac_help="$ac_help - --with-etcdir=PATH Directory containing ssh system files (default /etc)." - ac_help="$ac_help - --with-nologin-allow[=PATH] If a nologin.allow override should be used (default /etc/nologin.allow). " - ac_help="$ac_help - --with-securid[=PATH] Enable support for Security Dynamics SecurID card." - ac_help="$ac_help - --with-tis[=DIR] Enable support for TIS authentication server." - ac_help="$ac_help - --with-kerberos5=[KRB_PREFIX] Compile in Kerberos5 support." - ac_help="$ac_help - --enable-kerberos-tgt-passing Pass Kerberos ticket-granting-ticket." - ac_help="$ac_help - --with-libwrap[=PATH] Compile in libwrap (tcp_wrappers) support." - ac_help="$ac_help - --with-socks Compile with SOCKS firewall traversal support." - ac_help="$ac_help - --with-socks5[=PATH] Compile with SOCKS5 firewall traversal support." - ac_help="$ac_help - --with-socks4[=PATH] Compile with SOCKS4 firewall traversal support." - ac_help="$ac_help - --with-rsaref[=PATH] Use RSAREF (try to avoid patent problems in U.S.) - --without-rsaref Use normal RSA routines (default). " - ac_help="$ac_help - --enable-group-writeability Allow group writeability in auth-rsa. " - ac_help="$ac_help - --disable-server-port-forwardings - Disable all port forwardings in server (except X11)" - ac_help="$ac_help - --disable-client-port-forwardings - Disable all port forwardings in client (except X11)" - ac_help="$ac_help - --disable-server-x11-forwarding - Disable X11 forwarding in server" - ac_help="$ac_help - --disable-client-x11-forwarding - Disable X11 forwarding in client" - ac_help="$ac_help - --enable-suid-ssh Install ssh as suid root (default) - --disable-suid-ssh Install ssh without suid bit" - ac_help="$ac_help - --disable-tcp-nodelay Disable TCP_NODELAY socket option" - ac_help="$ac_help - --enable-so-linger Enable setting SO_LINGER socket option" - ac_help="$ac_help - --without-scp-stats Without scp statistics code" - ac_help="$ac_help - --disable-scp-stats Disable scp statistics display" - ac_help="$ac_help - --disable-all-scp-stats Disable all files scp statistics display" - ac_help="$ac_help - --disable-asm Disable assembly language optimizations. " - - # Initialize some variables set by options. - # The variables have the same names as the options, with - # dashes changed to underlines. - build=NONE - cache_file=./config.cache - exec_prefix=NONE - host=NONE - no_create= - nonopt=NONE - no_recursion= - prefix=NONE - program_prefix=NONE - program_suffix=NONE - program_transform_name=s,x,x, - silent= - site= - srcdir= - target=NONE - verbose= - x_includes=NONE - x_libraries=NONE - bindir='${exec_prefix}/bin' - sbindir='${exec_prefix}/sbin' - libexecdir='${exec_prefix}/libexec' - datadir='${prefix}/share' - sysconfdir='${prefix}/etc' - sharedstatedir='${prefix}/com' - localstatedir='${prefix}/var' - libdir='${exec_prefix}/lib' - includedir='${prefix}/include' - oldincludedir='/usr/include' - infodir='${prefix}/info' - mandir='${prefix}/man' - - # Initialize some other variables. - subdirs= - MFLAGS= MAKEFLAGS= - # Maximum number of lines to put in a shell here document. - ac_max_here_lines=12 - - ac_prev= - for ac_option - do - - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval "$ac_prev=\$ac_option" - ac_prev= - continue - fi - - case "$ac_option" in - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; - *) ac_optarg= ;; - esac - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case "$ac_option" in - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir="$ac_optarg" ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build="$ac_optarg" ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file="$ac_optarg" ;; - - -datadir | --datadir | --datadi | --datad | --data | --dat | --da) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ - | --da=*) - datadir="$ac_optarg" ;; - - -disable-* | --disable-*) - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - eval "enable_${ac_feature}=no" ;; - - -enable-* | --enable-*) - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "enable_${ac_feature}='$ac_optarg'" ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix="$ac_optarg" ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he) - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat << EOF - Usage: configure [options] [host] - Options: [defaults in brackets after descriptions] - Configuration: - --cache-file=FILE cache test results in FILE - --help print this message - --no-create do not create output files - --quiet, --silent do not print \`checking...' messages - --version print the version of autoconf that created configure - Directory and file names: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [same as prefix] - --bindir=DIR user executables in DIR [EPREFIX/bin] - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] - --libexecdir=DIR program executables in DIR [EPREFIX/libexec] - --datadir=DIR read-only architecture-independent data in DIR - [PREFIX/share] - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data in DIR - [PREFIX/com] - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] - --libdir=DIR object code libraries in DIR [EPREFIX/lib] - --includedir=DIR C header files in DIR [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] - --infodir=DIR info documentation in DIR [PREFIX/info] - --mandir=DIR man documentation in DIR [PREFIX/man] - --srcdir=DIR find the sources in DIR [configure dir or ..] - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM - run sed PROGRAM on installed program names - EOF - cat << EOF - Host type: - --build=BUILD configure for building on BUILD [BUILD=HOST] - --host=HOST configure for HOST [guessed] - --target=TARGET configure for TARGET [TARGET=HOST] - Features and packages: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --x-includes=DIR X include files are in DIR - --x-libraries=DIR X library files are in DIR - EOF - if test -n "$ac_help"; then - echo "--enable and --with options recognized:$ac_help" - fi - exit 0 ;; - - -host | --host | --hos | --ho) - ac_prev=host ;; - -host=* | --host=* | --hos=* | --ho=*) - host="$ac_optarg" ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir="$ac_optarg" ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir="$ac_optarg" ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir="$ac_optarg" ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir="$ac_optarg" ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst \ - | --locals | --local | --loca | --loc | --lo) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* \ - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) - localstatedir="$ac_optarg" ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir="$ac_optarg" ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir="$ac_optarg" ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix="$ac_optarg" ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix="$ac_optarg" ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix="$ac_optarg" ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name="$ac_optarg" ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir="$ac_optarg" ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir="$ac_optarg" ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site="$ac_optarg" ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir="$ac_optarg" ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir="$ac_optarg" ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target="$ac_optarg" ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers) - echo "configure generated by autoconf version 2.12" - exit 0 ;; - - -with-* | --with-*) - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "with_${ac_package}='$ac_optarg'" ;; - - -without-* | --without-*) - ac_package=`echo $ac_option|sed -e 's/-*without-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - eval "with_${ac_package}=no" ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes="$ac_optarg" ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries="$ac_optarg" ;; - - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } - ;; - - *) - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then - echo "configure: warning: $ac_option: invalid host type" 1>&2 - fi - if test "x$nonopt" != xNONE; then - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } - fi - nonopt="$ac_option" - ;; - - esac - done - - if test -n "$ac_prev"; then - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } - fi - - trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - - # File descriptor usage: - # 0 standard input - # 1 file creation - # 2 errors and warnings - # 3 some systems may open it to /dev/tty - # 4 used on the Kubota Titan - # 6 checking for... messages and results - # 5 compiler messages saved in config.log - if test "$silent" = yes; then - exec 6>/dev/null - else - exec 6>&1 - fi - exec 5>./config.log - - echo "\ - This file contains any messages produced by compilers while - running configure, to aid debugging if configure makes a mistake. - " 1>&5 - - # Strip out --no-create and --no-recursion so they do not pile up. - # Also quote any args containing shell metacharacters. - ac_configure_args= - for ac_arg - do - case "$ac_arg" in - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) ;; - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) - ac_configure_args="$ac_configure_args '$ac_arg'" ;; - *) ac_configure_args="$ac_configure_args $ac_arg" ;; - esac - done - - # NLS nuisances. - # Only set these to C if already set. These must not be set unconditionally - # because not all systems understand e.g. LANG=C (notably SCO). - # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! - # Non-C LC_CTYPE values break the ctype check. - if test "${LANG+set}" = set; then LANG=C; export LANG; fi - if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi - if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi - if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi - - # confdefs.h avoids OS command line length limits that DEFS can exceed. - rm -rf conftest* confdefs.h - # AIX cpp loses on an empty file, so make sure it contains at least a newline. - echo > confdefs.h - - # A filename unique to this package, relative to the directory that - # configure is in, which we can look for to find out if srcdir is correct. - ac_unique_file=sshd.c - - # Find the source files, if location was not specified. - if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then its parent. - ac_prog=$0 - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. - srcdir=$ac_confdir - if test ! -r $srcdir/$ac_unique_file; then - srcdir=.. - fi - else - ac_srcdir_defaulted=no - fi - if test ! -r $srcdir/$ac_unique_file; then - if test "$ac_srcdir_defaulted" = yes; then - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } - else - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } - fi - fi - srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` - - # Prefer explicitly selected file to automatically selected ones. - if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" - fi - fi - for ac_site_file in $CONFIG_SITE; do - if test -r "$ac_site_file"; then - echo "loading site script $ac_site_file" - . "$ac_site_file" - fi - done - - if test -r "$cache_file"; then - echo "loading cache $cache_file" - . $cache_file - else - echo "creating cache $cache_file" - > $cache_file - fi - - ac_ext=c - # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. - ac_cpp='$CPP $CPPFLAGS' - ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' - ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' - cross_compiling=$ac_cv_prog_cc_cross - - if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then - ac_n= ac_c=' - ' ac_t=' ' - else - ac_n=-n ac_c= ac_t= - fi - else - ac_n= ac_c='\c' ac_t= - fi - - - - - - # So many systems seem to need this that it is better do it here automatically. - LIBS="-L/usr/local/lib $LIBS" - - ac_aux_dir= - for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do - if test -f $ac_dir/install-sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f $ac_dir/install.sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - fi - done - if test -z "$ac_aux_dir"; then - { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } - fi - ac_config_guess=$ac_aux_dir/config.guess - ac_config_sub=$ac_aux_dir/config.sub - ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. - - - # Make sure we can run config.sub. - if $ac_config_sub sun4 >/dev/null 2>&1; then : - else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } - fi - - echo $ac_n "checking host system type""... $ac_c" 1>&6 - echo "configure:635: checking host system type" >&5 - - host_alias=$host - case "$host_alias" in - NONE) - case $nonopt in - NONE) - if host_alias=`$ac_config_guess`; then : - else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } - fi ;; - *) host_alias=$nonopt ;; - esac ;; - esac - - host=`$ac_config_sub $host_alias` - host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` - host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` - host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` - echo "$ac_t""$host" 1>&6 - - echo $ac_n "checking cached information""... $ac_c" 1>&6 - echo "configure:656: checking cached information" >&5 - hostcheck="$host" - if eval "test \"`echo '$''{'ac_cv_hostcheck'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_cv_hostcheck="$hostcheck" - fi - - if test "$ac_cv_hostcheck" != "$hostcheck"; then - echo "$ac_t""changed" 1>&6 - echo "configure: warning: config.cache exists!" 1>&2 - { echo "configure: error: you must do 'make distclean' first to compile for different host or different parameters." 1>&2; exit 1; } - else - echo "$ac_t""ok" 1>&6 - fi - - # Extract the first word of "gcc", so it can be a program name with args. - set dummy gcc; ac_word=$2 - echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 - echo "configure:675: checking for $ac_word" >&5 - if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. - else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_CC="gcc" - break - fi - done - IFS="$ac_save_ifs" - fi - fi - CC="$ac_cv_prog_CC" - if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 - else - echo "$ac_t""no" 1>&6 - fi - - if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. - set dummy cc; ac_word=$2 - echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 - echo "configure:704: checking for $ac_word" >&5 - if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. - else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" - ac_prog_rejected=no - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - break - fi - done - IFS="$ac_save_ifs" - if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# -gt 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - set dummy "$ac_dir/$ac_word" "$@" - shift - ac_cv_prog_CC="$@" - fi - fi - fi - fi - CC="$ac_cv_prog_CC" - if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 - else - echo "$ac_t""no" 1>&6 - fi - - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } - fi - - echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 - echo "configure:752: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 - - ac_ext=c - # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. - ac_cpp='$CPP $CPPFLAGS' - ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' - ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' - cross_compiling=$ac_cv_prog_cc_cross - - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - ac_cv_prog_cc_works=yes - # If we can't run a trivial program, we are probably using a cross compiler. - if (./conftest; exit) 2>/dev/null; then - ac_cv_prog_cc_cross=no - else - ac_cv_prog_cc_cross=yes - fi - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - ac_cv_prog_cc_works=no - fi - rm -fr conftest* - - echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 - if test $ac_cv_prog_cc_works = no; then - { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } - fi - echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 - echo "configure:786: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 - echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 - cross_compiling=$ac_cv_prog_cc_cross - - echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 - echo "configure:791: checking whether we are using GNU C" >&5 - if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.c <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then - ac_cv_prog_gcc=yes - else - ac_cv_prog_gcc=no - fi - fi - - echo "$ac_t""$ac_cv_prog_gcc" 1>&6 - - if test $ac_cv_prog_gcc = yes; then - GCC=yes - ac_test_CFLAGS="${CFLAGS+set}" - ac_save_CFLAGS="$CFLAGS" - CFLAGS= - echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 - echo "configure:815: checking whether ${CC-cc} accepts -g" >&5 - if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - echo 'void f(){}' > conftest.c - if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then - ac_cv_prog_cc_g=yes - else - ac_cv_prog_cc_g=no - fi - rm -f conftest* - - fi - - echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - elif test $ac_cv_prog_cc_g = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-O2" - fi - else - GCC= - test "${CFLAGS+set}" = set || CFLAGS="-g" - fi - - echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 - echo "configure:843: checking for POSIXized ISC" >&5 - if test -d /etc/conf/kconfig.d && - grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 - then - echo "$ac_t""yes" 1>&6 - ISC=yes # If later tests want to check for ISC. - cat >> confdefs.h <<\EOF - #define _POSIX_SOURCE 1 - EOF - - if test "$GCC" = yes; then - CC="$CC -posix" - else - CC="$CC -Xp" - fi - else - echo "$ac_t""no" 1>&6 - ISC= - fi - - - cat >> confdefs.h < says speed_t is defined in stdtypes.h - cat >> confdefs.h <<\EOF - #define SPEED_T_IN_STDTYPES_H 1 - EOF - - ;; - *-*-solaris*) - # solaris stuff. appro@fy.chalmers.se - cat >> confdefs.h <<\EOF - #define SECURE_RPC 1 - EOF - - cat >> confdefs.h <<\EOF - #define SECURE_NFS 1 - EOF - - # NIS+ is forced so that we don't have to recompile - # if we move to NIS+. appro@fy.chalmers.se - cat >> confdefs.h <<\EOF - #define NIS_PLUS 1 - EOF - - ;; - *-*-sunos*) - os_sunos=yes - ;; - *-sgi-irix5*) - # Irix stuff from snabb@niksula.hut.fi, tsurmacz@asic.ict.pwr.wroc.pl, - # C.Martin@sheffield.ac.uk, raistlin@uni-paderborn.de - no_libsocket=yes - no_libsun=yes - no_libnsl=yes - # force /etc/shadow support. they can run /sbin/pwconv at any time. - # if they do so, don't let sshd down:-) appro@fy.chalmers.se - cat >> confdefs.h <<\EOF - #define HAVE_ETC_SHADOW 1 - EOF - - no_shadows_password_checking=yes - ;; - *-sgi-irix6*) - # from d-champion@uchicago.edu - no_libsocket=yes - no_libnsl=yes - no_libsun=yes - if test -z "$GCC";then - if test "`uname -s`" = "IRIX64"; then - CFLAGS="-n32 -D_LONG_LONG_LIMB $CFLAGS" - LDFLAGS="-n32 $LDFLAGS" - else - CFLAGS="-n32 $CFLAGS" - LDFLAGS="-n32 $LDFLAGS" - fi - fi - # force /etc/shadow support. they can run /sbin/pwconv at any time. - # if they do so, don't let sshd down:-) appro@fy.chalmers.se - cat >> confdefs.h <<\EOF - #define HAVE_ETC_SHADOW 1 - EOF - - no_shadows_password_checking=yes - # We want support for eivind@ii.uib.no - cat > conftest.$ac_ext < - int main() { - int foo = MAXPROJNAMELEN; - ; return 0; } - EOF - if { (eval echo configure:942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - cat >> confdefs.h <<\EOF - #define HAVE_SGI_PROJ_H 1 - EOF - - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - fi - rm -f conftest* - ;; - *-ibm-aix3.2|*-ibm-aix3.2.0|*-ibm-aix3.2.1|*-ibm-aix3.2.2|*-ibm-aix3.2.3|*-ibm-aix3.2.4) - os_aix=yes - echo $ac_n "checking for getuserattr in -ls""... $ac_c" 1>&6 - echo "configure:957: checking for getuserattr in -ls" >&5 - ac_lib_var=`echo s'_'getuserattr | sed 'y%./+-%__p_%'` - if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_save_LIBS="$LIBS" - LIBS="-ls $LIBS" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" - fi - rm -f conftest* - LIBS="$ac_save_LIBS" - - fi - if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo s | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <&6 - fi - - ;; - *-ibm-aix4.2|*-ibm-aix4.2.*|*-ibm-aix4.3*|*-ibm-aix4.4*) - no_utmpx=yes - os_aix=yes - echo $ac_n "checking for getuserattr in -ls""... $ac_c" 1>&6 - echo "configure:1008: checking for getuserattr in -ls" >&5 - ac_lib_var=`echo s'_'getuserattr | sed 'y%./+-%__p_%'` - if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_save_LIBS="$LIBS" - LIBS="-ls $LIBS" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" - fi - rm -f conftest* - LIBS="$ac_save_LIBS" - - fi - if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo s | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <&6 - fi - - ;; - *-ibm-aix*) - os_aix=yes - echo $ac_n "checking for getuserattr in -ls""... $ac_c" 1>&6 - echo "configure:1058: checking for getuserattr in -ls" >&5 - ac_lib_var=`echo s'_'getuserattr | sed 'y%./+-%__p_%'` - if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_save_LIBS="$LIBS" - LIBS="-ls $LIBS" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" - fi - rm -f conftest* - LIBS="$ac_save_LIBS" - - fi - if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo s | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <&6 - fi - - ;; - mips-dec-mach3*) - # Mach3 stuff from kivinen@hut.fi - no_vhangup=yes - no_setsid=yes - ;; - *-dec-ultrix*) - # Ultrix stuff from dmckilli@qc.bell.ca, jbotz@orixa.mtholyoke.edu, - # corey@cac.washington.edu - cat >> confdefs.h <<\EOF - #define O_NONBLOCK_BROKEN 1 - EOF - - cat >> confdefs.h <<\EOF - #define HAVE_ULTRIX_SHADOW_PASSWORDS 1 - EOF - - no_vhangup=yes - no_utmpx=yes - no_termios=yes - # Ultrix shadow passwords implemented in auth-passwd.c. - no_shadows_password_checking=yes - echo $ac_n "checking for authenticate_user in -lauth""... $ac_c" 1>&6 - echo "configure:1127: checking for authenticate_user in -lauth" >&5 - ac_lib_var=`echo auth'_'authenticate_user | sed 'y%./+-%__p_%'` - if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_save_LIBS="$LIBS" - LIBS="-lauth $LIBS" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" - fi - rm -f conftest* - LIBS="$ac_save_LIBS" - - fi - if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo auth | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <&6 - fi - - cat > conftest.$ac_ext < - int main() { - int foo = LOG_DAEMON; - ; return 0; } - EOF - if { (eval echo configure:1181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - : - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - cat >> confdefs.h <<\EOF - #define NEED_SYS_SYSLOG_H 1 - EOF - - fi - rm -f conftest* - ;; - *-*-hpux7.*) - # Kludge for ancient HPUX 7.x (from Nenad Babajic ) - cat >> confdefs.h <<\EOF - #define HPSUX7_KLUDGES 1 - EOF - - # HPUX flags from jgotts@engin.umich.edu - if test -z "$GCC"; then - CFLAGS="$CFLAGS -Aa -D_HPUX_SOURCE" - fi - cat >> confdefs.h <<\EOF - #define NONSTANDARD_IP_ADDRESS_X11_KLUDGE 1 - EOF - - cat >> confdefs.h <<\EOF - #define HPSUX_NONSTANDARD_X11_KLUDGE 1 - EOF - - ;; - *-*-hpux*) - # HPUX flags from jgotts@engin.umich.edu - if test -z "$GCC"; then - CFLAGS="$CFLAGS -Ae -D_HPUX_SOURCE" - fi - echo $ac_n "checking for HPUX tcb auth option""... $ac_c" 1>&6 - echo "configure:1219: checking for HPUX tcb auth option" >&5 - if test -f /tcb/files/auth/system/pw_id_map; then - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF - #define HAVE_HPUX_TCB_AUTH 1 - EOF - - LIBS="$LIBS -lsec" - else - echo "$ac_t""no" 1>&6 - fi - echo $ac_n "checking for keyserv""... $ac_c" 1>&6 - echo "configure:1231: checking for keyserv" >&5 - if test -f /usr/sbin/keyserv; then - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF - #define SECURE_RPC 1 - EOF - - LIBS="$LIBS -lrpcsvc" - else - echo "$ac_t""no" 1>&6 - fi - cat >> confdefs.h <<\EOF - #define NONSTANDARD_IP_ADDRESS_X11_KLUDGE 1 - EOF - - cat >> confdefs.h <<\EOF - #define HPSUX_NONSTANDARD_X11_KLUDGE 1 - EOF - - no_utmpx=yes - ;; - alpha-dec-osf*) - cat >> confdefs.h <<\EOF - #define TTY_GROUP "terminal" - EOF - - # The man page says that we need -lsecurity -ldb -laud -lm to quickstart - # programs using enchanced security. - echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6 - echo "configure:1260: checking for set_auth_parameters in -lsecurity" >&5 - ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'` - if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_save_LIBS="$LIBS" - LIBS="-lsecurity $LIBS" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" - fi - rm -f conftest* - LIBS="$ac_save_LIBS" - - fi - if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <&6 - fi - - echo $ac_n "checking for audgen in -laud""... $ac_c" 1>&6 - echo "configure:1307: checking for audgen in -laud" >&5 - ac_lib_var=`echo aud'_'audgen | sed 'y%./+-%__p_%'` - if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_save_LIBS="$LIBS" - LIBS="-laud $LIBS" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" - fi - rm -f conftest* - LIBS="$ac_save_LIBS" - - fi - if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo aud | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <&6 - fi - - echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6 - echo "configure:1354: checking for dbopen in -ldb" >&5 - ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'` - if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_save_LIBS="$LIBS" - LIBS="-ldb $LIBS" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" - fi - rm -f conftest* - LIBS="$ac_save_LIBS" - - fi - if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo db | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <&6 - fi - - echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 - echo "configure:1401: checking for sin in -lm" >&5 - ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` - if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_save_LIBS="$LIBS" - LIBS="-lm $LIBS" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" - fi - rm -f conftest* - LIBS="$ac_save_LIBS" - - fi - if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <&6 - fi - - for ac_func in setluid - do - echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 - echo "configure:1450: checking for $ac_func" >&5 - if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext < - /* Override any gcc2 internal prototype to avoid an error. */ - /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ - char $ac_func(); - - int main() { - - /* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ - #if defined (__stub_$ac_func) || defined (__stub___$ac_func) - choke me - #else - $ac_func(); - #endif - - ; return 0; } - EOF - if { (eval echo configure:1478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" - fi - rm -f conftest* - fi - - if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 - fi - done - - no_utmpx=yes - cat >> confdefs.h <<\EOF - #define HAVE_SIA 1 - EOF - - SSHDCONFOBJS="$SSHDCONFOBJS sshsia.o" - OLD_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -I." - cat > conftest.$ac_ext < - #include - #include - int main() { - - ; return 0; } - EOF - if { (eval echo configure:1520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - : - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - - echo "configure: warning: Could not include file. - The digital unix 4.0 prot.h tries to include instead of . - Making a local copy of prot.h and patching it." 1>&2 - sed 's@@@g' prot.h - - fi - rm -f conftest* - CFLAGS="$OLD_CFLAGS" - ;; - *-*-nextstep*) - # Nextstep support from a person who wants to remain anonymous - no_termios=yes - if test -f /usr/include/bsd/sys/termios.h; then - cat >> confdefs.h <<\EOF - #define SPEED_T_IN_STDTYPES_H 1 - EOF - - fi - ;; - *-*-linux*|*-*-mklinux*) - CFLAGS="-D_GNU_SOURCE $CFLAGS" - echo $ac_n "checking for getspnam""... $ac_c" 1>&6 - echo "configure:1549: checking for getspnam" >&5 - if eval "test \"`echo '$''{'ac_cv_func_getspnam'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext < - /* Override any gcc2 internal prototype to avoid an error. */ - /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ - char getspnam(); - - int main() { - - /* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ - #if defined (__stub_getspnam) || defined (__stub___getspnam) - choke me - #else - getspnam(); - #endif - - ; return 0; } - EOF - if { (eval echo configure:1577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_func_getspnam=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_getspnam=no" - fi - rm -f conftest* - fi - - if eval "test \"`echo '$ac_cv_func_'getspnam`\" = yes"; then - echo "$ac_t""yes" 1>&6 - : - else - echo "$ac_t""no" 1>&6 - fi - - if test $ac_cv_func_getspnam = no; then - echo $ac_n "checking for getspnam in -lshadow""... $ac_c" 1>&6 - echo "configure:1598: checking for getspnam in -lshadow" >&5 - ac_lib_var=`echo shadow'_'getspnam | sed 'y%./+-%__p_%'` - if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_save_LIBS="$LIBS" - LIBS="-lshadow $LIBS" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" - fi - rm -f conftest* - LIBS="$ac_save_LIBS" - - fi - if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo shadow | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <&6 - fi - - fi - if test $ac_cv_func_getspnam = yes; then - cat >> confdefs.h <<\EOF - #define HAVE_ETC_SHADOW 1 - EOF - - fi - no_shadows_password_checking=yes - for ac_func in pw_encrypt - do - echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 - echo "configure:1655: checking for $ac_func" >&5 - if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext < - /* Override any gcc2 internal prototype to avoid an error. */ - /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ - char $ac_func(); - - int main() { - - /* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ - #if defined (__stub_$ac_func) || defined (__stub___$ac_func) - choke me - #else - $ac_func(); - #endif - - ; return 0; } - EOF - if { (eval echo configure:1683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" - fi - rm -f conftest* - fi - - if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 - fi - done - - if test $ac_cv_func_pw_encrypt = no; then - echo $ac_n "checking for pw_encrypt in -lshadow""... $ac_c" 1>&6 - echo "configure:1709: checking for pw_encrypt in -lshadow" >&5 - ac_lib_var=`echo shadow'_'pw_encrypt | sed 'y%./+-%__p_%'` - if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_save_LIBS="$LIBS" - LIBS="-lshadow $LIBS" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" - fi - rm -f conftest* - LIBS="$ac_save_LIBS" - - fi - if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - - pwencrypt=yes - pwencryptlib="-lshadow" - else - echo "$ac_t""no" 1>&6 - fi - - fi - echo $ac_n "checking whether to enable pw_encrypt""... $ac_c" 1>&6 - echo "configure:1752: checking whether to enable pw_encrypt" >&5 - # Check whether --enable-deprecated-linux-pw-encrypt or --disable-deprecated-linux-pw-encrypt was given. - if test "${enable_deprecated_linux_pw_encrypt+set}" = set; then - enableval="$enable_deprecated_linux_pw_encrypt" - if test -z "$pwencrypt"; then - echo "$ac_t""no" 1>&6 - else - cat >> confdefs.h <<\EOF - #define crypt pw_encrypt - EOF - - echo "$ac_t""no" 1>&6 - if test -n "$pwencryptlib"; then - LIBS="$LIBS $pwencryptlib" - fi - fi - else - echo "$ac_t""no" 1>&6 - fi - - ;; - i*86-*-bsdi2.1*) - no_pipe=yes - X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" - ;; - i*86-*-bsdi*) - no_pipe=yes - ;; - i*86-unknown-bsd*) - # Assume 386BSD. pgut01@cs.auckland.ac.nz reported this makes it compile. - cat >> confdefs.h <<\EOF - #define __FreeBSD__ 1 - EOF - - ;; - mips-sony-newsos6) - cat >> confdefs.h <<\EOF - #define HAVE_NO_TZ_IN_GETTIMEOFDAY 1 - EOF - - ;; - m68k-sony-newsos*) - # From snabb@niksula.hut.fi - no_vhangup=yes - ;; - mips-sony-bsd*) - no_vhangup=yes - ;; - m68k-apple-aux*) - # Macintosh A/UX tweaks - prune LIB = -L/usr/local/lib, exceeds ld capacity - # add -lposix to it, needed for termio stuff - LIBS="$LIBS -lposix" - cat >> confdefs.h <<\EOF - #define _POSIX_SOURCE 1 - EOF - - ;; - m88k-dg-dgux*) - cat >> confdefs.h <<\EOF - #define BROKEN_INET_ADDR 1 - EOF - - ;; - t3e-*-*) - CFLAGS="$CFLAGS -I." - LIBS="$LIBS -lrsc" - ;; - *-cray-unicos*) - CFLAGS="$CFLAGS -DCRAY_STACKSEG_END=_getb67" - LIBS="$LIBS -lrsc" - ;; - i386-sni-sysv4*) - cat >> confdefs.h <<\EOF - #define NONSTANDARD_IP_ADDRESS_X11_KLUDGE 1 - EOF - - echo $ac_n "checking for openlog in -lgen""... $ac_c" 1>&6 - echo "configure:1829: checking for openlog in -lgen" >&5 - ac_lib_var=`echo gen'_'openlog | sed 'y%./+-%__p_%'` - if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_save_LIBS="$LIBS" - LIBS="-lgen $LIBS" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" - fi - rm -f conftest* - LIBS="$ac_save_LIBS" - - fi - if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <&6 - fi - - ;; - *-*-sysv4*) - echo $ac_n "checking for openlog in -lgen""... $ac_c" 1>&6 - echo "configure:1878: checking for openlog in -lgen" >&5 - ac_lib_var=`echo gen'_'openlog | sed 'y%./+-%__p_%'` - if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_save_LIBS="$LIBS" - LIBS="-lgen $LIBS" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" - fi - rm -f conftest* - LIBS="$ac_save_LIBS" - - fi - if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <&6 - fi - - ;; - *-*-machten*) - cat >> confdefs.h <<\EOF - #define USE_STRLEN_FOR_AF_UNIX 1 - EOF - - no_vhangup=yes - ;; - i*86-unknown-sco3.2v4*) - # From moi@dio.com - cat >> confdefs.h <<\EOF - #define HAVE_SCO_ETC_SHADOW 1 - EOF - - cat >> confdefs.h <<\EOF - #define SCO 1 - EOF - - no_ranlib=yes - LIBS="-L/usr/lib/libp -lprot -lx $LIBS" - CFLAGS="$CFLAGS -UM_I86SM" - ;; - i*86-unknown-sco3.2v5*) - # From brian@ilinx.com - cat >> confdefs.h <<\EOF - #define HAVE_SCO_ETC_SHADOW 1 - EOF - - cat >> confdefs.h <<\EOF - #define SCO 1 - EOF - - cat >> confdefs.h <<\EOF - #define SCO5 1 - EOF - - no_ranlib=yes - LIBS="-L/usr/lib/libp -lprot -lx $LIBS" - CFLAGS="$CFLAGS -UM_I86SM" - ;; - *-convex-bsd*) - # From mark.martinec@nsc.ijs.si - # On Convex, getpwnam sets pw_passwd if running as root - no_shadows_password_checking=yes - ;; - *-sequent-ptx*) - # From geek+@cmu.edu - test_libinet=yes - ;; - *-sequent-dynix*|*-sequent-ptx*) - LIBS="-lseq -lsec $LIBS" - X_EXTRA_LIBS="-lsocket -linet -lnsl $X_EXTRA_LIBS" - ;; - *-*-freebsd*) - # From Ollivier Robert: FreeBSD and NetBSD use master.passwd, but set - # pw_passwd automatically when running as root. - no_shadow_password_checking=yes - ;; - *-*-netbsd*|*-*-openbsd*) - # From Ollivier Robert: FreeBSD and NetBSD use master.passwd, but set - # pw_passwd automatically when running as root. - no_shadow_password_checking=yes - ;; - *) - ;; - esac - - export CFLAGS CC - - # Socket pairs appear to be broken on several systems. I don't know exactly - # where, so I'll use pipes everywhere for now. - cat >> confdefs.h <<\EOF - #define USE_PIPES 1 - EOF - - - echo $ac_n "checking that the compiler works""... $ac_c" 1>&6 - echo "configure:2001: checking that the compiler works" >&5 - if test "$cross_compiling" = yes; then - { echo "configure: error: Could not compile and run even a trivial ANSI C program - check CC." 1>&2; exit 1; } - else - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null - then - echo "$ac_t""yes" 1>&6 - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - echo "$ac_t""no" 1>&6 - { echo "configure: error: Could not compile and run even a trivial ANSI C program - check CC." 1>&2; exit 1; } - fi - rm -fr conftest* - fi - - - if test -z "$no_pipe"; then - if test -n "$GCC"; then - echo $ac_n "checking if the compiler understands -pipe""... $ac_c" 1>&6 - echo "configure:2027: checking if the compiler understands -pipe" >&5 - OLDCC="$CC" - CC="$CC -pipe" - cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - echo "$ac_t""yes" 1>&6 - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - CC="$OLDCC" - echo "$ac_t""no" 1>&6 - fi - rm -f conftest* - fi - fi - - echo $ac_n "checking whether to enable -Wall""... $ac_c" 1>&6 - echo "configure:2053: checking whether to enable -Wall" >&5 - # Check whether --enable-warnings or --disable-warnings was given. - if test "${enable_warnings+set}" = set; then - enableval="$enable_warnings" - if test -n "$GCC"; then - echo "$ac_t""adding -Wall to CFLAGS." 1>&6 - CFLAGS="$CFLAGS -Wall" - fi - else - echo "$ac_t""no" 1>&6 - fi - - - echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 - echo "configure:2067: checking return type of signal handlers" >&5 - if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext < - #include - #ifdef signal - #undef signal - #endif - #ifdef __cplusplus - extern "C" void (*signal (int, void (*)(int)))(int); - #else - void (*signal ()) (); - #endif - - int main() { - int i; - ; return 0; } - EOF - if { (eval echo configure:2089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_type_signal=void - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_type_signal=int - fi - rm -f conftest* - fi - - echo "$ac_t""$ac_cv_type_signal" 1>&6 - cat >> confdefs.h <&6 - echo "configure:2108: checking how to run the C preprocessor" >&5 - # On Suns, sometimes $CPP names a directory. - if test -n "$CPP" && test -d "$CPP"; then - CPP= - fi - if test -z "$CPP"; then - if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - # This must be in double quotes, not single quotes, because CPP may get - # substituted into the Makefile and "${CC-cc}" will confuse make. - CPP="${CC-cc} -E" - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. - cat > conftest.$ac_ext < - Syntax Error - EOF - ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" - { (eval echo configure:2129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } - ac_err=`grep -v '^ *+' conftest.out` - if test -z "$ac_err"; then - : - else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - CPP="${CC-cc} -E -traditional-cpp" - cat > conftest.$ac_ext < - Syntax Error - EOF - ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" - { (eval echo configure:2146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } - ac_err=`grep -v '^ *+' conftest.out` - if test -z "$ac_err"; then - : - else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - CPP=/lib/cpp - fi - rm -f conftest* - fi - rm -f conftest* - ac_cv_prog_CPP="$CPP" - fi - CPP="$ac_cv_prog_CPP" - else - ac_cv_prog_CPP="$CPP" - fi - echo "$ac_t""$CPP" 1>&6 - - echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 - echo "configure:2169: checking for ANSI C header files" >&5 - if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext < - #include - #include - #include - EOF - ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" - { (eval echo configure:2182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } - ac_err=`grep -v '^ *+' conftest.out` - if test -z "$ac_err"; then - rm -rf conftest* - ac_cv_header_stdc=yes - else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_header_stdc=no - fi - rm -f conftest* - - if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. - cat > conftest.$ac_ext < - EOF - if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "memchr" >/dev/null 2>&1; then - : - else - rm -rf conftest* - ac_cv_header_stdc=no - fi - rm -f conftest* - - fi - - if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. - cat > conftest.$ac_ext < - EOF - if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "free" >/dev/null 2>&1; then - : - else - rm -rf conftest* - ac_cv_header_stdc=no - fi - rm -f conftest* - - fi - - if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. - if test "$cross_compiling" = yes; then - : - else - cat > conftest.$ac_ext < - #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') - #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) - #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) - int main () { int i; for (i = 0; i < 256; i++) - if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); - exit (0); } - - EOF - if { (eval echo configure:2249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null - then - : - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_header_stdc=no - fi - rm -fr conftest* - fi - - fi - fi - - echo "$ac_t""$ac_cv_header_stdc" 1>&6 - if test $ac_cv_header_stdc = yes; then - cat >> confdefs.h <<\EOF - #define STDC_HEADERS 1 - EOF - - fi - - echo $ac_n "checking for size_t""... $ac_c" 1>&6 - echo "configure:2273: checking for size_t" >&5 - if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext < - #if STDC_HEADERS - #include - #include - #endif - EOF - if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_size_t=yes - else - rm -rf conftest* - ac_cv_type_size_t=no - fi - rm -f conftest* - - fi - echo "$ac_t""$ac_cv_type_size_t" 1>&6 - if test $ac_cv_type_size_t = no; then - cat >> confdefs.h <<\EOF - #define size_t unsigned - EOF - - fi - - echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 - echo "configure:2306: checking for uid_t in sys/types.h" >&5 - if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext < - EOF - if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "uid_t" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_uid_t=yes - else - rm -rf conftest* - ac_cv_type_uid_t=no - fi - rm -f conftest* - - fi - - echo "$ac_t""$ac_cv_type_uid_t" 1>&6 - if test $ac_cv_type_uid_t = no; then - cat >> confdefs.h <<\EOF - #define uid_t int - EOF - - cat >> confdefs.h <<\EOF - #define gid_t int - EOF - - fi - - echo $ac_n "checking for off_t""... $ac_c" 1>&6 - echo "configure:2340: checking for off_t" >&5 - if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext < - #if STDC_HEADERS - #include - #include - #endif - EOF - if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_off_t=yes - else - rm -rf conftest* - ac_cv_type_off_t=no - fi - rm -f conftest* - - fi - echo "$ac_t""$ac_cv_type_off_t" 1>&6 - if test $ac_cv_type_off_t = no; then - cat >> confdefs.h <<\EOF - #define off_t long - EOF - - fi - - echo $ac_n "checking for mode_t""... $ac_c" 1>&6 - echo "configure:2373: checking for mode_t" >&5 - if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext < - #if STDC_HEADERS - #include - #include - #endif - EOF - if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_mode_t=yes - else - rm -rf conftest* - ac_cv_type_mode_t=no - fi - rm -f conftest* - - fi - echo "$ac_t""$ac_cv_type_mode_t" 1>&6 - if test $ac_cv_type_mode_t = no; then - cat >> confdefs.h <<\EOF - #define mode_t int - EOF - - fi - - echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6 - echo "configure:2406: checking for st_blksize in struct stat" >&5 - if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext < - #include - int main() { - struct stat s; s.st_blksize; - ; return 0; } - EOF - if { (eval echo configure:2419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_struct_st_blksize=yes - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_struct_st_blksize=no - fi - rm -f conftest* - fi - - echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6 - if test $ac_cv_struct_st_blksize = yes; then - cat >> confdefs.h <<\EOF - #define HAVE_ST_BLKSIZE 1 - EOF - - fi - - - echo $ac_n "checking for working const""... $ac_c" 1>&6 - echo "configure:2441: checking for working const" >&5 - if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext <j = 5; - } - { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ - const int foo = 10; - } - - ; return 0; } - EOF - if { (eval echo configure:2495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_c_const=yes - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_c_const=no - fi - rm -f conftest* - fi - - echo "$ac_t""$ac_cv_c_const" 1>&6 - if test $ac_cv_c_const = no; then - cat >> confdefs.h <<\EOF - #define const - EOF - - fi - - echo $ac_n "checking for inline""... $ac_c" 1>&6 - echo "configure:2516: checking for inline" >&5 - if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_cv_c_inline=no - for ac_kw in inline __inline__ __inline; do - cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_c_inline=$ac_kw; break - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - fi - rm -f conftest* - done - - fi - - echo "$ac_t""$ac_cv_c_inline" 1>&6 - case "$ac_cv_c_inline" in - inline | yes) ;; - no) cat >> confdefs.h <<\EOF - #define inline - EOF - ;; - *) cat >> confdefs.h <&6 - echo "configure:2556: checking whether byte ordering is bigendian" >&5 - if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_cv_c_bigendian=unknown - # See if sys/param.h defines the BYTE_ORDER macro. - cat > conftest.$ac_ext < - #include - int main() { - - #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN - bogus endian macros - #endif - ; return 0; } - EOF - if { (eval echo configure:2574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - # It does; now see whether it defined to BIG_ENDIAN or not. - cat > conftest.$ac_ext < - #include - int main() { - - #if BYTE_ORDER != BIG_ENDIAN - not big endian - #endif - ; return 0; } - EOF - if { (eval echo configure:2589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_c_bigendian=yes - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_c_bigendian=no - fi - rm -f conftest* - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - fi - rm -f conftest* - if test $ac_cv_c_bigendian = unknown; then - if test "$cross_compiling" = yes; then - { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } - else - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null - then - ac_cv_c_bigendian=no - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_c_bigendian=yes - fi - rm -fr conftest* - fi - - fi - fi - - echo "$ac_t""$ac_cv_c_bigendian" 1>&6 - if test $ac_cv_c_bigendian = yes; then - cat >> confdefs.h <<\EOF - #define WORDS_BIGENDIAN 1 - EOF - - fi - - echo $ac_n "checking size of long""... $ac_c" 1>&6 - echo "configure:2646: checking size of long" >&5 - if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - if test "$cross_compiling" = yes; then - ac_cv_sizeof_long=4 - else - cat > conftest.$ac_ext < - main() - { - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof(long)); - exit(0); - } - EOF - if { (eval echo configure:2665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null - then - ac_cv_sizeof_long=`cat conftestval` - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_sizeof_long=0 - fi - rm -fr conftest* - fi - - fi - echo "$ac_t""$ac_cv_sizeof_long" 1>&6 - cat >> confdefs.h <&6 - echo "configure:2685: checking size of int" >&5 - if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - if test "$cross_compiling" = yes; then - ac_cv_sizeof_int=4 - else - cat > conftest.$ac_ext < - main() - { - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof(int)); - exit(0); - } - EOF - if { (eval echo configure:2704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null - then - ac_cv_sizeof_int=`cat conftestval` - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_sizeof_int=0 - fi - rm -fr conftest* - fi - - fi - echo "$ac_t""$ac_cv_sizeof_int" 1>&6 - cat >> confdefs.h <&6 - echo "configure:2724: checking size of short" >&5 - if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - if test "$cross_compiling" = yes; then - ac_cv_sizeof_short=2 - else - cat > conftest.$ac_ext < - main() - { - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof(short)); - exit(0); - } - EOF - if { (eval echo configure:2743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null - then - ac_cv_sizeof_short=`cat conftestval` - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_sizeof_short=0 - fi - rm -fr conftest* - fi - - fi - echo "$ac_t""$ac_cv_sizeof_short" 1>&6 - cat >> confdefs.h <&6 - echo "configure:2768: checking for $ac_hdr" >&5 - if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext < - EOF - ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" - { (eval echo configure:2778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } - ac_err=`grep -v '^ *+' conftest.out` - if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" - else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" - fi - rm -f conftest* - fi - if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 - fi - done - - fi - - if test -z "$no_utmpx"; then - for ac_hdr in utmpx.h - do - ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` - echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 - echo "configure:2811: checking for $ac_hdr" >&5 - if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext < - EOF - ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" - { (eval echo configure:2821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } - ac_err=`grep -v '^ *+' conftest.out` - if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" - else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" - fi - rm -f conftest* - fi - if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 - fi - done - - echo $ac_n "checking whether utmpx have ut_syslen field""... $ac_c" 1>&6 - echo "configure:2848: checking whether utmpx have ut_syslen field" >&5 - cat > conftest.$ac_ext < - EOF - if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "ut_syslen" >/dev/null 2>&1; then - rm -rf conftest* - cat >> confdefs.h <<\EOF - #define HAVE_SYSLEN_IN_UTMPX 1 - EOF - - echo "$ac_t""yes" 1>&6 - else - rm -rf conftest* - echo "$ac_t""no" 1>&6 - fi - rm -f conftest* - - fi - - echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 - echo "configure:2871: checking for ANSI C header files" >&5 - if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext < - #include - #include - #include - EOF - ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" - { (eval echo configure:2884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } - ac_err=`grep -v '^ *+' conftest.out` - if test -z "$ac_err"; then - rm -rf conftest* - ac_cv_header_stdc=yes - else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_header_stdc=no - fi - rm -f conftest* - - if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. - cat > conftest.$ac_ext < - EOF - if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "memchr" >/dev/null 2>&1; then - : - else - rm -rf conftest* - ac_cv_header_stdc=no - fi - rm -f conftest* - - fi - - if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. - cat > conftest.$ac_ext < - EOF - if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "free" >/dev/null 2>&1; then - : - else - rm -rf conftest* - ac_cv_header_stdc=no - fi - rm -f conftest* - - fi - - if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. - if test "$cross_compiling" = yes; then - : - else - cat > conftest.$ac_ext < - #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') - #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) - #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) - int main () { int i; for (i = 0; i < 256; i++) - if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); - exit (0); } - - EOF - if { (eval echo configure:2951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null - then - : - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_header_stdc=no - fi - rm -fr conftest* - fi - - fi - fi - - echo "$ac_t""$ac_cv_header_stdc" 1>&6 - if test $ac_cv_header_stdc = yes; then - cat >> confdefs.h <<\EOF - #define STDC_HEADERS 1 - EOF - - fi - - echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 - echo "configure:2975: checking for sys/wait.h that is POSIX.1 compatible" >&5 - if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext < - #include - #ifndef WEXITSTATUS - #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) - #endif - #ifndef WIFEXITED - #define WIFEXITED(stat_val) (((stat_val) & 255) == 0) - #endif - int main() { - int s; - wait (&s); - s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; - ; return 0; } - EOF - if { (eval echo configure:2996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_header_sys_wait_h=yes - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_header_sys_wait_h=no - fi - rm -f conftest* - fi - - echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 - if test $ac_cv_header_sys_wait_h = yes; then - cat >> confdefs.h <<\EOF - #define HAVE_SYS_WAIT_H 1 - EOF - - fi - - for ac_hdr in unistd.h rusage.h sys/time.h lastlog.h utmp.h shadow.h - do - ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` - echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 - echo "configure:3020: checking for $ac_hdr" >&5 - if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext < - EOF - ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" - { (eval echo configure:3030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } - ac_err=`grep -v '^ *+' conftest.out` - if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" - else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" - fi - rm -f conftest* - fi - if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 - fi - done - - for ac_hdr in sgtty.h sys/select.h sys/ioctl.h machine/endian.h - do - ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` - echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 - echo "configure:3060: checking for $ac_hdr" >&5 - if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext < - EOF - ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" - { (eval echo configure:3070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } - ac_err=`grep -v '^ *+' conftest.out` - if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" - else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" - fi - rm -f conftest* - fi - if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 - fi - done - - for ac_hdr in paths.h usersec.h utime.h netinet/in_systm.h - do - ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` - echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 - echo "configure:3100: checking for $ac_hdr" >&5 - if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext < - EOF - ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" - { (eval echo configure:3110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } - ac_err=`grep -v '^ *+' conftest.out` - if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" - else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" - fi - rm -f conftest* - fi - if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 - fi - done - - for ac_hdr in netinet/in_system.h netinet/ip.h netinet/tcp.h ulimit.h - do - ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` - echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 - echo "configure:3140: checking for $ac_hdr" >&5 - if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext < - EOF - ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" - { (eval echo configure:3150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } - ac_err=`grep -v '^ *+' conftest.out` - if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" - else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" - fi - rm -f conftest* - fi - if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 - fi - done - - for ac_hdr in sys/resource.h login_cap.h sys/stream.h sys/conf.h - do - ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` - echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 - echo "configure:3180: checking for $ac_hdr" >&5 - if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext < - EOF - ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" - { (eval echo configure:3190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } - ac_err=`grep -v '^ *+' conftest.out` - if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" - else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" - fi - rm -f conftest* - fi - if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 - fi - done - - echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 - echo "configure:3217: checking whether time.h and sys/time.h may both be included" >&5 - if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext < - #include - #include - int main() { - struct tm *tp; - ; return 0; } - EOF - if { (eval echo configure:3231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_header_time=yes - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_header_time=no - fi - rm -f conftest* - fi - - echo "$ac_t""$ac_cv_header_time" 1>&6 - if test $ac_cv_header_time = yes; then - cat >> confdefs.h <<\EOF - #define TIME_WITH_SYS_TIME 1 - EOF - - fi - - ac_header_dirent=no - for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h - do - ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` - echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 - echo "configure:3256: checking for $ac_hdr that defines DIR" >&5 - if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext < - #include <$ac_hdr> - int main() { - DIR *dirp = 0; - ; return 0; } - EOF - if { (eval echo configure:3269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - eval "ac_cv_header_dirent_$ac_safe=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_dirent_$ac_safe=no" - fi - rm -f conftest* - fi - if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 - fi - done - # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. - if test $ac_header_dirent = dirent.h; then - echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 - echo "configure:3294: checking for opendir in -ldir" >&5 - ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` - if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_save_LIBS="$LIBS" - LIBS="-ldir $LIBS" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" - fi - rm -f conftest* - LIBS="$ac_save_LIBS" - - fi - if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - LIBS="$LIBS -ldir" - else - echo "$ac_t""no" 1>&6 - fi - - else - echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 - echo "configure:3335: checking for opendir in -lx" >&5 - ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` - if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_save_LIBS="$LIBS" - LIBS="-lx $LIBS" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" - fi - rm -f conftest* - LIBS="$ac_save_LIBS" - - fi - if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - LIBS="$LIBS -lx" - else - echo "$ac_t""no" 1>&6 - fi - - fi - - echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6 - echo "configure:3377: checking whether stat file-mode macros are broken" >&5 - if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext < - #include - - #if defined(S_ISBLK) && defined(S_IFDIR) - # if S_ISBLK (S_IFDIR) - You lose. - # endif - #endif - - #if defined(S_ISBLK) && defined(S_IFCHR) - # if S_ISBLK (S_IFCHR) - You lose. - # endif - #endif - - #if defined(S_ISLNK) && defined(S_IFREG) - # if S_ISLNK (S_IFREG) - You lose. - # endif - #endif - - #if defined(S_ISSOCK) && defined(S_IFREG) - # if S_ISSOCK (S_IFREG) - You lose. - # endif - #endif - - EOF - if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "You lose" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_header_stat_broken=yes - else - rm -rf conftest* - ac_cv_header_stat_broken=no - fi - rm -f conftest* - - fi - - echo "$ac_t""$ac_cv_header_stat_broken" 1>&6 - if test $ac_cv_header_stat_broken = yes; then - cat >> confdefs.h <<\EOF - #define STAT_MACROS_BROKEN 1 - EOF - - fi - - echo $ac_n "checking whether sys/types.h defines makedev""... $ac_c" 1>&6 - echo "configure:3433: checking whether sys/types.h defines makedev" >&5 - if eval "test \"`echo '$''{'ac_cv_header_sys_types_h_makedev'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext < - int main() { - return makedev(0, 0); - ; return 0; } - EOF - if { (eval echo configure:3445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - ac_cv_header_sys_types_h_makedev=yes - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_header_sys_types_h_makedev=no - fi - rm -f conftest* - - fi - - echo "$ac_t""$ac_cv_header_sys_types_h_makedev" 1>&6 - - if test $ac_cv_header_sys_types_h_makedev = no; then - ac_safe=`echo "sys/mkdev.h" | sed 'y%./+-%__p_%'` - echo $ac_n "checking for sys/mkdev.h""... $ac_c" 1>&6 - echo "configure:3463: checking for sys/mkdev.h" >&5 - if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext < - EOF - ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" - { (eval echo configure:3473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } - ac_err=`grep -v '^ *+' conftest.out` - if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" - else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" - fi - rm -f conftest* - fi - if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF - #define MAJOR_IN_MKDEV 1 - EOF - - else - echo "$ac_t""no" 1>&6 - fi - - - if test $ac_cv_header_sys_mkdev_h = no; then - ac_safe=`echo "sys/sysmacros.h" | sed 'y%./+-%__p_%'` - echo $ac_n "checking for sys/sysmacros.h""... $ac_c" 1>&6 - echo "configure:3501: checking for sys/sysmacros.h" >&5 - if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext < - EOF - ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" - { (eval echo configure:3511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } - ac_err=`grep -v '^ *+' conftest.out` - if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" - else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" - fi - rm -f conftest* - fi - if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF - #define MAJOR_IN_SYSMACROS 1 - EOF - - else - echo "$ac_t""no" 1>&6 - fi - - fi - fi - - echo $ac_n "checking whether utmp have ut_pid field""... $ac_c" 1>&6 - echo "configure:3539: checking whether utmp have ut_pid field" >&5 - cat > conftest.$ac_ext < - EOF - if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "ut_pid" >/dev/null 2>&1; then - rm -rf conftest* - cat >> confdefs.h <<\EOF - #define HAVE_PID_IN_UTMP 1 - EOF - - echo "$ac_t""yes" 1>&6 - else - rm -rf conftest* - echo "$ac_t""no" 1>&6 - fi - rm -f conftest* - - echo $ac_n "checking whether utmp have ut_name field""... $ac_c" 1>&6 - echo "configure:3560: checking whether utmp have ut_name field" >&5 - cat > conftest.$ac_ext < - EOF - if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "ut_name" >/dev/null 2>&1; then - rm -rf conftest* - cat >> confdefs.h <<\EOF - #define HAVE_NAME_IN_UTMP 1 - EOF - - echo "$ac_t""yes" 1>&6 - else - rm -rf conftest* - echo "$ac_t""no" 1>&6 - fi - rm -f conftest* - - echo $ac_n "checking whether utmp have ut_id field""... $ac_c" 1>&6 - echo "configure:3581: checking whether utmp have ut_id field" >&5 - cat > conftest.$ac_ext < - EOF - if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "ut_id" >/dev/null 2>&1; then - rm -rf conftest* - cat >> confdefs.h <<\EOF - #define HAVE_ID_IN_UTMP 1 - EOF - - echo "$ac_t""yes" 1>&6 - else - rm -rf conftest* - echo "$ac_t""no" 1>&6 - fi - rm -f conftest* - - echo $ac_n "checking whether utmp have ut_host field""... $ac_c" 1>&6 - echo "configure:3602: checking whether utmp have ut_host field" >&5 - cat > conftest.$ac_ext < - EOF - if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "ut_host" >/dev/null 2>&1; then - rm -rf conftest* - cat >> confdefs.h <<\EOF - #define HAVE_HOST_IN_UTMP 1 - EOF - - echo "$ac_t""yes" 1>&6 - else - rm -rf conftest* - echo "$ac_t""no" 1>&6 - fi - rm -f conftest* - - echo $ac_n "checking whether utmp have ut_addr field""... $ac_c" 1>&6 - echo "configure:3623: checking whether utmp have ut_addr field" >&5 - cat > conftest.$ac_ext < - EOF - if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "ut_addr" >/dev/null 2>&1; then - rm -rf conftest* - cat >> confdefs.h <<\EOF - #define HAVE_ADDR_IN_UTMP 1 - EOF - - echo "$ac_t""yes" 1>&6 - else - rm -rf conftest* - echo "$ac_t""no" 1>&6 - fi - rm -f conftest* - - echo $ac_n "checking whether you have incompatible SIGINFO macro""... $ac_c" 1>&6 - echo "configure:3644: checking whether you have incompatible SIGINFO macro" >&5 - cat > conftest.$ac_ext < - SIGINFO(p,1) - EOF - if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "p_siginfo" >/dev/null 2>&1; then - rm -rf conftest* - cat >> confdefs.h <<\EOF - #define HAVE_INCOMPATIBLE_SIGINFO 1 - EOF - - echo "$ac_t""yes" 1>&6 - else - rm -rf conftest* - echo "$ac_t""no" 1>&6 - fi - rm -f conftest* - - - echo $ac_n "checking for crypt in -lc""... $ac_c" 1>&6 - echo "configure:3667: checking for crypt in -lc" >&5 - ac_lib_var=`echo c'_'crypt | sed 'y%./+-%__p_%'` - if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_save_LIBS="$LIBS" - LIBS="-lc $LIBS" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" - fi - rm -f conftest* - LIBS="$ac_save_LIBS" - - fi - if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - true - else - echo "$ac_t""no" 1>&6 - echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 - echo "configure:3705: checking for crypt in -lcrypt" >&5 - ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` - if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_save_LIBS="$LIBS" - LIBS="-lcrypt $LIBS" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" - fi - rm -f conftest* - LIBS="$ac_save_LIBS" - - fi - if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/^a-zA-Z0-9_/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <&6 - fi - - fi - - echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6 - echo "configure:3754: checking for getspnam in -lsec" >&5 - ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'` - if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_save_LIBS="$LIBS" - LIBS="-lsec $LIBS" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" - fi - rm -f conftest* - LIBS="$ac_save_LIBS" - - fi - if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <&6 - fi - - echo $ac_n "checking for get_process_stats in -lseq""... $ac_c" 1>&6 - echo "configure:3801: checking for get_process_stats in -lseq" >&5 - ac_lib_var=`echo seq'_'get_process_stats | sed 'y%./+-%__p_%'` - if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_save_LIBS="$LIBS" - LIBS="-lseq $LIBS" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" - fi - rm -f conftest* - LIBS="$ac_save_LIBS" - - fi - if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo seq | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <&6 - fi - - echo $ac_n "checking for bcopy in -lbsd""... $ac_c" 1>&6 - echo "configure:3848: checking for bcopy in -lbsd" >&5 - ac_lib_var=`echo bsd'_'bcopy | sed 'y%./+-%__p_%'` - if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_save_LIBS="$LIBS" - LIBS="-lbsd $LIBS" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" - fi - rm -f conftest* - LIBS="$ac_save_LIBS" - - fi - if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <&6 - fi - - if test -z "$no_libnsl"; then - echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6 - echo "configure:3896: checking for main in -lnsl" >&5 - ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'` - if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_save_LIBS="$LIBS" - LIBS="-lnsl $LIBS" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" - fi - rm -f conftest* - LIBS="$ac_save_LIBS" - - fi - if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <&6 - fi - - fi - if test -n "$test_libinet"; then - echo $ac_n "checking for inet_network in -linet""... $ac_c" 1>&6 - echo "configure:3941: checking for inet_network in -linet" >&5 - ac_lib_var=`echo inet'_'inet_network | sed 'y%./+-%__p_%'` - if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_save_LIBS="$LIBS" - LIBS="-linet $LIBS" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" - fi - rm -f conftest* - LIBS="$ac_save_LIBS" - - fi - if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <&6 - fi - - fi - if test -z "$no_libsocket"; then - echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 - echo "configure:3990: checking for socket in -lsocket" >&5 - ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` - if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_save_LIBS="$LIBS" - LIBS="-lsocket $LIBS" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" - fi - rm -f conftest* - LIBS="$ac_save_LIBS" - - fi - if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <&6 - fi - - fi - if test -z "$no_libsun"; then - echo $ac_n "checking for getpwnam in -lsun""... $ac_c" 1>&6 - echo "configure:4039: checking for getpwnam in -lsun" >&5 - ac_lib_var=`echo sun'_'getpwnam | sed 'y%./+-%__p_%'` - if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_save_LIBS="$LIBS" - LIBS="-lsun $LIBS" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" - fi - rm -f conftest* - LIBS="$ac_save_LIBS" - - fi - if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo sun | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <&6 - fi - - fi - if test -z "$no_libbsd"; then - echo $ac_n "checking for openpty in -lbsd""... $ac_c" 1>&6 - echo "configure:4088: checking for openpty in -lbsd" >&5 - ac_lib_var=`echo bsd'_'openpty | sed 'y%./+-%__p_%'` - if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_save_LIBS="$LIBS" - LIBS="-lbsd $LIBS" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" - fi - rm -f conftest* - LIBS="$ac_save_LIBS" - - fi - if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <&6 - fi - - fi - echo $ac_n "checking for login in -lutil""... $ac_c" 1>&6 - echo "configure:4136: checking for login in -lutil" >&5 - ac_lib_var=`echo util'_'login | sed 'y%./+-%__p_%'` - if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_save_LIBS="$LIBS" - LIBS="-lutil $LIBS" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" - fi - rm -f conftest* - LIBS="$ac_save_LIBS" - - fi - if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF - #define HAVE_LIBUTIL_LOGIN 1 - EOF - - LIBS="$LIBS -lutil" - else - echo "$ac_t""no" 1>&6 - fi - - - if test -z "$no_vhangup"; then - for ac_func in vhangup - do - echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 - echo "configure:4184: checking for $ac_func" >&5 - if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext < - /* Override any gcc2 internal prototype to avoid an error. */ - /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ - char $ac_func(); - - int main() { - - /* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ - #if defined (__stub_$ac_func) || defined (__stub___$ac_func) - choke me - #else - $ac_func(); - #endif - - ; return 0; } - EOF - if { (eval echo configure:4212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" - fi - rm -f conftest* - fi - - if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 - fi - done - - fi - - if test -z "$no_setsid"; then - for ac_func in setsid - do - echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 - echo "configure:4242: checking for $ac_func" >&5 - if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext < - /* Override any gcc2 internal prototype to avoid an error. */ - /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ - char $ac_func(); - - int main() { - - /* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ - #if defined (__stub_$ac_func) || defined (__stub___$ac_func) - choke me - #else - $ac_func(); - #endif - - ; return 0; } - EOF - if { (eval echo configure:4270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" - fi - rm -f conftest* - fi - - if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 - fi - done - - fi - - for ac_func in gettimeofday times getrusage ftruncate revoke makeutx - do - echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 - echo "configure:4299: checking for $ac_func" >&5 - if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext < - /* Override any gcc2 internal prototype to avoid an error. */ - /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ - char $ac_func(); - - int main() { - - /* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ - #if defined (__stub_$ac_func) || defined (__stub___$ac_func) - choke me - #else - $ac_func(); - #endif - - ; return 0; } - EOF - if { (eval echo configure:4327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" - fi - rm -f conftest* - fi - - if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 - fi - done - - for ac_func in strchr memcpy setlogin openpty _getpty clock fchmod ulimit - do - echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 - echo "configure:4354: checking for $ac_func" >&5 - if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext < - /* Override any gcc2 internal prototype to avoid an error. */ - /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ - char $ac_func(); - - int main() { - - /* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ - #if defined (__stub_$ac_func) || defined (__stub___$ac_func) - choke me - #else - $ac_func(); - #endif - - ; return 0; } - EOF - if { (eval echo configure:4382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" - fi - rm -f conftest* - fi - - if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 - fi - done - - for ac_func in gethostname getdtablesize umask innetgr initgroups setpgrp - do - echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 - echo "configure:4409: checking for $ac_func" >&5 - if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext < - /* Override any gcc2 internal prototype to avoid an error. */ - /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ - char $ac_func(); - - int main() { - - /* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ - #if defined (__stub_$ac_func) || defined (__stub___$ac_func) - choke me - #else - $ac_func(); - #endif - - ; return 0; } - EOF - if { (eval echo configure:4437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" - fi - rm -f conftest* - fi - - if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 - fi - done - - for ac_func in setpgid daemon waitpid ttyslot authenticate getpt isastream - do - echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 - echo "configure:4464: checking for $ac_func" >&5 - if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext < - /* Override any gcc2 internal prototype to avoid an error. */ - /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ - char $ac_func(); - - int main() { - - /* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ - #if defined (__stub_$ac_func) || defined (__stub___$ac_func) - choke me - #else - $ac_func(); - #endif - - ; return 0; } - EOF - if { (eval echo configure:4492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" - fi - rm -f conftest* - fi - - if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 - fi - done - - - for ac_func in strerror memmove remove random putenv crypt socketpair snprintf - do - echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 - echo "configure:4520: checking for $ac_func" >&5 - if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext < - /* Override any gcc2 internal prototype to avoid an error. */ - /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ - char $ac_func(); - - int main() { - - /* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ - #if defined (__stub_$ac_func) || defined (__stub___$ac_func) - choke me - #else - $ac_func(); - #endif - - ; return 0; } - EOF - if { (eval echo configure:4548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" - fi - rm -f conftest* - fi - - if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 - LIBOBJS="$LIBOBJS ${ac_func}.o" - fi - done - - - - echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 - echo "configure:4576: checking whether ln -s works" >&5 - if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - rm -f conftestdata - if ln -s X conftestdata 2>/dev/null - then - rm -f conftestdata - ac_cv_prog_LN_S="ln -s" - else - ac_cv_prog_LN_S=ln - fi - fi - LN_S="$ac_cv_prog_LN_S" - if test "$ac_cv_prog_LN_S" = "ln -s"; then - echo "$ac_t""yes" 1>&6 - else - echo "$ac_t""no" 1>&6 - fi - - # Find a good install program. We prefer a C program (faster), - # so one script is as good as another. But avoid the broken or - # incompatible versions: - # SysV /etc/install, /usr/sbin/install - # SunOS /usr/etc/install - # IRIX /sbin/install - # AIX /bin/install - # AFS /usr/afsws/bin/install, which mishandles nonexistent args - # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" - # ./install, which can be erroneously created by make from ./install.sh. - echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 - echo "configure:4607: checking for a BSD compatible install" >&5 - if test -z "$INSTALL"; then - if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" - for ac_dir in $PATH; do - # Account for people who put trailing slashes in PATH elements. - case "$ac_dir/" in - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - for ac_prog in ginstall installbsd scoinst install; do - if test -f $ac_dir/$ac_prog; then - if test $ac_prog = install && - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - # OSF/1 installbsd also uses dspmsg, but is usable. - : - else - ac_cv_path_install="$ac_dir/$ac_prog -c" - break 2 - fi - fi - done - ;; - esac - done - IFS="$ac_save_IFS" - - fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL="$ac_cv_path_install" - else - # As a last resort, use the slow shell script. We don't cache a - # path for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the path is relative. - INSTALL="$ac_install_sh" - fi - fi - echo "$ac_t""$INSTALL" 1>&6 - - # Use test -z because SunOS4 sh mishandles braces in ${var-val}. - # It thinks the first close brace ends the variable substitution. - test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - - test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - - # Extract the first word of "ar", so it can be a program name with args. - set dummy ar; ac_word=$2 - echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 - echo "configure:4659: checking for $ac_word" >&5 - if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - if test -n "$AR"; then - ac_cv_prog_AR="$AR" # Let the user override the test. - else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_AR="ar" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="echo" - fi - fi - AR="$ac_cv_prog_AR" - if test -n "$AR"; then - echo "$ac_t""$AR" 1>&6 - else - echo "$ac_t""no" 1>&6 - fi - - if test -z "$no_ranlib"; then - # Extract the first word of "ranlib", so it can be a program name with args. - set dummy ranlib; ac_word=$2 - echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 - echo "configure:4689: checking for $ac_word" >&5 - if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. - else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_RANLIB="ranlib" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" - fi - fi - RANLIB="$ac_cv_prog_RANLIB" - if test -n "$RANLIB"; then - echo "$ac_t""$RANLIB" 1>&6 - else - echo "$ac_t""no" 1>&6 - fi - - else - RANLIB=":" - fi - for ac_prog in makedepend makedep - do - # Extract the first word of "$ac_prog", so it can be a program name with args. - set dummy $ac_prog; ac_word=$2 - echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 - echo "configure:4723: checking for $ac_word" >&5 - if eval "test \"`echo '$''{'ac_cv_prog_MAKEDEP'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - if test -n "$MAKEDEP"; then - ac_cv_prog_MAKEDEP="$MAKEDEP" # Let the user override the test. - else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_MAKEDEP="$ac_prog" - break - fi - done - IFS="$ac_save_ifs" - fi - fi - MAKEDEP="$ac_cv_prog_MAKEDEP" - if test -n "$MAKEDEP"; then - echo "$ac_t""$MAKEDEP" 1>&6 - else - echo "$ac_t""no" 1>&6 - fi - - test -n "$MAKEDEP" && break - done - test -n "$MAKEDEP" || MAKEDEP="makedepend" - - - # If we find X, set shell vars x_includes and x_libraries to the - # paths, otherwise set no_x=yes. - # Uses ac_ vars as temps to allow command line to override cache and checks. - # --without-x overrides everything else, but does not touch the cache. - echo $ac_n "checking for X""... $ac_c" 1>&6 - echo "configure:4758: checking for X" >&5 - - # Check whether --with-x or --without-x was given. - if test "${with_x+set}" = set; then - withval="$with_x" - : - fi - - # $have_x is `yes', `no', `disabled', or empty when we do not yet know. - if test "x$with_x" = xno; then - # The user explicitly disabled X. - have_x=disabled - else - if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then - # Both variables are already set. - have_x=yes - else - if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - # One or both of the vars are not set, and there is no cached value. - ac_x_includes=NO ac_x_libraries=NO - rm -fr conftestdir - if mkdir conftestdir; then - cd conftestdir - # Make sure to not put "make" in the Imakefile rules, since we grep it out. - cat > Imakefile <<'EOF' - acfindx: - @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' - EOF - if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then - # GNU make sometimes prints "make[1]: Entering...", which would confuse us. - eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` - # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. - for ac_extension in a so sl; do - if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && - test -f $ac_im_libdir/libX11.$ac_extension; then - ac_im_usrlibdir=$ac_im_libdir; break - fi - done - # Screen out bogus values from the imake configuration. They are - # bogus both because they are the default anyway, and because - # using them would break gcc on systems where it needs fixed includes. - case "$ac_im_incroot" in - /usr/include) ;; - *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; - esac - case "$ac_im_usrlibdir" in - /usr/lib | /lib) ;; - *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; - esac - fi - cd .. - rm -fr conftestdir - fi - - if test "$ac_x_includes" = NO; then - # Guess where to find include files, by looking for this one X11 .h file. - test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h - - # First, try using that file with no special directory specified. - cat > conftest.$ac_ext < - EOF - ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" - { (eval echo configure:4825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } - ac_err=`grep -v '^ *+' conftest.out` - if test -z "$ac_err"; then - rm -rf conftest* - # We can compile using X headers with no special include directory. - ac_x_includes= - else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - # Look for the header file in a standard set of common directories. - # Check X11 before X11Rn because it is often a symlink to the current release. - for ac_dir in \ - /usr/X11/include \ - /usr/X11R6/include \ - /usr/X11R5/include \ - /usr/X11R4/include \ - \ - /usr/include/X11 \ - /usr/include/X11R6 \ - /usr/include/X11R5 \ - /usr/include/X11R4 \ - \ - /usr/local/X11/include \ - /usr/local/X11R6/include \ - /usr/local/X11R5/include \ - /usr/local/X11R4/include \ - \ - /usr/local/include/X11 \ - /usr/local/include/X11R6 \ - /usr/local/include/X11R5 \ - /usr/local/include/X11R4 \ - \ - /usr/X386/include \ - /usr/x386/include \ - /usr/XFree86/include/X11 \ - \ - /usr/include \ - /usr/local/include \ - /usr/unsupported/include \ - /usr/athena/include \ - /usr/local/x11r5/include \ - /usr/lpp/Xamples/include \ - \ - /usr/openwin/include \ - /usr/openwin/share/include \ - ; \ - do - if test -r "$ac_dir/$x_direct_test_include"; then - ac_x_includes=$ac_dir - break - fi - done - fi - rm -f conftest* - fi # $ac_x_includes = NO - - if test "$ac_x_libraries" = NO; then - # Check for the libraries. - - test -z "$x_direct_test_library" && x_direct_test_library=Xt - test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc - - # See if we find them without any special options. - # Don't add to $LIBS permanently. - ac_save_LIBS="$LIBS" - LIBS="-l$x_direct_test_library $LIBS" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - LIBS="$ac_save_LIBS" - # We can link X programs with no special library path. - ac_x_libraries= - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - LIBS="$ac_save_LIBS" - # First see if replacing the include by lib works. - # Check X11 before X11Rn because it is often a symlink to the current release. - for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ - /usr/X11/lib \ - /usr/X11R6/lib \ - /usr/X11R5/lib \ - /usr/X11R4/lib \ - \ - /usr/lib/X11 \ - /usr/lib/X11R6 \ - /usr/lib/X11R5 \ - /usr/lib/X11R4 \ - \ - /usr/local/X11/lib \ - /usr/local/X11R6/lib \ - /usr/local/X11R5/lib \ - /usr/local/X11R4/lib \ - \ - /usr/local/lib/X11 \ - /usr/local/lib/X11R6 \ - /usr/local/lib/X11R5 \ - /usr/local/lib/X11R4 \ - \ - /usr/X386/lib \ - /usr/x386/lib \ - /usr/XFree86/lib/X11 \ - \ - /usr/lib \ - /usr/local/lib \ - /usr/unsupported/lib \ - /usr/athena/lib \ - /usr/local/x11r5/lib \ - /usr/lpp/Xamples/lib \ - /lib/usr/lib/X11 \ - \ - /usr/openwin/lib \ - /usr/openwin/share/lib \ - ; \ - do - for ac_extension in a so sl; do - if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then - ac_x_libraries=$ac_dir - break 2 - fi - done - done - fi - rm -f conftest* - fi # $ac_x_libraries = NO - - if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then - # Didn't find X anywhere. Cache the known absence of X. - ac_cv_have_x="have_x=no" - else - # Record where we found X for the cache. - ac_cv_have_x="have_x=yes \ - ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" - fi - fi - fi - eval "$ac_cv_have_x" - fi # $with_x != no - - if test "$have_x" != yes; then - echo "$ac_t""$have_x" 1>&6 - no_x=yes - else - # If each of the values was on the command line, it overrides each guess. - test "x$x_includes" = xNONE && x_includes=$ac_x_includes - test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries - # Update the cache value to reflect the command line values. - ac_cv_have_x="have_x=yes \ - ac_x_includes=$x_includes ac_x_libraries=$x_libraries" - echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 - fi - - if test "$no_x" = yes; then - # Not all programs may use this symbol, but it does not hurt to define it. - cat >> confdefs.h <<\EOF - #define X_DISPLAY_MISSING 1 - EOF - - X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= - else - if test -n "$x_includes"; then - X_CFLAGS="$X_CFLAGS -I$x_includes" - fi - - # It would also be nice to do this for all -L options, not just this one. - if test -n "$x_libraries"; then - X_LIBS="$X_LIBS -L$x_libraries" - # For Solaris; some versions of Sun CC require a space after -R and - # others require no space. Words are not sufficient . . . . - case "`(uname -sr) 2>/dev/null`" in - "SunOS 5"*) - echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 - echo "configure:5007: checking whether -R must be followed by a space" >&5 - ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - ac_R_nospace=yes - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_R_nospace=no - fi - rm -f conftest* - if test $ac_R_nospace = yes; then - echo "$ac_t""no" 1>&6 - X_LIBS="$X_LIBS -R$x_libraries" - else - LIBS="$ac_xsave_LIBS -R $x_libraries" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - ac_R_space=yes - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_R_space=no - fi - rm -f conftest* - if test $ac_R_space = yes; then - echo "$ac_t""yes" 1>&6 - X_LIBS="$X_LIBS -R $x_libraries" - else - echo "$ac_t""neither works" 1>&6 - fi - fi - LIBS="$ac_xsave_LIBS" - esac - fi - - # Check for system-dependent libraries X programs must link with. - # Do this before checking for the system-independent R6 libraries - # (-lICE), since we may need -lsocket or whatever for X linking. - - if test "$ISC" = yes; then - X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" - else - # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X - # libraries were built with DECnet support. And karl@cs.umb.edu says - # the Alpha needs dnet_stub (dnet does not exist). - echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 - echo "configure:5072: checking for dnet_ntoa in -ldnet" >&5 - ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` - if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_save_LIBS="$LIBS" - LIBS="-ldnet $LIBS" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" - fi - rm -f conftest* - LIBS="$ac_save_LIBS" - - fi - if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" - else - echo "$ac_t""no" 1>&6 - fi - - if test $ac_cv_lib_dnet_dnet_ntoa = no; then - echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 - echo "configure:5113: checking for dnet_ntoa in -ldnet_stub" >&5 - ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` - if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_save_LIBS="$LIBS" - LIBS="-ldnet_stub $LIBS" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" - fi - rm -f conftest* - LIBS="$ac_save_LIBS" - - fi - if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" - else - echo "$ac_t""no" 1>&6 - fi - - fi - - # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, - # to get the SysV transport functions. - # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) - # needs -lnsl. - # The nsl library prevents programs from opening the X display - # on Irix 5.2, according to dickey@clark.net. - echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 - echo "configure:5161: checking for gethostbyname" >&5 - if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext < - /* Override any gcc2 internal prototype to avoid an error. */ - /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ - char gethostbyname(); - - int main() { - - /* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ - #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) - choke me - #else - gethostbyname(); - #endif - - ; return 0; } - EOF - if { (eval echo configure:5189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_func_gethostbyname=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_gethostbyname=no" - fi - rm -f conftest* - fi - - if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then - echo "$ac_t""yes" 1>&6 - : - else - echo "$ac_t""no" 1>&6 - fi - - if test $ac_cv_func_gethostbyname = no; then - echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 - echo "configure:5210: checking for gethostbyname in -lnsl" >&5 - ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` - if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_save_LIBS="$LIBS" - LIBS="-lnsl $LIBS" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" - fi - rm -f conftest* - LIBS="$ac_save_LIBS" - - fi - if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" - else - echo "$ac_t""no" 1>&6 - fi - - fi - - # lieder@skyler.mavd.honeywell.com says without -lsocket, - # socket/setsockopt and other routines are undefined under SCO ODT - # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary - # on later versions), says simon@lia.di.epfl.ch: it contains - # gethostby* variants that don't use the nameserver (or something). - # -lsocket must be given before -lnsl if both are needed. - # We assume that if connect needs -lnsl, so does gethostbyname. - echo $ac_n "checking for connect""... $ac_c" 1>&6 - echo "configure:5259: checking for connect" >&5 - if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext < - /* Override any gcc2 internal prototype to avoid an error. */ - /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ - char connect(); - - int main() { - - /* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ - #if defined (__stub_connect) || defined (__stub___connect) - choke me - #else - connect(); - #endif - - ; return 0; } - EOF - if { (eval echo configure:5287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_func_connect=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_connect=no" - fi - rm -f conftest* - fi - - if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then - echo "$ac_t""yes" 1>&6 - : - else - echo "$ac_t""no" 1>&6 - fi - - if test $ac_cv_func_connect = no; then - echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 - echo "configure:5308: checking for connect in -lsocket" >&5 - ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` - if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_save_LIBS="$LIBS" - LIBS="-lsocket $X_EXTRA_LIBS $LIBS" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" - fi - rm -f conftest* - LIBS="$ac_save_LIBS" - - fi - if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" - else - echo "$ac_t""no" 1>&6 - fi - - fi - - # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. - echo $ac_n "checking for remove""... $ac_c" 1>&6 - echo "configure:5351: checking for remove" >&5 - if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext < - /* Override any gcc2 internal prototype to avoid an error. */ - /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ - char remove(); - - int main() { - - /* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ - #if defined (__stub_remove) || defined (__stub___remove) - choke me - #else - remove(); - #endif - - ; return 0; } - EOF - if { (eval echo configure:5379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_func_remove=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_remove=no" - fi - rm -f conftest* - fi - - if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then - echo "$ac_t""yes" 1>&6 - : - else - echo "$ac_t""no" 1>&6 - fi - - if test $ac_cv_func_remove = no; then - echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 - echo "configure:5400: checking for remove in -lposix" >&5 - ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` - if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_save_LIBS="$LIBS" - LIBS="-lposix $LIBS" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" - fi - rm -f conftest* - LIBS="$ac_save_LIBS" - - fi - if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" - else - echo "$ac_t""no" 1>&6 - fi - - fi - - # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. - echo $ac_n "checking for shmat""... $ac_c" 1>&6 - echo "configure:5443: checking for shmat" >&5 - if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext < - /* Override any gcc2 internal prototype to avoid an error. */ - /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ - char shmat(); - - int main() { - - /* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ - #if defined (__stub_shmat) || defined (__stub___shmat) - choke me - #else - shmat(); - #endif - - ; return 0; } - EOF - if { (eval echo configure:5471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_func_shmat=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_shmat=no" - fi - rm -f conftest* - fi - - if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then - echo "$ac_t""yes" 1>&6 - : - else - echo "$ac_t""no" 1>&6 - fi - - if test $ac_cv_func_shmat = no; then - echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 - echo "configure:5492: checking for shmat in -lipc" >&5 - ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` - if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_save_LIBS="$LIBS" - LIBS="-lipc $LIBS" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" - fi - rm -f conftest* - LIBS="$ac_save_LIBS" - - fi - if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" - else - echo "$ac_t""no" 1>&6 - fi - - fi - fi - - # Check for libraries that X11R6 Xt/Xaw programs need. - ac_save_LDFLAGS="$LDFLAGS" - test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" - # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to - # check for ICE first), but we must link in the order -lSM -lICE or - # we get undefined symbols. So assume we have SM if we have ICE. - # These have to be linked with before -lX11, unlike the other - # libraries we check for below, so use a different variable. - # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. - echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 - echo "configure:5544: checking for IceConnectionNumber in -lICE" >&5 - ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` - if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_save_LIBS="$LIBS" - LIBS="-lICE $LIBS" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" - fi - rm -f conftest* - LIBS="$ac_save_LIBS" - - fi - if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" - else - echo "$ac_t""no" 1>&6 - fi - - LDFLAGS="$ac_save_LDFLAGS" - - fi - - - # Extract the first word of "passwd", so it can be a program name with args. - set dummy passwd; ac_word=$2 - echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 - echo "configure:5591: checking for $ac_word" >&5 - if eval "test \"`echo '$''{'ac_cv_path_PASSWD_PATH'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - case "$PASSWD_PATH" in - /*) - ac_cv_path_PASSWD_PATH="$PASSWD_PATH" # Let the user override the test with a path. - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_PASSWD_PATH="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" - ;; - esac - fi - PASSWD_PATH="$ac_cv_path_PASSWD_PATH" - if test -n "$PASSWD_PATH"; then - echo "$ac_t""$PASSWD_PATH" 1>&6 - else - echo "$ac_t""no" 1>&6 - fi - - if test -n "$PASSWD_PATH"; then - cat >> confdefs.h <&6 - echo "configure:5629: checking for $ac_word" >&5 - if eval "test \"`echo '$''{'ac_cv_path_XAUTH_PATH'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - case "$XAUTH_PATH" in - /*) - ac_cv_path_XAUTH_PATH="$XAUTH_PATH" # Let the user override the test with a path. - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_XAUTH_PATH="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" - ;; - esac - fi - XAUTH_PATH="$ac_cv_path_XAUTH_PATH" - if test -n "$XAUTH_PATH"; then - echo "$ac_t""$XAUTH_PATH" 1>&6 - else - echo "$ac_t""no" 1>&6 - fi - - if test -n "$XAUTH_PATH"; then - cat >> confdefs.h <&2; exit 1; } - fi - X_PROGRAMS="ssh-askpass" - fi - echo $ac_n "checking for X11 unix domain socket directory""... $ac_c" 1>&6 - echo "configure:5673: checking for X11 unix domain socket directory" >&5 - - if test '!' -d /tmp/.X11-unix; then - if test -d /var/X/.X11-unix; then - cat >> confdefs.h <<\EOF - #define X11_DIR "/var/X/.X11-unix" - EOF - - echo "$ac_t""/var/X/.X11-unix" 1>&6 - else - if test -d /tmp/.X11-pipe; then - cat >> confdefs.h <<\EOF - #define X11_DIR "/tmp/.X11-pipe" - EOF - - echo "$ac_t""/tmp/.X11-pipe" 1>&6 - else - echo "$ac_t""/tmp/.X11-unix" 1>&6 - fi - fi - else - echo "$ac_t""/tmp/.X11-unix" 1>&6 - fi - - for ac_prog in perl5 perl - do - # Extract the first word of "$ac_prog", so it can be a program name with args. - set dummy $ac_prog; ac_word=$2 - echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 - echo "configure:5702: checking for $ac_word" >&5 - if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - case "$PERL" in - /*) - ac_cv_path_PERL="$PERL" # Let the user override the test with a path. - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_PERL="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" - ;; - esac - fi - PERL="$ac_cv_path_PERL" - if test -n "$PERL"; then - echo "$ac_t""$PERL" 1>&6 - else - echo "$ac_t""no" 1>&6 - fi - - test -n "$PERL" && break - done - test -n "$PERL" || PERL="not found" - - if test "x$PERL" = "xnot found" || $PERL -e 'exit ($] >= 5)'; then - unset ac_cv_path_PERL - PERL="/usr/local/bin/perl" - echo "configure: warning: perl version 5 not found - make-ssh-known-hosts will not work" 1>&2 - fi - - for ac_func in getpseudotty - do - echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 - echo "configure:5743: checking for $ac_func" >&5 - if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext < - /* Override any gcc2 internal prototype to avoid an error. */ - /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ - char $ac_func(); - - int main() { - - /* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ - #if defined (__stub_$ac_func) || defined (__stub___$ac_func) - choke me - #else - $ac_func(); - #endif - - ; return 0; } - EOF - if { (eval echo configure:5771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" - fi - rm -f conftest* - fi - - if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 - fi - done - - echo $ac_n "checking for pseudo ttys""... $ac_c" 1>&6 - echo "configure:5796: checking for pseudo ttys" >&5 - if test -c /dev/getpty && test $ac_cv_func_getpseudotty = yes - then - cat >> confdefs.h <<\EOF - #define HAVE_GETPSEUDOTTY 1 - EOF - - echo "$ac_t""getpseudotty" 1>&6 - else - if test -c /dev/ptmx && test -c /dev/pts/0 - then - cat >> confdefs.h <<\EOF - #define HAVE_DEV_PTMX 1 - EOF - - echo "$ac_t""streams ptys" 1>&6 - else - if test -c /dev/ptc && test -c /dev/pts || test -d /dev/pts - then - cat >> confdefs.h <<\EOF - #define HAVE_DEV_PTS_AND_PTC 1 - EOF - - echo "$ac_t""/dev/pts and /dev/ptc" 1>&6 - else - if test -c /dev/ptyp10 - then - cat >> confdefs.h <<\EOF - #define HAVE_DEV_PTYP10 1 - EOF - - echo "$ac_t""sco-style ptys" 1>&6 - else - echo "$ac_t""bsd-style ptys" 1>&6 - fi - fi - fi - fi - - echo $ac_n "checking for /etc/default/login""... $ac_c" 1>&6 - echo "configure:5836: checking for /etc/default/login" >&5 - if test -f /etc/default/login; then - cat >> confdefs.h <<\EOF - #define HAVE_ETC_DEFAULT_LOGIN 1 - EOF - - echo "$ac_t""yes" 1>&6 - else - echo "$ac_t""no" 1>&6 - fi - - if test -z "$no_shadows_password_checking"; then - echo $ac_n "checking for shadow passwords""... $ac_c" 1>&6 - echo "configure:5849: checking for shadow passwords" >&5 - if test -f /etc/shadow; then - # If we don't have shadow.h, this might be some nonstandard - # kludging... So better check it out. - if test "x$ac_cv_header_shadow_h" = "xyes"; then - cat >> confdefs.h <<\EOF - #define HAVE_ETC_SHADOW 1 - EOF - - echo "$ac_t""/etc/shadow" 1>&6 - # SunOS C2 security uses this style of shadow passwords, but does not - # have getspent in a system library. However, a libshadow.a library - # contaning these is publicly available. - echo $ac_n "checking for getspent in -lshadow""... $ac_c" 1>&6 - echo "configure:5863: checking for getspent in -lshadow" >&5 - ac_lib_var=`echo shadow'_'getspent | sed 'y%./+-%__p_%'` - if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_save_LIBS="$LIBS" - LIBS="-lshadow $LIBS" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" - fi - rm -f conftest* - LIBS="$ac_save_LIBS" - - fi - if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo shadow | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <&6 - fi - - echo $ac_n "checking whether spwd have sp_expire field""... $ac_c" 1>&6 - echo "configure:5910: checking whether spwd have sp_expire field" >&5 - cat > conftest.$ac_ext < - EOF - if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "sp_expire" >/dev/null 2>&1; then - rm -rf conftest* - cat >> confdefs.h <<\EOF - #define HAVE_STRUCT_SPWD_EXPIRE 1 - EOF - - echo "$ac_t""yes" 1>&6 - else - rm -rf conftest* - echo "$ac_t""no" 1>&6 - fi - rm -f conftest* - - echo $ac_n "checking whether spwd have sp_inact field""... $ac_c" 1>&6 - echo "configure:5931: checking whether spwd have sp_inact field" >&5 - cat > conftest.$ac_ext < - EOF - if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "sp_inact" >/dev/null 2>&1; then - rm -rf conftest* - cat >> confdefs.h <<\EOF - #define HAVE_STRUCT_SPWD_INACT 1 - EOF - - echo "$ac_t""yes" 1>&6 - else - rm -rf conftest* - echo "$ac_t""no" 1>&6 - fi - rm -f conftest* - - else - echo "$ac_t""no" 1>&6 - fi - elif test -n "$os_aix"; then - cat >> confdefs.h <<\EOF - #define HAVE_ETC_SECURITY_PASSWD 1 - EOF - - echo "$ac_t""/etc/security/passwd" 1>&6 - elif test -n "$os_sunos"; then - cat >> confdefs.h <<\EOF - #define HAVE_ETC_SECURITY_PASSWD_ADJUNCT 1 - EOF - - echo "$ac_t""/etc/security/passwd.adjunct" 1>&6 - else - echo "$ac_t""no" 1>&6 - fi - fi - - echo $ac_n "checking location of mail spool files""... $ac_c" 1>&6 - echo "configure:5972: checking location of mail spool files" >&5 - for dir in /var/spool/mail /var/mail /usr/spool/mail /usr/mail FILE - do - if test "$dir" = "FILE"; then - if test -f $HOME/.MailBox; then - echo "configure: warning: mail spool directory was not found: assuming you use \$HOME/.MailBox" 1>&2 - cat >> confdefs.h <&6 - else - if test -f $HOME/Mailbox; then - echo "configure: warning: mail spool directory was not found: assuming you use \$HOME/Mailbox" 1>&2 - cat >> confdefs.h <&6 - else - echo "configure: warning: mail spool directory was not found: assuming you use \$HOME/newmail" 1>&2 - cat >> confdefs.h <&6 - fi - fi - elif test -d $dir; then - cat >> confdefs.h <&6 - break - fi - done - - echo $ac_n "checking location of utmp""... $ac_c" 1>&6 - echo "configure:6011: checking location of utmp" >&5 - if test -f /var/run/utmp; then - cat >> confdefs.h <<\EOF - #define SSH_UTMP "/var/run/utmp" - EOF - - echo "$ac_t""/var/run/utmp" 1>&6 - elif test -f /var/log/utmp; then - cat >> confdefs.h <<\EOF - #define SSH_UTMP "/var/log/utmp" - EOF - - echo "$ac_t""/var/log/utmp" 1>&6 - elif test -f /var/adm/utmp; then - cat >> confdefs.h <<\EOF - #define SSH_UTMP "/var/adm/utmp" - EOF - - echo "$ac_t""/var/adm/utmp" 1>&6 - elif test -f /usr/adm/utmp; then - cat >> confdefs.h <<\EOF - #define SSH_UTMP "/usr/adm/utmp" - EOF - - echo "$ac_t""/usr/adm/utmp" 1>&6 - elif test -f /etc/utmp; then - cat >> confdefs.h <<\EOF - #define SSH_UTMP "/etc/utmp" - EOF - - echo "$ac_t""/etc/utmp" 1>&6 - else - echo "$ac_t""not found" 1>&6 - fi - - echo $ac_n "checking location of wtmp""... $ac_c" 1>&6 - echo "configure:6047: checking location of wtmp" >&5 - if test -f /var/log/wtmp; then - cat >> confdefs.h <<\EOF - #define SSH_WTMP "/var/log/wtmp" - EOF - - echo "$ac_t""/var/log/wtmp" 1>&6 - elif test -f /var/adm/wtmp; then - cat >> confdefs.h <<\EOF - #define SSH_WTMP "/var/adm/wtmp" - EOF - - echo "$ac_t""/var/adm/wtmp" 1>&6 - elif test -f /usr/adm/wtmp; then - cat >> confdefs.h <<\EOF - #define SSH_WTMP "/usr/adm/wtmp" - EOF - - echo "$ac_t""/usr/adm/wtmp" 1>&6 - elif test -f /etc/wtmp; then - cat >> confdefs.h <<\EOF - #define SSH_WTMP "/etc/wtmp" - EOF - - echo "$ac_t""/etc/wtmp" 1>&6 - else - cat >> confdefs.h <<\EOF - #define SSH_WTMP "/var/adm/wtmp" - EOF - - echo "$ac_t""not found" 1>&6 - fi - - echo $ac_n "checking location of lastlog""... $ac_c" 1>&6 - echo "configure:6081: checking location of lastlog" >&5 - if test -f /var/log/lastlog || test -d /var/log/lastlog; then - cat >> confdefs.h <<\EOF - #define SSH_LASTLOG "/var/log/lastlog" - EOF - - cat >> confdefs.h <<\EOF - #define HAVE_LASTLOG 1 - EOF - - LASTLOG=/var/log/lastlog - echo "$ac_t""/var/log/lastlog" 1>&6 - elif test -f /var/adm/lastlog || test -d /var/adm/lastlog; then - cat >> confdefs.h <<\EOF - #define SSH_LASTLOG "/var/adm/lastlog" - EOF - - cat >> confdefs.h <<\EOF - #define HAVE_LASTLOG 1 - EOF - - LASTLOG=/var/adm/lastlog - echo "$ac_t""/var/adm/lastlog" 1>&6 - elif test -f /usr/adm/lastlog || test -d /usr/adm/lastlog; then - cat >> confdefs.h <<\EOF - #define SSH_LASTLOG "/usr/adm/lastlog" - EOF - - cat >> confdefs.h <<\EOF - #define HAVE_LASTLOG 1 - EOF - - LASTLOG=/usr/adm/lastlog - echo "$ac_t""/usr/adm/lastlog" 1>&6 - elif test -f /etc/lastlog || test -d /etc/lastlog; then - cat >> confdefs.h <<\EOF - #define SSH_LASTLOG "/etc/lastlog" - EOF - - cat >> confdefs.h <<\EOF - #define HAVE_LASTLOG 1 - EOF - - LASTLOG=/etc/lastlog - echo "$ac_t""/etc/lastlog" 1>&6 - else - echo "$ac_t""not found" 1>&6 - cat >> confdefs.h <<\EOF - #define SSH_LASTLOG "/var/log/lastlog" - EOF - - LASTLOG=/var/log/lastlog - fi - - echo $ac_n "checking whether $LASTLOG is a directory""... $ac_c" 1>&6 - echo "configure:6136: checking whether $LASTLOG is a directory" >&5 - if test -d $LASTLOG - then - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF - #define LASTLOG_IS_DIR 1 - EOF - - else - echo "$ac_t""no" 1>&6 - fi - - echo $ac_n "checking whether to include the IDEA encryption algorithm""... $ac_c" 1>&6 - echo "configure:6149: checking whether to include the IDEA encryption algorithm" >&5 - # Check whether --with-idea or --without-idea was given. - if test "${with_idea+set}" = set; then - withval="$with_idea" - case "$withval" in - no) - echo "$ac_t""no" 1>&6 - ;; - *) - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF - #define WITH_IDEA 1 - EOF - - CONFOBJS="$CONFOBJS idea.o" - ;; - esac - else - #ifndef F_SECURE_COMMERCIAL - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF - #define WITH_IDEA 1 - EOF - - CONFOBJS="$CONFOBJS idea.o" - #endif F_SECURE_COMMERCIAL - #ifdef F_SECURE_COMMERCIAL - # - #endif F_SECURE_COMMERCIAL - - fi - - - echo $ac_n "checking whether to include the Blowfish encryption algorithm""... $ac_c" 1>&6 - echo "configure:6183: checking whether to include the Blowfish encryption algorithm" >&5 - # Check whether --with-blowfish or --without-blowfish was given. - if test "${with_blowfish+set}" = set; then - withval="$with_blowfish" - case "$withval" in - no) - echo "$ac_t""no" 1>&6 - ;; - *) - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF - #define WITH_BLOWFISH 1 - EOF - - ;; - esac - else - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF - #define WITH_BLOWFISH 1 - EOF - - - fi - - - echo $ac_n "checking whether to include the DES encryption algorithm""... $ac_c" 1>&6 - echo "configure:6210: checking whether to include the DES encryption algorithm" >&5 - # Check whether --with-des or --without-des was given. - if test "${with_des+set}" = set; then - withval="$with_des" - case "$withval" in - yes) - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF - #define WITH_DES 1 - EOF - - ;; - *) - echo "$ac_t""no" 1>&6 - ;; - esac - else - echo "$ac_t""no" 1>&6 - - fi - - - echo $ac_n "checking whether to include the ARCFOUR encryption algorithm""... $ac_c" 1>&6 - echo "configure:6233: checking whether to include the ARCFOUR encryption algorithm" >&5 - # Check whether --with-arcfour or --without-arcfour was given. - if test "${with_arcfour+set}" = set; then - withval="$with_arcfour" - case "$withval" in - yes) - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF - #define WITH_ARCFOUR 1 - EOF - - ;; - *) - echo "$ac_t""no" 1>&6 - ;; - esac - else - echo "$ac_t""no" 1>&6 - - fi - - - echo $ac_n "checking whether to include the none encryption algorithm""... $ac_c" 1>&6 - echo "configure:6256: checking whether to include the none encryption algorithm" >&5 - # Check whether --with-none or --without-none was given. - if test "${with_none+set}" = set; then - withval="$with_none" - case "$withval" in - yes) - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF - #define WITH_NONE 1 - EOF - - ;; - *) - echo "$ac_t""no" 1>&6 - ;; - esac - else - echo "$ac_t""no" 1>&6 - - fi - - - echo $ac_n "checking whether to use login""... $ac_c" 1>&6 - echo "configure:6279: checking whether to use login" >&5 - # Check whether --with-login or --without-login was given. - if test "${with_login+set}" = set; then - withval="$with_login" - case "$withval" in - no) - echo "$ac_t""no" 1>&6 - ;; - yes) - echo "$ac_t""yes" 1>&6 - for ac_prog in login - do - # Extract the first word of "$ac_prog", so it can be a program name with args. - set dummy $ac_prog; ac_word=$2 - echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 - echo "configure:6294: checking for $ac_word" >&5 - if eval "test \"`echo '$''{'ac_cv_path_PATH_LOGIN'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - case "$PATH_LOGIN" in - /*) - ac_cv_path_PATH_LOGIN="$PATH_LOGIN" # Let the user override the test with a path. - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_PATH_LOGIN="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" - ;; - esac - fi - PATH_LOGIN="$ac_cv_path_PATH_LOGIN" - if test -n "$PATH_LOGIN"; then - echo "$ac_t""$PATH_LOGIN" 1>&6 - else - echo "$ac_t""no" 1>&6 - fi - - test -n "$PATH_LOGIN" && break - done - - cat >> confdefs.h <<\EOF - #define USELOGIN 1 - EOF - - cat >> confdefs.h <&6 - cat >> confdefs.h <<\EOF - #define USELOGIN 1 - EOF - - cat >> confdefs.h <&6 - - fi - - - echo $ac_n "checking whether to use rsh""... $ac_c" 1>&6 - echo "configure:6353: checking whether to use rsh" >&5 - # Check whether --with-rsh or --without-rsh was given. - if test "${with_rsh+set}" = set; then - withval="$with_rsh" - case "$withval" in - no) - echo "$ac_t""no" 1>&6 - ;; - yes) - echo "$ac_t""yes" 1>&6 - for ac_prog in remsh resh rsh - do - # Extract the first word of "$ac_prog", so it can be a program name with args. - set dummy $ac_prog; ac_word=$2 - echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 - echo "configure:6368: checking for $ac_word" >&5 - if eval "test \"`echo '$''{'ac_cv_path_RSH_PATH'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - case "$RSH_PATH" in - /*) - ac_cv_path_RSH_PATH="$RSH_PATH" # Let the user override the test with a path. - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_RSH_PATH="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" - ;; - esac - fi - RSH_PATH="$ac_cv_path_RSH_PATH" - if test -n "$RSH_PATH"; then - echo "$ac_t""$RSH_PATH" 1>&6 - else - echo "$ac_t""no" 1>&6 - fi - - test -n "$RSH_PATH" && break - done - - cat >> confdefs.h <&6 - cat >> confdefs.h <&6 - for ac_prog in remsh resh rsh - do - # Extract the first word of "$ac_prog", so it can be a program name with args. - set dummy $ac_prog; ac_word=$2 - echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 - echo "configure:6420: checking for $ac_word" >&5 - if eval "test \"`echo '$''{'ac_cv_path_RSH_PATH'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - case "$RSH_PATH" in - /*) - ac_cv_path_RSH_PATH="$RSH_PATH" # Let the user override the test with a path. - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_RSH_PATH="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" - ;; - esac - fi - RSH_PATH="$ac_cv_path_RSH_PATH" - if test -n "$RSH_PATH"; then - echo "$ac_t""$RSH_PATH" 1>&6 - else - echo "$ac_t""no" 1>&6 - fi - - test -n "$RSH_PATH" && break - done - - cat >> confdefs.h <&1 | grep listen-port:host:port`"; then - echo "configure: warning: Found rsh in $RSH_PATH but it appears to actually be ssh." 1>&2 - { echo "configure: error: Probably forgot to specify --with-rsh=PATH-TO-REAL-RSH." 1>&2; exit 1; } - fi - fi - - # Code to permit setting default path for users (alden@math.ohio-state.edu) - echo $ac_n "checking default path""... $ac_c" 1>&6 - echo "configure:6469: checking default path" >&5 - # Check whether --with-path or --without-path was given. - if test "${with_path+set}" = set; then - withval="$with_path" - case "$withval" in - no) - echo "$ac_t""use system default" 1>&6 - ;; - *) - echo "$ac_t""$withval" 1>&6 - cat >> confdefs.h <&6 - - fi - - - echo $ac_n "checking etcdir""... $ac_c" 1>&6 - echo "configure:6492: checking etcdir" >&5 - # Check whether --with-etcdir or --without-etcdir was given. - if test "${with_etcdir+set}" = set; then - withval="$with_etcdir" - case "$withval" in - no) - { echo "configure: error: Need ETCDIR." 1>&2; exit 1; } - ;; - yes) - ETCDIR="/etc" - echo "$ac_t""/etc" 1>&6 - ;; - *) - ETCDIR="$withval" - echo "$ac_t""$withval" 1>&6 - ;; - esac - else - ETCDIR="/etc" - echo "$ac_t""/etc" 1>&6 - - fi - - - echo $ac_n "checking whether to use nologin.allow file to override nologin""... $ac_c" 1>&6 - echo "configure:6517: checking whether to use nologin.allow file to override nologin" >&5 - # Check whether --with-nologin-allow or --without-nologin-allow was given. - if test "${with_nologin_allow+set}" = set; then - withval="$with_nologin_allow" - case "$withval" in - no) - echo "$ac_t""no" 1>&6 - ;; - yes) - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <&6 - cat >> confdefs.h <&6 - - fi - - - echo $ac_n "checking whether to support SecurID""... $ac_c" 1>&6 - echo "configure:6547: checking whether to support SecurID" >&5 - # Check whether --with-securid or --without-securid was given. - if test "${with_securid+set}" = set; then - withval="$with_securid" - case "$withval" in - no) - echo "$ac_t""no" 1>&6 - ;; - yes) - echo "$ac_t""yes" 1>&6 - if test '!' -f /usr/ace/sdiclient.a; then - { echo "configure: error: SecurID sdiclient.a not found in /usr/ace: you must supply the path." 1>&2; exit 1; } - fi - echo "$ac_t""yes" 1>&6 - echo "$ac_t""Assuming SecurID headers and libraries are in /usr/ace." 1>&6 - cat >> confdefs.h <<\EOF - #define HAVE_SECURID 1 - EOF - - CFLAGS="$CFLAGS -I/usr/ace" - LIBS="/usr/ace/sdiclient.a $LIBS" - ;; - *) - echo "$ac_t""yes" 1>&6 - if test '!' -f $withval/sdiclient.a; then - { echo "configure: error: SecurID sdiclient.a not found in $withval: please supply the correct path." 1>&2; exit 1; } - fi - echo "$ac_t""Assuming SecurID headers and libraries are in $withval." 1>&6 - cat >> confdefs.h <<\EOF - #define HAVE_SECURID 1 - EOF - - CFLAGS="$CFLAGS -I$withval" - LIBS="$withval/sdiclient.a $LIBS" - ;; - esac - else - echo "$ac_t""no" 1>&6 - - fi - - - echo $ac_n "checking whether to support TIS authentication server""... $ac_c" 1>&6 - echo "configure:6590: checking whether to support TIS authentication server" >&5 - # Check whether --with-tis or --without-tis was given. - if test "${with_tis+set}" = set; then - withval="$with_tis" - case "$withval" in - no) - echo "$ac_t""no" 1>&6 - ;; - *) - echo "$ac_t""yes" 1>&6 - if test '!' -f $withval/libauth.a -a -f $withval/libfwall.a -a -f $withval/firewall.h; then - { echo "configure: error: TIS libauth.a or libfwall.a or firewall.h not found in $withval: please supply the correct path." 1>&2; exit 1; } - fi - echo "$ac_t""Assuming TIS headers and libraries are in $withval." 1>&6 - cat >> confdefs.h <<\EOF - #define HAVE_TIS 1 - EOF - - CFLAGS="$CFLAGS -I$withval -DHAVE_TIS" - LIBS="-L$withval -lauth -lfwall $LIBS" - echo "configure: warning: Remember to read README.TIS. The connection between sshd and TIS authentication - server is clear text!" 1>&2 - ;; - esac - else - echo "$ac_t""no" 1>&6 - - fi - - - echo $ac_n "checking whether to use Kerberos""... $ac_c" 1>&6 - echo "configure:6621: checking whether to use Kerberos" >&5 - # Check whether --with-kerberos5 or --without-kerberos5 was given. - if test "${with_kerberos5+set}" = set; then - withval="$with_kerberos5" - case "$withval" in - yes) - with_kerberos5=/usr/local - ;; - esac - else - with_kerberos5=no - - fi - - case "$with_kerberos5" in - no) - echo "$ac_t""no" 1>&6 - ;; - *) - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF - #define KERBEROS 1 - EOF - - cat >> confdefs.h <<\EOF - #define KRB5 1 - EOF - - KERBEROS_ROOT="$with_kerberos5" - KERBEROS_INCS="-I${KERBEROS_ROOT}/include" - KERBEROS_LIBS="-L${KERBEROS_ROOT}/lib -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err" - echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6 - echo "configure:6653: checking for dbm_open in -lndbm" >&5 - ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'` - if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_save_LIBS="$LIBS" - LIBS="-lndbm $LIBS" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" - fi - rm -f conftest* - LIBS="$ac_save_LIBS" - - fi - if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - KERBEROS_LIBS="$KERBEROS_LIBS -lndbm" - else - echo "$ac_t""no" 1>&6 - fi - - KERBEROS_OBJS="auth-kerberos.o" - ;; - esac - - - - - - echo $ac_n "checking whether to enable passing the Kerberos TGT""... $ac_c" 1>&6 - echo "configure:6701: checking whether to enable passing the Kerberos TGT" >&5 - # Check whether --enable-kerberos-tgt-passing or --disable-kerberos-tgt-passing was given. - if test "${enable_kerberos_tgt_passing+set}" = set; then - enableval="$enable_kerberos_tgt_passing" - case "$enableval" in - no) - echo "$ac_t""no" 1>&6 - ;; - *) - if test "$with_kerberos5" = no ; then - echo "$ac_t""no" 1>&6 - echo "configure: warning: "Passing Kerberos TGT requires Kerberos5 support."" 1>&2 - else - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF - #define KERBEROS_TGT_PASSING 1 - EOF - - fi - ;; - esac - else - echo "$ac_t""no" 1>&6 - - fi - - - echo $ac_n "checking whether to use libwrap""... $ac_c" 1>&6 - echo "configure:6729: checking whether to use libwrap" >&5 - # Check whether --with-libwrap or --without-libwrap was given. - if test "${with_libwrap+set}" = set; then - withval="$with_libwrap" - case "$withval" in - no) - echo "$ac_t""no" 1>&6 - ;; - yes) - echo "$ac_t""yes" 1>&6 - echo $ac_n "checking for request_init in -lwrap""... $ac_c" 1>&6 - echo "configure:6740: checking for request_init in -lwrap" >&5 - ac_lib_var=`echo wrap'_'request_init | sed 'y%./+-%__p_%'` - if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_save_LIBS="$LIBS" - LIBS="-lwrap $LIBS" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" - fi - rm -f conftest* - LIBS="$ac_save_LIBS" - - fi - if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - - cat >> confdefs.h <<\EOF - #define LIBWRAP 1 - EOF - - WRAPLIBS="-lwrap" - cat >> confdefs.h <<\EOF - #define HAVE_LIBWRAP 1 - EOF - - else - echo "$ac_t""no" 1>&6 - fi - - ;; - *) - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF - #define LIBWRAP 1 - EOF - - if test -d "$withval"; then - WRAPLIBS="-L$withval -lwrap" - else - WRAPLIBS="$withval" - fi - OLDLIBS="$LIBS" - LIBS="$WRAPLIBS $LIBS" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - : - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - { echo "configure: error: Could not find the $withval library. You must first install tcp_wrappers." 1>&2; exit 1; } - fi - rm -f conftest* - LIBS="$OLDLIBS" - ;; - esac - else - echo "$ac_t""no" 1>&6 - - fi - - - - - echo $ac_n "checking whether to support SOCKS""... $ac_c" 1>&6 - echo "configure:6831: checking whether to support SOCKS" >&5 - # Check whether --with-socks or --without-socks was given. - if test "${with_socks+set}" = set; then - withval="$with_socks" - case "$withval" in - no) - echo "$ac_t""no" 1>&6 - ;; - yes) - echo "$ac_t""yes" 1>&6 - echo $ac_n "checking for SOCKSconnect in -lsocks5""... $ac_c" 1>&6 - echo "configure:6842: checking for SOCKSconnect in -lsocks5" >&5 - ac_lib_var=`echo socks5'_'SOCKSconnect | sed 'y%./+-%__p_%'` - if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_save_LIBS="$LIBS" - LIBS="-lsocks5 $LIBS" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" - fi - rm -f conftest* - LIBS="$ac_save_LIBS" - - fi - if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - - socks=5 - LIBS="-lsocks5 $LIBS" - else - echo "$ac_t""no" 1>&6 - - echo $ac_n "checking for Rconnect in -lsocks""... $ac_c" 1>&6 - echo "configure:6883: checking for Rconnect in -lsocks" >&5 - ac_lib_var=`echo socks'_'Rconnect | sed 'y%./+-%__p_%'` - if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_save_LIBS="$LIBS" - LIBS="-lsocks $LIBS" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" - fi - rm -f conftest* - LIBS="$ac_save_LIBS" - - fi - if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - - socks=4 - LIBS="-lsocks $LIBS" - else - echo "$ac_t""no" 1>&6 - - { echo "configure: error: Could not find socks library. You must first install socks." 1>&2; exit 1; } - fi - - fi - - ;; - esac - else - echo "$ac_t""no" 1>&6 - - fi - - - if test "x$socks" = "x"; then - echo $ac_n "checking whether to support SOCKS5""... $ac_c" 1>&6 - echo "configure:6938: checking whether to support SOCKS5" >&5 - # Check whether --with-socks5 or --without-socks5 was given. - if test "${with_socks5+set}" = set; then - withval="$with_socks5" - case "$withval" in - no) - echo "$ac_t""no" 1>&6 - ;; - *) - echo "$ac_t""yes" 1>&6 - socks=5 - if test "x$withval" = "xyes"; then - withval="-lsocks5" - else - if test -d "$withval"; then - if test -d "$withval/include"; then - CFLAGS="$CFLAGS -I$withval/include" - else - CFLAGS="$CFLAGS -I$withval" - fi - if test -d "$withval/lib"; then - withval="-L$withval/lib -lsocks5" - else - withval="-L$withval -lsocks5" - fi - fi - fi - LIBS="$withval $LIBS" - # If Socks was compiled with Kerberos support, we will need - # to link against kerberos libraries. Temporarily append - # to LIBS. This is harmless if there is no kerberos support. - TMPLIBS="$LIBS" - LIBS="$LIBS $KERBEROS_LIBS" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - : - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - { echo "configure: error: Could not find the $withval library. You must first install socks5." 1>&2; exit 1; } - fi - rm -f conftest* - LIBS="$TMPLIBS" - ;; - esac - else - echo "$ac_t""no" 1>&6 - - fi - - fi - - if test "x$socks" = "x"; then - echo $ac_n "checking whether to support SOCKS4""... $ac_c" 1>&6 - echo "configure:7000: checking whether to support SOCKS4" >&5 - # Check whether --with-socks4 or --without-socks4 was given. - if test "${with_socks4+set}" = set; then - withval="$with_socks4" - case "$withval" in - no) - echo "$ac_t""no" 1>&6 - ;; - *) - echo "$ac_t""yes" 1>&6 - socks=4 - if test "x$withval" = "xyes"; then - withval="-lsocks" - else - if test -d "$withval"; then - withval="-L$withval -lsocks" - fi - fi - LIBS="$withval $LIBS" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - : - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - { echo "configure: error: Could not find the $withval library. You must first install socks." 1>&2; exit 1; } - fi - rm -f conftest* - ;; - esac - else - echo "$ac_t""no" 1>&6 - - fi - - fi - - - - if test "x$socks" = "x4"; then - cat >> confdefs.h <<\EOF - #define SOCKS 1 - EOF - - cat >> confdefs.h <<\EOF - #define SOCKS4 1 - EOF - - fi - - if test "x$socks" = "x5"; then - cat >> confdefs.h <<\EOF - #define SOCKS 1 - EOF - - cat >> confdefs.h <<\EOF - #define SOCKS5 1 - EOF - - cat >> confdefs.h <<\EOF - #define Rconnect SOCKSconnect - EOF - - cat >> confdefs.h <<\EOF - #define Rgetsockname SOCKSgetsockname - EOF - - cat >> confdefs.h <<\EOF - #define Rgetpeername SOCKSgetpeername - EOF - - cat >> confdefs.h <<\EOF - #define Rbind SOCKSbind - EOF - - cat >> confdefs.h <<\EOF - #define Raccept SOCKSaccept - EOF - - cat >> confdefs.h <<\EOF - #define Rlisten SOCKSlisten - EOF - - cat >> confdefs.h <<\EOF - #define Rselect SOCKSselect - EOF - - cat >> confdefs.h <<\EOF - #define Rrecvfrom SOCKSrecvfrom - EOF - - cat >> confdefs.h <<\EOF - #define Rsendto SOCKSsendto - EOF - - cat >> confdefs.h <<\EOF - #define Rrecv SOCKSrecv - EOF - - cat >> confdefs.h <<\EOF - #define Rsend SOCKSsend - EOF - - cat >> confdefs.h <<\EOF - #define Rread SOCKSread - EOF - - cat >> confdefs.h <<\EOF - #define Rwrite SOCKSwrite - EOF - - cat >> confdefs.h <<\EOF - #define Rrresvport SOCKSrresvport - EOF - - cat >> confdefs.h <<\EOF - #define Rshutdown SOCKSshutdown - EOF - - cat >> confdefs.h <<\EOF - #define Rlisten SOCKSlisten - EOF - - cat >> confdefs.h <<\EOF - #define Rclose SOCKSclose - EOF - - cat >> confdefs.h <<\EOF - #define Rdup SOCKSdup - EOF - - cat >> confdefs.h <<\EOF - #define Rdup2 SOCKSdup2 - EOF - - cat >> confdefs.h <<\EOF - #define Rfclose SOCKSfclose - EOF - - cat >> confdefs.h <<\EOF - #define Rgethostbyname SOCKSgethostbyname - EOF - - fi - - echo $ac_n "checking whether to use rsaref""... $ac_c" 1>&6 - echo "configure:7154: checking whether to use rsaref" >&5 - # Check whether --with-rsaref or --without-rsaref was given. - if test "${with_rsaref+set}" = set; then - withval="$with_rsaref" - case "$withval" in - no) - echo "$ac_t""no" 1>&6 - ;; - *) - echo "$ac_t""yes" 1>&6 - if test "x$withval" = "xyes"; then - withval="-lrsaref" - RSAREFDEP="rsaref2/source/librsaref.a" - LDFLAGS="-Lrsaref2/source $LDFLAGS" - else - if test -d "$withval"; then - withval="-L$withval -lrsaref" - fi - fi - cat >> confdefs.h <<\EOF - #define RSAREF 1 - EOF - - LIBS="$withval $LIBS" - ;; - esac - else - echo "$ac_t""no" 1>&6 - - fi - - - # This allows group writeability in userfile_check_owner_permissions() - echo $ac_n "checking whether to allow group writeability""... $ac_c" 1>&6 - echo "configure:7188: checking whether to allow group writeability" >&5 - # Check whether --enable-group-writeability or --disable-group-writeability was given. - if test "${enable_group_writeability+set}" = set; then - enableval="$enable_group_writeability" - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF - #define ALLOW_GROUP_WRITEABILITY 1 - EOF - - else - echo "$ac_t""no" 1>&6 - - fi - - - echo $ac_n "checking whether to disable forwardings in server""... $ac_c" 1>&6 - echo "configure:7204: checking whether to disable forwardings in server" >&5 - # Check whether --enable-server-port-forwardings or --disable-server-port-forwardings was given. - if test "${enable_server_port_forwardings+set}" = set; then - enableval="$enable_server_port_forwardings" - case "$enableval" in - no) - cat >> confdefs.h <<\EOF - #define SSHD_NO_PORT_FORWARDING 1 - EOF - - echo "$ac_t""yes" 1>&6 - ;; - *) echo "$ac_t""no" 1>&6 - ;; - esac - else - echo "$ac_t""no" 1>&6 - - fi - - - echo $ac_n "checking whether to disable forwardings in client""... $ac_c" 1>&6 - echo "configure:7226: checking whether to disable forwardings in client" >&5 - # Check whether --enable-client-port-forwardings or --disable-client-port-forwardings was given. - if test "${enable_client_port_forwardings+set}" = set; then - enableval="$enable_client_port_forwardings" - case "$enableval" in - no) - cat >> confdefs.h <<\EOF - #define SSH_NO_PORT_FORWARDING 1 - EOF - - echo "$ac_t""yes" 1>&6 - ;; - *) echo "$ac_t""no" 1>&6 - ;; - esac - else - echo "$ac_t""no" 1>&6 - - fi - - - echo $ac_n "checking whether to disable X11 forwarding in server""... $ac_c" 1>&6 - echo "configure:7248: checking whether to disable X11 forwarding in server" >&5 - # Check whether --enable-server-x11-forwarding or --disable-server-x11-forwarding was given. - if test "${enable_server_x11_forwarding+set}" = set; then - enableval="$enable_server_x11_forwarding" - case "$enableval" in - no) - cat >> confdefs.h <<\EOF - #define SSHD_NO_X11_FORWARDING 1 - EOF - - echo "$ac_t""yes" 1>&6 - ;; - *) echo "$ac_t""no" 1>&6 - ;; - esac - else - echo "$ac_t""no" 1>&6 - - fi - - - echo $ac_n "checking whether to disable X11 forwarding in client""... $ac_c" 1>&6 - echo "configure:7270: checking whether to disable X11 forwarding in client" >&5 - # Check whether --enable-client-x11-forwarding or --disable-client-x11-forwarding was given. - if test "${enable_client_x11_forwarding+set}" = set; then - enableval="$enable_client_x11_forwarding" - case "$enableval" in - no) - cat >> confdefs.h <<\EOF - #define SSH_NO_X11_FORWARDING 1 - EOF - - echo "$ac_t""yes" 1>&6 - ;; - *) echo "$ac_t""no" 1>&6 - ;; - esac - else - echo "$ac_t""no" 1>&6 - - fi - - - echo $ac_n "checking whether to install ssh as suid root""... $ac_c" 1>&6 - echo "configure:7292: checking whether to install ssh as suid root" >&5 - # Check whether --enable-suid-ssh or --disable-suid-ssh was given. - if test "${enable_suid_ssh+set}" = set; then - enableval="$enable_suid_ssh" - case "$enableval" in - no) - echo "$ac_t""no" 1>&6 - SSHINSTALLMODE=0711 - ;; - *) echo "$ac_t""yes" 1>&6 - SSHINSTALLMODE=04711 - ;; - esac - else - echo "$ac_t""yes" 1>&6 - SSHINSTALLMODE=04711 - - fi - - - echo $ac_n "checking whether to enable TCP_NODELAY""... $ac_c" 1>&6 - echo "configure:7313: checking whether to enable TCP_NODELAY" >&5 - # Check whether --enable-tcp-nodelay or --disable-tcp-nodelay was given. - if test "${enable_tcp_nodelay+set}" = set; then - enableval="$enable_tcp_nodelay" - case "$enableval" in - no) - echo "$ac_t""no" 1>&6 - ;; - *) - cat >> confdefs.h <<\EOF - #define ENABLE_TCP_NODELAY 1 - EOF - - echo "$ac_t""yes" 1>&6 - esac - else - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF - #define ENABLE_TCP_NODELAY 1 - EOF - - - fi - - - echo $ac_n "checking whether to enable SO_LINGER""... $ac_c" 1>&6 - echo "configure:7339: checking whether to enable SO_LINGER" >&5 - # Check whether --enable-so-linger or --disable-so-linger was given. - if test "${enable_so_linger+set}" = set; then - enableval="$enable_so_linger" - case "$enableval" in - yes) - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF - #define ENABLE_SO_LINGER 1 - EOF - - ;; - *) - echo "$ac_t""no" 1>&6 - esac - else - echo "$ac_t""no" 1>&6 - - fi - - - echo $ac_n "checking whether to include scp statistics at all""... $ac_c" 1>&6 - echo "configure:7361: checking whether to include scp statistics at all" >&5 - # Check whether --with-scp-stats or --without-scp-stats was given. - if test "${with_scp_stats+set}" = set; then - withval="$with_scp_stats" - case "$withval" in - no) - echo "$ac_t""no" 1>&6 - ;; - *) - cat >> confdefs.h <<\EOF - #define WITH_SCP_STATS 1 - EOF - - echo "$ac_t""yes" 1>&6 - esac - else - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF - #define WITH_SCP_STATS 1 - EOF - - - fi - - - echo $ac_n "checking whether to enable scp statistics""... $ac_c" 1>&6 - echo "configure:7387: checking whether to enable scp statistics" >&5 - # Check whether --enable-scp-stats or --disable-scp-stats was given. - if test "${enable_scp_stats+set}" = set; then - enableval="$enable_scp_stats" - case "$enableval" in - no) - echo "$ac_t""no" 1>&6 - ;; - *) - cat >> confdefs.h <<\EOF - #define SCP_STATISTICS_ENABLED 1 - EOF - - echo "$ac_t""yes" 1>&6 - esac - else - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF - #define SCP_STATISTICS_ENABLED 1 - EOF - - - fi - - - echo $ac_n "checking whether to enable scp statistics for all files""... $ac_c" 1>&6 - echo "configure:7413: checking whether to enable scp statistics for all files" >&5 - # Check whether --enable-all-scp-stats or --disable-all-scp-stats was given. - if test "${enable_all_scp_stats+set}" = set; then - enableval="$enable_all_scp_stats" - case "$enableval" in - no) - echo "$ac_t""no" 1>&6 - ;; - *) - cat >> confdefs.h <<\EOF - #define SCP_ALL_STATISTICS_ENABLED 1 - EOF - - echo "$ac_t""yes" 1>&6 - esac - else - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF - #define SCP_ALL_STATISTICS_ENABLED 1 - EOF - - - fi - - - # We include this here only to make it visible in --help; this is only used - # in the gmp subdirectory. - # Check whether --enable-asm or --disable-asm was given. - if test "${enable_asm+set}" = set; then - enableval="$enable_asm" - : - fi - - - PIDDIR="/var/run" - echo $ac_n "checking where to put sshd.pid""... $ac_c" 1>&6 - echo "configure:7449: checking where to put sshd.pid" >&5 - if test '!' -d $PIDDIR; then - PIDDIR="$ETCDIR" - fi - echo "$ac_t""$PIDDIR" 1>&6 - - subdirs="gmp-2.0.2-ssh-2" - - - if test "$program_transform_name" = s,x,x,; then - program_transform_name= - else - # Double any \ or $. echo might interpret backslashes. - cat <<\EOF_SED > conftestsed - s,\\,\\\\,g; s,\$,$$,g - EOF_SED - program_transform_name="`echo $program_transform_name|sed -f conftestsed`" - rm -f conftestsed - fi - test "$program_prefix" != NONE && - program_transform_name="s,^,${program_prefix},; $program_transform_name" - # Use a double $ so make ignores it. - test "$program_suffix" != NONE && - program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" - - # sed with no file args requires a program. - test "$program_transform_name" = "" && program_transform_name="s,x,x," - - - - - - - - - - - trap '' 1 2 15 - cat > confcache <<\EOF - # This file is a shell script that caches the results of configure - # tests run on this system so they can be shared between configure - # scripts and configure runs. It is not useful on other systems. - # If it contains results you don't want to keep, you may remove or edit it. - # - # By default, configure uses ./config.cache as the cache file, - # creating it if it does not exist already. You can give configure - # the --cache-file=FILE option to use a different cache file; that is - # what configure does when it calls configure scripts in - # subdirectories, so they share the cache. - # Giving --cache-file=/dev/null disables caching, for debugging configure. - # config.status only pays attention to the cache file if you give it the - # --recheck option to rerun configure. - # - EOF - # The following way of writing the cache mishandles newlines in values, - # but we know of no workaround that is simple, portable, and efficient. - # So, don't put newlines in cache variables' values. - # Ultrix sh set writes to stderr and can't be redirected directly, - # and sets the high bit in the cache file unless we assign to the vars. - (set) 2>&1 | - case `(ac_space=' '; set) 2>&1` in - *ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote substitution - # turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - -e "s/'/'\\\\''/g" \ - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" - ;; - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' - ;; - esac >> confcache - if cmp -s $cache_file confcache; then - : - else - if test -w $cache_file; then - echo "updating cache $cache_file" - cat confcache > $cache_file - else - echo "not updating unwritable cache $cache_file" - fi - fi - rm -f confcache - - trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - - test "x$prefix" = xNONE && prefix=$ac_default_prefix - # Let make expand exec_prefix. - test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - - # Any assignment to VPATH causes Sun make to only execute - # the first set of double-colon rules, so remove it if not needed. - # If there is a colon in the path, we need to keep it. - if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' - fi - - trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 - - DEFS=-DHAVE_CONFIG_H - - # Without the "./", some shells look in PATH for config.status. - : ${CONFIG_STATUS=./config.status} - - echo creating $CONFIG_STATUS - rm -f $CONFIG_STATUS - cat > $CONFIG_STATUS </dev/null | sed 1q`: - # - # $0 $ac_configure_args - # - # Compiler output produced by configure, useful for debugging - # configure, is in ./config.log if it exists. - - ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" - for ac_option - do - case "\$ac_option" in - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" - exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; - -version | --version | --versio | --versi | --vers | --ver | --ve | --v) - echo "$CONFIG_STATUS generated by autoconf version 2.12" - exit 0 ;; - -help | --help | --hel | --he | --h) - echo "\$ac_cs_usage"; exit 0 ;; - *) echo "\$ac_cs_usage"; exit 1 ;; - esac - done - - ac_given_srcdir=$srcdir - ac_given_INSTALL="$INSTALL" - - trap 'rm -fr `echo "Makefile sshd.8 ssh.1 make-ssh-known-hosts.1 zlib-1.0.4/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 - EOF - cat >> $CONFIG_STATUS < conftest.subs <<\\CEOF - $ac_vpsub - $extrasub - s%@CFLAGS@%$CFLAGS%g - s%@CPPFLAGS@%$CPPFLAGS%g - s%@CXXFLAGS@%$CXXFLAGS%g - s%@DEFS@%$DEFS%g - s%@LDFLAGS@%$LDFLAGS%g - s%@LIBS@%$LIBS%g - s%@exec_prefix@%$exec_prefix%g - s%@prefix@%$prefix%g - s%@program_transform_name@%$program_transform_name%g - s%@bindir@%$bindir%g - s%@sbindir@%$sbindir%g - s%@libexecdir@%$libexecdir%g - s%@datadir@%$datadir%g - s%@sysconfdir@%$sysconfdir%g - s%@sharedstatedir@%$sharedstatedir%g - s%@localstatedir@%$localstatedir%g - s%@libdir@%$libdir%g - s%@includedir@%$includedir%g - s%@oldincludedir@%$oldincludedir%g - s%@infodir@%$infodir%g - s%@mandir@%$mandir%g - s%@host@%$host%g - s%@host_alias@%$host_alias%g - s%@host_cpu@%$host_cpu%g - s%@host_vendor@%$host_vendor%g - s%@host_os@%$host_os%g - s%@CC@%$CC%g - s%@CPP@%$CPP%g - s%@LIBOBJS@%$LIBOBJS%g - s%@LN_S@%$LN_S%g - s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g - s%@INSTALL_DATA@%$INSTALL_DATA%g - s%@AR@%$AR%g - s%@RANLIB@%$RANLIB%g - s%@MAKEDEP@%$MAKEDEP%g - s%@X_CFLAGS@%$X_CFLAGS%g - s%@X_PRE_LIBS@%$X_PRE_LIBS%g - s%@X_LIBS@%$X_LIBS%g - s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g - s%@PASSWD_PATH@%$PASSWD_PATH%g - s%@XAUTH_PATH@%$XAUTH_PATH%g - s%@X_PROGRAMS@%$X_PROGRAMS%g - s%@PERL@%$PERL%g - s%@PATH_LOGIN@%$PATH_LOGIN%g - s%@RSH_PATH@%$RSH_PATH%g - s%@KERBEROS_ROOT@%$KERBEROS_ROOT%g - s%@KERBEROS_INCS@%$KERBEROS_INCS%g - s%@KERBEROS_LIBS@%$KERBEROS_LIBS%g - s%@KERBEROS_OBJS@%$KERBEROS_OBJS%g - s%@WRAPLIBS@%$WRAPLIBS%g - s%@subdirs@%$subdirs%g - s%@ETCDIR@%$ETCDIR%g - s%@PIDDIR@%$PIDDIR%g - s%@RSAREFDEP@%$RSAREFDEP%g - s%@CONFOBJS@%$CONFOBJS%g - s%@SSHCONFOBJS@%$SSHCONFOBJS%g - s%@SSHDCONFOBJS@%$SSHDCONFOBJS%g - s%@SSHINSTALLMODE@%$SSHINSTALLMODE%g - - CEOF - EOF - - cat >> $CONFIG_STATUS <<\EOF - - # Split the substitutions into bite-sized pieces for seds with - # small command number limits, like on Digital OSF/1 and HP-UX. - ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. - ac_file=1 # Number of current file. - ac_beg=1 # First line for current file. - ac_end=$ac_max_sed_cmds # Line after last line for current file. - ac_more_lines=: - ac_sed_cmds="" - while $ac_more_lines; do - if test $ac_beg -gt 1; then - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file - else - sed "${ac_end}q" conftest.subs > conftest.s$ac_file - fi - if test ! -s conftest.s$ac_file; then - ac_more_lines=false - rm -f conftest.s$ac_file - else - if test -z "$ac_sed_cmds"; then - ac_sed_cmds="sed -f conftest.s$ac_file" - else - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" - fi - ac_file=`expr $ac_file + 1` - ac_beg=$ac_end - ac_end=`expr $ac_end + $ac_max_sed_cmds` - fi - done - if test -z "$ac_sed_cmds"; then - ac_sed_cmds=cat - fi - EOF - - cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF - for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case "$ac_file" in - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; - *) ac_file_in="${ac_file}.in" ;; - esac - - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. - - # Remove last slash and all that follows it. Not all systems have dirname. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then - # The file is in a subdirectory. - test ! -d "$ac_dir" && mkdir "$ac_dir" - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" - # A "../" for each directory in $ac_dir_suffix. - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` - else - ac_dir_suffix= ac_dots= - fi - - case "$ac_given_srcdir" in - .) srcdir=. - if test -z "$ac_dots"; then top_srcdir=. - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; - *) # Relative path. - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" - top_srcdir="$ac_dots$ac_given_srcdir" ;; - esac - - case "$ac_given_INSTALL" in - [/$]*) INSTALL="$ac_given_INSTALL" ;; - *) INSTALL="$ac_dots$ac_given_INSTALL" ;; - esac - - echo creating "$ac_file" - rm -f "$ac_file" - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." - case "$ac_file" in - *Makefile*) ac_comsub="1i\\ - # $configure_input" ;; - *) ac_comsub= ;; - esac - - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` - sed -e "$ac_comsub - s%@configure_input@%$configure_input%g - s%@srcdir@%$srcdir%g - s%@top_srcdir@%$top_srcdir%g - s%@INSTALL@%$INSTALL%g - " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file - fi; done - rm -f conftest.s* - - # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where - # NAME is the cpp macro being defined and VALUE is the value it is being given. - # - # ac_d sets the value in "#define NAME VALUE" lines. - ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' - ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' - ac_dC='\3' - ac_dD='%g' - # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". - ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' - ac_uB='\([ ]\)%\1#\2define\3' - ac_uC=' ' - ac_uD='\4%g' - # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". - ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' - ac_eB='$%\1#\2define\3' - ac_eC=' ' - ac_eD='%g' - - if test "${CONFIG_HEADERS+set}" != set; then - EOF - cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF - fi - for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case "$ac_file" in - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; - *) ac_file_in="${ac_file}.in" ;; - esac - - echo creating $ac_file - - rm -f conftest.frag conftest.in conftest.out - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` - cat $ac_file_inputs > conftest.in - - EOF - - # Transform confdefs.h into a sed script conftest.vals that substitutes - # the proper values into config.h.in to produce config.h. And first: - # Protect against being on the right side of a sed subst in config.status. - # Protect against being in an unquoted here document in config.status. - rm -f conftest.vals - cat > conftest.hdr <<\EOF - s/[\\&%]/\\&/g - s%[\\$`]%\\&%g - s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp - s%ac_d%ac_u%gp - s%ac_u%ac_e%gp - EOF - sed -n -f conftest.hdr confdefs.h > conftest.vals - rm -f conftest.hdr - - # This sed command replaces #undef with comments. This is necessary, for - # example, in the case of _POSIX_SOURCE, which is predefined and required - # on some systems where configure will not decide to define it. - cat >> conftest.vals <<\EOF - s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% - EOF - - # Break up conftest.vals because some shells have a limit on - # the size of here documents, and old seds have small limits too. - - rm -f conftest.tail - while : - do - ac_lines=`grep -c . conftest.vals` - # grep -c gives empty output for an empty file on some AIX systems. - if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi - # Write a limited-size here document to conftest.frag. - echo ' cat > conftest.frag <> $CONFIG_STATUS - sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS - echo 'CEOF - sed -f conftest.frag conftest.in > conftest.out - rm -f conftest.in - mv conftest.out conftest.in - ' >> $CONFIG_STATUS - sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail - rm -f conftest.vals - mv conftest.tail conftest.vals - done - rm -f conftest.vals - - cat >> $CONFIG_STATUS <<\EOF - rm -f conftest.frag conftest.h - echo "/* $ac_file. Generated automatically by configure. */" > conftest.h - cat conftest.in >> conftest.h - rm -f conftest.in - if cmp -s $ac_file conftest.h 2>/dev/null; then - echo "$ac_file is unchanged" - rm -f conftest.h - else - # Remove last slash and all that follows it. Not all systems have dirname. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then - # The file is in a subdirectory. - test ! -d "$ac_dir" && mkdir "$ac_dir" - fi - rm -f $ac_file - mv conftest.h $ac_file - fi - fi; done - - EOF - cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF - - exit 0 - EOF - chmod +x $CONFIG_STATUS - rm -fr confdefs* $ac_clean_files - test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 - - if test "$no_recursion" != yes; then - - # Remove --cache-file and --srcdir arguments so they do not pile up. - ac_sub_configure_args= - ac_prev= - for ac_arg in $ac_configure_args; do - if test -n "$ac_prev"; then - ac_prev= - continue - fi - case "$ac_arg" in - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - ;; - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - ;; - *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; - esac - done - - for ac_config_dir in gmp-2.0.2-ssh-2; do - - # Do not complain, so a configure script can configure whichever - # parts of a large source tree are present. - if test ! -d $srcdir/$ac_config_dir; then - continue - fi - - echo configuring in $ac_config_dir - - case "$srcdir" in - .) ;; - *) - if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; - else - { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } - fi - ;; - esac - - ac_popdir=`pwd` - cd $ac_config_dir - - # A "../" for each directory in /$ac_config_dir. - ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` - - case "$srcdir" in - .) # No --srcdir option. We are building in place. - ac_sub_srcdir=$srcdir ;; - /*) # Absolute path. - ac_sub_srcdir=$srcdir/$ac_config_dir ;; - *) # Relative path. - ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; - esac - - # Check for guested configure; otherwise get Cygnus style configure. - if test -f $ac_sub_srcdir/configure; then - ac_sub_configure=$ac_sub_srcdir/configure - elif test -f $ac_sub_srcdir/configure.in; then - ac_sub_configure=$ac_configure - else - echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 - ac_sub_configure= - fi - - # The recursion is here. - if test -n "$ac_sub_configure"; then - - # Make the cache file name correct relative to the subdirectory. - case "$cache_file" in - /*) ac_sub_cache_file=$cache_file ;; - *) # Relative path. - ac_sub_cache_file="$ac_dots$cache_file" ;; - esac - case "$ac_given_INSTALL" in - [/$]*) INSTALL="$ac_given_INSTALL" ;; - *) INSTALL="$ac_dots$ac_given_INSTALL" ;; - esac - - echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" - # The eval makes quoting arguments work. - if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir - then : - else - { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } - fi - fi - - cd $ac_popdir - done - fi - --- 0 ---- Index: configure.in =================================================================== RCS file: /cvs/misc/ssh/configure.in,v retrieving revision 1.1.1.4 retrieving revision 1.7 diff -c -c -r1.1.1.4 -r1.7 *** configure.in 1999/10/22 18:31:58 1.1.1.4 --- configure.in 1999/11/15 17:28:03 1.7 *************** *** 12,21 **** AC_INIT(sshd.c) AC_CONFIG_HEADER(config.h) ! AC_PREREQ(2.10) ! # So many systems seem to need this that it is better do it here automatically. LIBS="-L/usr/local/lib $LIBS" AC_CANONICAL_HOST AC_MSG_CHECKING(cached information) --- 12,22 ---- AC_INIT(sshd.c) AC_CONFIG_HEADER(config.h) ! AC_PREREQ(2.12) ! # So many systems seem to need these that it is better do them here automatically. LIBS="-L/usr/local/lib $LIBS" + CFLAGS="$CFLAGS -I/usr/local/include" AC_CANONICAL_HOST AC_MSG_CHECKING(cached information) *************** *** 35,42 **** AC_DEFINE_UNQUOTED(HOSTTYPE, "$host") case "$host" in ! *-*-sunos4.1.1*) os_sunos=yes # Tim Adam says speed_t is defined in stdtypes.h AC_DEFINE(SPEED_T_IN_STDTYPES_H) ;; --- 36,61 ---- AC_DEFINE_UNQUOTED(HOSTTYPE, "$host") case "$host" in ! m68k.68881-*-sunos4*) os_sunos=yes + CFLAGS="$CFLAGS -f68881" + LDFLAGS="$LDFLAGS -f68881" + AC_DEFINE(SPEED_T_IN_STDTYPES_H) + ;; + m68k.soft-*-sunos4*) + os_sunos=yes + CFLAGS="$CFLAGS -fsoft" + LDFLAGS="$LDFLAGS -fsoft" + AC_DEFINE(SPEED_T_IN_STDTYPES_H) + ;; + m68k.fpa-*-sunos4*) + os_sunos=yes + CFLAGS="$CFLAGS -ffpa" + LDFLAGS="$LDFLAGS -ffpa" + AC_DEFINE(SPEED_T_IN_STDTYPES_H) + ;; + *-*-sunos4*) + os_sunos=yes # Tim Adam says speed_t is defined in stdtypes.h AC_DEFINE(SPEED_T_IN_STDTYPES_H) ;; *************** *** 309,326 **** ;; esac ! export CFLAGS CC # Socket pairs appear to be broken on several systems. I don't know exactly # where, so I'll use pipes everywhere for now. AC_DEFINE(USE_PIPES) AC_MSG_CHECKING([that the compiler works]) AC_TRY_RUN([ main(int ac, char **av) { return 0; } ], AC_MSG_RESULT(yes), AC_MSG_RESULT(no) ! AC_MSG_ERROR(Could not compile and run even a trivial ANSI C program - check CC.), ! AC_MSG_ERROR(Could not compile and run even a trivial ANSI C program - check CC.)) if test -z "$no_pipe"; then if test -n "$GCC"; then --- 328,403 ---- ;; esac ! export CFLAGS CC LDFLAGS # Socket pairs appear to be broken on several systems. I don't know exactly # where, so I'll use pipes everywhere for now. AC_DEFINE(USE_PIPES) + # We assume a full install of unproto was done with the custom cpp. + # + # SunOS 4.x: cc -Qpath directory_with_alternate_cpp ... + # + # Ultrix 4.x: cc -tp -hdirectory_with_alternate_cpp -B ... + # + # M88 SysV.3: cc -Yp,directory_with_alternate_cpp ... + # + AC_MSG_CHECKING(if we are to use unproto) + AC_ARG_WITH(unproto, + [ --with-unproto[=prefix] Use unproto to compile with a K&R C Compiler.], + [ case "$withval" in + no) + AC_MSG_RESULT(no) + ;; + yes) + AC_MSG_RESULT(yes) + AC_MSG_RESULT(Assuming unproto is in /usr/local/.) + case "$host" in + *-*-sunos4*) + CFLAGS="$CFLAGS -Qpath /usr/local/lib/unproto -I/usr/local/include/unproto -Dconst= -Dvolatile=" + ;; + *-dec-ultrix4*) + CFLAGS="$CFLAGS -tp -h/usr/local/lib/unproto -B -I/usr/local/include/unproto -Dconst= -Dvolatile=" + ;; + *) + CFLAGS="$CFLAGS -Yp,/usr/local/lib/unproto -B -I/usr/local/include/unproto -Dconst= -Dvolatile=" + ;; + esac + ;; + *) + AC_MSG_RESULT(yes) + if test '!' -f $withval/lib/unproto/cpp; then + AC_ERROR(Unproto cpp not found in $withval/lib/unproto: please supply the correct path prefix.) + fi + if test '!' -f $withval/include/unproto/stdarg.h; then + AC_ERROR(Unproto headers not found in $withval/include/unproto: please supply the correct path prefix.) + fi + case "$host" in + *-*-sunos4*) + CFLAGS="$CFLAGS -Qpath $withval/lib/unproto -I$withval/include/unproto -Dconst= -Dvolatile=" + ;; + *-dec-ultrix4*) + CFLAGS="$CFLAGS -tp -h$withval/lib/unproto -B -I$withval/include/unproto -Dconst= -Dvolatile=" + ;; + *) + CFLAGS="$CFLAGS -Yp,$withval/lib/unproto -B -I$withval/include/unproto -Dconst= -Dvolatile=" + ;; + esac + ;; + esac ], + AC_MSG_RESULT(no) + ) + + AC_MSG_CHECKING([that the compiler works]) + + AC_PROG_CC + AC_TRY_RUN([ main(int ac, char **av) { return 0; } ], AC_MSG_RESULT(yes), AC_MSG_RESULT(no) ! AC_MSG_ERROR(Could not compile and run even a trivial ANSI C program - check CC or supply --with-unproto.), ! AC_MSG_ERROR(Could not cross-compile even a trivial ANSI C program - check CC or supply --with-unproto.)) if test -z "$no_pipe"; then if test -n "$GCC"; then *************** *** 369,375 **** AC_HEADER_STDC AC_HEADER_SYS_WAIT ! AC_CHECK_HEADERS(unistd.h rusage.h sys/time.h lastlog.h utmp.h shadow.h) AC_CHECK_HEADERS(sgtty.h sys/select.h sys/ioctl.h machine/endian.h) AC_CHECK_HEADERS(paths.h usersec.h utime.h netinet/in_systm.h) AC_CHECK_HEADERS(netinet/in_system.h netinet/ip.h netinet/tcp.h ulimit.h) --- 446,452 ---- AC_HEADER_STDC AC_HEADER_SYS_WAIT ! AC_CHECK_HEADERS(unistd.h memory.h malloc.h rusage.h sys/time.h lastlog.h utmp.h shadow.h) AC_CHECK_HEADERS(sgtty.h sys/select.h sys/ioctl.h machine/endian.h) AC_CHECK_HEADERS(paths.h usersec.h utime.h netinet/in_systm.h) AC_CHECK_HEADERS(netinet/in_system.h netinet/ip.h netinet/tcp.h ulimit.h) *************** *** 430,440 **** fi AC_CHECK_FUNCS(gettimeofday times getrusage ftruncate revoke makeutx) ! AC_CHECK_FUNCS(strchr memcpy setlogin openpty _getpty clock fchmod ulimit) AC_CHECK_FUNCS(gethostname getdtablesize umask innetgr initgroups setpgrp) AC_CHECK_FUNCS(setpgid daemon waitpid ttyslot authenticate getpt isastream) ! AC_REPLACE_FUNCS(strerror memmove remove random putenv crypt socketpair snprintf) AC_PROG_LN_S AC_PROG_INSTALL --- 507,517 ---- fi AC_CHECK_FUNCS(gettimeofday times getrusage ftruncate revoke makeutx) ! AC_CHECK_FUNCS(strchr strspn memcpy setlogin openpty _getpty clock fchmod ulimit) AC_CHECK_FUNCS(gethostname getdtablesize umask innetgr initgroups setpgrp) AC_CHECK_FUNCS(setpgid daemon waitpid ttyslot authenticate getpt isastream) ! AC_REPLACE_FUNCS(strerror memmove remove random putenv crypt socketpair snprintf strtok) AC_PROG_LN_S AC_PROG_INSTALL *************** *** 980,1002 **** AC_MSG_RESULT(yes) AC_DEFINE(LIBWRAP) if test -d "$withval"; then ! WRAPLIBS="-L$withval -lwrap" else WRAPLIBS="$withval" fi OLDLIBS="$LIBS" LIBS="$WRAPLIBS $LIBS" ! AC_TRY_LINK([ int allow_severity; int deny_severity; ], ! [ hosts_access(); ], [], [ AC_MSG_ERROR(Could not find the $withval library. You must first install tcp_wrappers.) ]) LIBS="$OLDLIBS" ;; esac ], AC_MSG_RESULT(no) ) AC_SUBST(WRAPLIBS) AC_MSG_CHECKING(whether to support SOCKS) AC_ARG_WITH(socks, --- 1057,1088 ---- AC_MSG_RESULT(yes) AC_DEFINE(LIBWRAP) if test -d "$withval"; then ! WRAPLIBS="-L$withval -lwrap" ! WRAPINCL="-I`dirname $withval`/include" else WRAPLIBS="$withval" + WRAPINCL="-I`dirname $withval`" fi OLDLIBS="$LIBS" LIBS="$WRAPLIBS $LIBS" ! OLDCFLAGS="$CFLAGS" ! CFLAGS="$CFLAGS $WRAPINCL" ! AC_CHECK_HEADER(tcpd.h, ! [], ! [ AC_MSG_ERROR(Could not find tcpd.h for $withval library. You must first install tcp_wrappers.) ]) ! AC_TRY_LINK([#include ], ! [ extern int allow_severity; extern int deny_severity; hosts_access(); ], [], [ AC_MSG_ERROR(Could not find the $withval library. You must first install tcp_wrappers.) ]) LIBS="$OLDLIBS" + CFLAGS="$OLDCFLAGS" ;; esac ], AC_MSG_RESULT(no) ) AC_SUBST(WRAPLIBS) + AC_SUBST(WRAPINCL) AC_MSG_CHECKING(whether to support SOCKS) AC_ARG_WITH(socks, *************** *** 1134,1151 **** AC_MSG_RESULT(no) ;; *) ! AC_MSG_RESULT(yes) ! if test "x$withval" = "xyes"; then ! withval="-lrsaref" RSAREFDEP="rsaref2/source/librsaref.a" LDFLAGS="-Lrsaref2/source $LDFLAGS" else if test -d "$withval"; then ! withval="-L$withval -lrsaref" fi fi AC_DEFINE(RSAREF) - LIBS="$withval $LIBS" ;; esac ], AC_MSG_RESULT(no) --- 1220,1245 ---- AC_MSG_RESULT(no) ;; *) ! if test -d rsaref2/source -a "x$withval" = "xyes"; then RSAREFDEP="rsaref2/source/librsaref.a" LDFLAGS="-Lrsaref2/source $LDFLAGS" + CFLAGS="$CFLAGS -Irsaref2/source" + AC_DEFINE(RSAREF_LOCAL_SOURCE) + AC_MSG_RESULT([(using ./rsaref2/source) yes]) + elif test ! -d rsaref2/source -a "x$withval" = "xyes"; then + AC_MSG_RESULT([(assuming rsaref2 in system libraries or /usr/local) yes]) else if test -d "$withval"; then ! incval="`dirname $withval`/include" ! CFLAGS="$CFLAGS -I$incval" ! LDFLAGS="-L$withval $LDFLAGS" ! AC_MSG_RESULT([(using -L$withval -I$incval) yes]) ! else ! AC_MSG_ERROR([Could not find the directory $withval.]) fi fi + LIBS="-lrsaref $LIBS" AC_DEFINE(RSAREF) ;; esac ], AC_MSG_RESULT(no) Index: includes.h =================================================================== RCS file: /cvs/misc/ssh/includes.h,v retrieving revision 1.1.1.4 retrieving revision 1.4 diff -c -c -r1.1.1.4 -r1.4 *** includes.h 1999/10/22 18:32:29 1.1.1.4 --- includes.h 1999/10/25 20:28:31 1.4 *************** *** 165,171 **** #include #include ! #ifdef sparc #ifdef linux #undef HAVE_UTMPX_H #else --- 165,171 ---- #include #include ! #ifdef sun #ifdef linux #undef HAVE_UTMPX_H #else *************** *** 174,180 **** #endif #ifdef HAVE_SYS_IOCTL_H ! #include #endif /* HAVE_SYS_IOCTL_H */ #ifdef HAVE_TERMIOS_H --- 174,180 ---- #endif #ifdef HAVE_SYS_IOCTL_H ! # include #endif /* HAVE_SYS_IOCTL_H */ #ifdef HAVE_TERMIOS_H *************** *** 193,209 **** #ifdef STDC_HEADERS #include - #include #include #else /* STDC_HEADERS */ /* stdarg.h is present almost everywhere, and comes with gcc; I am too lazy to make things work with both it and varargs. */ #include #ifndef HAVE_STRCHR #define strchr index #define strrchr rindex #endif ! char *strchr(), *strrchr(); #ifndef HAVE_MEMCPY #define memcpy(d, s, n) bcopy((s), (d), (n)) #define memmove(d, s, n) bcopy((s), (d), (n)) --- 193,212 ---- #ifdef STDC_HEADERS #include #include #else /* STDC_HEADERS */ /* stdarg.h is present almost everywhere, and comes with gcc; I am too lazy to make things work with both it and varargs. */ #include + /* STDC_HEADERS now implies float.h, which is not supplied by the default + unproto distribution, but we need at least these stdlib.h declarations */ + char *strerror(); + char *getenv(); #ifndef HAVE_STRCHR #define strchr index #define strrchr rindex #endif ! char *strchr(), *strrchr(), *strtok(); #ifndef HAVE_MEMCPY #define memcpy(d, s, n) bcopy((s), (d), (n)) #define memmove(d, s, n) bcopy((s), (d), (n)) *************** *** 211,216 **** --- 214,227 ---- #define memcmp(a, b, n) bcmp((a), (b), (n)) #endif #endif /* STDC_HEADERS */ + + #ifdef HAVE_MEMORY_H + # include + #endif + + #ifdef HAVE_MALLOC_H + # include + #endif #include #include Index: newchannels.c =================================================================== RCS file: /cvs/misc/ssh/newchannels.c,v retrieving revision 1.1.1.4 retrieving revision 1.4 diff -c -c -r1.1.1.4 -r1.4 *** newchannels.c 1999/10/22 18:32:13 1.1.1.4 --- newchannels.c 1999/10/25 20:28:32 1.4 *************** *** 2286,2292 **** SSH_AGENT_SOCKET, (int)getpid()); /* Register the cleanup function before making the directory */ ! fatal_add_cleanup(&auth_delete_socket, NULL); /* Stat parent dir */ last_dir = strrchr(channel_forwarded_auth_socket_dir_name, '/'); --- 2286,2292 ---- SSH_AGENT_SOCKET, (int)getpid()); /* Register the cleanup function before making the directory */ ! fatal_add_cleanup(auth_delete_socket, NULL); /* Stat parent dir */ last_dir = strrchr(channel_forwarded_auth_socket_dir_name, '/'); Index: readconf.c =================================================================== RCS file: /cvs/misc/ssh/readconf.c,v retrieving revision 1.1.1.3 retrieving revision 1.2 diff -c -c -r1.1.1.3 -r1.2 *** readconf.c 1999/10/22 17:06:49 1.1.1.3 --- readconf.c 1999/10/25 20:29:19 1.2 *************** *** 233,239 **** int host_port) { Forward *fwd; ! if ((port < 1024 || port > 65535) && original_real_uid != UID_ROOT) fatal("Privileged ports can only be forwarded by root."); if (options->num_local_forwards >= SSH_MAX_FORWARDS_PER_DIRECTION) fatal("Too many local forwards (max %d).", SSH_MAX_FORWARDS_PER_DIRECTION); --- 233,242 ---- int host_port) { Forward *fwd; ! ! if (port > 65535) ! fatal("Illegal port number (>65535)."); ! if (port < 1024 && original_real_uid != UID_ROOT) fatal("Privileged ports can only be forwarded by root."); if (options->num_local_forwards >= SSH_MAX_FORWARDS_PER_DIRECTION) fatal("Too many local forwards (max %d).", SSH_MAX_FORWARDS_PER_DIRECTION); Index: rsaglue.c =================================================================== RCS file: /cvs/misc/ssh/rsaglue.c,v retrieving revision 1.1.1.4 retrieving revision 1.3 diff -c -c -r1.1.1.4 -r1.3 *** rsaglue.c 1999/10/22 18:32:15 1.1.1.4 --- rsaglue.c 1999/11/15 02:22:55 1.3 *************** *** 71,79 **** interface without modifying RSAREF. */ #define _MD5_H_ /* Kludge to prevent inclusion of rsaref md5.h. */ - #include "rsaref2/source/global.h" - #include "rsaref2/source/rsaref.h" /* Convert an integer from gmp to rsaref representation. */ void gmp_to_rsaref(unsigned char *buf, unsigned int len, MP_INT *value) --- 71,84 ---- interface without modifying RSAREF. */ #define _MD5_H_ /* Kludge to prevent inclusion of rsaref md5.h. */ + #ifdef RSAREF_LOCAL_SOURCE + # include + # include + #else + # include /* XXX assume has been patched to #include */ + #endif + /* Convert an integer from gmp to rsaref representation. */ void gmp_to_rsaref(unsigned char *buf, unsigned int len, MP_INT *value) *************** *** 138,143 **** --- 143,152 ---- MAX_RSA_MODULUS_BITS); input_bits = mpz_sizeinbase(input, 2); + if (input_bits > MAX_RSA_MODULUS_BITS) + fatal("Block too large to encrypt (%d bits, %d max).", input_bits, + MAX_RSA_MODULUS_BITS); + input_len = (input_bits + 7) / 8; gmp_to_rsaref(input_data, input_len, input); *************** *** 171,176 **** --- 180,189 ---- MAX_RSA_MODULUS_BITS); input_bits = mpz_sizeinbase(input, 2); + if (input_bits > MAX_RSA_MODULUS_BITS) + fatal("Block too large to encrypt (%d bits, %d max).", input_bits, + MAX_RSA_MODULUS_BITS); + input_len = (input_bits + 7) / 8; gmp_to_rsaref(input_data, input_len, input); Index: sshd.c =================================================================== RCS file: /cvs/misc/ssh/sshd.c,v retrieving revision 1.1.1.4 retrieving revision 1.4 diff -c -c -r1.1.1.4 -r1.4 *** sshd.c 1999/10/22 18:32:05 1.1.1.4 --- sshd.c 1999/10/25 20:36:19 1.4 *************** *** 641,653 **** void do_exec_pty(const char *command, int ptyfd, int ttyfd, const char *ttyname, struct passwd *pw, const char *term, const char *display, const char *auth_proto, ! const char *auth_data); void do_exec_no_pty(const char *command, struct passwd *pw, const char *display, const char *auth_proto, ! const char *auth_data); void do_child(const char *command, struct passwd *pw, const char *term, const char *display, const char *auth_proto, ! const char *auth_data, const char *ttyname); /* Signal handler for SIGHUP. Sshd execs itself when it receives SIGHUP; --- 641,653 ---- void do_exec_pty(const char *command, int ptyfd, int ttyfd, const char *ttyname, struct passwd *pw, const char *term, const char *display, const char *auth_proto, ! const char *auth_data, int forced); void do_exec_no_pty(const char *command, struct passwd *pw, const char *display, const char *auth_proto, ! const char *auth_data, int forced); void do_child(const char *command, struct passwd *pw, const char *term, const char *display, const char *auth_proto, ! const char *auth_data, const char *ttyname, int forced); /* Signal handler for SIGHUP. Sshd execs itself when it receives SIGHUP; *************** *** 1593,1604 **** int login_permitted(char *user, struct passwd *pwd) { ! char passwd[6]; /* Only for account lock check */ struct group *grp; char *group; - strncpy(passwd, pwd->pw_passwd, sizeof(passwd)); - passwd[sizeof(passwd) - 1] = '\0'; #ifdef HAVE_USERSEC_H { char *expiration, current_time[100], normalized[100]; --- 1593,1602 ---- int login_permitted(char *user, struct passwd *pwd) { ! char *passwd = pwd->pw_passwd; struct group *grp; char *group; #ifdef HAVE_USERSEC_H { char *expiration, current_time[100], normalized[100]; *************** *** 1777,1784 **** sp->sp_lstchg + sp->sp_max - today; } } ! strncpy(passwd, sp->sp_pwdp, sizeof(passwd)); ! passwd[sizeof(passwd) - 1] = '\0'; } endspent(); } --- 1775,1781 ---- sp->sp_lstchg + sp->sp_max - today; } } ! passwd = sp->sp_pwdp; } endspent(); } *************** *** 1970,1980 **** #endif /* HAVE_HPUX_TCB_AUTH */ /* ! * Check if account is locked. Check if encrypted password starts ! * with "*LK*". */ { ! if ((strncmp(passwd,"*LK*", 4) == 0) #if defined(KERBEROS) && defined(KRB5) && (options.kerberos_or_local_passwd != 0) #endif /* defined(KERBEROS) && defined(KRB5) */ --- 1967,1986 ---- #endif /* HAVE_HPUX_TCB_AUTH */ /* ! * Check if account is locked. */ { ! /* The magic string for strspn() from crypt(3) is the range of characters ! * used for a legal encoding of an encrypted password. The initial check ! * for an asterisk is a quick and dirty hack used because many Unix manuals ! * recommend inserting a '*' in the passwd field to lock an account. ! */ ! if ((strchr(passwd, "*") || ! (strspn(passwd, "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz") != strlen(passwd)) ! #if !defined(FreeBSD) ! || (strlen(passwd) != 13) /* XXX magic number from crypt(3) */ ! #endif ! ) #if defined(KERBEROS) && defined(KRB5) && (options.kerberos_or_local_passwd != 0) #endif /* defined(KERBEROS) && defined(KRB5) */ *************** *** 3022,3030 **** debug("Forking shell."); if (have_pty) do_exec_pty(NULL, ptyfd, ttyfd, ttyname, pw, term, display, proto, ! data); else ! do_exec_no_pty(NULL, pw, display, proto, data); return; case SSH_CMSG_EXEC_CMD: --- 3028,3036 ---- debug("Forking shell."); if (have_pty) do_exec_pty(NULL, ptyfd, ttyfd, ttyname, pw, term, display, proto, ! data, 0); else ! do_exec_no_pty(NULL, pw, display, proto, data, 0); return; case SSH_CMSG_EXEC_CMD: *************** *** 3043,3051 **** debug("Executing command '%.500s'", command); if (have_pty) do_exec_pty(command, ptyfd, ttyfd, ttyname, pw, term, display, ! proto, data); else ! do_exec_no_pty(command, pw, display, proto, data); xfree(command); return; --- 3049,3057 ---- debug("Executing command '%.500s'", command); if (have_pty) do_exec_pty(command, ptyfd, ttyfd, ttyname, pw, term, display, ! proto, data, 0); else ! do_exec_no_pty(command, pw, display, proto, data, 0); xfree(command); return; *************** *** 3084,3092 **** debug("Executing forced command: %.900s", forced_command); if (have_pty) do_exec_pty(forced_command, ptyfd, ttyfd, ttyname, pw, term, display, ! proto, data); else ! do_exec_no_pty(forced_command, pw, display, proto, data); return; } } --- 3090,3098 ---- debug("Executing forced command: %.900s", forced_command); if (have_pty) do_exec_pty(forced_command, ptyfd, ttyfd, ttyname, pw, term, display, ! proto, data, 1); else ! do_exec_no_pty(forced_command, pw, display, proto, data, 1); return; } } *************** *** 3097,3103 **** void do_exec_no_pty(const char *command, struct passwd *pw, const char *display, const char *auth_proto, ! const char *auth_data) { int pid; #ifdef USE_PIPES --- 3103,3109 ---- void do_exec_no_pty(const char *command, struct passwd *pw, const char *display, const char *auth_proto, ! const char *auth_data, int forced) { int pid; #ifdef USE_PIPES *************** *** 3204,3210 **** #endif /* HAVE_SIA */ /* Do processing for the child (exec command etc). */ ! do_child(command, pw, NULL, display, auth_proto, auth_data, NULL); /*NOTREACHED*/ } if (pid < 0) --- 3210,3216 ---- #endif /* HAVE_SIA */ /* Do processing for the child (exec command etc). */ ! do_child(command, pw, NULL, display, auth_proto, auth_data, NULL, forced); /*NOTREACHED*/ } if (pid < 0) *************** *** 3271,3277 **** void do_exec_pty(const char *command, int ptyfd, int ttyfd, const char *ttyname, struct passwd *pw, const char *term, const char *display, const char *auth_proto, ! const char *auth_data) { int pid, fdout; const char *hostname; --- 3277,3283 ---- void do_exec_pty(const char *command, int ptyfd, int ttyfd, const char *ttyname, struct passwd *pw, const char *term, const char *display, const char *auth_proto, ! const char *auth_data, int forced) { int pid, fdout; const char *hostname; *************** *** 3500,3506 **** #endif /* Do common processing for the child, such as execing the command. */ ! do_child(command, pw, term, display, auth_proto, auth_data, ttyname); /*NOTREACHED*/ } if (pid < 0) --- 3506,3512 ---- #endif /* Do common processing for the child, such as execing the command. */ ! do_child(command, pw, term, display, auth_proto, auth_data, ttyname, forced); /*NOTREACHED*/ } if (pid < 0) *************** *** 3859,3865 **** void do_child(const char *command, struct passwd *pw, const char *term, const char *display, const char *auth_proto, ! const char *auth_data, const char *ttyname) { const char *shell, *cp; char buf[256]; --- 3865,3871 ---- void do_child(const char *command, struct passwd *pw, const char *term, const char *display, const char *auth_proto, ! const char *auth_data, const char *ttyname, int forced) { const char *shell, *cp; char buf[256]; *************** *** 4579,4590 **** argv[1] = "-c"; argv[2] = (char *)command; argv[3] = NULL; #if defined (__FreeBSD__) && defined(HAVE_LOGIN_CAP_H) ! execve(real_shell, argv, env); #else ! execve(shell, argv, env); #endif /* HAVE_LOGIN_CAP_H */ ! perror(shell); exit(1); } --- 4585,4604 ---- argv[1] = "-c"; argv[2] = (char *)command; argv[3] = NULL; + if (forced) + { + execve(DEFAULT_SHELL, argv, env); + perror(DEFAULT_SHELL); + } + else + { #if defined (__FreeBSD__) && defined(HAVE_LOGIN_CAP_H) ! execve(real_shell, argv, env); #else ! execve(shell, argv, env); #endif /* HAVE_LOGIN_CAP_H */ ! perror(shell); ! } exit(1); } Index: strtok.c =================================================================== RCS file: strtok.c diff -N strtok.c *** /dev/null Mon Nov 15 13:08:10 1999 --- /tmp/cvs09952ax Mon Nov 15 13:15:45 1999 *************** *** 0 **** --- 1,90 ---- + /* + * Copyright (c) 1988 Regents of the University of California. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * This product includes software developed by the University of + * California, Berkeley and its contributors. + * 4. Neither the name of the University nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + + #if defined(LIBC_SCCS) && !defined(lint) + /*static char *sccsid = "from: @(#)strtok.c 5.8 (Berkeley) 2/24/91";*/ + static char *rcsid = "$Id: strtok.c,v 1.4 1994/06/11 16:49:17 jtc Exp $"; + #endif /* LIBC_SCCS and not lint */ + + #include + + char * + strtok(s, delim) + register char *s; + register const char *delim; + { + register char *spanp; + register int c, sc; + char *tok; + static char *last; + + + if (s == NULL && (s = last) == NULL) + return (NULL); + + /* + * Skip (span) leading delimiters (s += strspn(s, delim), sort of). + */ + cont: + c = *s++; + for (spanp = (char *)delim; (sc = *spanp++) != 0;) { + if (c == sc) + goto cont; + } + + if (c == 0) { /* no non-delimiter characters */ + last = NULL; + return (NULL); + } + tok = s - 1; + + /* + * Scan token (scan for delimiters: s += strcspn(s, delim), sort of). + * Note that delim must have one NUL; we stop if we see that, too. + */ + for (;;) { + c = *s++; + spanp = (char *)delim; + do { + if ((sc = *spanp++) == c) { + if (c == 0) + s = NULL; + else + s[-1] = 0; + last = s; + return (tok); + } + } while (sc != 0); + } + /* NOTREACHED */ + } Index: version.h =================================================================== RCS file: /cvs/misc/ssh/version.h,v retrieving revision 1.1.1.4 retrieving revision 1.3 diff -c -c -r1.1.1.4 -r1.3 *** version.h 1999/10/22 18:32:31 1.1.1.4 --- version.h 1999/10/27 06:36:36 1.3 *************** *** 1 **** ! #define SSH_VERSION "1.2.27" --- 1 ---- ! #define SSH_VERSION "1.2.27.planix.2" Index: gmp-2.0.2-ssh-2/.cvsignore =================================================================== RCS file: .cvsignore diff -N .cvsignore *** /dev/null Mon Nov 15 13:08:10 1999 --- /tmp/cvs09952ba Mon Nov 15 13:15:45 1999 *************** *** 0 **** --- 1,8 ---- + Makefile + Makefile.in + aclocal.m4 + config.h.in + config.log + config.status + configure + gmp.info* Index: gmp-2.0.2-ssh-2/ChangeLog =================================================================== RCS file: /cvs/misc/ssh/gmp-2.0.2-ssh-2/ChangeLog,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -c -c -r1.1.1.1 -r1.2 *** gmp-2.0.2-ssh-2/ChangeLog 1996/11/01 19:44:03 1.1.1.1 --- gmp-2.0.2-ssh-2/ChangeLog 1996/12/09 03:19:39 1.2 *************** *** 1,3 **** --- 1,11 ---- + Sun Dec 8 12:25:47 1996 Greg A. Woods + + * configure: regenerated with autoconf-2.12. + + * config.sub (basic_machine): add support for various varieties of + floating support on Sun3s (for when X11 libraries are compiled + with -f68881, for example). + Thu Jun 6 19:00:53 1996 Torbjorn Granlund * Version 2.0.2 released. Index: gmp-2.0.2-ssh-2/Makefile.am =================================================================== RCS file: /cvs/misc/ssh/gmp-2.0.2-ssh-2/Makefile.am,v retrieving revision 1.1.1.2 retrieving revision 1.4 diff -c -c -r1.1.1.2 -r1.4 *** gmp-2.0.2-ssh-2/Makefile.am 1997/05/01 17:33:57 1.1.1.2 --- gmp-2.0.2-ssh-2/Makefile.am 1999/10/25 20:34:45 1.4 *************** *** 39,45 **** INCLUDES = -I. -I$(srcdir) -Impn -I$(srcdir)/mpn ! libgmp.a: $(libgmp_a_OBJECTS) $(libgmp_a_LIBADD) all-recursive -rm -rf tmpdirgmp -mkdir tmpdirgmp for i in mpn mpz mpf mpq; \ --- 39,45 ---- INCLUDES = -I. -I$(srcdir) -Impn -I$(srcdir)/mpn ! libgmp.a: $(libgmp_a_OBJECTS) $(libgmp_a_LIBADD) -rm -rf tmpdirgmp -mkdir tmpdirgmp for i in mpn mpz mpf mpq; \ *************** *** 57,63 **** # There appear to be strange problems with ar and parallel makes; I've added # dummy depend on libgmp.a here to serialize these. ! libmp.a: $(libmp_a_OBJECTS) $(libmp_a_LIBADD) all-recursive libgmp.a -rm -rf tmpdirmp -mkdir tmpdirmp for i in mpn mpbsd; \ --- 57,63 ---- # There appear to be strange problems with ar and parallel makes; I've added # dummy depend on libgmp.a here to serialize these. ! libmp.a: $(libmp_a_OBJECTS) $(libmp_a_LIBADD) -rm -rf tmpdirmp -mkdir tmpdirmp for i in mpn mpbsd; \ Index: gmp-2.0.2-ssh-2/Makefile.in =================================================================== RCS file: Makefile.in diff -N Makefile.in *** /tmp/cvs09952bf Mon Nov 15 13:15:45 1999 --- /dev/null Mon Nov 15 13:08:10 1999 *************** *** 1,604 **** - # Makefile.in generated automatically by automake 1.3 from Makefile.am - - # Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc. - # This Makefile.in is free software; the Free Software Foundation - # gives unlimited permission to copy and/or distribute it, - # with or without modifications, as long as this notice is preserved. - - # This program is distributed in the hope that it will be useful, - # but WITHOUT ANY WARRANTY, to the extent permitted by law; without - # even the implied warranty of MERCHANTABILITY or FITNESS FOR A - # PARTICULAR PURPOSE. - - # Copyright (C) 1991, 1993, 1994, 1996 Free Software Foundation, Inc. - - # This file is part of the GNU MP Library. - - # The GNU MP Library is free software; you can redistribute it and/or modify - # it under the terms of the GNU Library General Public License as published by - # the Free Software Foundation; either version 2 of the License, or (at your - # option) any later version. - - # The GNU MP Library is distributed in the hope that it will be useful, but - # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public - # License for more details. - - # You should have received a copy of the GNU Library General Public License - # along with the GNU MP Library; see the file COPYING.LIB. If not, write to - # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, - # MA 02111-1307, USA. - - - SHELL = /bin/sh - - srcdir = @srcdir@ - top_srcdir = @top_srcdir@ - VPATH = @srcdir@ - prefix = @prefix@ - exec_prefix = @exec_prefix@ - - bindir = @bindir@ - sbindir = @sbindir@ - libexecdir = @libexecdir@ - datadir = @datadir@ - sysconfdir = @sysconfdir@ - sharedstatedir = @sharedstatedir@ - localstatedir = @localstatedir@ - libdir = @libdir@ - infodir = @infodir@ - mandir = @mandir@ - includedir = @includedir@ - oldincludedir = /usr/include - - DISTDIR = - - pkgdatadir = $(datadir)/@PACKAGE@ - pkglibdir = $(libdir)/@PACKAGE@ - pkgincludedir = $(includedir)/@PACKAGE@ - - top_builddir = . - - ACLOCAL = @ACLOCAL@ - AUTOCONF = @AUTOCONF@ - AUTOMAKE = @AUTOMAKE@ - AUTOHEADER = @AUTOHEADER@ - - INSTALL = @INSTALL@ - INSTALL_PROGRAM = @INSTALL_PROGRAM@ - INSTALL_DATA = @INSTALL_DATA@ - INSTALL_SCRIPT = @INSTALL_SCRIPT@ - transform = @program_transform_name@ - - NORMAL_INSTALL = : - PRE_INSTALL = : - POST_INSTALL = : - NORMAL_UNINSTALL = : - PRE_UNINSTALL = : - POST_UNINSTALL = : - host_alias = @host_alias@ - host_triplet = @host@ - CC = @CC@ - LN_S = @LN_S@ - MAKEINFO = @MAKEINFO@ - MPN_DISTCLEANFILES = @MPN_DISTCLEANFILES@ - MPN_OBJS = @MPN_OBJS@ - NM_PATH = @NM_PATH@ - PACKAGE = @PACKAGE@ - RANLIB = @RANLIB@ - SFLAGS = @SFLAGS@ - VERSION = @VERSION@ - - AUTOMAKE_OPTIONS = 1.0 foreign dist-zip no-dependencies - - SUBDIRS = mpn mpz mpf mpq mpbsd demos - - lib_LIBRARIES = libgmp.a libmp.a - info_TEXINFOS = gmp.texi - include_HEADERS = gmp.h mp.h - noinst_HEADERS = gmp-impl.h longlong.h stack-alloc.h urandom.h - - libgmp_a_SOURCES = memory.c mp_set_fns.c mp_clz_tab.c version.c stack-alloc.c \ - mp_bpl.c extract-double.c insert-double.c - libgmp_a_LIBADD = @LIBOBJS@ - - libmp_a_SOURCES = memory.c mp_set_fns.c mp_clz_tab.c version.c stack-alloc.c \ - mp_bpl.c extract-double.c insert-double.c - - EXTRA_DIST = PROJECTS SPEED cre-mparam.c make.bat config.h.in acconfig.h - - INCLUDES = -I. -I$(srcdir) -Impn -I$(srcdir)/mpn - - ASMDIRS = a29k alpha clipper cray generic hppa i960 m68k m88k mips2 mips3 \ - msdos ns32k power powerpc32 powerpc64 pyr sh sparc32 sparc64 vax \ - x86 z8000 z8000x - ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 - mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs - CONFIG_CLEAN_FILES = - LIBRARIES = $(lib_LIBRARIES) - - - DEFS = @DEFS@ -I. -I$(srcdir) - CPPFLAGS = @CPPFLAGS@ - LDFLAGS = @LDFLAGS@ - LIBS = @LIBS@ - libgmp_a_DEPENDENCIES = @LIBOBJS@ - libgmp_a_OBJECTS = memory.o mp_set_fns.o mp_clz_tab.o version.o \ - stack-alloc.o mp_bpl.o extract-double.o insert-double.o - libmp_a_LIBADD = - libmp_a_OBJECTS = memory.o mp_set_fns.o mp_clz_tab.o version.o \ - stack-alloc.o mp_bpl.o extract-double.o insert-double.o - AR = ar - CFLAGS = @CFLAGS@ - COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) - LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@ - TEXI2DVI = texi2dvi - TEXINFO_TEX = $(srcdir)/texinfo.tex - INFO_DEPS = gmp.info - DVIS = gmp.dvi - TEXINFOS = gmp.texi - HEADERS = $(include_HEADERS) $(noinst_HEADERS) - - DIST_COMMON = README COPYING.LIB ChangeLog INSTALL Makefile.am \ - Makefile.in NEWS aclocal.m4 config.guess config.sub configure \ - configure.in install-sh missing mkinstalldirs random.c texinfo.tex - - - DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) - - TAR = tar - GZIP = --best - SOURCES = $(libgmp_a_SOURCES) $(libmp_a_SOURCES) - OBJECTS = $(libgmp_a_OBJECTS) $(libmp_a_OBJECTS) - - all: all-recursive all-am - - .SUFFIXES: - .SUFFIXES: .S .c .dvi .info .o .ps .s .texi .texinfo .txi - $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) - cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile - - Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - cd $(top_builddir) \ - && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status - - $(ACLOCAL_M4): configure.in - cd $(srcdir) && $(ACLOCAL) - - config.status: $(srcdir)/configure - $(SHELL) ./config.status --recheck - $(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) - cd $(srcdir) && $(AUTOCONF) - - mostlyclean-libLIBRARIES: - - clean-libLIBRARIES: - -test -z "$(lib_LIBRARIES)" || rm -f $(lib_LIBRARIES) - - distclean-libLIBRARIES: - - maintainer-clean-libLIBRARIES: - - install-libLIBRARIES: $(lib_LIBRARIES) - @$(NORMAL_INSTALL) - $(mkinstalldirs) $(DESTDIR)$(libdir) - list='$(lib_LIBRARIES)'; for p in $$list; do \ - if test -f $$p; then \ - echo " $(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/$$p"; \ - $(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/$$p; \ - else :; fi; \ - done - @$(POST_INSTALL) - @list='$(lib_LIBRARIES)'; for p in $$list; do \ - if test -f $$p; then \ - echo " $(RANLIB) $(DESTDIR)$(libdir)/$$p"; \ - $(RANLIB) $(DESTDIR)$(libdir)/$$p; \ - else :; fi; \ - done - - uninstall-libLIBRARIES: - @$(NORMAL_UNINSTALL) - list='$(lib_LIBRARIES)'; for p in $$list; do \ - rm -f $(DESTDIR)$(libdir)/$$p; \ - done - - .c.o: - $(COMPILE) -c $< - - .s.o: - $(COMPILE) -c $< - - .S.o: - $(COMPILE) -c $< - - mostlyclean-compile: - -rm -f *.o core *.core - - clean-compile: - - distclean-compile: - -rm -f *.tab.c - - maintainer-clean-compile: - - gmp.info: gmp.texi - gmp.dvi: gmp.texi - - - DVIPS = dvips - - .texi.info: - @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9] - cd $(srcdir) \ - && $(MAKEINFO) `echo $< | sed 's,.*/,,'` - - .texi.dvi: - TEXINPUTS=$(srcdir):$$TEXINPUTS \ - MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $< - - .texi: - @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9] - cd $(srcdir) \ - && $(MAKEINFO) `echo $< | sed 's,.*/,,'` - - .texinfo.info: - @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9] - cd $(srcdir) \ - && $(MAKEINFO) `echo $< | sed 's,.*/,,'` - - .texinfo: - @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9] - cd $(srcdir) \ - && $(MAKEINFO) `echo $< | sed 's,.*/,,'` - - .texinfo.dvi: - TEXINPUTS=$(srcdir):$$TEXINPUTS \ - MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $< - - .txi.info: - @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9] - cd $(srcdir) \ - && $(MAKEINFO) `echo $< | sed 's,.*/,,'` - - .txi.dvi: - TEXINPUTS=$(srcdir):$$TEXINPUTS \ - MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $< - - .txi: - @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9] - cd $(srcdir) \ - && $(MAKEINFO) `echo $< | sed 's,.*/,,'` - .dvi.ps: - $(DVIPS) $< -o $@ - - install-info-am: $(INFO_DEPS) - @$(NORMAL_INSTALL) - $(mkinstalldirs) $(DESTDIR)$(infodir) - @for file in $(INFO_DEPS); do \ - d=$(srcdir); \ - for ifile in `cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \ - if test -f $$d/$$ifile; then \ - echo " $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile"; \ - $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile; \ - else : ; fi; \ - done; \ - done - @$(POST_INSTALL) - @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \ - for file in $(INFO_DEPS); do \ - echo " install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file";\ - install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file || :;\ - done; \ - else : ; fi - - uninstall-info: - $(PRE_UNINSTALL) - @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \ - ii=yes; \ - else ii=; fi; \ - for file in $(INFO_DEPS); do \ - test -z "$ii" \ - || install-info --info-dir=$(DESTDIR)$(infodir) --remove $$file; \ - done - @$(NORMAL_UNINSTALL) - for file in $(INFO_DEPS); do \ - (cd $(DESTDIR)$(infodir) && rm -f $$file $$file-[0-9] $$file-[0-9][0-9]); \ - done - - dist-info: $(INFO_DEPS) - for base in $(INFO_DEPS); do \ - d=$(srcdir); \ - for file in `cd $$d && eval echo $$base*`; do \ - test -f $(distdir)/$$file \ - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ - || cp -p $$d/$$file $(distdir)/$$file; \ - done; \ - done - - mostlyclean-aminfo: - -rm -f gmp.aux gmp.cp gmp.cps gmp.dvi gmp.fn gmp.fns gmp.ky gmp.kys \ - gmp.ps gmp.log gmp.pg gmp.toc gmp.tp gmp.tps gmp.vr gmp.vrs \ - gmp.op gmp.tr gmp.cv gmp.cn - - clean-aminfo: - - distclean-aminfo: - - maintainer-clean-aminfo: - for i in $(INFO_DEPS); do \ - rm -f $$i; \ - if test "`echo $$i-[0-9]*`" != "$$i-[0-9]*"; then \ - rm -f $$i-[0-9]*; \ - fi; \ - done - - install-includeHEADERS: $(include_HEADERS) - @$(NORMAL_INSTALL) - $(mkinstalldirs) $(DESTDIR)$(includedir) - @list='$(include_HEADERS)'; for p in $$list; do \ - if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \ - echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p"; \ - $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p; \ - done - - uninstall-includeHEADERS: - @$(NORMAL_UNINSTALL) - list='$(include_HEADERS)'; for p in $$list; do \ - rm -f $(DESTDIR)$(includedir)/$$p; \ - done - - # This directory's subdirectories are mostly independent; you can cd - # into them and run `make' without going through this Makefile. - # To change the values of `make' variables: instead of editing Makefiles, - # (1) if the variable is set in `config.status', edit `config.status' - # (which will cause the Makefiles to be regenerated when you run `make'); - # (2) otherwise, pass the desired values on the `make' command line. - - @SET_MAKE@ - - all-recursive install-data-recursive install-exec-recursive \ - installdirs-recursive install-recursive uninstall-recursive \ - check-recursive installcheck-recursive info-recursive dvi-recursive: - @set fnord $(MAKEFLAGS); amf=$$2; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - target=`echo $@ | sed s/-recursive//`; \ - echo "Making $$target in $$subdir"; \ - (cd $$subdir && $(MAKE) $$target) \ - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ - done && test -z "$$fail" - - mostlyclean-recursive clean-recursive distclean-recursive \ - maintainer-clean-recursive: - @set fnord $(MAKEFLAGS); amf=$$2; \ - rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \ - rev="$$subdir $$rev"; \ - done; \ - for subdir in $$rev; do \ - target=`echo $@ | sed s/-recursive//`; \ - echo "Making $$target in $$subdir"; \ - (cd $$subdir && $(MAKE) $$target) \ - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ - done && test -z "$$fail" - tags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - (cd $$subdir && $(MAKE) tags); \ - done - - tags: TAGS - - ID: $(HEADERS) $(SOURCES) $(LISP) - here=`pwd` && cd $(srcdir) \ - && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP) - - TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \ - done; \ - list='$(SOURCES) $(HEADERS)'; \ - unique=`for i in $$list; do echo $$i; done | \ - awk ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) - - mostlyclean-tags: - - clean-tags: - - distclean-tags: - -rm -f TAGS ID - - maintainer-clean-tags: - - distdir = $(PACKAGE)-$(VERSION) - top_distdir = $(distdir) - - # This target untars the dist file and tries a VPATH configuration. Then - # it guarantees that the distribution is self-contained by making another - # tarfile. - distcheck: dist - -rm -rf $(distdir) - GZIP=$(GZIP) $(TAR) zxf $(distdir).tar.gz - mkdir $(distdir)/=build - mkdir $(distdir)/=inst - dc_install_base=`cd $(distdir)/=inst && pwd`; \ - cd $(distdir)/=build \ - && ../configure --srcdir=.. --prefix=$$dc_install_base \ - && $(MAKE) \ - && $(MAKE) dvi \ - && $(MAKE) check \ - && $(MAKE) install \ - && $(MAKE) installcheck \ - && $(MAKE) dist - -rm -rf $(distdir) - @echo "========================"; \ - echo "$(distdir).tar.gz is ready for distribution"; \ - echo "========================" - dist: distdir - -chmod -R a+r $(distdir) - GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir) - -rm -rf $(distdir) - dist-zip: distdir - -chmod -R a+r $(distdir) - zip -rq $(distdir).zip $(distdir) - -rm -rf $(distdir) - dist-all: distdir - -chmod -R a+r $(distdir) - GZIP=$(GZIP) $(TAR) chozf $(distdir).tar.gz $(distdir) - zip -rq $(distdir).zip $(distdir) - -rm -rf $(distdir) - distdir: $(DISTFILES) - -rm -rf $(distdir) - mkdir $(distdir) - -chmod 777 $(distdir) - @for file in $(DISTFILES); do \ - d=$(srcdir); \ - test -f $(distdir)/$$file \ - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ - || cp -p $$d/$$file $(distdir)/$$file; \ - done - for subdir in $(SUBDIRS); do \ - test -d $(distdir)/$$subdir \ - || mkdir $(distdir)/$$subdir \ - || exit 1; \ - chmod 777 $(distdir)/$$subdir; \ - (cd $$subdir && $(MAKE) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \ - || exit 1; \ - done - $(MAKE) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-info - $(MAKE) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-hook - info: $(INFO_DEPS) info-recursive - dvi: $(DVIS) dvi-recursive - check: all-am - $(MAKE) check-recursive - installcheck: installcheck-recursive - all-am: Makefile $(INFO_DEPS) $(LIBRARIES) $(HEADERS) - - install-exec-am: install-libLIBRARIES - - install-data-am: install-info-am install-includeHEADERS - - uninstall-am: uninstall-libLIBRARIES uninstall-info uninstall-includeHEADERS - - install-exec: install-exec-recursive install-exec-am - @$(NORMAL_INSTALL) - - install-data: install-data-recursive install-data-am - @$(NORMAL_INSTALL) - - install: install-recursive install-exec-am install-data-am - @: - - uninstall: uninstall-recursive uninstall-am - - install-strip: - $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install - installdirs: installdirs-recursive - $(mkinstalldirs) $(DATADIR)$(libdir) $(DESTDIR)$(infodir) \ - $(DATADIR)$(includedir) - - - mostlyclean-generic: - -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES) - - clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - - distclean-generic: - -rm -f Makefile $(DISTCLEANFILES) - -rm -f config.cache config.log stamp-h stamp-h[0-9]* - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - - maintainer-clean-generic: - -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) - -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) - mostlyclean-am: mostlyclean-libLIBRARIES mostlyclean-compile \ - mostlyclean-aminfo mostlyclean-tags mostlyclean-generic - - clean-am: clean-libLIBRARIES clean-compile clean-aminfo clean-tags \ - clean-generic mostlyclean-am - - distclean-am: distclean-libLIBRARIES distclean-compile distclean-aminfo \ - distclean-tags distclean-generic clean-am - - maintainer-clean-am: maintainer-clean-libLIBRARIES \ - maintainer-clean-compile maintainer-clean-aminfo \ - maintainer-clean-tags maintainer-clean-generic \ - distclean-am - - mostlyclean: mostlyclean-recursive mostlyclean-am - - clean: clean-recursive clean-am - - distclean: distclean-recursive distclean-am - -rm -f config.status - - maintainer-clean: maintainer-clean-recursive maintainer-clean-am - @echo "This command is intended for maintainers to use;" - @echo "it deletes files that may require special tools to rebuild." - -rm -f config.status - - .PHONY: mostlyclean-libLIBRARIES distclean-libLIBRARIES \ - clean-libLIBRARIES maintainer-clean-libLIBRARIES uninstall-libLIBRARIES \ - install-libLIBRARIES mostlyclean-compile distclean-compile \ - clean-compile maintainer-clean-compile install-info-am uninstall-info \ - mostlyclean-aminfo distclean-aminfo clean-aminfo \ - maintainer-clean-aminfo uninstall-includeHEADERS install-includeHEADERS \ - install-data-recursive uninstall-data-recursive install-exec-recursive \ - uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \ - all-recursive check-recursive installcheck-recursive info-recursive \ - dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \ - maintainer-clean-recursive tags tags-recursive mostlyclean-tags \ - distclean-tags clean-tags maintainer-clean-tags distdir info dvi \ - installcheck all-am install-exec-am install-data-am uninstall-am \ - install-exec install-data install uninstall all installdirs \ - mostlyclean-generic distclean-generic clean-generic \ - maintainer-clean-generic clean mostlyclean distclean maintainer-clean - - - libgmp.a: $(libgmp_a_OBJECTS) $(libgmp_a_LIBADD) all-recursive - -rm -rf tmpdirgmp - -mkdir tmpdirgmp - for i in mpn mpz mpf mpq; \ - do \ - mkdir tmpdirgmp/$$i; \ - ( cd tmpdirgmp/$$i; $(AR) x ../../$$i/lib$$i.a ); \ - done - cd tmpdirgmp; for i in */*.o; do mv $$i `echo $$i | sed 's@/@_@g'`;done - cp $(libgmp_a_OBJECTS) $(libgmp_a_LIBADD) tmpdirgmp - cd tmpdirgmp; $(AR) cru $@ *.o - $(RANLIB) tmpdirgmp/$@ - -rm -f $@ - mv tmpdirgmp/$@ . - -rm -rf tmpdirgmp - - # There appear to be strange problems with ar and parallel makes; I've added - # dummy depend on libgmp.a here to serialize these. - libmp.a: $(libmp_a_OBJECTS) $(libmp_a_LIBADD) all-recursive libgmp.a - -rm -rf tmpdirmp - -mkdir tmpdirmp - for i in mpn mpbsd; \ - do \ - mkdir tmpdirmp/$$i; \ - ( cd tmpdirmp/$$i; $(AR) x ../../$$i/lib$$i.a ); \ - done - cp $(libmp_a_OBJECTS) $(libmp_a_LIBADD) tmpdirmp - cd tmpdirmp; for i in */*.o; do mv $$i `echo $$i | sed 's@/@_@g'`; done - cd tmpdirmp; $(AR) cru $@ *.o - $(RANLIB) tmpdirmp/$@ - -rm -f $@ - mv tmpdirmp/$@ . - -rm -rf tmpdirmp - - # Copy assembly directories into the distribution. - dist-hook: - for dir in $(ASMDIRS); do \ - (cd $(srcdir)/mpn && tar cf - $$dir) | \ - (cd $(distdir)/mpn && tar xpf -); \ - done - - # Tell versions [3.59,3.63) of GNU make to not export all variables. - # Otherwise a system limit (for SysV at least) may be exceeded. - .NOEXPORT: --- 0 ---- Index: gmp-2.0.2-ssh-2/aclocal.m4 =================================================================== RCS file: aclocal.m4 diff -N aclocal.m4 *** /tmp/cvs09952bg Mon Nov 15 13:15:46 1999 --- /dev/null Mon Nov 15 13:08:10 1999 *************** *** 1,113 **** - dnl aclocal.m4 generated automatically by aclocal 1.3 - - dnl Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc. - dnl This Makefile.in is free software; the Free Software Foundation - dnl gives unlimited permission to copy and/or distribute it, - dnl with or without modifications, as long as this notice is preserved. - - dnl This program is distributed in the hope that it will be useful, - dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without - dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A - dnl PARTICULAR PURPOSE. - - # Do all the work for Automake. This macro actually does too much -- - # some checks are only needed if your package does certain things. - # But this isn't really a big deal. - - # serial 1 - - dnl Usage: - dnl AM_INIT_AUTOMAKE(package,version, [no-define]) - - AC_DEFUN(AM_INIT_AUTOMAKE, - [AC_REQUIRE([AM_PROG_INSTALL]) - PACKAGE=[$1] - AC_SUBST(PACKAGE) - VERSION=[$2] - AC_SUBST(VERSION) - dnl test to see if srcdir already configured - if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then - AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) - fi - ifelse([$3],, - AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE") - AC_DEFINE_UNQUOTED(VERSION, "$VERSION")) - AC_REQUIRE([AM_SANITY_CHECK]) - AC_REQUIRE([AC_ARG_PROGRAM]) - dnl FIXME This is truly gross. - missing_dir=`cd $ac_aux_dir && pwd` - AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir) - AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) - AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir) - AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) - AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) - AC_REQUIRE([AC_PROG_MAKE_SET])]) - - - # serial 1 - - AC_DEFUN(AM_PROG_INSTALL, - [AC_REQUIRE([AC_PROG_INSTALL]) - test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' - AC_SUBST(INSTALL_SCRIPT)dnl - ]) - - # - # Check to make sure that the build environment is sane. - # - - AC_DEFUN(AM_SANITY_CHECK, - [AC_MSG_CHECKING([whether build environment is sane]) - # Just in case - sleep 1 - echo timestamp > conftestfile - # Do `set' in a subshell so we don't clobber the current shell's - # arguments. Must try -L first in case configure is actually a - # symlink; some systems play weird games with the mod time of symlinks - # (eg FreeBSD returns the mod time of the symlink's containing - # directory). - if ( - set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` - if test "[$]*" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftestfile` - fi - if test "[$]*" != "X $srcdir/configure conftestfile" \ - && test "[$]*" != "X conftestfile $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken - alias in your environment]) - fi - - test "[$]2" = conftestfile - ) - then - # Ok. - : - else - AC_MSG_ERROR([newly created file is older than distributed files! - Check your system clock]) - fi - rm -f conftest* - AC_MSG_RESULT(yes)]) - - dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY) - dnl The program must properly implement --version. - AC_DEFUN(AM_MISSING_PROG, - [AC_MSG_CHECKING(for working $2) - # Run test in a subshell; some versions of sh will print an error if - # an executable is not found, even if stderr is redirected. - # Redirect stdin to placate older versions of autoconf. Sigh. - if ($2 --version) < /dev/null > /dev/null 2>&1; then - $1=$2 - AC_MSG_RESULT(found) - else - $1="$3/missing $2" - AC_MSG_RESULT(missing) - fi - AC_SUBST($1)]) - --- 0 ---- Index: gmp-2.0.2-ssh-2/config.h.in =================================================================== RCS file: config.h.in diff -N config.h.in *** /tmp/cvs09952bh Mon Nov 15 13:15:46 1999 --- /dev/null Mon Nov 15 13:08:10 1999 *************** *** 1,44 **** - /* config.h.in. Generated automatically from configure.in by autoheader. */ - - /* Define if using alloca.c. */ - #undef C_ALLOCA - - /* Define to empty if the keyword does not work. */ - #undef const - - /* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems. - This function is required for alloca.c support on those systems. */ - #undef CRAY_STACKSEG_END - - /* Define if you have alloca, as a function or macro. */ - #undef HAVE_ALLOCA - - /* Define if you have and it should be used (not on Ultrix). */ - #undef HAVE_ALLOCA_H - - /* Define as __inline if that's what the C compiler calls it. */ - #undef inline - - /* If using the C implementation of alloca, define if you know the - direction of stack growth for your system; otherwise it will be - automatically deduced at run-time. - STACK_DIRECTION > 0 => grows toward higher addresses - STACK_DIRECTION < 0 => grows toward lower addresses - STACK_DIRECTION = 0 => direction of growth unknown - */ - #undef STACK_DIRECTION - - /* Define if you have the ANSI C header files. */ - #undef STDC_HEADERS - - /* Define this on x86 if align directive uses old syntax. */ - #undef X86_BROKEN_ALIGN - - /* Define this if an underscore gets prepended to external C names. */ - #undef C_UNDERSCORE - - /* Define this to disable assembly code in longlong.h. */ - #undef NO_ASM - - /* The number of bytes in a int. */ - #undef SIZEOF_INT --- 0 ---- Index: gmp-2.0.2-ssh-2/config.sub =================================================================== RCS file: /cvs/misc/ssh/gmp-2.0.2-ssh-2/config.sub,v retrieving revision 1.1.1.2 retrieving revision 1.3 diff -c -c -r1.1.1.2 -r1.3 *** gmp-2.0.2-ssh-2/config.sub 1999/10/22 17:07:05 1.1.1.2 --- gmp-2.0.2-ssh-2/config.sub 1999/10/25 20:28:33 1.3 *************** *** 665,670 **** --- 665,679 ---- sun3 | sun3-*) basic_machine=m68k-sun ;; + sun3.68881 | sun3.68881-*) + basic_machine=m68k.68881-sun + ;; + sun3.soft | sun3.soft-*) + basic_machine=m68k.soft-sun + ;; + sun3.fpa | sun3.fpa-*) + basic_machine=m68k.fpa-sun + ;; sun4) basic_machine=sparc-sun ;; Index: gmp-2.0.2-ssh-2/configure =================================================================== RCS file: configure diff -N configure *** /tmp/cvs09952bk Mon Nov 15 13:15:46 1999 --- /dev/null Mon Nov 15 13:08:10 1999 *************** *** 1,2674 **** - #! /bin/sh - - # Guess values for system-dependent variables and create Makefiles. - # Generated automatically using autoconf version 2.12 - # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. - # - # This configure script is free software; the Free Software Foundation - # gives unlimited permission to copy, distribute and modify it. - - # Defaults: - ac_help= - ac_default_prefix=/usr/local - # Any additions from configure.in: - ac_help="$ac_help - --disable-asm Disable assembly language optimizations. " - - # Initialize some variables set by options. - # The variables have the same names as the options, with - # dashes changed to underlines. - build=NONE - cache_file=./config.cache - exec_prefix=NONE - host=NONE - no_create= - nonopt=NONE - no_recursion= - prefix=NONE - program_prefix=NONE - program_suffix=NONE - program_transform_name=s,x,x, - silent= - site= - srcdir= - target=NONE - verbose= - x_includes=NONE - x_libraries=NONE - bindir='${exec_prefix}/bin' - sbindir='${exec_prefix}/sbin' - libexecdir='${exec_prefix}/libexec' - datadir='${prefix}/share' - sysconfdir='${prefix}/etc' - sharedstatedir='${prefix}/com' - localstatedir='${prefix}/var' - libdir='${exec_prefix}/lib' - includedir='${prefix}/include' - oldincludedir='/usr/include' - infodir='${prefix}/info' - mandir='${prefix}/man' - - # Initialize some other variables. - subdirs= - MFLAGS= MAKEFLAGS= - # Maximum number of lines to put in a shell here document. - ac_max_here_lines=12 - - ac_prev= - for ac_option - do - - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval "$ac_prev=\$ac_option" - ac_prev= - continue - fi - - case "$ac_option" in - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; - *) ac_optarg= ;; - esac - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case "$ac_option" in - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir="$ac_optarg" ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build="$ac_optarg" ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file="$ac_optarg" ;; - - -datadir | --datadir | --datadi | --datad | --data | --dat | --da) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ - | --da=*) - datadir="$ac_optarg" ;; - - -disable-* | --disable-*) - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - eval "enable_${ac_feature}=no" ;; - - -enable-* | --enable-*) - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "enable_${ac_feature}='$ac_optarg'" ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix="$ac_optarg" ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he) - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat << EOF - Usage: configure [options] [host] - Options: [defaults in brackets after descriptions] - Configuration: - --cache-file=FILE cache test results in FILE - --help print this message - --no-create do not create output files - --quiet, --silent do not print \`checking...' messages - --version print the version of autoconf that created configure - Directory and file names: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [same as prefix] - --bindir=DIR user executables in DIR [EPREFIX/bin] - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] - --libexecdir=DIR program executables in DIR [EPREFIX/libexec] - --datadir=DIR read-only architecture-independent data in DIR - [PREFIX/share] - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data in DIR - [PREFIX/com] - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] - --libdir=DIR object code libraries in DIR [EPREFIX/lib] - --includedir=DIR C header files in DIR [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] - --infodir=DIR info documentation in DIR [PREFIX/info] - --mandir=DIR man documentation in DIR [PREFIX/man] - --srcdir=DIR find the sources in DIR [configure dir or ..] - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM - run sed PROGRAM on installed program names - EOF - cat << EOF - Host type: - --build=BUILD configure for building on BUILD [BUILD=HOST] - --host=HOST configure for HOST [guessed] - --target=TARGET configure for TARGET [TARGET=HOST] - Features and packages: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --x-includes=DIR X include files are in DIR - --x-libraries=DIR X library files are in DIR - EOF - if test -n "$ac_help"; then - echo "--enable and --with options recognized:$ac_help" - fi - exit 0 ;; - - -host | --host | --hos | --ho) - ac_prev=host ;; - -host=* | --host=* | --hos=* | --ho=*) - host="$ac_optarg" ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir="$ac_optarg" ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir="$ac_optarg" ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir="$ac_optarg" ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir="$ac_optarg" ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst \ - | --locals | --local | --loca | --loc | --lo) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* \ - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) - localstatedir="$ac_optarg" ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir="$ac_optarg" ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir="$ac_optarg" ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix="$ac_optarg" ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix="$ac_optarg" ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix="$ac_optarg" ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name="$ac_optarg" ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir="$ac_optarg" ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir="$ac_optarg" ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site="$ac_optarg" ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir="$ac_optarg" ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir="$ac_optarg" ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target="$ac_optarg" ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers) - echo "configure generated by autoconf version 2.12" - exit 0 ;; - - -with-* | --with-*) - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "with_${ac_package}='$ac_optarg'" ;; - - -without-* | --without-*) - ac_package=`echo $ac_option|sed -e 's/-*without-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - eval "with_${ac_package}=no" ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes="$ac_optarg" ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries="$ac_optarg" ;; - - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } - ;; - - *) - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then - echo "configure: warning: $ac_option: invalid host type" 1>&2 - fi - if test "x$nonopt" != xNONE; then - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } - fi - nonopt="$ac_option" - ;; - - esac - done - - if test -n "$ac_prev"; then - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } - fi - - trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - - # File descriptor usage: - # 0 standard input - # 1 file creation - # 2 errors and warnings - # 3 some systems may open it to /dev/tty - # 4 used on the Kubota Titan - # 6 checking for... messages and results - # 5 compiler messages saved in config.log - if test "$silent" = yes; then - exec 6>/dev/null - else - exec 6>&1 - fi - exec 5>./config.log - - echo "\ - This file contains any messages produced by compilers while - running configure, to aid debugging if configure makes a mistake. - " 1>&5 - - # Strip out --no-create and --no-recursion so they do not pile up. - # Also quote any args containing shell metacharacters. - ac_configure_args= - for ac_arg - do - case "$ac_arg" in - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) ;; - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) - ac_configure_args="$ac_configure_args '$ac_arg'" ;; - *) ac_configure_args="$ac_configure_args $ac_arg" ;; - esac - done - - # NLS nuisances. - # Only set these to C if already set. These must not be set unconditionally - # because not all systems understand e.g. LANG=C (notably SCO). - # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! - # Non-C LC_CTYPE values break the ctype check. - if test "${LANG+set}" = set; then LANG=C; export LANG; fi - if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi - if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi - if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi - - # confdefs.h avoids OS command line length limits that DEFS can exceed. - rm -rf conftest* confdefs.h - # AIX cpp loses on an empty file, so make sure it contains at least a newline. - echo > confdefs.h - - # A filename unique to this package, relative to the directory that - # configure is in, which we can look for to find out if srcdir is correct. - ac_unique_file=gmp-impl.h - - # Find the source files, if location was not specified. - if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then its parent. - ac_prog=$0 - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. - srcdir=$ac_confdir - if test ! -r $srcdir/$ac_unique_file; then - srcdir=.. - fi - else - ac_srcdir_defaulted=no - fi - if test ! -r $srcdir/$ac_unique_file; then - if test "$ac_srcdir_defaulted" = yes; then - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } - else - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } - fi - fi - srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` - - # Prefer explicitly selected file to automatically selected ones. - if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" - fi - fi - for ac_site_file in $CONFIG_SITE; do - if test -r "$ac_site_file"; then - echo "loading site script $ac_site_file" - . "$ac_site_file" - fi - done - - if test -r "$cache_file"; then - echo "loading cache $cache_file" - . $cache_file - else - echo "creating cache $cache_file" - > $cache_file - fi - - ac_ext=c - # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. - ac_cpp='$CPP $CPPFLAGS' - ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' - ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' - cross_compiling=$ac_cv_prog_cc_cross - - if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then - ac_n= ac_c=' - ' ac_t=' ' - else - ac_n=-n ac_c= ac_t= - fi - else - ac_n= ac_c='\c' ac_t= - fi - - - - ac_aux_dir= - for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do - if test -f $ac_dir/install-sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f $ac_dir/install.sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - fi - done - if test -z "$ac_aux_dir"; then - { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } - fi - ac_config_guess=$ac_aux_dir/config.guess - ac_config_sub=$ac_aux_dir/config.sub - ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. - - # Find a good install program. We prefer a C program (faster), - # so one script is as good as another. But avoid the broken or - # incompatible versions: - # SysV /etc/install, /usr/sbin/install - # SunOS /usr/etc/install - # IRIX /sbin/install - # AIX /bin/install - # AFS /usr/afsws/bin/install, which mishandles nonexistent args - # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" - # ./install, which can be erroneously created by make from ./install.sh. - echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 - echo "configure:555: checking for a BSD compatible install" >&5 - if test -z "$INSTALL"; then - if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" - for ac_dir in $PATH; do - # Account for people who put trailing slashes in PATH elements. - case "$ac_dir/" in - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - for ac_prog in ginstall installbsd scoinst install; do - if test -f $ac_dir/$ac_prog; then - if test $ac_prog = install && - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - # OSF/1 installbsd also uses dspmsg, but is usable. - : - else - ac_cv_path_install="$ac_dir/$ac_prog -c" - break 2 - fi - fi - done - ;; - esac - done - IFS="$ac_save_IFS" - - fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL="$ac_cv_path_install" - else - # As a last resort, use the slow shell script. We don't cache a - # path for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the path is relative. - INSTALL="$ac_install_sh" - fi - fi - echo "$ac_t""$INSTALL" 1>&6 - - # Use test -z because SunOS4 sh mishandles braces in ${var-val}. - # It thinks the first close brace ends the variable substitution. - test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - - test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - - - test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' - - echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 - echo "configure:608: checking whether build environment is sane" >&5 - # Just in case - sleep 1 - echo timestamp > conftestfile - # Do `set' in a subshell so we don't clobber the current shell's - # arguments. Must try -L first in case configure is actually a - # symlink; some systems play weird games with the mod time of symlinks - # (eg FreeBSD returns the mod time of the symlink's containing - # directory). - if ( - set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` - if test "$*" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftestfile` - fi - if test "$*" != "X $srcdir/configure conftestfile" \ - && test "$*" != "X conftestfile $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - { echo "configure: error: ls -t appears to fail. Make sure there is not a broken - alias in your environment" 1>&2; exit 1; } - fi - - test "$2" = conftestfile - ) - then - # Ok. - : - else - { echo "configure: error: newly created file is older than distributed files! - Check your system clock" 1>&2; exit 1; } - fi - rm -f conftest* - echo "$ac_t""yes" 1>&6 - if test "$program_transform_name" = s,x,x,; then - program_transform_name= - else - # Double any \ or $. echo might interpret backslashes. - cat <<\EOF_SED > conftestsed - s,\\,\\\\,g; s,\$,$$,g - EOF_SED - program_transform_name="`echo $program_transform_name|sed -f conftestsed`" - rm -f conftestsed - fi - test "$program_prefix" != NONE && - program_transform_name="s,^,${program_prefix},; $program_transform_name" - # Use a double $ so make ignores it. - test "$program_suffix" != NONE && - program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" - - # sed with no file args requires a program. - test "$program_transform_name" = "" && program_transform_name="s,x,x," - - echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 - echo "configure:665: checking whether ${MAKE-make} sets \${MAKE}" >&5 - set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` - if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftestmake <<\EOF - all: - @echo 'ac_maketemp="${MAKE}"' - EOF - # GNU make sometimes prints "make[1]: Entering...", which would confuse us. - eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` - if test -n "$ac_maketemp"; then - eval ac_cv_prog_make_${ac_make}_set=yes - else - eval ac_cv_prog_make_${ac_make}_set=no - fi - rm -f conftestmake - fi - if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then - echo "$ac_t""yes" 1>&6 - SET_MAKE= - else - echo "$ac_t""no" 1>&6 - SET_MAKE="MAKE=${MAKE-make}" - fi - - - PACKAGE=gmp - - VERSION=`grep gmp_version $srcdir/version.c | sed 's/.*"\(.*\)".*/\1/'` - - if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then - { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } - fi - cat >> confdefs.h <> confdefs.h <&6 - echo "configure:711: checking for working aclocal" >&5 - # Run test in a subshell; some versions of sh will print an error if - # an executable is not found, even if stderr is redirected. - # Redirect stdin to placate older versions of autoconf. Sigh. - if (aclocal --version) < /dev/null > /dev/null 2>&1; then - ACLOCAL=aclocal - echo "$ac_t""found" 1>&6 - else - ACLOCAL="$missing_dir/missing aclocal" - echo "$ac_t""missing" 1>&6 - fi - - echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 - echo "configure:724: checking for working autoconf" >&5 - # Run test in a subshell; some versions of sh will print an error if - # an executable is not found, even if stderr is redirected. - # Redirect stdin to placate older versions of autoconf. Sigh. - if (autoconf --version) < /dev/null > /dev/null 2>&1; then - AUTOCONF=autoconf - echo "$ac_t""found" 1>&6 - else - AUTOCONF="$missing_dir/missing autoconf" - echo "$ac_t""missing" 1>&6 - fi - - echo $ac_n "checking for working automake""... $ac_c" 1>&6 - echo "configure:737: checking for working automake" >&5 - # Run test in a subshell; some versions of sh will print an error if - # an executable is not found, even if stderr is redirected. - # Redirect stdin to placate older versions of autoconf. Sigh. - if (automake --version) < /dev/null > /dev/null 2>&1; then - AUTOMAKE=automake - echo "$ac_t""found" 1>&6 - else - AUTOMAKE="$missing_dir/missing automake" - echo "$ac_t""missing" 1>&6 - fi - - echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 - echo "configure:750: checking for working autoheader" >&5 - # Run test in a subshell; some versions of sh will print an error if - # an executable is not found, even if stderr is redirected. - # Redirect stdin to placate older versions of autoconf. Sigh. - if (autoheader --version) < /dev/null > /dev/null 2>&1; then - AUTOHEADER=autoheader - echo "$ac_t""found" 1>&6 - else - AUTOHEADER="$missing_dir/missing autoheader" - echo "$ac_t""missing" 1>&6 - fi - - echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 - echo "configure:763: checking for working makeinfo" >&5 - # Run test in a subshell; some versions of sh will print an error if - # an executable is not found, even if stderr is redirected. - # Redirect stdin to placate older versions of autoconf. Sigh. - if (makeinfo --version) < /dev/null > /dev/null 2>&1; then - MAKEINFO=makeinfo - echo "$ac_t""found" 1>&6 - else - MAKEINFO="$missing_dir/missing makeinfo" - echo "$ac_t""missing" 1>&6 - fi - - - - - # Make sure we can run config.sub. - if $ac_config_sub sun4 >/dev/null 2>&1; then : - else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } - fi - - echo $ac_n "checking host system type""... $ac_c" 1>&6 - echo "configure:784: checking host system type" >&5 - - host_alias=$host - case "$host_alias" in - NONE) - case $nonopt in - NONE) - if host_alias=`$ac_config_guess`; then : - else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } - fi ;; - *) host_alias=$nonopt ;; - esac ;; - esac - - host=`$ac_config_sub $host_alias` - host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` - host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` - host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` - echo "$ac_t""$host" 1>&6 - - echo $ac_n "checking cached information""... $ac_c" 1>&6 - echo "configure:805: checking cached information" >&5 - hostcheck="$host" - if eval "test \"`echo '$''{'ac_cv_gmp_hostcheck'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_cv_gmp_hostcheck="$hostcheck" - fi - - if test "$ac_cv_gmp_hostcheck" != "$hostcheck"; then - echo "$ac_t""changed" 1>&6 - echo "configure: warning: config.cache exists!" 1>&2 - { echo "configure: error: you must do 'make distclean' first to compile for different host or different parameters." 1>&2; exit 1; } - else - echo "$ac_t""ok" 1>&6 - fi - - # Extract the first word of "gcc", so it can be a program name with args. - set dummy gcc; ac_word=$2 - echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 - echo "configure:824: checking for $ac_word" >&5 - if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. - else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_CC="gcc" - break - fi - done - IFS="$ac_save_ifs" - fi - fi - CC="$ac_cv_prog_CC" - if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 - else - echo "$ac_t""no" 1>&6 - fi - - if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. - set dummy cc; ac_word=$2 - echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 - echo "configure:853: checking for $ac_word" >&5 - if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. - else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" - ac_prog_rejected=no - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - break - fi - done - IFS="$ac_save_ifs" - if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# -gt 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - set dummy "$ac_dir/$ac_word" "$@" - shift - ac_cv_prog_CC="$@" - fi - fi - fi - fi - CC="$ac_cv_prog_CC" - if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 - else - echo "$ac_t""no" 1>&6 - fi - - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } - fi - - echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 - echo "configure:901: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 - - ac_ext=c - # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. - ac_cpp='$CPP $CPPFLAGS' - ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' - ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' - cross_compiling=$ac_cv_prog_cc_cross - - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - ac_cv_prog_cc_works=yes - # If we can't run a trivial program, we are probably using a cross compiler. - if (./conftest; exit) 2>/dev/null; then - ac_cv_prog_cc_cross=no - else - ac_cv_prog_cc_cross=yes - fi - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - ac_cv_prog_cc_works=no - fi - rm -fr conftest* - - echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 - if test $ac_cv_prog_cc_works = no; then - { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } - fi - echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 - echo "configure:935: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 - echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 - cross_compiling=$ac_cv_prog_cc_cross - - echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 - echo "configure:940: checking whether we are using GNU C" >&5 - if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.c <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then - ac_cv_prog_gcc=yes - else - ac_cv_prog_gcc=no - fi - fi - - echo "$ac_t""$ac_cv_prog_gcc" 1>&6 - - if test $ac_cv_prog_gcc = yes; then - GCC=yes - ac_test_CFLAGS="${CFLAGS+set}" - ac_save_CFLAGS="$CFLAGS" - CFLAGS= - echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 - echo "configure:964: checking whether ${CC-cc} accepts -g" >&5 - if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - echo 'void f(){}' > conftest.c - if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then - ac_cv_prog_cc_g=yes - else - ac_cv_prog_cc_g=no - fi - rm -f conftest* - - fi - - echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - elif test $ac_cv_prog_cc_g = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-O2" - fi - else - GCC= - test "${CFLAGS+set}" = set || CFLAGS="-g" - fi - - echo $ac_n "checking for working const""... $ac_c" 1>&6 - echo "configure:992: checking for working const" >&5 - if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext <j = 5; - } - { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ - const int foo = 10; - } - - ; return 0; } - EOF - if { (eval echo configure:1046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_c_const=yes - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_c_const=no - fi - rm -f conftest* - fi - - echo "$ac_t""$ac_cv_c_const" 1>&6 - if test $ac_cv_c_const = no; then - cat >> confdefs.h <<\EOF - #define const - EOF - - fi - - echo $ac_n "checking for inline""... $ac_c" 1>&6 - echo "configure:1067: checking for inline" >&5 - if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_cv_c_inline=no - for ac_kw in inline __inline__ __inline; do - cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - ac_cv_c_inline=$ac_kw; break - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - fi - rm -f conftest* - done - - fi - - echo "$ac_t""$ac_cv_c_inline" 1>&6 - case "$ac_cv_c_inline" in - inline | yes) ;; - no) cat >> confdefs.h <<\EOF - #define inline - EOF - ;; - *) cat >> confdefs.h <&6 - echo "configure:1107: checking how to run the C preprocessor" >&5 - # On Suns, sometimes $CPP names a directory. - if test -n "$CPP" && test -d "$CPP"; then - CPP= - fi - if test -z "$CPP"; then - if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - # This must be in double quotes, not single quotes, because CPP may get - # substituted into the Makefile and "${CC-cc}" will confuse make. - CPP="${CC-cc} -E" - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. - cat > conftest.$ac_ext < - Syntax Error - EOF - ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" - { (eval echo configure:1128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } - ac_err=`grep -v '^ *+' conftest.out` - if test -z "$ac_err"; then - : - else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - CPP="${CC-cc} -E -traditional-cpp" - cat > conftest.$ac_ext < - Syntax Error - EOF - ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" - { (eval echo configure:1145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } - ac_err=`grep -v '^ *+' conftest.out` - if test -z "$ac_err"; then - : - else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - CPP=/lib/cpp - fi - rm -f conftest* - fi - rm -f conftest* - ac_cv_prog_CPP="$CPP" - fi - CPP="$ac_cv_prog_CPP" - else - ac_cv_prog_CPP="$CPP" - fi - echo "$ac_t""$CPP" 1>&6 - - echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 - echo "configure:1168: checking for ANSI C header files" >&5 - if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext < - #include - #include - #include - EOF - ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" - { (eval echo configure:1181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } - ac_err=`grep -v '^ *+' conftest.out` - if test -z "$ac_err"; then - rm -rf conftest* - ac_cv_header_stdc=yes - else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_header_stdc=no - fi - rm -f conftest* - - if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. - cat > conftest.$ac_ext < - EOF - if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "memchr" >/dev/null 2>&1; then - : - else - rm -rf conftest* - ac_cv_header_stdc=no - fi - rm -f conftest* - - fi - - if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. - cat > conftest.$ac_ext < - EOF - if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "free" >/dev/null 2>&1; then - : - else - rm -rf conftest* - ac_cv_header_stdc=no - fi - rm -f conftest* - - fi - - if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. - if test "$cross_compiling" = yes; then - : - else - cat > conftest.$ac_ext < - #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') - #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) - #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) - int main () { int i; for (i = 0; i < 256; i++) - if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); - exit (0); } - - EOF - if { (eval echo configure:1248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null - then - : - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_header_stdc=no - fi - rm -fr conftest* - fi - - fi - fi - - echo "$ac_t""$ac_cv_header_stdc" 1>&6 - if test $ac_cv_header_stdc = yes; then - cat >> confdefs.h <<\EOF - #define STDC_HEADERS 1 - EOF - - fi - - echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 - echo "configure:1272: checking whether ln -s works" >&5 - if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - rm -f conftestdata - if ln -s X conftestdata 2>/dev/null - then - rm -f conftestdata - ac_cv_prog_LN_S="ln -s" - else - ac_cv_prog_LN_S=ln - fi - fi - LN_S="$ac_cv_prog_LN_S" - if test "$ac_cv_prog_LN_S" = "ln -s"; then - echo "$ac_t""yes" 1>&6 - else - echo "$ac_t""no" 1>&6 - fi - - # Extract the first word of "ranlib", so it can be a program name with args. - set dummy ranlib; ac_word=$2 - echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 - echo "configure:1295: checking for $ac_word" >&5 - if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. - else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_RANLIB="ranlib" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" - fi - fi - RANLIB="$ac_cv_prog_RANLIB" - if test -n "$RANLIB"; then - echo "$ac_t""$RANLIB" 1>&6 - else - echo "$ac_t""no" 1>&6 - fi - - echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 - echo "configure:1322: checking whether ${MAKE-make} sets \${MAKE}" >&5 - set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` - if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftestmake <<\EOF - all: - @echo 'ac_maketemp="${MAKE}"' - EOF - # GNU make sometimes prints "make[1]: Entering...", which would confuse us. - eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` - if test -n "$ac_maketemp"; then - eval ac_cv_prog_make_${ac_make}_set=yes - else - eval ac_cv_prog_make_${ac_make}_set=no - fi - rm -f conftestmake - fi - if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then - echo "$ac_t""yes" 1>&6 - SET_MAKE= - else - echo "$ac_t""no" 1>&6 - SET_MAKE="MAKE=${MAKE-make}" - fi - - # Find a good install program. We prefer a C program (faster), - # so one script is as good as another. But avoid the broken or - # incompatible versions: - # SysV /etc/install, /usr/sbin/install - # SunOS /usr/etc/install - # IRIX /sbin/install - # AIX /bin/install - # AFS /usr/afsws/bin/install, which mishandles nonexistent args - # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" - # ./install, which can be erroneously created by make from ./install.sh. - echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 - echo "configure:1359: checking for a BSD compatible install" >&5 - if test -z "$INSTALL"; then - if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" - for ac_dir in $PATH; do - # Account for people who put trailing slashes in PATH elements. - case "$ac_dir/" in - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - for ac_prog in ginstall installbsd scoinst install; do - if test -f $ac_dir/$ac_prog; then - if test $ac_prog = install && - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - # OSF/1 installbsd also uses dspmsg, but is usable. - : - else - ac_cv_path_install="$ac_dir/$ac_prog -c" - break 2 - fi - fi - done - ;; - esac - done - IFS="$ac_save_IFS" - - fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL="$ac_cv_path_install" - else - # As a last resort, use the slow shell script. We don't cache a - # path for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the path is relative. - INSTALL="$ac_install_sh" - fi - fi - echo "$ac_t""$INSTALL" 1>&6 - - # Use test -z because SunOS4 sh mishandles braces in ${var-val}. - # It thinks the first close brace ends the variable substitution. - test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - - test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - - for ac_func in random - do - echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 - echo "configure:1411: checking for $ac_func" >&5 - if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext < - /* Override any gcc2 internal prototype to avoid an error. */ - /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ - char $ac_func(); - - int main() { - - /* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ - #if defined (__stub_$ac_func) || defined (__stub___$ac_func) - choke me - #else - $ac_func(); - #endif - - ; return 0; } - EOF - if { (eval echo configure:1439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" - fi - rm -f conftest* - fi - - if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 - LIBOBJS="$LIBOBJS ${ac_func}.o" - fi - done - - - if test "$program_transform_name" = s,x,x,; then - program_transform_name= - else - # Double any \ or $. echo might interpret backslashes. - cat <<\EOF_SED > conftestsed - s,\\,\\\\,g; s,\$,$$,g - EOF_SED - program_transform_name="`echo $program_transform_name|sed -f conftestsed`" - rm -f conftestsed - fi - test "$program_prefix" != NONE && - program_transform_name="s,^,${program_prefix},; $program_transform_name" - # Use a double $ so make ignores it. - test "$program_suffix" != NONE && - program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" - - # sed with no file args requires a program. - test "$program_transform_name" = "" && program_transform_name="s,x,x," - - echo $ac_n "checking size of int""... $ac_c" 1>&6 - echo "configure:1485: checking size of int" >&5 - if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - if test "$cross_compiling" = yes; then - ac_cv_sizeof_int=4 - else - cat > conftest.$ac_ext < - main() - { - FILE *f=fopen("conftestval", "w"); - if (!f) exit(1); - fprintf(f, "%d\n", sizeof(int)); - exit(0); - } - EOF - if { (eval echo configure:1504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null - then - ac_cv_sizeof_int=`cat conftestval` - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_sizeof_int=0 - fi - rm -fr conftest* - fi - - fi - echo "$ac_t""$ac_cv_sizeof_int" 1>&6 - cat >> confdefs.h <&6 - echo "configure:1526: checking for working alloca.h" >&5 - if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext < - int main() { - char *p = alloca(2 * sizeof(int)); - ; return 0; } - EOF - if { (eval echo configure:1538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - ac_cv_header_alloca_h=yes - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_header_alloca_h=no - fi - rm -f conftest* - fi - - echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 - if test $ac_cv_header_alloca_h = yes; then - cat >> confdefs.h <<\EOF - #define HAVE_ALLOCA_H 1 - EOF - - fi - - echo $ac_n "checking for alloca""... $ac_c" 1>&6 - echo "configure:1559: checking for alloca" >&5 - if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext < - # else - # ifdef _AIX - #pragma alloca - # else - # ifndef alloca /* predefined by HP cc +Olibcalls */ - char *alloca (); - # endif - # endif - # endif - #endif - - int main() { - char *p = (char *) alloca(1); - ; return 0; } - EOF - if { (eval echo configure:1587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - ac_cv_func_alloca_works=yes - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - ac_cv_func_alloca_works=no - fi - rm -f conftest* - fi - - echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 - if test $ac_cv_func_alloca_works = yes; then - cat >> confdefs.h <<\EOF - #define HAVE_ALLOCA 1 - EOF - - fi - - if test $ac_cv_func_alloca_works = no; then - # The SVR3 libPW and SVR4 libucb both contain incompatible functions - # that cause trouble. Some versions do not even contain alloca or - # contain a buggy version. If you still want to use their alloca, - # use ar to extract alloca.o from them instead of compiling alloca.c. - ALLOCA=alloca.o - cat >> confdefs.h <<\EOF - #define C_ALLOCA 1 - EOF - - - echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 - echo "configure:1619: checking whether alloca needs Cray hooks" >&5 - if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext <&5 | - egrep "webecray" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_os_cray=yes - else - rm -rf conftest* - ac_cv_os_cray=no - fi - rm -f conftest* - - fi - - echo "$ac_t""$ac_cv_os_cray" 1>&6 - if test $ac_cv_os_cray = yes; then - for ac_func in _getb67 GETB67 getb67; do - echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 - echo "configure:1649: checking for $ac_func" >&5 - if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - cat > conftest.$ac_ext < - /* Override any gcc2 internal prototype to avoid an error. */ - /* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ - char $ac_func(); - - int main() { - - /* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ - #if defined (__stub_$ac_func) || defined (__stub___$ac_func) - choke me - #else - $ac_func(); - #endif - - ; return 0; } - EOF - if { (eval echo configure:1677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" - fi - rm -f conftest* - fi - - if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <&6 - fi - - done - fi - - echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 - echo "configure:1704: checking stack direction for C alloca" >&5 - if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - if test "$cross_compiling" = yes; then - ac_cv_c_stack_direction=0 - else - cat > conftest.$ac_ext < addr) ? 1 : -1; - } - main () - { - exit (find_stack_direction() < 0); - } - EOF - if { (eval echo configure:1731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null - then - ac_cv_c_stack_direction=1 - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -fr conftest* - ac_cv_c_stack_direction=-1 - fi - rm -fr conftest* - fi - - fi - - echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 - cat >> confdefs.h <&6 - echo "configure:1780: checking whether assembler understands +DA1.1 option" >&5 - OLD_CFLAGS=$CFLAGS - CFLAGS="$CFLAGS -Wa,+DA1.1" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - echo "$ac_t""yes" 1>&6 - SFLAGS="-Wa,+DA1.1" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - echo "$ac_t""no" 1>&6 - fi - rm -f conftest* - CFLAGS=$OLD_CFLAGS - - ;; - hppa1.0*-*-*) - path="hppa" - extra_functions="udiv_qrnnd" - ;; - hppa*-*-*) # assume pa7100 - path="hppa/hppa1_1/pa7100 hppa/hppa1_1 hppa" - extra_functions="udiv_qrnnd" - echo $ac_n "checking whether assembler understands +DA1.1 option""... $ac_c" 1>&6 - echo "configure:1813: checking whether assembler understands +DA1.1 option" >&5 - OLD_CFLAGS=$CFLAGS - CFLAGS="$CFLAGS -Wa,+DA1.1" - cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then - rm -rf conftest* - echo "$ac_t""yes" 1>&6 - SFLAGS="-Wa,+DA1.1" - else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - echo "$ac_t""no" 1>&6 - fi - rm -f conftest* - CFLAGS=$OLD_CFLAGS - - ;; - cray2-cray-unicos* | [xy]mp-cray-unicos* | [ctj]90-cray-unicos* | t3e-*-*) - path="cray" - ;; - alphaev5-*-*) - path="alpha/ev5 alpha" - extra_functions="udiv_qrnnd" - ;; - alpha*-*-*) - path="alpha" - extra_functions="udiv_qrnnd" - ;; - am29000*-*-*) - path="am29000" - ;; - a29k*-*-*) - path="am29000" - ;; - i[3456]86*-*-*elf | pentium-*-*elf) # 386/486 running BSD or Linux with ELF - path="x86" - syntax_alternatives="$syntax_alternatives ELF_SYNTAX BSD_SYNTAX INTEL_SYNTAX" - ;; - i[34]86*-*-linuxaout* | i[34]86*-*-linuxoldld* | \ - i[34]86*-*-*bsd*) # 386/486 running BSD or Linux with a.out - path="x86" - x86_broken_align=yes - syntax_alternatives="$syntax_alternatives BSD_SYNTAX" - ;; - i[56]86*-*-linuxaout* | pentium-*-linuxaout* | pentiumpro-*-linuxaout* | \ - i[56]86*-*-linuxoldld* | pentium-*-linuxoldld* | pentiumpro-*-linuxoldld* | \ - i[56]86*-*-*bsd* | pentium-*-*bsd* | pentiumpro-*-*bsd*) - path="x86/pentium x86" - x86_broken_align=yes - syntax_alternatives="$syntax_alternatives BSD_SYNTAX" - ;; - i[34]86*-*-*) - path="x86" - syntax_alternatives="$syntax_alternatives ELF_SYNTAX BSD_SYNTAX INTEL_SYNTAX" - ;; - i[56]86*-*-* | pentium-*-* | pentiumpro-*-*) - path="x86/pentium x86" - syntax_alternatives="$syntax_alternatives ELF_SYNTAX BSD_SYNTAX INTEL_SYNTAX" - ;; - - # Motorola 68k configurations. Let m68k mean 68020-68040. - # mc68000 or mc68060 configurations need to be specified explicitly - m680[234]0*-*-linuxaout* | m68k*-*-linuxaout*) - path="m68k/mc68020 m68k" - syntax_alternatives="$syntax_alternatives MIT_SYNTAX" - ;; - m68060*-*-linuxaout*) - path="m68k" - syntax_alternatives="$syntax_alternatives MIT_SYNTAX" - ;; - m680[234]0*-*-linux* | m68k*-*-linux*) - path="m68k/mc68020 m68k" - syntax_alternatives="$syntax_alternatives ELF_SYNTAX" - ;; - m68060*-*-linux*) - path="m68k" - syntax_alternatives="$syntax_alternatives ELF_SYNTAX" - ;; - m68000*-*-* | m68060*-*-*) - path="m68k/mc68000" - syntax_alternatives="$syntax_alternatives MIT_SYNTAX" - ;; - m680[234]0*-*-* | m68k*-*-*) - path="m68k/mc68020 m68k" - syntax_alternatives="$syntax_alternatives MIT_SYNTAX ELF_SYNTAX SONY_SYNTAX MOTOROLA_SYNTAX" - ;; - - i960*-*-*) - path="i960" - ;; - m88k*-*-* | m88k*-*-*) - path="m88k" - ;; - m88110*-*-*) - path="m88k/mc88110 m88k" - ;; - ns32k*-*-*) - path="n32k" - ;; - - # Power/PowerPC platforms - ppc601-*-aix[456789]* | ppc601-*-aix3.2.[456789]) - path="power powerpc32" - SFLAGS="-Wa,-mppc" - ;; - ppc601-*-*) - path="power powerpc32" - ;; - ppc620-*-* | powerpc64*-*-*) - path="powerpc64" - ;; - ppc60[234]*-*-aix[456789]* | ppc60[234]*-*-aix3.2.[456789] | \ - powerpc*-*-aix[456789]* | powerpc*-*-aix3.2.[456789]) - path="powerpc32" - SFLAGS="-Wa,-mppc" - ;; - ppc60[234]*-*-* | powerpc*-*-*) - path="powerpc32" - ;; - rs6000-*-aix[456789]* | rs6000-*-aix3.2.[456789]*) - path="power" - extra_functions="udiv_w_sdiv" - SFLAGS="-Wa,-mpwr" - ;; - rs6000-*-* | power-*-* | power2-*-*) - path="power" - extra_functions="udiv_w_sdiv" - ;; - - pyramid-*-*) - path="pyr" - ;; - sh-*-*) - path="sh" - ;; - sh2-*-*) - path="sh/sh2 sh" - ;; - mips[34]*-*-*) - path="mips3" - ;; - mips*-*-irix6*) - path="mips3" - ;; - mips*-*-*) - path="mips2" - ;; - vax*-*-*) - path="vax" - extra_functions="udiv_w_sdiv" - ;; - z8000x*-*-*) - path="z8000x" - extra_functions="udiv_w_sdiv" - ;; - z8000*-*-*) - path="z8000" - extra_functions="udiv_w_sdiv" - ;; - clipper*-*-*) - path="clipper" - ;; - *-*-*) - ;; - esac - - # System specific settings - - case "$host" in - *-*-solaris*) - # If not using gcc add -Xs option to cpp so we can process assembler files - if test -z "$GCC"; then - CPP="$CPP -Xs" - fi - esac - - # Add gcc-specific flags if using gcc - if test -n "$GCC"; then - CFLAGS="$CFLAGS $GCC_CFLAGS" - fi - - # Check X86_BROKEN_ALIGN - if test -n "$x86_broken_align"; then - cat >> confdefs.h <<\EOF - #define X86_BROKEN_ALIGN 1 - EOF - - fi - - # Make sure nm is in PATH, because it is needed by the next test. - # Extract the first word of "nm", so it can be a program name with args. - set dummy nm; ac_word=$2 - echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 - echo "configure:2014: checking for $ac_word" >&5 - if eval "test \"`echo '$''{'ac_cv_path_NM_PATH'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - case "$NM_PATH" in - /*) - ac_cv_path_NM_PATH="$NM_PATH" # Let the user override the test with a path. - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_NM_PATH="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_path_NM_PATH" && ac_cv_path_NM_PATH="no-nm" - ;; - esac - fi - NM_PATH="$ac_cv_path_NM_PATH" - if test -n "$NM_PATH"; then - echo "$ac_t""$NM_PATH" 1>&6 - else - echo "$ac_t""no" 1>&6 - fi - - if test "$NM_PATH" = "no-nm"; then - { echo "configure: error: "The 'nm' program could not be found in PATH."" 1>&2; exit 1; } - fi - - # Check whether an underscore gets prepended in names - echo $ac_n "checking whether underscore gets prepended in C function names""... $ac_c" 1>&6 - echo "configure:2049: checking whether underscore gets prepended in C function names" >&5 - if eval "test \"`echo '$''{'ac_cv_c_underscore'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - - cat > conftest.c </dev/null - if test -n "`nm conftest.o | grep _foobarzappafunction`" 2>/dev/null; then - ac_cv_c_underscore=yes - elif test -n "`nm conftest.o | grep foobarzappafunction`" 2>/dev/null; then - ac_cv_c_underscore=no - else - echo "configure: warning: CHECK FAILED" 1>&2 - path="" - fi - rm -f conftest.o conftest.c - fi - - echo "$ac_t""$ac_cv_c_underscore" 1>&6 - if test "$ac_cv_c_underscore" = "yes"; then - cat >> confdefs.h <<\EOF - #define C_UNDERSCORE 1 - EOF - - echo "Underscores are prepended in function names." >&5 - else - echo "Underscores are not prepended in function names." >&5 - fi - - # Check for asm files - functions="${extra_functions} inlines add_n addmul_1 cmp divmod_1 - divrem divrem_1 dump lshift mod_1 mul mul_1 mul_n random2 rshift sqrtrem - sub_n submul_1 get_str set_str scan0 scan1 popcount hamdist gcd_1 - pre_mod_1 perfsqr bdivmod gcd gcdext" - path="$path generic" - if test '!' -d mpn; then mkdir mpn; fi - - echo $ac_n "checking asm code""... $ac_c" 1>&6 - echo "configure:2089: checking asm code" >&5 - if eval "test \"`echo '$''{'ac_cv_gmp_asm_status'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - - asm_status="" - asm_files="" - asm_links="" - asm_objs="" - remaining_functions="" - for fn in $functions ; do - found=no - for dir in $path ; do - if test -f $srcdir/mpn/$dir/$fn.S ; then - if test -f mpn/../$srcdir/mpn/$dir/$fn.S; then - asm_files="$asm_files ../$srcdir/mpn/$dir/$fn.S" - else - asm_files="$asm_files $srcdir/mpn/$dir/$fn.S" - fi - asm_links="$asm_links $fn.S" - asm_objs="$asm_objs $fn.o" - found=yes - break - elif test -f $srcdir/mpn/$dir/$fn.s ; then - if test -f mpn/../$srcdir/mpn/$dir/$fn.s; then - asm_files="$asm_files ../$srcdir/mpn/$dir/$fn.s" - else - asm_files="$asm_files $srcdir/mpn/$dir/$fn.s" - fi - asm_links="$asm_links $fn.s" - asm_objs="$asm_objs $fn.o" - found=yes - break - fi - done - if test "$found" = "no"; then - remaining_functions="$remaining_functions $fn" - fi - done - - # Check whether --enable-asm or --disable-asm was given. - if test "${enable_asm+set}" = set; then - enableval="$enable_asm" - case "$enableval" in - no) - cat >> confdefs.h <<\EOF - #define NO_ASM 1 - EOF - - asm_files="" - asm_objs="" - asm_links="" - asm_status="disabled" - path="generic" - remaining_functions="$functions" - ;; - esac - fi - - - if test -z "$asm_files"; then - if test -z "$asm_status"; then - asm_status="no" - fi - else - # found asm files; validate them and determine correct syntax - - syntax_h="" - for dir in $path; do - if test -f $srcdir/mpn/$dir/syntax.h; then - if test -f mpn/../$srcdir/mpn/$dir/syntax.h; then - syntax_h="../$srcdir/mpn/$dir/syntax.h" - else - syntax_h="$srcdir/mpn/$dir/syntax.h" - fi - break - fi - done - - syntax_alternatives="$syntax_alternatives default" - - echo "asm_files: $asm_files" >&5 - echo "asm_links: $asm_links" >&5 - echo "asm_objs: $asm_objs" >&5 - echo "syntax_alternatives: $syntax_alternatives" >&5 - - (cd mpn; rm -f $asm_links; $LN_S $asm_files .) - - asm_ok=no - for asm_syntax in $syntax_alternatives; do - if test "$asm_syntax" = "default"; then - rm -f mpn/asm-syntax.h - else - echo "#define $asm_syntax" >mpn/asm-syntax.h - echo "#include \"$syntax_h\"" >>mpn/asm-syntax.h - fi - echo "testing syntax $asm_syntax" >&5 - - # Check if the found asm files will compile - asm_ok=yes - for file in $asm_links; do - s=`echo $file | sed 's/[sS]$/s/'` - o=`echo $file | sed 's/[sS]$/o/'` - if test -d mpn/../$srcdir/mpn; then - mpnincl="../$srcdir/mpn" - else - mpnincl="$srcdir/mpn" - fi - if test "$s" = "$file"; then - echo "${CC-cc} -c -I$mpnincl -I. -I.. $CFLAGS $SFLAGS $file" >&5 - (cd mpn; ${CC-cc} -c -I$mpnincl -I. -I.. $CFLAGS $SFLAGS $file >../conftemp.$$ 2>&1 ) - else - echo "$CPP $SFLAGS -I$mpnincl -I. -I.. $CFLAGS $file | grep -v '^#' >tmp-$s; ${CC-cc} -c $CFLAGS $SFLAGS tmp-$s; rm -f tmp-$s; mv tmp-$o $o" >&5 - (cd mpn; $CPP $SFLAGS -I$mpnincl -I. -I.. $CFLAGS $file | grep -v '^#' >tmp-$s; ${CC-cc} -c $CFLAGS $SFLAGS tmp-$s; rm -f tmp-$s; mv tmp-$o $o >../conftemp.$$ 2>&1) - fi - if test "$?" != 0 || test -n "`cat conftemp.$$`"; then - asm_ok=no - fi - cat conftemp.$$ >&5 - done - - rm -f conftemp.$$ mpn/asm-syntax.h - if test "$asm_ok" = "yes"; then - asm_status="ok" - echo "Chose $asm_syntax." >&5 - break - fi - done - - (cd mpn; rm -f $asm_objs $asm_links) - if test "$asm_ok" = "no"; then - asm_files="" - asm_objs="" - asm_links="" - asm_status="FAILED" - echo "Asm fails to compile; chose no asm." >&5 - echo "$CC -v" >&5 - $CC -v >&5 2>&5 - echo "$CC -V" >&5 - $CC -V >&5 2>&5 - remaining_functions="$functions" - fi - fi - ac_cv_gmp_asm_status="$asm_status" - - fi - - echo "$ac_t""$ac_cv_gmp_asm_status" 1>&6 - if test "$ac_cv_gmp_asm_status" = "FAILED"; then - echo "configure: warning: Assembly language optimizations failed and were disabled." 1>&2 - echo "configure: warning: Please mail gmp-2.0.2-ssh-2/config.log to ssh-bugs@cs.hut.fi." 1>&2 - fi - - echo $ac_n "checking asm links""... $ac_c" 1>&6 - echo "configure:2243: checking asm links" >&5 - if eval "test \"`echo '$''{'ac_cv_gmp_asm_links'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_cv_gmp_asm_links="$asm_links" - fi - - echo "$ac_t""done" 1>&6 - - echo $ac_n "checking asm sources""... $ac_c" 1>&6 - echo "configure:2253: checking asm sources" >&5 - if eval "test \"`echo '$''{'ac_cv_gmp_asm_files'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_cv_gmp_asm_files="$asm_files" - fi - - echo "$ac_t""done" 1>&6 - - echo $ac_n "checking asm objects""... $ac_c" 1>&6 - echo "configure:2263: checking asm objects" >&5 - if eval "test \"`echo '$''{'ac_cv_gmp_asm_objs'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_cv_gmp_asm_objs="$asm_objs" - fi - - echo "$ac_t""done" 1>&6 - - echo $ac_n "checking asm syntax""... $ac_c" 1>&6 - echo "configure:2273: checking asm syntax" >&5 - if eval "test \"`echo '$''{'ac_cv_gmp_asm_syntax'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_cv_gmp_asm_syntax="$asm_syntax" - fi - - echo "$ac_t""$ac_cv_gmp_asm_syntax" 1>&6 - echo $ac_n "checking asm syntax header""... $ac_c" 1>&6 - echo "configure:2282: checking asm syntax header" >&5 - if eval "test \"`echo '$''{'ac_cv_gmp_asm_syntax_h'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_cv_gmp_asm_syntax_h="$syntax_h" - fi - - echo "$ac_t""$ac_cv_gmp_asm_syntax_h" 1>&6 - - echo $ac_n "checking for gmp-mparam.h""... $ac_c" 1>&6 - echo "configure:2292: checking for gmp-mparam.h" >&5 - if eval "test \"`echo '$''{'ac_cv_gmp_mparam'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - - ac_cv_gmp_mparam="NONE" - for dir in $path; do - if test -f $srcdir/mpn/$dir/gmp-mparam.h; then - if test -f mpn/../$srcdir/mpn/$dir/gmp-mparam.h; then - ac_cv_gmp_mparam="../$srcdir/mpn/$dir/gmp-mparam.h" - else - ac_cv_gmp_mparam="$srcdir/mpn/$dir/gmp-mparam.h" - fi - break - fi - done - if test "$ac_cv_gmp_mparam" = NONE; then - { echo "configure: error: gmp-mparam.h not found" 1>&2; exit 1; } - fi - fi - - echo "$ac_t""$ac_cv_gmp_mparam" 1>&6 - - echo $ac_n "checking other objs""... $ac_c" 1>&6 - echo "configure:2316: checking other objs" >&5 - if eval "test \"`echo '$''{'ac_cv_gmp_other_objs'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - - other_objs="" - other_files="" - other_links="" - for fn in $remaining_functions; do - for dir in $path; do - if test -f $srcdir/mpn/$dir/$fn.c; then - if test -f mpn/../$srcdir/mpn/$dir/$fn.c; then - other_files="$other_files ../$srcdir/mpn/$dir/$fn.c" - else - other_files="$other_files $srcdir/mpn/$dir/$fn.c" - fi - other_links="$other_links $fn.c" - other_objs="$other_objs $fn.o" - break - fi - done - done - ac_cv_gmp_other_objs="$other_objs" - fi - - echo "$ac_t""done" 1>&6 - - echo $ac_n "checking other sources""... $ac_c" 1>&6 - echo "configure:2344: checking other sources" >&5 - if eval "test \"`echo '$''{'ac_cv_gmp_other_files'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_cv_gmp_other_files="$other_files" - fi - - echo "$ac_t""done" 1>&6 - - echo $ac_n "checking other links""... $ac_c" 1>&6 - echo "configure:2354: checking other links" >&5 - if eval "test \"`echo '$''{'ac_cv_gmp_other_links'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_cv_gmp_other_links="$other_links" - fi - - echo "$ac_t""done" 1>&6 - - MPN_DISTCLEANFILES="$ac_cv_gmp_asm_links $ac_cv_gmp_other_links gmp-mparam.h asm-syntax.h conftest.c" - (cd mpn; rm -f $MPN_DISTCLEANFILES) - (cd mpn; $LN_S $ac_cv_gmp_asm_files $ac_cv_gmp_other_files .) - (cd mpn; $LN_S $ac_cv_gmp_mparam .) - - if test "$ac_cv_gmp_asm_syntax" != "default"; then - echo "#define $ac_cv_gmp_asm_syntax" >mpn/asm-syntax.h - echo "#include \"$ac_cv_gmp_asm_syntax_h\"" >>mpn/asm-syntax.h - fi - - MPN_OBJS="$ac_cv_gmp_asm_objs $ac_cv_gmp_other_objs" - - echo $ac_n "checking links to mpz sources in mpbsd""... $ac_c" 1>&6 - echo "configure:2376: checking links to mpz sources in mpbsd" >&5 - mpz_files="add.c cmp.c dmincl.c gcd.c mul.c pow_ui.c powm.c sqrtrem.c sub.c" - if test '!' -d mpbsd; then mkdir mpbsd; fi - for file in $mpz_files; do - rm -f mpbsd/$file - if test -f mpbsd/../$srcdir/mpz/$file; then - (cd mpbsd; $LN_S ../$srcdir/mpz/$file .) - else - (cd mpbsd; $LN_S $srcdir/mpz/$file .) - fi - done - echo "$ac_t""done" 1>&6 - - - - - - - - trap '' 1 2 15 - cat > confcache <<\EOF - # This file is a shell script that caches the results of configure - # tests run on this system so they can be shared between configure - # scripts and configure runs. It is not useful on other systems. - # If it contains results you don't want to keep, you may remove or edit it. - # - # By default, configure uses ./config.cache as the cache file, - # creating it if it does not exist already. You can give configure - # the --cache-file=FILE option to use a different cache file; that is - # what configure does when it calls configure scripts in - # subdirectories, so they share the cache. - # Giving --cache-file=/dev/null disables caching, for debugging configure. - # config.status only pays attention to the cache file if you give it the - # --recheck option to rerun configure. - # - EOF - # The following way of writing the cache mishandles newlines in values, - # but we know of no workaround that is simple, portable, and efficient. - # So, don't put newlines in cache variables' values. - # Ultrix sh set writes to stderr and can't be redirected directly, - # and sets the high bit in the cache file unless we assign to the vars. - (set) 2>&1 | - case `(ac_space=' '; set) 2>&1` in - *ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote substitution - # turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - -e "s/'/'\\\\''/g" \ - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" - ;; - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' - ;; - esac >> confcache - if cmp -s $cache_file confcache; then - : - else - if test -w $cache_file; then - echo "updating cache $cache_file" - cat confcache > $cache_file - else - echo "not updating unwritable cache $cache_file" - fi - fi - rm -f confcache - - trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - - test "x$prefix" = xNONE && prefix=$ac_default_prefix - # Let make expand exec_prefix. - test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - - # Any assignment to VPATH causes Sun make to only execute - # the first set of double-colon rules, so remove it if not needed. - # If there is a colon in the path, we need to keep it. - if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' - fi - - trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 - - # Transform confdefs.h into DEFS. - # Protect against shell expansion while executing Makefile rules. - # Protect against Makefile macro expansion. - cat > conftest.defs <<\EOF - s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g - s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g - s%\[%\\&%g - s%\]%\\&%g - s%\$%$$%g - EOF - DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` - rm -f conftest.defs - - - # Without the "./", some shells look in PATH for config.status. - : ${CONFIG_STATUS=./config.status} - - echo creating $CONFIG_STATUS - rm -f $CONFIG_STATUS - cat > $CONFIG_STATUS </dev/null | sed 1q`: - # - # $0 $ac_configure_args - # - # Compiler output produced by configure, useful for debugging - # configure, is in ./config.log if it exists. - - ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" - for ac_option - do - case "\$ac_option" in - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" - exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; - -version | --version | --versio | --versi | --vers | --ver | --ve | --v) - echo "$CONFIG_STATUS generated by autoconf version 2.12" - exit 0 ;; - -help | --help | --hel | --he | --h) - echo "\$ac_cs_usage"; exit 0 ;; - *) echo "\$ac_cs_usage"; exit 1 ;; - esac - done - - ac_given_srcdir=$srcdir - ac_given_INSTALL="$INSTALL" - - trap 'rm -fr `echo "Makefile demos/Makefile mpbsd/Makefile mpf/Makefile mpf/tests/Makefile mpn/Makefile mpn/tests/Makefile mpq/Makefile mpq/tests/Makefile mpz/Makefile mpz/tests/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 - EOF - cat >> $CONFIG_STATUS < conftest.subs <<\\CEOF - $ac_vpsub - $extrasub - s%@CFLAGS@%$CFLAGS%g - s%@CPPFLAGS@%$CPPFLAGS%g - s%@CXXFLAGS@%$CXXFLAGS%g - s%@DEFS@%$DEFS%g - s%@LDFLAGS@%$LDFLAGS%g - s%@LIBS@%$LIBS%g - s%@exec_prefix@%$exec_prefix%g - s%@prefix@%$prefix%g - s%@program_transform_name@%$program_transform_name%g - s%@bindir@%$bindir%g - s%@sbindir@%$sbindir%g - s%@libexecdir@%$libexecdir%g - s%@datadir@%$datadir%g - s%@sysconfdir@%$sysconfdir%g - s%@sharedstatedir@%$sharedstatedir%g - s%@localstatedir@%$localstatedir%g - s%@libdir@%$libdir%g - s%@includedir@%$includedir%g - s%@oldincludedir@%$oldincludedir%g - s%@infodir@%$infodir%g - s%@mandir@%$mandir%g - s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g - s%@INSTALL_DATA@%$INSTALL_DATA%g - s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g - s%@PACKAGE@%$PACKAGE%g - s%@VERSION@%$VERSION%g - s%@ACLOCAL@%$ACLOCAL%g - s%@AUTOCONF@%$AUTOCONF%g - s%@AUTOMAKE@%$AUTOMAKE%g - s%@AUTOHEADER@%$AUTOHEADER%g - s%@MAKEINFO@%$MAKEINFO%g - s%@SET_MAKE@%$SET_MAKE%g - s%@host@%$host%g - s%@host_alias@%$host_alias%g - s%@host_cpu@%$host_cpu%g - s%@host_vendor@%$host_vendor%g - s%@host_os@%$host_os%g - s%@CC@%$CC%g - s%@CPP@%$CPP%g - s%@LN_S@%$LN_S%g - s%@RANLIB@%$RANLIB%g - s%@LIBOBJS@%$LIBOBJS%g - s%@ALLOCA@%$ALLOCA%g - s%@NM_PATH@%$NM_PATH%g - s%@SFLAGS@%$SFLAGS%g - s%@MPN_DISTCLEANFILES@%$MPN_DISTCLEANFILES%g - s%@MPN_OBJS@%$MPN_OBJS%g - - CEOF - EOF - - cat >> $CONFIG_STATUS <<\EOF - - # Split the substitutions into bite-sized pieces for seds with - # small command number limits, like on Digital OSF/1 and HP-UX. - ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. - ac_file=1 # Number of current file. - ac_beg=1 # First line for current file. - ac_end=$ac_max_sed_cmds # Line after last line for current file. - ac_more_lines=: - ac_sed_cmds="" - while $ac_more_lines; do - if test $ac_beg -gt 1; then - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file - else - sed "${ac_end}q" conftest.subs > conftest.s$ac_file - fi - if test ! -s conftest.s$ac_file; then - ac_more_lines=false - rm -f conftest.s$ac_file - else - if test -z "$ac_sed_cmds"; then - ac_sed_cmds="sed -f conftest.s$ac_file" - else - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" - fi - ac_file=`expr $ac_file + 1` - ac_beg=$ac_end - ac_end=`expr $ac_end + $ac_max_sed_cmds` - fi - done - if test -z "$ac_sed_cmds"; then - ac_sed_cmds=cat - fi - EOF - - cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF - for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case "$ac_file" in - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; - *) ac_file_in="${ac_file}.in" ;; - esac - - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. - - # Remove last slash and all that follows it. Not all systems have dirname. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then - # The file is in a subdirectory. - test ! -d "$ac_dir" && mkdir "$ac_dir" - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" - # A "../" for each directory in $ac_dir_suffix. - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` - else - ac_dir_suffix= ac_dots= - fi - - case "$ac_given_srcdir" in - .) srcdir=. - if test -z "$ac_dots"; then top_srcdir=. - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; - *) # Relative path. - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" - top_srcdir="$ac_dots$ac_given_srcdir" ;; - esac - - case "$ac_given_INSTALL" in - [/$]*) INSTALL="$ac_given_INSTALL" ;; - *) INSTALL="$ac_dots$ac_given_INSTALL" ;; - esac - - echo creating "$ac_file" - rm -f "$ac_file" - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." - case "$ac_file" in - *Makefile*) ac_comsub="1i\\ - # $configure_input" ;; - *) ac_comsub= ;; - esac - - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` - sed -e "$ac_comsub - s%@configure_input@%$configure_input%g - s%@srcdir@%$srcdir%g - s%@top_srcdir@%$top_srcdir%g - s%@INSTALL@%$INSTALL%g - " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file - fi; done - rm -f conftest.s* - - EOF - cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF - - exit 0 - EOF - chmod +x $CONFIG_STATUS - rm -fr confdefs* $ac_clean_files - test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 - --- 0 ---- Index: gmp-2.0.2-ssh-2/gmp.info =================================================================== RCS file: gmp.info diff -N gmp.info *** /tmp/cvs09952bl Mon Nov 15 13:15:46 1999 --- /dev/null Mon Nov 15 13:08:10 1999 *************** *** 1,75 **** - This is Info file gmp.info, produced by Makeinfo version 1.68 from the - input file gmp.texi. - - START-INFO-DIR-ENTRY - * gmp: (gmp.info). GNU Multiple Precision Arithmetic Library. - END-INFO-DIR-ENTRY - - This file documents GNU MP, a library for arbitrary-precision - arithmetic. - - Copyright (C) 1991, 1993, 1994, 1995, 1996 Free Software Foundation, - Inc. - - Permission is granted to make and distribute verbatim copies of this - manual provided the copyright notice and this permission notice are - preserved on all copies. - - Permission is granted to copy and distribute modified versions of - this manual under the conditions for verbatim copying, provided that - the entire resulting derived work is distributed under the terms of a - permission notice identical to this one. - - Permission is granted to copy and distribute translations of this - manual into another language, under the above conditions for modified - versions, except that this permission notice may be stated in a - translation approved by the Foundation. - -  - Indirect: - gmp.info-1: 1026 - gmp.info-2: 50882 - gmp.info-3: 94238 -  - Tag Table: - (Indirect) - Node: Top1026 - Node: Copying2036 - Node: Introduction to MP3736 - Node: Installing MP5665 - Node: MP Basics10228 - Node: Reporting Bugs16516 - Node: Integer Functions18036 - Node: Initializing Integers18643 - Node: Assigning Integers20759 - Node: Simultaneous Integer Init & Assign22034 - Node: Converting Integers23648 - Node: Integer Arithmetic25317 - Node: Comparison Functions36193 - Node: Integer Logic and Bit Fiddling37095 - Node: I/O of Integers39156 - Node: Miscellaneous Integer Functions41637 - Node: Rational Number Functions43307 - Node: Initializing Rationals44602 - Node: Assigning Rationals45772 - Node: Comparing Rationals46735 - Node: Applying Integer Functions48018 - Node: Miscellaneous Rational Functions48836 - Node: Floating-point Functions50882 - Node: Initializing Floats52730 - Node: Assigning Floats55482 - Node: Simultaneous Float Init & Assign57074 - Node: Converting Floats58591 - Node: Float Arithmetic60170 - Node: Float Comparison62079 - Node: I/O of Floats63105 - Node: Miscellaneous Float Functions65221 - Node: Low-level Functions65904 - Node: BSD Compatible Functions82272 - Node: Custom Allocation86608 - Node: Contributors88946 - Node: References90545 - Node: Concept Index91581 - Node: Function Index94238 -  - End Tag Table --- 0 ---- Index: gmp-2.0.2-ssh-2/gmp.info-1 =================================================================== RCS file: gmp.info-1 diff -N gmp.info-1 *** /tmp/cvs09952bm Mon Nov 15 13:15:46 1999 --- /dev/null Mon Nov 15 13:08:10 1999 *************** *** 1,1283 **** - This is Info file gmp.info, produced by Makeinfo version 1.68 from the - input file gmp.texi. - - START-INFO-DIR-ENTRY - * gmp: (gmp.info). GNU Multiple Precision Arithmetic Library. - END-INFO-DIR-ENTRY - - This file documents GNU MP, a library for arbitrary-precision - arithmetic. - - Copyright (C) 1991, 1993, 1994, 1995, 1996 Free Software Foundation, - Inc. - - Permission is granted to make and distribute verbatim copies of this - manual provided the copyright notice and this permission notice are - preserved on all copies. - - Permission is granted to copy and distribute modified versions of - this manual under the conditions for verbatim copying, provided that - the entire resulting derived work is distributed under the terms of a - permission notice identical to this one. - - Permission is granted to copy and distribute translations of this - manual into another language, under the above conditions for modified - versions, except that this permission notice may be stated in a - translation approved by the Foundation. - -  - File: gmp.info, Node: Top, Next: Copying, Prev: (dir), Up: (dir) - - GNU MP - ****** - - This manual documents how to install and use the GNU multiple - precision arithmetic library, version 2.0.2. - - * Menu: - - * Copying:: GMP Copying Conditions (LGPL). - * Introduction to MP:: Brief introduction to GNU MP. - * Installing MP:: How to configure and compile the MP library. - * MP Basics:: What every MP user should now. - * Reporting Bugs:: How to usefully report bugs. - * Integer Functions:: Functions for arithmetic on signed integers. - * Rational Number Functions:: Functions for arithmetic on rational numbers. - * Floating-point Functions:: Functions for arithmetic on floats. - * Low-level Functions:: Fast functions for natural numbers. - * BSD Compatible Functions:: All functions found in BSD MP. - * Custom Allocation:: How to customize the internal allocation. - - * Contributors:: - * References:: - * Concept Index:: - * Function Index:: - -  - File: gmp.info, Node: Copying, Next: Introduction to MP, Prev: Top, Up: Top - - GNU MP Copying Conditions - ************************* - - This library is "free"; this means that everyone is free to use it - and free to redistribute it on a free basis. The library is not in the - public domain; it is copyrighted and there are restrictions on its - distribution, but these restrictions are designed to permit everything - that a good cooperating citizen would want to do. What is not allowed - is to try to prevent others from further sharing any version of this - library that they might get from you. - - Specifically, we want to make sure that you have the right to give - away copies of the library, that you receive source code or else can - get it if you want it, that you can change this library or use pieces - of it in new free programs, and that you know you can do these things. - - To make sure that everyone has such rights, we have to forbid you to - deprive anyone else of these rights. For example, if you distribute - copies of the GNU MP library, you must give the recipients all the - rights that you have. You must make sure that they, too, receive or - can get the source code. And you must tell them their rights. - - Also, for our own protection, we must make certain that everyone - finds out that there is no warranty for the GNU MP library. If it is - modified by someone else and passed on, we want their recipients to - know that what they have is not what we distributed, so that any - problems introduced by others will not reflect on our reputation. - - The precise conditions of the license for the GNU MP library are - found in the Library General Public License that accompany the source - code. - -  - File: gmp.info, Node: Introduction to MP, Next: Installing MP, Prev: Copying, Up: Top - - Introduction to GNU MP - ********************** - - GNU MP is a portable library written in C for arbitrary precision - arithmetic on integers, rational numbers, and floating-point numbers. - It aims to provide the fastest possible arithmetic for all applications - that need higher precision than is directly supported by the basic C - types. - - Many applications use just a few hundred bits of precision; but some - applications may need thousands or even millions of bits. MP is - designed to give good performance for both, by choosing algorithms - based on the sizes of the operands, and by carefully keeping the - overhead at a minimum. - - The speed of MP is achieved by using fullwords as the basic - arithmetic type, by using sophisticated algorithms, by including - carefully optimized assembly code for the most common inner loops for - many different CPUs, and by a general emphasis on speed (as opposed to - simplicity or elegance). - - There is carefully optimized assembly code for these CPUs: DEC - Alpha, Amd 29000, HPPA 1.0 and 1.1, Intel Pentium and generic x86, - Intel i960, Motorola MC68000, MC68020, MC88100, and MC88110, - Motorola/IBM PowerPC, National NS32000, IBM POWER, MIPS R3000, R4000, - SPARCv7, SuperSPARC, generic SPARCv8, and DEC VAX. Some optimizations - also for ARM, Clipper, IBM ROMP (RT), and Pyramid AP/XP. - - This version of MP is released under a more liberal license than - previous versions. It is now permitted to link MP to non-free - programs, as long as MP source code is provided when distributing the - non-free program. - - How to use this Manual - ====================== - - Everyone should read *Note MP Basics::. If you need to install the - library yourself, you need to read *Note Installing MP::, too. - - The rest of the manual can be used for later reference, although it - is probably a good idea to glance through it. - -  - File: gmp.info, Node: Installing MP, Next: MP Basics, Prev: Introduction to MP, Up: Top - - Installing MP - ************* - - To build MP, you first have to configure it for your CPU and - operating system. You need a C compiler, preferably GCC, but any - reasonable compiler should work. And you need a standard Unix `make' - program, plus some other standard Unix utility programs. - - (If you're on an MS-DOS machine, your can build MP using `make.bat'. - It requires that djgpp is installed. It does not require - configuration, nor is `make' needed; `make.bat' both configures and - builds the library.) - - Here are the steps needed to install the library on Unix systems: - - 1. In most cases, `./configure --target=cpu-vendor-os', should work - both for native and cross-compilation. If you get error messages, - your machine might not be supported. - - If you want to compile in a separate object directory, cd to that - directory, and prefix the configure command with the path to the - MP source directory. Not all `make' programs have the necessary - features to support this. In particular, SunOS and Slowaris - `make' have bugs that makes them unable to build from a separate - object directory. Use GNU `make' instead. - - In addition to the standard cpu-vendor-os tuples, MP recognizes - sparc8 and supersparc as valid CPU names. Specifying these CPU - names for relevant systems will improve performance significantly. - - In general, if you want a library that runs as fast as possible, - you should make sure you configure MP for the exact CPU type your - system uses. - - If you have `gcc' in your `PATH', it will be used by default. To - override this, pass `-with-gcc=no' to `configure'. - - 2. `make' - - This will compile MP, and create a library archive file `libgmp.a' - in the working directory. - - 3. `make check' - - This will make sure MP was built correctly. If you get error - messages, please report this to `bug-gmp@prep.ai.mit.edu'. (*Note - Reporting Bugs::, for information on what to include in useful bug - reports.) - - 4. `make install' - - This will copy the file `gmp.h' and `libgmp.a', as well as the info - files, to `/usr/local' (or if you passed the `--prefix' option to - `configure', to the directory given as argument to `--prefix'). - - If you wish to build and install the BSD MP compatible functions, use - `make libmp.a' and `make install-bsdmp'. - - There are some other useful make targets: - - * `doc' - - Create a DVI version of the manual, in `gmp.dvi' and a set of info - files, in `gmp.info', `gmp.info-1', `gmp.info-2', etc. - - * `ps' - - Create a Postscript version of the manual, in `gmp.ps'. - - * `html' - - Create a HTML version of the manual, in `gmp.html'. - - * `clean' - - Delete all object files and archive files, but not the - configuration files. - - * `distclean' - - Delete all files not included in the distribution. - - * `uninstall' - - Delete all files copied by `make install'. - - Known Build Problems - ==================== - - GCC 2.7.2 (as well as 2.6.3) for the RS/6000 and PowerPC can not be - used to compile MP, due to a bug in GCC. If you want to use GCC for - these machines, you need to apply the patch below to GCC, or use a - later version of the compiler. - - If you are on a Sequent Symmetry, use the GNU assembler instead of - the system's assembler, since the latter has serious bugs. - - The system compiler on NeXT is a massacred and old gcc, even if the - compiler calls itself `cc'. This compiler cannot be used to build MP. - You need to get a real gcc, and install that before you compile MP. - (NeXT might have fixed this in newer releases of their system.) - - The system C compiler under SunOS 4 has a bug that makes it - miscompile mpq/get_d.c. This will make `make check' fail. - - Please report other problems to `bug-gmp@prep.ai.mit.edu'. *Note - Reporting Bugs::. - - Patch to apply to GCC 2.6.3 and 2.7.2: - - *** config/rs6000/rs6000.md Sun Feb 11 08:22:11 1996 - --- config/rs6000/rs6000.md.new Sun Feb 18 03:33:37 1996 - *************** - *** 920,926 **** - (set (match_operand:SI 0 "gpc_reg_operand" "=r") - (not:SI (match_dup 1)))] - "" - ! "nor. %0,%2,%1" - [(set_attr "type" "compare")]) - - (define_insn "" - --- 920,926 ---- - (set (match_operand:SI 0 "gpc_reg_operand" "=r") - (not:SI (match_dup 1)))] - "" - ! "nor. %0,%1,%1" - [(set_attr "type" "compare")]) - - (define_insn "" - -  - File: gmp.info, Node: MP Basics, Next: Reporting Bugs, Prev: Installing MP, Up: Top - - MP Basics - ********* - - All declarations needed to use MP are collected in the include file - `gmp.h'. It is designed to work with both C and C++ compilers. - - Nomenclature and Types - ====================== - - In this manual, "integer" usually means a multiple precision integer, as - defined by the MP library. The C data type for such integers is - `mpz_t'. Here are some examples of how to declare such integers: - - mpz_t sum; - - struct foo { mpz_t x, y; }; - - mpz_t vec[20]; - - "Rational number" means a multiple precision fraction. The C data type - for these fractions is `mpq_t'. For example: - - mpq_t quotient; - - "Floating point number" or "Float" for short, is an arbitrary precision - mantissa with an limited precision exponent. The C data type for such - objects is `mpf_t'. - - A "limb" means the part of a multi-precision number that fits in a - single word. (We chose this word because a limb of the human body is - analogous to a digit, only larger, and containing several digits.) - Normally a limb contains 32 or 64 bits. The C data type for a limb is - `mp_limb_t'. - - Function Classes - ================ - - There are six classes of functions in the MP library: - - 1. Functions for signed integer arithmetic, with names beginning with - `mpz_'. The associated type is `mpz_t'. There are about 100 - functions in this class. - - 2. Functions for rational number arithmetic, with names beginning with - `mpq_'. The associated type is `mpq_t'. There are about 20 - functions in this class, but the functions in the previous class - can be used for performing arithmetic on the numerator and - denominator separately. - - 3. Functions for floating-point arithmetic, with names beginning with - `mpf_'. The associated type is `mpf_t'. There are about 50 - functions is this class. - - 4. Functions compatible with Berkeley MP, such as `itom', `madd', and - `mult'. The associated type is `MINT'. - - 5. Fast low-level functions that operate on natural numbers. These - are used by the functions in the preceding groups, and you can - also call them directly from very time-critical user programs. - These functions' names begin with `mpn_'. There are about 30 - (hard-to-use) functions in this class. - - The associated type is array of `mp_limb_t'. - - 6. Miscellaneous functions. Functions for setting up custom - allocation. - - MP Variable Conventions - ======================= - - As a general rule, all MP functions expect output arguments before - input arguments. This notation is based on an analogy with the - assignment operator. (The BSD MP compatibility functions disobey this - rule, having the output argument(s) last.) - - MP allows you to use the same variable for both input and output in - the same expression. For example, the main function for integer - multiplication, `mpz_mul', can be used like this: `mpz_mul (x, x, x)'. - This computes the square of X and puts the result back in X. - - Before you can assign to an MP variable, you need to initialize it - by calling one of the special initialization functions. When you're - done with a variable, you need to clear it out, using one of the - functions for that purpose. Which function to use depends on the type - of variable. See the chapters on integer functions, rational number - functions, and floating-point functions for details. - - A variable should only be initialized once, or at least cleared out - between each initialization. After a variable has been initialized, it - may be assigned to any number of times. - - For efficiency reasons, avoid to initialize and clear out a variable - in loops. Instead, initialize it before entering the loop, and clear - it out after the loop has exited. - - You don't need to be concerned about allocating additional space for - MP variables. All functions in MP automatically allocate additional - space when a variable does not already have enough space. They do not, - however, reduce the space when a smaller number is stored in the - object. Most of the time, this policy is best, since it avoids - frequent re-allocation. - - Useful Macros and Constants - =========================== - - - Global Constant: const int mp_bits_per_limb - The number of bits per limb. - - - Macro: __GNU_MP_VERSION - - Macro: __GNU_MP_VERSION_MINOR - The major and minor MP version, respectively, as integers. - - Compatibility with Version 1.x - ============================== - - This version of MP is upward compatible with previous versions of - MP, with a few exceptions. - - 1. Integer division functions round the result differently. The old - functions (`mpz_div', `mpz_divmod', `mpz_mdiv', `mpz_mdivmod', - etc) now all use floor rounding (i.e., they round the quotient to - -infinity). There are a lot of new functions for integer - division, giving the user better control over the rounding. - - 2. The function `mpz_mod' now compute the true *mod* function. - - 3. The functions `mpz_powm' and `mpz_powm_ui' now use *mod* for - reduction. - - 4. The assignment functions for rational numbers do no longer - canonicalize their results. In the case a non-canonical result - could arise from an assignment, the user need to insert an - explicit call to `mpq_canonicalize'. This change was made for - efficiency. - - 5. Output generated by `mpz_out_raw' in this release cannot be read - by `mpz_inp_raw' in previous releases. This change was made for - making the file format truly portable between machines with - different word sizes. - - 6. Several `mpn' functions have changed. But they were intentionally - undocumented in previous releases. - - 7. The functions `mpz_cmp_ui', `mpz_cmp_si', and `mpq_cmp_ui' are now - implementated as macros, and thereby sometimes evaluate their - arguments multiple times. - - 8. The functions `mpz_pow_ui' and `mpz_ui_pow_ui' now yield 1 for - 0^0. (In version 1, they yielded 0.) - - - Getting the Latest Version of MP - ================================ - - The latest version of the MP library is available by anonymous ftp - from from `prep.ai.mit.edu'. The file name is - `/pub/gnu/gmp-M.N.tar.gz'. Many sites around the world mirror `prep'; - please use a mirror site near you. - -  - File: gmp.info, Node: Reporting Bugs, Next: Integer Functions, Prev: MP Basics, Up: Top - - Reporting Bugs - ************** - - If you think you have found a bug in the MP library, please - investigate it and report it. We have made this library available to - you, and it is not to ask too much from you, to ask you to report the - bugs that you find. - - There are a few things you should think about when you put your bug - report together. - - You have to send us a test case that makes it possible for us to - reproduce the bug. Include instructions on how to run the test case. - - You also have to explain what is wrong; if you get a crash, or if - the results printed are incorrect and in that case, in what way. - - It is not uncommon that an observed problem is actually due to a bug - in the compiler used when building MP; the MP code tends to explore - interesting corners in compilers. Therefore, please include compiler - version information in your bug report. This can be extracted using - `what `which cc`', or, if you're using gcc, `gcc -v'. Also, include - the output from `uname -a'. - - If your bug report is good, we will do our best to help you to get a - corrected version of the library; if the bug report is poor, we won't - do anything about it (aside of chiding you to send better bug reports). - - Send your bug report to: `bug-gmp@prep.ai.mit.edu'. - - If you think something in this manual is unclear, or downright - incorrect, or if the language needs to be improved, please send a note - to the same address. - -  - File: gmp.info, Node: Integer Functions, Next: Rational Number Functions, Prev: Reporting Bugs, Up: Top - - Integer Functions - ***************** - - This chapter describes the MP functions for performing integer - arithmetic. These functions start with the prefix `mpz_'. - - Arbitrary precision integers are stored in objects of type `mpz_t'. - - * Menu: - - * Initializing Integers:: - * Assigning Integers:: - * Simultaneous Integer Init & Assign:: - * Converting Integers:: - * Integer Arithmetic:: - * Comparison Functions:: - * Integer Logic and Bit Fiddling:: - * I/O of Integers:: - * Miscellaneous Integer Functions:: - -  - File: gmp.info, Node: Initializing Integers, Next: Assigning Integers, Up: Integer Functions - - Initialization and Assignment Functions - ======================================= - - The functions for integer arithmetic assume that all integer objects - are initialized. You do that by calling the function `mpz_init'. - - - Function: void mpz_init (mpz_t INTEGER) - Initialize INTEGER with limb space and set the initial numeric - value to 0. Each variable should normally only be initialized - once, or at least cleared out (using `mpz_clear') between each - initialization. - - Here is an example of using `mpz_init': - - { - mpz_t integ; - mpz_init (integ); - ... - mpz_add (integ, ...); - ... - mpz_sub (integ, ...); - - /* Unless the program is about to exit, do ... */ - mpz_clear (integ); - } - - As you can see, you can store new values any number of times, once an - object is initialized. - - - Function: void mpz_clear (mpz_t INTEGER) - Free the limb space occupied by INTEGER. Make sure to call this - function for all `mpz_t' variables when you are done with them. - - - Function: void * _mpz_realloc (mpz_t INTEGER, mp_size_t NEW_ALLOC) - Change the limb space allocation to NEW_ALLOC limbs. This - function is not normally called from user code, but it can be used - to give memory back to the heap, or to increase the space of a - variable to avoid repeated automatic re-allocation. - - - Function: void mpz_array_init (mpz_t INTEGER_ARRAY[], size_t - ARRAY_SIZE, mp_size_t FIXED_NUM_BITS) - Allocate *fixed* limb space for all ARRAY_SIZE integers in - INTEGER_ARRAY. The fixed allocation for each integer in the array - is enough to store FIXED_NUM_BITS. If the fixed space will be - insufficient for storing the result of a subsequent calculation, - the result is unpredictable. - - This function is useful for decreasing the working set for some - algorithms that use large integer arrays. - - There is no way to de-allocate the storage allocated by this - function. Don't call `mpz_clear'! - -  - File: gmp.info, Node: Assigning Integers, Next: Simultaneous Integer Init & Assign, Prev: Initializing Integers, Up: Integer Functions - - Assignment Functions - -------------------- - - These functions assign new values to already initialized integers - (*note Initializing Integers::.). - - - Function: void mpz_set (mpz_t ROP, mpz_t OP) - - Function: void mpz_set_ui (mpz_t ROP, unsigned long int OP) - - Function: void mpz_set_si (mpz_t ROP, signed long int OP) - - Function: void mpz_set_d (mpz_t ROP, double OP) - - Function: void mpz_set_q (mpz_t ROP, mpq_t OP) - - Function: void mpz_set_f (mpz_t ROP, mpf_t OP) - Set the value of ROP from OP. - - - Function: int mpz_set_str (mpz_t ROP, char *STR, int BASE) - Set the value of ROP from STR, a '\0'-terminated C string in base - BASE. White space is allowed in the string, and is simply - ignored. The base may vary from 2 to 36. If BASE is 0, the - actual base is determined from the leading characters: if the - first two characters are `0x' or `0X', hexadecimal is assumed, - otherwise if the first character is `0', octal is assumed, - otherwise decimal is assumed. - - This function returns 0 if the entire string up to the '\0' is a - valid number in base BASE. Otherwise it returns -1. - -  - File: gmp.info, Node: Simultaneous Integer Init & Assign, Next: Converting Integers, Prev: Assigning Integers, Up: Integer Functions - - Combined Initialization and Assignment Functions - ------------------------------------------------ - - For convenience, MP provides a parallel series of initialize-and-set - functions which initialize the output and then store the value there. - These functions' names have the form `mpz_init_set...' - - Here is an example of using one: - - { - mpz_t pie; - mpz_init_set_str (pie, "3141592653589793238462643383279502884", 10); - ... - mpz_sub (pie, ...); - ... - mpz_clear (pie); - } - - Once the integer has been initialized by any of the `mpz_init_set...' - functions, it can be used as the source or destination operand for the - ordinary integer functions. Don't use an initialize-and-set function - on a variable already initialized! - - - Function: void mpz_init_set (mpz_t ROP, mpz_t OP) - - Function: void mpz_init_set_ui (mpz_t ROP, unsigned long int OP) - - Function: void mpz_init_set_si (mpz_t ROP, signed long int OP) - - Function: void mpz_init_set_d (mpz_t ROP, double OP) - Initialize ROP with limb space and set the initial numeric value - from OP. - - - Function: int mpz_init_set_str (mpz_t ROP, char *STR, int BASE) - Initialize ROP and set its value like `mpz_set_str' (see its - documentation above for details). - - If the string is a correct base BASE number, the function returns - 0; if an error occurs it returns -1. ROP is initialized even if - an error occurs. (I.e., you have to call `mpz_clear' for it.) - -  - File: gmp.info, Node: Converting Integers, Next: Integer Arithmetic, Prev: Simultaneous Integer Init & Assign, Up: Integer Functions - - Conversion Functions - ==================== - - This section describes functions for converting arbitrary precision - integers to standard C types. Functions for converting *to* arbitrary - precision integers are described in *Note Assigning Integers:: and - *Note I/O of Integers::. - - - Function: unsigned long int mpz_get_ui (mpz_t OP) - Return the least significant part from OP. This function combined - with - `mpz_tdiv_q_2exp(..., OP, CHAR_BIT*sizeof(unsigned long int))' can - be used to extract the limbs of an integer. - - - Function: signed long int mpz_get_si (mpz_t OP) - If OP fits into a `signed long int' return the value of OP. - Otherwise return the least significant part of OP, with the same - sign as OP. - - If OP is too large to fit in a `signed long int', the returned - result is probably not very useful. - - - Function: double mpz_get_d (mpz_t OP) - Convert OP to a double. - - - Function: char * mpz_get_str (char *STR, int BASE, mpz_t OP) - Convert OP to a string of digits in base BASE. The base may vary - from 2 to 36. - - If STR is NULL, space for the result string is allocated using the - default allocation function, and a pointer to the string is - returned. - - If STR is not NULL, it should point to a block of storage enough - large for the result. To find out the right amount of space to - provide for STR, use `mpz_sizeinbase (OP, BASE) + 2'. The two - extra bytes are for a possible minus sign, and for the terminating - null character. - -  - File: gmp.info, Node: Integer Arithmetic, Next: Comparison Functions, Prev: Converting Integers, Up: Integer Functions - - Arithmetic Functions - ==================== - - - Function: void mpz_add (mpz_t ROP, mpz_t OP1, mpz_t OP2) - - Function: void mpz_add_ui (mpz_t ROP, mpz_t OP1, unsigned long int - OP2) - Set ROP to OP1 + OP2. - - - Function: void mpz_sub (mpz_t ROP, mpz_t OP1, mpz_t OP2) - - Function: void mpz_sub_ui (mpz_t ROP, mpz_t OP1, unsigned long int - OP2) - Set ROP to OP1 - OP2. - - - Function: void mpz_mul (mpz_t ROP, mpz_t OP1, mpz_t OP2) - - Function: void mpz_mul_ui (mpz_t ROP, mpz_t OP1, unsigned long int - OP2) - Set ROP to OP1 times OP2. - - - Function: void mpz_mul_2exp (mpz_t ROP, mpz_t OP1, unsigned long int - OP2) - Set ROP to OP1 times 2 raised to OP2. This operation can also be - defined as a left shift, OP2 steps. - - - Function: void mpz_neg (mpz_t ROP, mpz_t OP) - Set ROP to -OP. - - - Function: void mpz_abs (mpz_t ROP, mpz_t OP) - Set ROP to the absolute value of OP. - - - Function: void mpz_fac_ui (mpz_t ROP, unsigned long int OP) - Set ROP to OP!, the factorial of OP. - - Division functions - ------------------ - - Division is undefined if the divisor is zero, and passing a zero - divisor to the divide or modulo functions, as well passing a zero mod - argument to the `mpz_powm' and `mpz_powm_ui' functions, will make these - functions intentionally divide by zero. This gives the user the - possibility to handle arithmetic exceptions in these functions in the - same manner as other arithmetic exceptions. - - There are three main groups of division functions: - * Functions that truncate the quotient towards 0. The names of these - functions start with `mpz_tdiv'. The `t' in the name is short for - `truncate'. - - * Functions that round the quotient towards -infinity. The names of - these routines start with `mpz_fdiv'. The `f' in the name is - short for `floor'. - - * Functions that round the quotient towards +infinity. The names of - these routines start with `mpz_cdiv'. The `c' in the name is - short for `ceil'. - - For each rounding mode, there are a couple of variants. Here `q' - means that the quotient is computed, while `r' means that the remainder - is computed. Functions that compute both the quotient and remainder - have `qr' in the name. - - - Function: void mpz_tdiv_q (mpz_t ROP, mpz_t OP1, mpz_t OP2) - - Function: void mpz_tdiv_q_ui (mpz_t ROP, mpz_t OP1, unsigned long - int OP2) - Set ROP to [OP1/OP2]. The quotient is truncated towards 0. - - - Function: void mpz_tdiv_r (mpz_t ROP, mpz_t OP1, mpz_t OP2) - - Function: void mpz_tdiv_r_ui (mpz_t ROP, mpz_t OP1, unsigned long - int OP2) - Set ROP to (OP1 - [OP1/OP2] * OP2). Unless the remainder is zero, - it has the same sign as the dividend. - - - Function: void mpz_tdiv_qr (mpz_t ROP1, mpz_t ROP2, mpz_t OP1, mpz_t - OP2) - - Function: void mpz_tdiv_qr_ui (mpz_t ROP1, mpz_t ROP2, mpz_t OP1, - unsigned long int OP2) - Divide OP1 by OP2 and put the quotient in ROP1 and the remainder - in ROP2. The quotient is rounded towards 0. Unless the remainder - is zero, it has the same sign as the dividend. - - If ROP1 and ROP2 are the same variable, the results are undefined. - - - Function: void mpz_fdiv_q (mpz_t ROP1, mpz_t OP1, mpz_t OP2) - - Function: void mpz_fdiv_q_ui (mpz_t ROP, mpz_t OP1, unsigned long - int OP2) - Set ROP to OP1/OP2. The quotient is rounded towards -infinity. - - - Function: void mpz_fdiv_r (mpz_t ROP, mpz_t OP1, mpz_t OP2) - - Function: unsigned long int mpz_fdiv_r_ui (mpz_t ROP, mpz_t OP1, - unsigned long int OP2) - Divide OP1 by OP2 and put the remainder in ROP. Unless the - remainder is zero, it has the same sign as the divisor. - - For `mpz_fdiv_r_ui' the remainder is small enough to fit in an - `unsigned long int', and is therefore returned. - - - Function: void mpz_fdiv_qr (mpz_t ROP1, mpz_t ROP2, mpz_t OP1, mpz_t - OP2) - - Function: unsigned long int mpz_fdiv_qr_ui (mpz_t ROP1, mpz_t ROP2, - mpz_t OP1, unsigned long int OP2) - Divide OP1 by OP2 and put the quotient in ROP1 and the remainder - in ROP2. The quotient is rounded towards -infinity. Unless the - remainder is zero, it has the same sign as the divisor. - - For `mpz_fdiv_qr_ui' the remainder is small enough to fit in an - `unsigned long int', and is therefore returned. - - If ROP1 and ROP2 are the same variable, the results are undefined. - - - Function: unsigned long int mpz_fdiv_ui (mpz_t OP1, unsigned long - int OP2) - This function is similar to `mpz_fdiv_r_ui', but the remainder is - only returned; it is not stored anywhere. - - - Function: void mpz_cdiv_q (mpz_t ROP1, mpz_t OP1, mpz_t OP2) - - Function: void mpz_cdiv_q_ui (mpz_t ROP, mpz_t OP1, unsigned long - int OP2) - Set ROP to OP1/OP2. The quotient is rounded towards +infinity. - - - Function: void mpz_cdiv_r (mpz_t ROP, mpz_t OP1, mpz_t OP2) - - Function: unsigned long int mpz_cdiv_r_ui (mpz_t ROP, mpz_t OP1, - unsigned long int OP2) - Divide OP1 by OP2 and put the remainder in ROP. Unless the - remainder is zero, it has the opposite sign as the divisor. - - For `mpz_cdiv_r_ui' the negated remainder is small enough to fit - in an `unsigned long int', and it is therefore returned. - - - Function: void mpz_cdiv_qr (mpz_t ROP1, mpz_t ROP2, mpz_t OP1, mpz_t - OP2) - - Function: unsigned long int mpz_cdiv_qr_ui (mpz_t ROP1, mpz_t ROP2, - mpz_t OP1, unsigned long int OP2) - Divide OP1 by OP2 and put the quotient in ROP1 and the remainder - in ROP2. The quotient is rounded towards +infinity. Unless the - remainder is zero, it has the opposite sign as the divisor. - - For `mpz_cdiv_qr_ui' the negated remainder is small enough to fit - in an `unsigned long int', and it is therefore returned. - - If ROP1 and ROP2 are the same variable, the results are undefined. - - - Function: unsigned long int mpz_cdiv_ui (mpz_t OP1, unsigned long - int OP2) - Return the negated remainder, similar to `mpz_cdiv_r_ui'. (The - difference is that this function doesn't store the remainder - anywhere.) - - - Function: void mpz_mod (mpz_t ROP, mpz_t OP1, mpz_t OP2) - - Function: unsigned long int mpz_mod_ui (mpz_t ROP, mpz_t OP1, - unsigned long int OP2) - Set ROP to OP1 `mod' OP2. The sign of the divisor is ignored, and - the result is always non-negative. - - For `mpz_mod_ui' the remainder is small enough to fit in an - `unsigned long int', and is therefore returned. - - - Function: void mpz_divexact (mpz_t ROP, mpz_t OP1, mpz_t OP2) - Set ROP to OP1/OP2. This function produces correct results only - when it is known in advance that OP2 divides OP1. - - Since mpz_divexact is much faster than any of the other routines - that produce the quotient (*note References::. Jebelean), it is - the best choice for instances in which exact division is known to - occur, such as reducing a rational to lowest terms. - - - Function: void mpz_tdiv_q_2exp (mpz_t ROP, mpz_t OP1, unsigned long - int OP2) - Set ROP to OP1 divided by 2 raised to OP2. The quotient is - rounded towards 0. - - - Function: void mpz_tdiv_r_2exp (mpz_t ROP, mpz_t OP1, unsigned long - int OP2) - Divide OP1 by (2 raised to OP2) and put the remainder in ROP. - Unless it is zero, ROP will have the same sign as OP1. - - - Function: void mpz_fdiv_q_2exp (mpz_t ROP, mpz_t OP1, unsigned long - int OP2) - Set ROP to OP1 divided by 2 raised to OP2. The quotient is - rounded towards -infinity. - - - Function: void mpz_fdiv_r_2exp (mpz_t ROP, mpz_t OP1, unsigned long - int OP2) - Divide OP1 by (2 raised to OP2) and put the remainder in ROP. The - sign of ROP will always be positive. - - This operation can also be defined as masking of the OP2 least - significant bits. - - Exponentialization Functions - ---------------------------- - - - Function: void mpz_powm (mpz_t ROP, mpz_t BASE, mpz_t EXP, mpz_t MOD) - - Function: void mpz_powm_ui (mpz_t ROP, mpz_t BASE, unsigned long int - EXP, mpz_t MOD) - Set ROP to (BASE raised to EXP) `mod' MOD. If EXP is negative, - the result is undefined. - - - Function: void mpz_pow_ui (mpz_t ROP, mpz_t BASE, unsigned long int - EXP) - - Function: void mpz_ui_pow_ui (mpz_t ROP, unsigned long int BASE, - unsigned long int EXP) - Set ROP to BASE raised to EXP. The case of 0^0 yields 1. - - Square Root Functions - --------------------- - - - Function: void mpz_sqrt (mpz_t ROP, mpz_t OP) - Set ROP to the truncated integer part of the square root of OP. - - - Function: void mpz_sqrtrem (mpz_t ROP1, mpz_t ROP2, mpz_t OP) - Set ROP1 to the truncated integer part of the square root of OP, - like `mpz_sqrt'. Set ROP2 to OP-ROP1*ROP1, (i.e., zero if OP is a - perfect square). - - If ROP1 and ROP2 are the same variable, the results are undefined. - - - Function: int mpz_perfect_square_p (mpz_t OP) - Return non-zero if OP is a perfect square, i.e., if the square - root of OP is an integer. Return zero otherwise. - - Number Theoretic Functions - -------------------------- - - - Function: int mpz_probab_prime_p (mpz_t OP, int REPS) - If this function returns 0, OP is definitely not prime. If it - returns 1, then OP is `probably' prime. The probability of a - false positive is (1/4)**REPS. A reasonable value of reps is 25. - - An implementation of the probabilistic primality test found in - Seminumerical Algorithms (*note References::. Knuth). - - - Function: void mpz_gcd (mpz_t ROP, mpz_t OP1, mpz_t OP2) - Set ROP to the greatest common divisor of OP1 and OP2. - - - Function: unsigned long int mpz_gcd_ui (mpz_t ROP, mpz_t OP1, - unsigned long int OP2) - Compute the greatest common divisor of OP1 and OP2. If ROP is not - NULL, store the result there. - - If the result is small enough to fit in an `unsigned long int', it - is returned. If the result does not fit, 0 is returned, and the - result is equal to the argument OP1. Note that the result will - always fit if OP2 is non-zero. - - - Function: void mpz_gcdext (mpz_t G, mpz_t S, mpz_t T, mpz_t A, mpz_t - B) - Compute G, S, and T, such that AS + BT = G = `gcd' (A, B). If T is - NULL, that argument is not computed. - - - Function: int mpz_invert (mpz_t ROP, mpz_t OP1, mpz_t OP2) - Compute the inverse of OP1 modulo OP2 and put the result in ROP. - Return non-zero if an inverse exist, zero otherwise. When the - function returns zero, do not assume anything about the value in - ROP. - - - Function: int mpz_jacobi (mpz_t OP1, mpz_t OP2) - - Function: int mpz_legendre (mpz_t OP1, mpz_t OP2) - Compute the Jacobi and Legendre symbols, respectively. - -  - File: gmp.info, Node: Comparison Functions, Next: Integer Logic and Bit Fiddling, Prev: Integer Arithmetic, Up: Integer Functions - - Comparison Functions - ==================== - - - Function: int mpz_cmp (mpz_t OP1, mpz_t OP2) - Compare OP1 and OP2. Return a positive value if OP1 > OP2, zero - if OP1 = OP2, and a negative value if OP1 < OP2. - - - Macro: int mpz_cmp_ui (mpz_t OP1, unsigned long int OP2) - - Macro: int mpz_cmp_si (mpz_t OP1, signed long int OP2) - Compare OP1 and OP2. Return a positive value if OP1 > OP2, zero - if OP1 = OP2, and a negative value if OP1 < OP2. - - These functions are actually implemented as macros. They evaluate - their arguments multiple times. - - - Macro: int mpz_sgn (mpz_t OP) - Return +1 if OP > 0, 0 if OP = 0, and -1 if OP < 0. - - This function is actually implemented as a macro. It evaluates its - arguments multiple times. - -  - File: gmp.info, Node: Integer Logic and Bit Fiddling, Next: I/O of Integers, Prev: Comparison Functions, Up: Integer Functions - - Logical and Bit Manipulation Functions - ====================================== - - These functions behave as if two's complement arithmetic were used - (although sign-magnitude is used by the actual implementation). - - - Function: void mpz_and (mpz_t ROP, mpz_t OP1, mpz_t OP2) - Set ROP to OP1 logical-and OP2. - - - Function: void mpz_ior (mpz_t ROP, mpz_t OP1, mpz_t OP2) - Set ROP to OP1 inclusive-or OP2. - - - Function: void mpz_com (mpz_t ROP, mpz_t OP) - Set ROP to the one's complement of OP. - - - Function: unsigned long int mpz_popcount (mpz_t OP) - For non-negative numbers, return the population count of OP. For - negative numbers, return the largest possible value (MAX_ULONG). - - - Function: unsigned long int mpz_hamdist (mpz_t OP1, mpz_t OP2) - If OP1 and OP2 are both non-negative, return the hamming distance - between the two operands. Otherwise, return the largest possible - value (MAX_ULONG). - - It is possible to extend this function to return a useful value - when the operands are both negative, but the current - implementation returns MAX_ULONG in this case. *Do not depend on - this behavior, since it will change in future versions of the - library.* - - - Function: unsigned long int mpz_scan0 (mpz_t OP, unsigned long int - STARTING_BIT) - Scan OP, starting with bit STARTING_BIT, towards more significant - bits, until the first clear bit is found. Return the index of the - found bit. - - - Function: unsigned long int mpz_scan1 (mpz_t OP, unsigned long int - STARTING_BIT) - Scan OP, starting with bit STARTING_BIT, towards more significant - bits, until the first set bit is found. Return the index of the - found bit. - - - Function: void mpz_setbit (mpz_t ROP, unsigned long int BIT_INDEX) - Set bit BIT_INDEX in OP1. - - - Function: void mpz_clrbit (mpz_t ROP, unsigned long int BIT_INDEX) - Clear bit BIT_INDEX in OP1. - -  - File: gmp.info, Node: I/O of Integers, Next: Miscellaneous Integer Functions, Prev: Integer Logic and Bit Fiddling, Up: Integer Functions - - Input and Output Functions - ========================== - - Functions that perform input from a stdio stream, and functions that - output to a stdio stream. Passing a NULL pointer for a STREAM argument - to any of these functions will make them read from `stdin' and write to - `stdout', respectively. - - When using any of these functions, it is a good idea to include - `stdio.h' before `gmp.h', since that will allow `gmp.h' to define - prototypes for these functions. - - - Function: size_t mpz_out_str (FILE *STREAM, int BASE, mpz_t OP) - Output OP on stdio stream STREAM, as a string of digits in base - BASE. The base may vary from 2 to 36. - - Return the number of bytes written, or if an error occurred, - return 0. - - - Function: size_t mpz_inp_str (mpz_t ROP, FILE *STREAM, int BASE) - Input a possibly white-space preceded string in base BASE from - stdio stream STREAM, and put the read integer in ROP. The base - may vary from 2 to 36. If BASE is 0, the actual base is - determined from the leading characters: if the first two - characters are `0x' or `0X', hexadecimal is assumed, otherwise if - the first character is `0', octal is assumed, otherwise decimal is - assumed. - - Return the number of bytes read, or if an error occurred, return 0. - - - Function: size_t mpz_out_raw (FILE *STREAM, mpz_t OP) - Output OP on stdio stream STREAM, in raw binary format. The - integer is written in a portable format, with 4 bytes of size - information, and that many bytes of limbs. Both the size and the - limbs are written in decreasing significance order (i.e., in - big-endian). - - The output can be read with `mpz_inp_raw'. - - Return the number of bytes written, or if an error occurred, - return 0. - - The output of this can not be read by `mpz_inp_raw' from GMP 1, - because of changes necessary for compatibility between 32-bit and - 64-bit machines. - - - Function: size_t mpz_inp_raw (mpz_t ROP, FILE *STREAM) - Input from stdio stream STREAM in the format written by - `mpz_out_raw', and put the result in ROP. Return the number of - bytes read, or if an error occurred, return 0. - - This routine can read the output from `mpz_out_raw' also from GMP - 1, in spite of changes necessary for compatibility between 32-bit - and 64-bit machines. - -  - File: gmp.info, Node: Miscellaneous Integer Functions, Prev: I/O of Integers, Up: Integer Functions - - Miscellaneous Functions - ======================= - - - Function: void mpz_random (mpz_t ROP, mp_size_t MAX_SIZE) - Generate a random integer of at most MAX_SIZE limbs. The generated - random number doesn't satisfy any particular requirements of - randomness. Negative random numbers are generated when MAX_SIZE - is negative. - - - Function: void mpz_random2 (mpz_t ROP, mp_size_t MAX_SIZE) - Generate a random integer of at most MAX_SIZE limbs, with long - strings of zeros and ones in the binary representation. Useful - for testing functions and algorithms, since this kind of random - numbers have proven to be more likely to trigger corner-case bugs. - Negative random numbers are generated when MAX_SIZE is negative. - - - Function: size_t mpz_size (mpz_t OP) - Return the size of OP measured in number of limbs. If OP is zero, - the returned value will be zero. - - *This function is obsolete. It will disappear from future MP - releases.* - - - Function: size_t mpz_sizeinbase (mpz_t OP, int BASE) - Return the size of OP measured in number of digits in base BASE. - The base may vary from 2 to 36. The returned value will be exact - or 1 too big. If BASE is a power of 2, the returned value will - always be exact. - - This function is useful in order to allocate the right amount of - space before converting OP to a string. The right amount of - allocation is normally two more than the value returned by - `mpz_sizeinbase' (one extra for a minus sign and one for the - terminating '\0'). - -  - File: gmp.info, Node: Rational Number Functions, Next: Floating-point Functions, Prev: Integer Functions, Up: Top - - Rational Number Functions - ************************* - - This chapter describes the MP functions for performing arithmetic on - rational numbers. These functions start with the prefix `mpq_'. - - Rational numbers are stored in objects of type `mpq_t'. - - All rational arithmetic functions assume operands have a canonical - form, and canonicalize their result. The canonical from means that the - denominator and the numerator have no common factors, and that the - denominator is positive. Zero has the unique representation 0/1. - - Pure assignment functions do not canonicalize the assigned variable. - It is the responsibility of the user to canonicalize the assigned - variable before any arithmetic operations are performed on that - variable. *Note that this is an incompatible change from version 1 of - the library.* - - - Function: void mpq_canonicalize (mpq_t OP) - Remove any factors that are common to the numerator and - denominator of OP, and make the denominator positive. - - * Menu: - - * Initializing Rationals:: - * Assigning Rationals:: - * Simultaneous Integer Init & Assign:: - * Comparing Rationals:: - * Applying Integer Functions:: - * Miscellaneous Rational Functions:: - -  - File: gmp.info, Node: Initializing Rationals, Next: Assigning Rationals, Prev: Rational Number Functions, Up: Rational Number Functions - - Initialization and Assignment Functions - ======================================= - - - Function: void mpq_init (mpq_t DEST_RATIONAL) - Initialize DEST_RATIONAL and set it to 0/1. Each variable should - normally only be initialized once, or at least cleared out (using - the function `mpq_clear') between each initialization. - - - Function: void mpq_clear (mpq_t RATIONAL_NUMBER) - Free the space occupied by RATIONAL_NUMBER. Make sure to call this - function for all `mpq_t' variables when you are done with them. - - - Function: void mpq_set (mpq_t ROP, mpq_t OP) - - Function: void mpq_set_z (mpq_t ROP, mpz_t OP) - Assign ROP from OP. - - - Function: void mpq_set_ui (mpq_t ROP, unsigned long int OP1, - unsigned long int OP2) - - Function: void mpq_set_si (mpq_t ROP, signed long int OP1, unsigned - long int OP2) - Set the value of ROP to OP1/OP2. Note that if OP1 and OP2 have - common factors, ROP has to be passed to `mpq_canonicalize' before - any operations are performed on ROP. - -  - File: gmp.info, Node: Assigning Rationals, Next: Comparing Rationals, Prev: Initializing Rationals, Up: Rational Number Functions - - Arithmetic Functions - ==================== - - - Function: void mpq_add (mpq_t SUM, mpq_t ADDEND1, mpq_t ADDEND2) - Set SUM to ADDEND1 + ADDEND2. - - - Function: void mpq_sub (mpq_t DIFFERENCE, mpq_t MINUEND, mpq_t - SUBTRAHEND) - Set DIFFERENCE to MINUEND - SUBTRAHEND. - - - Function: void mpq_mul (mpq_t PRODUCT, mpq_t MULTIPLIER, mpq_t - MULTIPLICAND) - Set PRODUCT to MULTIPLIER times MULTIPLICAND. - - - Function: void mpq_div (mpq_t QUOTIENT, mpq_t DIVIDEND, mpq_t - DIVISOR) - Set QUOTIENT to DIVIDEND/DIVISOR. - - - Function: void mpq_neg (mpq_t NEGATED_OPERAND, mpq_t OPERAND) - Set NEGATED_OPERAND to -OPERAND. - - - Function: void mpq_inv (mpq_t INVERTED_NUMBER, mpq_t NUMBER) - Set INVERTED_NUMBER to 1/NUMBER. If the new denominator is zero, - this routine will divide by zero. - -  - File: gmp.info, Node: Comparing Rationals, Next: Applying Integer Functions, Prev: Assigning Rationals, Up: Rational Number Functions - - Comparison Functions - ==================== - - - Function: int mpq_cmp (mpq_t OP1, mpq_t OP2) - Compare OP1 and OP2. Return a positive value if OP1 > OP2, zero - if OP1 = OP2, and a negative value if OP1 < OP2. - - To determine if two rationals are equal, `mpq_equal' is faster than - `mpq_cmp'. - - - Macro: int mpq_cmp_ui (mpq_t OP1, unsigned long int NUM2, unsigned - long int DEN2) - Compare OP1 and NUM2/DEN2. Return a positive value if OP1 > - NUM2/DEN2, zero if OP1 = NUM2/DEN2, and a negative value if OP1 < - NUM2/DEN2. - - This routine allows that NUM2 and DEN2 have common factors. - - This function is actually implemented as a macro. It evaluates its - arguments multiple times. - - - Macro: int mpq_sgn (mpq_t OP) - Return +1 if OP > 0, 0 if OP = 0, and -1 if OP < 0. - - This function is actually implemented as a macro. It evaluates its - arguments multiple times. - - - Function: int mpq_equal (mpq_t OP1, mpq_t OP2) - Return non-zero if OP1 and OP2 are equal, zero if they are - non-equal. Although `mpq_cmp' can be used for the same purpose, - this function is much faster. - -  - File: gmp.info, Node: Applying Integer Functions, Next: Miscellaneous Rational Functions, Prev: Comparing Rationals, Up: Rational Number Functions - - Applying Integer Functions to Rationals - ======================================= - - The set of `mpq' functions is quite small. In particular, there are - no functions for either input or output. But there are two macros that - allow us to apply any `mpz' function on the numerator or denominator of - a rational number. If these macros are used to assign to the rational - number, `mpq_canonicalize' normally need to be called afterwards. - - - Macro: mpz_t mpq_numref (mpq_t OP) - - Macro: mpz_t mpq_denref (mpq_t OP) - Return a reference to the numerator and denominator of OP, - respectively. The `mpz' functions can be used on the result of - these macros. - -  - File: gmp.info, Node: Miscellaneous Rational Functions, Prev: Applying Integer Functions, Up: Rational Number Functions - - Miscellaneous Functions - ======================= - - - Function: double mpq_get_d (mpq_t OP) - Convert OP to a double. - - These functions assign between either the numerator or denominator - of a rational, and an integer. Instead of using these functions, it is - preferable to use the more general mechanisms `mpq_numref' and - `mpq_denref', together with `mpz_set'. - - - Function: void mpq_set_num (mpq_t RATIONAL, mpz_t NUMERATOR) - Copy NUMERATOR to the numerator of RATIONAL. When this risks to - make the numerator and denominator of RATIONAL have common - factors, you have to pass RATIONAL to `mpq_canonicalize' before - any operations are performed on RATIONAL. - - This function is equivalent to `mpz_set (mpq_numref (RATIONAL), - NUMERATOR)'. - - - Function: void mpq_set_den (mpq_t RATIONAL, mpz_t DENOMINATOR) - Copy DENOMINATOR to the denominator of RATIONAL. When this risks - to make the numerator and denominator of RATIONAL have common - factors, or if the denominator might be negative, you have to pass - RATIONAL to `mpq_canonicalize' before any operations are performed - on RATIONAL. - - *In version 1 of the library, negative denominators were handled by - copying the sign to the numerator. That is no longer done.* - - This function is equivalent to `mpz_set (mpq_denref (RATIONAL), - DENOMINATORS)'. - - - Function: void mpq_get_num (mpz_t NUMERATOR, mpq_t RATIONAL) - Copy the numerator of RATIONAL to the integer NUMERATOR, to - prepare for integer operations on the numerator. - - This function is equivalent to `mpz_set (NUMERATOR, mpq_numref - (RATIONAL))'. - - - Function: void mpq_get_den (mpz_t DENOMINATOR, mpq_t RATIONAL) - Copy the denominator of RATIONAL to the integer DENOMINATOR, to - prepare for integer operations on the denominator. - - This function is equivalent to `mpz_set (DENOMINATOR, mpq_denref - (RATIONAL))'. - --- 0 ---- Index: gmp-2.0.2-ssh-2/gmp.info-2 =================================================================== RCS file: gmp.info-2 diff -N gmp.info-2 *** /tmp/cvs09952bn Mon Nov 15 13:15:46 1999 --- /dev/null Mon Nov 15 13:08:10 1999 *************** *** 1,1035 **** - This is Info file gmp.info, produced by Makeinfo version 1.68 from the - input file gmp.texi. - - START-INFO-DIR-ENTRY - * gmp: (gmp.info). GNU Multiple Precision Arithmetic Library. - END-INFO-DIR-ENTRY - - This file documents GNU MP, a library for arbitrary-precision - arithmetic. - - Copyright (C) 1991, 1993, 1994, 1995, 1996 Free Software Foundation, - Inc. - - Permission is granted to make and distribute verbatim copies of this - manual provided the copyright notice and this permission notice are - preserved on all copies. - - Permission is granted to copy and distribute modified versions of - this manual under the conditions for verbatim copying, provided that - the entire resulting derived work is distributed under the terms of a - permission notice identical to this one. - - Permission is granted to copy and distribute translations of this - manual into another language, under the above conditions for modified - versions, except that this permission notice may be stated in a - translation approved by the Foundation. - -  - File: gmp.info, Node: Floating-point Functions, Next: Low-level Functions, Prev: Rational Number Functions, Up: Top - - Floating-point Functions - ************************ - - This is a description of the *preliminary* interface for - floating-point arithmetic in GNU MP 2. - - The floating-point functions expect arguments of type `mpf_t'. - - The MP floating-point functions have an interface that is similar to - the MP integer functions. The function prefix for floating-point - operations is `mpf_'. - - There is one significant characteristic of floating-point numbers - that has motivated a difference between this function class and other - MP function classes: the inherent inexactness of floating point - arithmetic. The user has to specify the precision of each variable. A - computation that assigns a variable will take place with the precision - of the assigned variable; the precision of variables used as input is - ignored. - - The precision of a calculation is defined as follows: Compute the - requested operation exactly (with "infinite precision"), and truncate - the result to the destination variable precision. Even if the user has - asked for a very high precision, MP will not calculate with superfluous - digits. For example, if two low-precision numbers of nearly equal - magnitude are added, the precision of the result will be limited to - what is required to represent the result accurately. - - The MP floating-point functions are *not* intended as a smooth - extension to the IEEE P754 arithmetic. Specifically, the results - obtained on one computer often differs from the results obtained on a - computer with a different word size. - - * Menu: - - * Initializing Floats:: - * Assigning Floats:: - * Simultaneous Float Init & Assign:: - * Converting Floats:: - * Float Arithmetic:: - * Float Comparison:: - * I/O of Floats:: - * Miscellaneous Float Functions:: - -  - File: gmp.info, Node: Initializing Floats, Next: Assigning Floats, Up: Floating-point Functions - - Initialization and Assignment Functions - ======================================= - - - Function: void mpf_set_default_prec (unsigned long int PREC) - Set the default precision to be *at least* PREC bits. All - subsequent calls to `mpf_init' will use this precision, but - previously initialized variables are unaffected. - - An `mpf_t' object must be initialized before storing the first value - in it. The functions `mpf_init' and `mpf_init2' are used for that - purpose. - - - Function: void mpf_init (mpf_t X) - Initialize X to 0. Normally, a variable should be initialized - once only or at least be cleared, using `mpf_clear', between - initializations. The precision of X is undefined unless a default - precision has already been established by a call to - `mpf_set_default_prec'. - - - Function: void mpf_init2 (mpf_t X, unsigned long int PREC) - Initialize X to 0 and set its precision to be *at least* PREC - bits. Normally, a variable should be initialized once only or at - least be cleared, using `mpf_clear', between initializations. - - - Function: void mpf_clear (mpf_t X) - Free the space occupied by X. Make sure to call this function for - all `mpf_t' variables when you are done with them. - - Here is an example on how to initialize floating-point variables: - { - mpf_t x, y; - mpf_init (x); /* use default precision */ - mpf_init2 (y, 256); /* precision *at least* 256 bits */ - ... - /* Unless the program is about to exit, do ... */ - mpf_clear (x); - mpf_clear (y); - } - - The following three functions are useful for changing the precision - during a calculation. A typical use would be for adjusting the - precision gradually in iterative algorithms like Newton-Raphson, making - the computation precision closely match the actual accurate part of the - numbers. - - - Function: void mpf_set_prec (mpf_t ROP, unsigned long int PREC) - Set the precision of ROP to be *at least* PREC bits. Since - changing the precision involves calls to `realloc', this routine - should not be called in a tight loop. - - - Function: unsigned long int mpf_get_prec (mpf_t OP) - Return the precision actually used for assignments of OP. - - - Function: void mpf_set_prec_raw (mpf_t ROP, unsigned long int PREC) - Set the precision of ROP to be *at least* PREC bits. This is a - low-level function that does not change the allocation. The PREC - argument must not be larger that the precision previously returned - by `mpf_get_prec'. It is crucial that the precision of ROP is - ultimately reset to exactly the value returned by `mpf_get_prec'. - -  - File: gmp.info, Node: Assigning Floats, Next: Simultaneous Float Init & Assign, Prev: Initializing Floats, Up: Floating-point Functions - - Assignment Functions - -------------------- - - These functions assign new values to already initialized floats - (*note Initializing Floats::.). - - - Function: void mpf_set (mpf_t ROP, mpf_t OP) - - Function: void mpf_set_ui (mpf_t ROP, unsigned long int OP) - - Function: void mpf_set_si (mpf_t ROP, signed long int OP) - - Function: void mpf_set_d (mpf_t ROP, double OP) - - Function: void mpf_set_z (mpf_t ROP, mpz_t OP) - - Function: void mpf_set_q (mpf_t ROP, mpq_t OP) - Set the value of ROP from OP. - - - Function: int mpf_set_str (mpf_t ROP, char *STR, int BASE) - Set the value of ROP from the string in STR. The string is of the - form `M@N' or, if the base is 10 or less, alternatively `MeN'. - `M' is the mantissa and `N' is the exponent. The mantissa is - always in the specified base. The exponent is either in the - specified base or, if BASE is negative, in decimal. - - The argument BASE may be in the ranges 2 to 36, or -36 to -2. - Negative values are used to specify that the exponent is in - decimal. - - Unlike the corresponding `mpz' function, the base will not be - determined from the leading characters of the string if BASE is 0. - This is so that numbers like `0.23' are not interpreted as octal. - - White space is allowed in the string, and is simply ignored. - - This function returns 0 if the entire string up to the '\0' is a - valid number in base BASE. Otherwise it returns -1. - -  - File: gmp.info, Node: Simultaneous Float Init & Assign, Next: Converting Floats, Prev: Assigning Floats, Up: Floating-point Functions - - Combined Initialization and Assignment Functions - ------------------------------------------------ - - For convenience, MP provides a parallel series of initialize-and-set - functions which initialize the output and then store the value there. - These functions' names have the form `mpf_init_set...' - - Once the float has been initialized by any of the `mpf_init_set...' - functions, it can be used as the source or destination operand for the - ordinary float functions. Don't use an initialize-and-set function on - a variable already initialized! - - - Function: void mpf_init_set (mpf_t ROP, mpf_t OP) - - Function: void mpf_init_set_ui (mpf_t ROP, unsigned long int OP) - - Function: void mpf_init_set_si (mpf_t ROP, signed long int OP) - - Function: void mpf_init_set_d (mpf_t ROP, double OP) - Initialize ROP and set its value from OP. - - The precision of ROP will be taken from the active default - precision, as set by `mpf_set_default_prec'. - - - Function: int mpf_init_set_str (mpf_t ROP, char *STR, int BASE) - Initialize ROP and set its value from the string in STR. See - `mpf_set_str' above for details on the assignment operation. - - Note that ROP is initialized even if an error occurs. (I.e., you - have to call `mpf_clear' for it.) - - The precision of ROP will be taken from the active default - precision, as set by `mpf_set_default_prec'. - -  - File: gmp.info, Node: Converting Floats, Next: Float Arithmetic, Prev: Simultaneous Float Init & Assign, Up: Floating-point Functions - - Conversion Functions - ==================== - - - Function: double mpf_get_d (mpf_t OP) - Convert OP to a double. - - - Function: char * mpf_get_str (char *STR, mp_exp_t *EXPPTR, int BASE, - size_t N_DIGITS, mpf_t OP) - Convert OP to a string of digits in base BASE. The base may vary - from 2 to 36. Generate at most N_DIGITS significant digits, or if - N_DIGITS is 0, the maximum number of digits accurately - representable by OP. - - If STR is NULL, space for the mantissa is allocated using the - default allocation function, and a pointer to the string is - returned. - - If STR is not NULL, it should point to a block of storage enough - large for the mantissa, i.e., N_DIGITS + 2. The two extra bytes - are for a possible minus sign, and for the terminating null - character. - - The exponent is written through the pointer EXPPTR. - - If N_DIGITS is 0, the maximum number of digits meaningfully - achievable from the precision of OP will be generated. Note that - the space requirements for STR in this case will be impossible for - the user to predetermine. Therefore, you need to pass NULL for - the string argument whenever N_DIGITS is 0. - - The generated string is a fraction, with an implicit radix point - immediately to the left of the first digit. For example, the - number 3.1416 would be returned as "31416" in the string and 1 - written at EXPPTR. - -  - File: gmp.info, Node: Float Arithmetic, Next: Float Comparison, Prev: Converting Floats, Up: Floating-point Functions - - Arithmetic Functions - ==================== - - - Function: void mpf_add (mpf_t ROP, mpf_t OP1, mpf_t OP2) - - Function: void mpf_add_ui (mpf_t ROP, mpf_t OP1, unsigned long int - OP2) - Set ROP to OP1 + OP2. - - - Function: void mpf_sub (mpf_t ROP, mpf_t OP1, mpf_t OP2) - - Function: void mpf_ui_sub (mpf_t ROP, unsigned long int OP1, mpf_t - OP2) - - Function: void mpf_sub_ui (mpf_t ROP, mpf_t OP1, unsigned long int - OP2) - Set ROP to OP1 - OP2. - - - Function: void mpf_mul (mpf_t ROP, mpf_t OP1, mpf_t OP2) - - Function: void mpf_mul_ui (mpf_t ROP, mpf_t OP1, unsigned long int - OP2) - Set ROP to OP1 times OP2. - - Division is undefined if the divisor is zero, and passing a zero - divisor to the divide functions will make these functions intentionally - divide by zero. This gives the user the possibility to handle - arithmetic exceptions in these functions in the same manner as other - arithmetic exceptions. - - - Function: void mpf_div (mpf_t ROP, mpf_t OP1, mpf_t OP2) - - Function: void mpf_ui_div (mpf_t ROP, unsigned long int OP1, mpf_t - OP2) - - Function: void mpf_div_ui (mpf_t ROP, mpf_t OP1, unsigned long int - OP2) - Set ROP to OP1/OP2. - - - Function: void mpf_sqrt (mpf_t ROP, mpf_t OP) - - Function: void mpf_sqrt_ui (mpf_t ROP, unsigned long int OP) - Set ROP to the square root of OP. - - - Function: void mpf_neg (mpf_t ROP, mpf_t OP) - Set ROP to -OP. - - - Function: void mpf_abs (mpf_t ROP, mpf_t OP) - Set ROP to the absolute value of OP. - - - Function: void mpf_mul_2exp (mpf_t ROP, mpf_t OP1, unsigned long int - OP2) - Set ROP to OP1 times 2 raised to OP2. - - - Function: void mpf_div_2exp (mpf_t ROP, mpf_t OP1, unsigned long int - OP2) - Set ROP to OP1 divided by 2 raised to OP2. - -  - File: gmp.info, Node: Float Comparison, Next: I/O of Floats, Prev: Float Arithmetic, Up: Floating-point Functions - - Comparison Functions - ==================== - - - Function: int mpf_cmp (mpf_t OP1, mpf_t OP2) - - Function: int mpf_cmp_ui (mpf_t OP1, unsigned long int OP2) - - Function: int mpf_cmp_si (mpf_t OP1, signed long int OP2) - Compare OP1 and OP2. Return a positive value if OP1 > OP2, zero - if OP1 = OP2, and a negative value if OP1 < OP2. - - - Function: int mpf_eq (mpf_t OP1, mpf_t OP2, unsigned long int op3) - Return non-zero if the first OP3 bits of OP1 and OP2 are equal, - zero otherwise. I.e., test of OP1 and OP2 are approximately equal. - - - Function: void mpf_reldiff (mpf_t ROP, mpf_t OP1, mpf_t OP2) - Compute the relative difference between OP1 and OP2 and store the - result in ROP. - - - Macro: int mpf_sgn (mpf_t OP) - Return +1 if OP > 0, 0 if OP = 0, and -1 if OP < 0. - - This function is actually implemented as a macro. It evaluates its - arguments multiple times. - -  - File: gmp.info, Node: I/O of Floats, Next: Miscellaneous Float Functions, Prev: Float Comparison, Up: Floating-point Functions - - Input and Output Functions - ========================== - - Functions that perform input from a stdio stream, and functions that - output to a stdio stream. Passing a NULL pointer for a STREAM argument - to any of these functions will make them read from `stdin' and write to - `stdout', respectively. - - When using any of these functions, it is a good idea to include - `stdio.h' before `gmp.h', since that will allow `gmp.h' to define - prototypes for these functions. - - - Function: size_t mpf_out_str (FILE *STREAM, int BASE, size_t - N_DIGITS, mpf_t OP) - Output OP on stdio stream STREAM, as a string of digits in base - BASE. The base may vary from 2 to 36. Print at most N_DIGITS - significant digits, or if N_DIGITS is 0, the maximum number of - digits accurately representable by OP. - - In addition to the significant digits, a leading `0.' and a - trailing exponent, in the form `eNNN', are printed. If BASE is - greater than 10, `@' will be used instead of `e' as exponent - delimiter. - - Return the number of bytes written, or if an error occurred, - return 0. - - - Function: size_t mpf_inp_str (mpf_t ROP, FILE *STREAM, int BASE) - Input a string in base BASE from stdio stream STREAM, and put the - read float in ROP. The string is of the form `M@N' or, if the - base is 10 or less, alternatively `MeN'. `M' is the mantissa and - `N' is the exponent. The mantissa is always in the specified - base. The exponent is either in the specified base or, if BASE is - negative, in decimal. - - The argument BASE may be in the ranges 2 to 36, or -36 to -2. - Negative values are used to specify that the exponent is in - decimal. - - Unlike the corresponding `mpz' function, the base will not be - determined from the leading characters of the string if BASE is 0. - This is so that numbers like `0.23' are not interpreted as octal. - - Return the number of bytes read, or if an error occurred, return 0. - -  - File: gmp.info, Node: Miscellaneous Float Functions, Prev: I/O of Floats, Up: Floating-point Functions - - Miscellaneous Functions - ======================= - - - Function: void mpf_random2 (mpf_t ROP, mp_size_t MAX_SIZE, mp_exp_t - MAX_EXP) - Generate a random float of at most MAX_SIZE limbs, with long - strings of zeros and ones in the binary representation. The - exponent of the number is in the interval -EXP to EXP. This - function is useful for testing functions and algorithms, since - this kind of random numbers have proven to be more likely to - trigger corner-case bugs. Negative random numbers are generated - when MAX_SIZE is negative. - -  - File: gmp.info, Node: Low-level Functions, Next: BSD Compatible Functions, Prev: Floating-point Functions, Up: Top - - Low-level Functions - ******************* - - This chapter describes low-level MP functions, used to implement the - high-level MP functions, but also intended for time-critical user code. - - These functions start with the prefix `mpn_'. - - The `mpn' functions are designed to be as fast as possible, *not* to - provide a coherent calling interface. The different functions have - somewhat similar interfaces, but there are variations that make them - hard to use. These functions do as little as possible apart from the - real multiple precision computation, so that no time is spent on things - that not all callers need. - - A source operand is specified by a pointer to the least significant - limb and a limb count. A destination operand is specified by just a - pointer. It is the responsibility of the caller to ensure that the - destination has enough space for storing the result. - - With this way of specifying operands, it is possible to perform - computations on subranges of an argument, and store the result into a - subrange of a destination. - - A common requirement for all functions is that each source area - needs at least one limb. No size argument may be zero. - - The `mpn' functions is the base for the implementation of the `mpz_', - `mpf_', and `mpq_' functions. - - This example adds the number beginning at SRC1_PTR and the number - beginning at SRC2_PTR and writes the sum at DEST_PTR. All areas have - SIZE limbs. - - cy = mpn_add_n (dest_ptr, src1_ptr, src2_ptr, size) - - In the notation used here, a source operand is identified by the - pointer to the least significant limb, and the limb count in braces. - For example, {s1_ptr, s1_size}. - - - Function: mp_limb_t mpn_add_n (mp_limb_t * DEST_PTR, const mp_limb_t - * SRC1_PTR, const mp_limb_t * SRC2_PTR, mp_size_t SIZE) - Add {SRC1_PTR, SIZE} and {SRC2_PTR, SIZE}, and write the SIZE - least significant limbs of the result to DEST_PTR. Return carry, - either 0 or 1. - - This is the lowest-level function for addition. It is the - preferred function for addition, since it is written in assembly - for most targets. For addition of a variable to itself (i.e., - SRC1_PTR equals SRC2_PTR, use `mpn_lshift' with a count of 1 for - optimal speed. - - - Function: mp_limb_t mpn_add_1 (mp_limb_t * DEST_PTR, const mp_limb_t - * SRC1_PTR, mp_size_t SIZE, mp_limb_t SRC2_LIMB) - Add {SRC1_PTR, SIZE} and SRC2_LIMB, and write the SIZE least - significant limbs of the result to DEST_PTR. Return carry, either - 0 or 1. - - - Function: mp_limb_t mpn_add (mp_limb_t * DEST_PTR, const mp_limb_t * - SRC1_PTR, mp_size_t SRC1_SIZE, const mp_limb_t * SRC2_PTR, - mp_size_t SRC2_SIZE) - Add {SRC1_PTR, SRC1_SIZE} and {SRC2_PTR, SRC2_SIZE}, and write the - SRC1_SIZE least significant limbs of the result to DEST_PTR. - Return carry, either 0 or 1. - - This function requires that SRC1_SIZE is greater than or equal to - SRC2_SIZE. - - - Function: mp_limb_t mpn_sub_n (mp_limb_t * DEST_PTR, const mp_limb_t - * SRC1_PTR, const mp_limb_t * SRC2_PTR, mp_size_t SIZE) - Subtract {SRC2_PTR, SRC2_SIZE} from {SRC1_PTR, SIZE}, and write - the SIZE least significant limbs of the result to DEST_PTR. - Return borrow, either 0 or 1. - - This is the lowest-level function for subtraction. It is the - preferred function for subtraction, since it is written in - assembly for most targets. - - - Function: mp_limb_t mpn_sub_1 (mp_limb_t * DEST_PTR, const mp_limb_t - * SRC1_PTR, mp_size_t SIZE, mp_limb_t SRC2_LIMB) - Subtract SRC2_LIMB from {SRC1_PTR, SIZE}, and write the SIZE least - significant limbs of the result to DEST_PTR. Return borrow, - either 0 or 1. - - - Function: mp_limb_t mpn_sub (mp_limb_t * DEST_PTR, const mp_limb_t * - SRC1_PTR, mp_size_t SRC1_SIZE, const mp_limb_t * SRC2_PTR, - mp_size_t SRC2_SIZE) - Subtract {SRC2_PTR, SRC2_SIZE} from {SRC1_PTR, SRC1_SIZE}, and - write the SRC1_SIZE least significant limbs of the result to - DEST_PTR. Return borrow, either 0 or 1. - - This function requires that SRC1_SIZE is greater than or equal to - SRC2_SIZE. - - - Function: void mpn_mul_n (mp_limb_t * DEST_PTR, const mp_limb_t * - SRC1_PTR, const mp_limb_t * SRC2_PTR, mp_size_t SIZE) - Multiply {SRC1_PTR, SIZE} and {SRC2_PTR, SIZE}, and write the - *entire* result to DEST_PTR. - - The destination has to have space for 2SIZE limbs, even if the - significant result might be one limb smaller. - - - Function: mp_limb_t mpn_mul_1 (mp_limb_t * DEST_PTR, const mp_limb_t - * SRC1_PTR, mp_size_t SIZE, mp_limb_t SRC2_LIMB) - Multiply {SRC1_PTR, SIZE} and SRC2_LIMB, and write the SIZE least - significant limbs of the product to DEST_PTR. Return the most - significant limb of the product. - - This is a low-level function that is a building block for general - multiplication as well as other operations in MP. It is written - in assembly for most targets. - - Don't call this function if SRC2_LIMB is a power of 2; use - `mpn_lshift' with a count equal to the logarithm of SRC2_LIMB - instead, for optimal speed. - - - Function: mp_limb_t mpn_addmul_1 (mp_limb_t * DEST_PTR, const - mp_limb_t * SRC1_PTR, mp_size_t SIZE, mp_limb_t SRC2_LIMB) - Multiply {SRC1_PTR, SIZE} and SRC2_LIMB, and add the SIZE least - significant limbs of the product to {DEST_PTR, SIZE} and write the - result to DEST_PTR DEST_PTR. Return the most significant limb of - the product, plus carry-out from the addition. - - This is a low-level function that is a building block for general - multiplication as well as other operations in MP. It is written - in assembly for most targets. - - - Function: mp_limb_t mpn_submul_1 (mp_limb_t * DEST_PTR, const - mp_limb_t * SRC1_PTR, mp_size_t SIZE, mp_limb_t SRC2_LIMB) - Multiply {SRC1_PTR, SIZE} and SRC2_LIMB, and subtract the SIZE - least significant limbs of the product from {DEST_PTR, SIZE} and - write the result to DEST_PTR. Return the most significant limb of - the product, minus borrow-out from the subtraction. - - This is a low-level function that is a building block for general - multiplication and division as well as other operations in MP. It - is written in assembly for most targets. - - - Function: mp_limb_t mpn_mul (mp_limb_t * DEST_PTR, const mp_limb_t * - SRC1_PTR, mp_size_t SRC1_SIZE, const mp_limb_t * SRC2_PTR, - mp_size_t SRC2_SIZE) - Multiply {SRC1_PTR, SRC1_SIZE} and {SRC2_PTR, SRC2_SIZE}, and - write the result to DEST_PTR. Return the most significant limb of - the result. - - The destination has to have space for SRC1_SIZE + SRC1_SIZE limbs, - even if the result might be one limb smaller. - - This function requires that SRC1_SIZE is greater than or equal to - SRC2_SIZE. The destination must be distinct from either input - operands. - - - Function: mp_size_t mpn_divrem (mp_limb_t * R1P, mp_size_t XSIZE, - mp_limb_t * RS2P, mp_size_t RS2SIZE, const mp_limb_t * S3P, - mp_size_t S3SIZE) - Divide {RS2P, RS2SIZE} by {S3P, S3SIZE}, and write the quotient at - R1P, with the exception of the most significant limb, which is - returned. The remainder replaces the dividend at RS2P. - - In addition to an integer quotient, XSIZE fraction limbs are - developed, and stored after the integral limbs. For most usages, - XSIZE will be zero. - - It is required that RS2SIZE is greater than or equal to S3SIZE. - It is required that the most significant bit of the divisor is set. - - If the quotient is not needed, pass RS2P + S3SIZE as R1P. Aside - from that special case, no overlap between arguments is permitted. - - Return the most significant limb of the quotient, either 0 or 1. - - The area at R1P needs to be RS2SIZE - S3SIZE + XSIZE limbs large. - - - Function: mp_limb_t mpn_divrem_1 (mp_limb_t * R1P, mp_size_t XSIZE, - mp_limb_t * S2P, mp_size_t S2SIZE, mp_limb_t S3LIMB) - Divide {S2P, S2SIZE} by S3LIMB, and write the quotient at R1P. - Return the remainder. - - In addition to an integer quotient, XSIZE fraction limbs are - developed, and stored after the integral limbs. For most usages, - XSIZE will be zero. - - The areas at R1P and S2P have to be identical or completely - separate, not partially overlapping. - - - Function: mp_size_t mpn_divmod (mp_limb_t * R1P, mp_limb_t * RS2P, - mp_size_t RS2SIZE, const mp_limb_t * S3P, mp_size_t S3SIZE) - *This interface is obsolete. It will disappear from future - releases. Use `mpn_divrem' in its stead.* - - - Function: mp_limb_t mpn_divmod_1 (mp_limb_t * R1P, mp_limb_t * S2P, - mp_size_t S2SIZE, mp_limb_t S3LIMB) - *This interface is obsolete. It will disappear from future - releases. Use `mpn_divrem_1' in its stead.* - - - Function: mp_limb_t mpn_mod_1 (mp_limb_t * S1P, mp_size_t S1SIZE, - mp_limb_t S2LIMB) - Divide {S1P, S1SIZE} by S2LIMB, and return the remainder. - - - Function: mp_limb_t mpn_preinv_mod_1 (mp_limb_t * S1P, mp_size_t - S1SIZE, mp_limb_t S2LIMB, mp_limb_t S3LIMB) - *This interface is obsolete. It will disappear from future - releases. Use `mpn_mod_1' in its stead.* - - - Function: mp_limb_t mpn_bdivmod (mp_limb_t * DEST_PTR, mp_limb_t * - S1P, mp_size_t S1SIZE, const mp_limb_t * S2P, mp_size_t - S2SIZE, unsigned long int D) - The function puts the low [D/BITS_PER_MP_LIMB] limbs of Q = {S1P, - S1SIZE}/{S2P, S2SIZE} mod 2^D at DEST_PTR, and returns the high D - mod BITS_PER_MP_LIMB bits of Q. - - {S1P, S1SIZE} - Q * {S2P, S2SIZE} mod 2^(S1SIZE*BITS_PER_MP_LIMB) - is placed at S1P. Since the low [D/BITS_PER_MP_LIMB] limbs of - this difference are zero, it is possible to overwrite the low - limbs at S1P with this difference, provided DEST_PTR <= S1P. - - This function requires that S1SIZE * BITS_PER_MP_LIMB >= D, and - that {S2P, S2SIZE} is odd. - - *This interface is preliminary. It might change incompatibly in - future revisions.* - - - Function: mp_limb_t mpn_lshift (mp_limb_t * DEST_PTR, const - mp_limb_t * SRC_PTR, mp_size_t SRC_SIZE, unsigned long int - COUNT) - Shift {SRC_PTR, SRC_SIZE} COUNT bits to the left, and write the - SRC_SIZE least significant limbs of the result to DEST_PTR. COUNT - might be in the range 1 to n - 1, on an n-bit machine. The bits - shifted out to the left are returned. - - Overlapping of the destination space and the source space is - allowed in this function, provided DEST_PTR >= SRC_PTR. - - This function is written in assembly for most targets. - - - Function: mp_limp_t mpn_rshift (mp_limb_t * DEST_PTR, const - mp_limb_t * SRC_PTR, mp_size_t SRC_SIZE, unsigned long int - COUNT) - Shift {SRC_PTR, SRC_SIZE} COUNT bits to the right, and write the - SRC_SIZE most significant limbs of the result to DEST_PTR. COUNT - might be in the range 1 to n - 1, on an n-bit machine. The bits - shifted out to the right are returned. - - Overlapping of the destination space and the source space is - allowed in this function, provided DEST_PTR <= SRC_PTR. - - This function is written in assembly for most targets. - - - Function: int mpn_cmp (const mp_limb_t * SRC1_PTR, const mp_limb_t * - SRC2_PTR, mp_size_t SIZE) - Compare {SRC1_PTR, SIZE} and {SRC2_PTR, SIZE} and return a - positive value if src1 > src2, 0 of they are equal, and a negative - value if src1 < src2. - - - Function: mp_size_t mpn_gcd (mp_limb_t * DEST_PTR, mp_limb_t * - SRC1_PTR, mp_size_t SRC1_SIZE, mp_limb_t * SRC2_PTR, - mp_size_t SRC2_SIZE) - Puts at DEST_PTR the greatest common divisor of {SRC1_PTR, - SRC1_SIZE} and {SRC2_PTR, SRC2_SIZE}; both source operands are - destroyed by the operation. The size in limbs of the greatest - common divisor is returned. - - {SRC1_PTR, SRC1_SIZE} must be odd, and {SRC2_PTR, SRC2_SIZE} must - have at least as many bits as {SRC1_PTR, SRC1_SIZE}. - - *This interface is preliminary. It might change incompatibly in - future revisions.* - - - Function: mp_limb_t mpn_gcd_1 (const mp_limb_t * SRC1_PTR, mp_size_t - SRC1_SIZE, mp_limb_t SRC2_LIMB) - Return the greatest common divisor of {SRC1_PTR, SRC1_SIZE} and - SRC2_LIMB, where SRC2_LIMB (as well as SRC1_SIZE) must be - different from 0. - - - Function: mp_size_t mpn_gcdext (mp_limb_t * R1P, mp_limb_t * R2P, - mp_limb_t * S1P, mp_size_t S1SIZE, mp_limb_t * S2P, mp_size_t - S2SIZE) - Puts at R1P the greatest common divisor of {S1P, S1SIZE} and {S2P, - S2SIZE}. The first cofactor is written at R2P. Both source - operands are destroyed by the operation. The size in limbs of the - greatest common divisor is returned. - - *This interface is preliminary. It might change incompatibly in - future revisions.* - - - Function: mp_size_t mpn_sqrtrem (mp_limb_t * R1P, mp_limb_t * R2P, - const mp_limb_t * SP, mp_size_t SIZE) - Compute the square root of {SP, SIZE} and put the result at R1P. - Write the remainder at R2P, unless R2P is NULL. - - Return the size of the remainder, whether R2P was NULL or non-NULL. - Iff the operand was a perfect square, the return value will be 0. - - The areas at R1P and SP have to be distinct. The areas at R2P and - SP have to be identical or completely separate, not partially - overlapping. - - The area at R1P needs to have space for ceil(SIZE/2) limbs. The - area at R2P needs to be SIZE limbs large. - - *This interface is preliminary. It might change incompatibly in - future revisions.* - - - Function: mp_size_t mpn_get_str (unsigned char *STR, int BASE, - mp_limb_t * S1P, mp_size_t S1SIZE) - Convert {S1P, S1SIZE} to a raw unsigned char array in base BASE. - The string is not in ASCII; to convert it to printable format, add - the ASCII codes for `0' or `A', depending on the base and range. - There may be leading zeros in the string. - - The area at S1P is clobbered. - - Return the number of characters in STR. - - The area at STR has to have space for the largest possible number - represented by a S1SIZE long limb array, plus one extra character. - - - Function: mp_size_t mpn_set_str (mp_limb_t * R1P, const char *STR, - size_t strsize, int BASE) - Convert the raw unsigned char array at STR of length STRSIZE to a - limb array {S1P, S1SIZE}. The base of STR is BASE. - - Return the number of limbs stored in R1P. - - - Function: unsigned long int mpn_scan0 (const mp_limb_t * S1P, - unsigned long int BIT) - Scan S1P from bit position BIT for the next clear bit. - - It is required that there be a clear bit within the area at S1P at - or beyond bit position BIT, so that the function has something to - return. - - *This interface is preliminary. It might change incompatibly in - future revisions.* - - - Function: unsigned long int mpn_scan1 (const mp_limb_t * S1P, - unsigned long int BIT) - Scan S1P from bit position BIT for the next set bit. - - It is required that there be a set bit within the area at S1P at or - beyond bit position BIT, so that the function has something to - return. - - *This interface is preliminary. It might change incompatibly in - future revisions.* - - - Function: void mpn_random2 (mp_limb_t * R1P, mp_size_t R1SIZE) - Generate a random number of length R1SIZE with long strings of - zeros and ones in the binary representation, and store it at R1P. - - The generated random numbers are intended for testing the - correctness of the implementation of the `mpn' routines. - - - Function: unsigned long int mpn_popcount (const mp_limb_t * S1P, - unsigned long int SIZE) - Count the number of set bits in {S1P, SIZE}. - - - Function: unsigned long int mpn_hamdist (const mp_limb_t * S1P, - const mp_limb_t * S2P, unsigned long int SIZE) - Compute the hamming distance between {S1P, SIZE} and {S2P, SIZE}. - - - Function: int mpn_perfect_square_p (const mp_limb_t * S1P, mp_size_t - SIZE) - Return non-zero iff {S1P, SIZE} is a perfect square. - -  - File: gmp.info, Node: BSD Compatible Functions, Next: Custom Allocation, Prev: Low-level Functions, Up: Top - - Berkeley MP Compatible Functions - ******************************** - - These functions are intended to be fully compatible with the - Berkeley MP library which is available on many BSD derived U*ix systems. - - The original Berkeley MP library has a usage restriction: you cannot - use the same variable as both source and destination in a single - function call. The compatible functions in GNU MP do not share this - restriction--inputs and outputs may overlap. - - It is not recommended that new programs are written using these - functions. Apart from the incomplete set of functions, the interface - for initializing `MINT' objects is more error prone, and the `pow' - function collides with `pow' in `libm.a'. - - Include the header `mp.h' to get the definition of the necessary - types and functions. If you are on a BSD derived system, make sure to - include GNU `mp.h' if you are going to link the GNU `libmp.a' to you - program. This means that you probably need to give the -I option - to the compiler, where is the directory where you have GNU `mp.h'. - - - Function: MINT * itom (signed short int INITIAL_VALUE) - Allocate an integer consisting of a `MINT' object and dynamic limb - space. Initialize the integer to INITIAL_VALUE. Return a pointer - to the `MINT' object. - - - Function: MINT * xtom (char *INITIAL_VALUE) - Allocate an integer consisting of a `MINT' object and dynamic limb - space. Initialize the integer from INITIAL_VALUE, a hexadecimal, - '\0'-terminate C string. Return a pointer to the `MINT' object. - - - Function: void move (MINT *SRC, MINT *DEST) - Set DEST to SRC by copying. Both variables must be previously - initialized. - - - Function: void madd (MINT *SRC_1, MINT *SRC_2, MINT *DESTINATION) - Add SRC_1 and SRC_2 and put the sum in DESTINATION. - - - Function: void msub (MINT *SRC_1, MINT *SRC_2, MINT *DESTINATION) - Subtract SRC_2 from SRC_1 and put the difference in DESTINATION. - - - Function: void mult (MINT *SRC_1, MINT *SRC_2, MINT *DESTINATION) - Multiply SRC_1 and SRC_2 and put the product in DESTINATION. - - - Function: void mdiv (MINT *DIVIDEND, MINT *DIVISOR, MINT *QUOTIENT, - MINT *REMAINDER) - - Function: void sdiv (MINT *DIVIDEND, signed short int DIVISOR, MINT - *QUOTIENT, signed short int *REMAINDER) - Set QUOTIENT to DIVIDEND/DIVISOR, and REMAINDER to DIVIDEND mod - DIVISOR. The quotient is rounded towards zero; the remainder has - the same sign as the dividend unless it is zero. - - Some implementations of these functions work differently--or not - at all--for negative arguments. - - - Function: void msqrt (MINT *OPERAND, MINT *ROOT, MINT *REMAINDER) - Set ROOT to the truncated integer part of the square root of - OPERAND. Set REMAINDER to OPERAND-ROOT*ROOT, (i.e., zero if - OPERAND is a perfect square). - - If ROOT and REMAINDER are the same variable, the results are - undefined. - - - Function: void pow (MINT *BASE, MINT *EXP, MINT *MOD, MINT *DEST) - Set DEST to (BASE raised to EXP) modulo MOD. - - - Function: void rpow (MINT *BASE, signed short int EXP, MINT *DEST) - Set DEST to BASE raised to EXP. - - - Function: void gcd (MINT *OPERAND1, MINT *OPERAND2, MINT *RES) - Set RES to the greatest common divisor of OPERAND1 and OPERAND2. - - - Function: int mcmp (MINT *OPERAND1, MINT *OPERAND2) - Compare OPERAND1 and OPERAND2. Return a positive value if - OPERAND1 > OPERAND2, zero if OPERAND1 = OPERAND2, and a negative - value if OPERAND1 < OPERAND2. - - - Function: void min (MINT *DEST) - Input a decimal string from `stdin', and put the read integer in - DEST. SPC and TAB are allowed in the number string, and are - ignored. - - - Function: void mout (MINT *SRC) - Output SRC to `stdout', as a decimal string. Also output a - newline. - - - Function: char * mtox (MINT *OPERAND) - Convert OPERAND to a hexadecimal string, and return a pointer to - the string. The returned string is allocated using the default - memory allocation function, `malloc' by default. - - - Function: void mfree (MINT *OPERAND) - De-allocate, the space used by OPERAND. *This function should - only be passed a value returned by `itom' or `xtom'.* - -  - File: gmp.info, Node: Custom Allocation, Next: Contributors, Prev: BSD Compatible Functions, Up: Top - - Custom Allocation - ***************** - - By default, the MP functions use `malloc', `realloc', and `free' for - memory allocation. If `malloc' or `realloc' fails, the MP library - terminates execution after printing a fatal error message to standard - error. - - For some applications, you may wish to allocate memory in other - ways, or you may not want to have a fatal error when there is no more - memory available. To accomplish this, you can specify alternative - memory allocation functions. - - - Function: void mp_set_memory_functions ( - void *(*ALLOC_FUNC_PTR) (size_t), - void *(*REALLOC_FUNC_PTR) (void *, size_t, size_t), - void (*FREE_FUNC_PTR) (void *, size_t)) - Replace the current allocation functions from the arguments. If - an argument is NULL, the corresponding default function is - retained. - - *Make sure to call this function in such a way that there are no - active MP objects that were allocated using the previously active - allocation function! Usually, that means that you have to call - this function before any other MP function.* - - The functions you supply should fit the following declarations: - - - Function: void * allocate_function (size_t ALLOC_SIZE) - This function should return a pointer to newly allocated space - with at least ALLOC_SIZE storage units. - - - Function: void * reallocate_function (void *PTR, size_t OLD_SIZE, - size_t NEW_SIZE) - This function should return a pointer to newly allocated space of - at least NEW_SIZE storage units, after copying at least the first - OLD_SIZE storage units from PTR. It should also de-allocate the - space at PTR. - - You can assume that the space at PTR was formerly returned from - `allocate_function' or `reallocate_function', for a request for - OLD_SIZE storage units. - - - Function: void deallocate_function (void *PTR, size_t SIZE) - De-allocate the space pointed to by PTR. - - You can assume that the space at PTR was formerly returned from - `allocate_function' or `reallocate_function', for a request for - SIZE storage units. - - (A "storage unit" is the unit in which the `sizeof' operator returns - the size of an object, normally an 8 bit byte.) - -  - File: gmp.info, Node: Contributors, Next: References, Prev: Custom Allocation, Up: Top - - Contributors - ************ - - I would like to thank Gunnar Sjoedin and Hans Riesel for their help - with mathematical problems, Richard Stallman for his help with design - issues and for revising the first version of this manual, Brian Beuning - and Doug Lea for their testing of early versions of the library. - - John Amanatides of York University in Canada contributed the function - `mpz_probab_prime_p'. - - Paul Zimmermann of Inria sparked the development of GMP 2, with his - comparisons between bignum packages. - - Ken Weber (Kent State University, Universidade Federal do Rio Grande - do Sul) contributed `mpz_gcd', `mpz_divexact', `mpn_gcd', and - `mpn_bdivmod', partially supported by CNPq (Brazil) grant 301314194-2. - - Per Bothner of Cygnus Support helped to set up MP to use Cygnus' - configure. He has also made valuable suggestions and tested numerous - intermediary releases. - - Joachim Hollman was involved in the design of the `mpf' interface, - and in the `mpz' design revisions for version 2. - - Bennet Yee contributed the functions `mpz_jacobi' and `mpz_legendre'. - - Andreas Schwab contributed the files `mpn/m68k/lshift.S' and - `mpn/m68k/rshift.S'. - - The development of floating point functions of GNU MP 2, were - supported in part by the ESPRIT-BRA (Basic Research Activities) 6846 - project POSSO (POlynomial System SOlving). - - GNU MP 2 was finished and released by TMG Datakonsult, - Sodermannagatan 5, 116 23 STOCKHOLM, SWEDEN, in cooperation with the - IDA Center for Computing Sciences, USA. - -  - File: gmp.info, Node: References, Prev: Contributors, Up: Top - - References - ********** - - * Donald E. Knuth, "The Art of Computer Programming", vol 2, - "Seminumerical Algorithms", 2nd edition, Addison-Wesley, 1981. - - * John D. Lipson, "Elements of Algebra and Algebraic Computing", The - Benjamin Cummings Publishing Company Inc, 1981. - - * Richard M. Stallman, "Using and Porting GCC", Free Software - Foundation, 1995. - - * Peter L. Montgomery, "Modular Multiplication Without Trial - Division", in Mathematics of Computation, volume 44, number 170, - April 1985. - - * Torbjorn Granlund and Peter L. Montgomery, "Division by Invariant - Integers using Multiplication", in Proceedings of the SIGPLAN - PLDI'94 Conference, June 1994. - - * Tudor Jebelean, "An algorithm for exact division", Journal of - Symbolic Computation, v. 15, 1993, pp. 169-180. - - * Kenneth Weber, "The accelerated integer GCD algorithm", ACM - Transactions on Mathematical Software, v. 21 (March), 1995, pp. - 111-122. - -  - File: gmp.info, Node: Concept Index, Up: Top - - Concept Index - ************* - - * Menu: - - * Arithmetic functions <1>: Integer Arithmetic. - * Arithmetic functions: Float Arithmetic. - * Bit manipulation functions: Integer Logic and Bit Fiddling. - * BSD MP compatible functions: BSD Compatible Functions. - * Comparison functions: Float Comparison. - * Conditions for copying GNU MP: Copying. - * Conversion functions <1>: Converting Floats. - * Conversion functions: Converting Integers. - * Copying conditions: Copying. - * Float arithmetic functions: Float Arithmetic. - * Float assignment functions: Assigning Floats. - * Float comparisons functions: Float Comparison. - * Float functions: Floating-point Functions. - * Float input and output functions: I/O of Floats. - * Floating-point functions: Floating-point Functions. - * Floating-point number: MP Basics. - * gmp.h: MP Basics. - * I/O functions <1>: I/O of Integers. - * I/O functions: I/O of Floats. - * Initialization and assignment functions <1>: Simultaneous Float Init & Assign. - * Initialization and assignment functions: Simultaneous Integer Init & Assign. - * Input functions <1>: I/O of Integers. - * Input functions: I/O of Floats. - * Installation: Installing MP. - * Integer: MP Basics. - * Integer arithmetic functions: Integer Arithmetic. - * Integer assignment functions: Assigning Integers. - * Integer conversion functions: Converting Integers. - * Integer functions: Integer Functions. - * Integer input and output functions: I/O of Integers. - * Limb: MP Basics. - * Logical functions: Integer Logic and Bit Fiddling. - * Low-level functions: Low-level Functions. - * Miscellaneous float functions: Miscellaneous Float Functions. - * Miscellaneous integer functions: Miscellaneous Integer Functions. - * mp.h: BSD Compatible Functions. - * Output functions <1>: I/O of Floats. - * Output functions: I/O of Integers. - * Rational number: MP Basics. - * Rational number functions: Rational Number Functions. - * Reporting bugs: Reporting Bugs. - * User-defined precision: Floating-point Functions. - --- 0 ---- Index: gmp-2.0.2-ssh-2/gmp.info-3 =================================================================== RCS file: gmp.info-3 diff -N gmp.info-3 *** /tmp/cvs09952bo Mon Nov 15 13:15:46 1999 --- /dev/null Mon Nov 15 13:08:10 1999 *************** *** 1,259 **** - This is Info file gmp.info, produced by Makeinfo version 1.68 from the - input file gmp.texi. - - START-INFO-DIR-ENTRY - * gmp: (gmp.info). GNU Multiple Precision Arithmetic Library. - END-INFO-DIR-ENTRY - - This file documents GNU MP, a library for arbitrary-precision - arithmetic. - - Copyright (C) 1991, 1993, 1994, 1995, 1996 Free Software Foundation, - Inc. - - Permission is granted to make and distribute verbatim copies of this - manual provided the copyright notice and this permission notice are - preserved on all copies. - - Permission is granted to copy and distribute modified versions of - this manual under the conditions for verbatim copying, provided that - the entire resulting derived work is distributed under the terms of a - permission notice identical to this one. - - Permission is granted to copy and distribute translations of this - manual into another language, under the above conditions for modified - versions, except that this permission notice may be stated in a - translation approved by the Foundation. - -  - File: gmp.info, Node: Function Index, Up: Top - - Function and Type Index - *********************** - - * Menu: - - * __GNU_MP_VERSION: MP Basics. - * __GNU_MP_VERSION_MINOR: MP Basics. - * _mpz_realloc: Initializing Integers. - * allocate_function: Custom Allocation. - * deallocate_function: Custom Allocation. - * gcd: BSD Compatible Functions. - * itom: BSD Compatible Functions. - * madd: BSD Compatible Functions. - * mcmp: BSD Compatible Functions. - * mdiv: BSD Compatible Functions. - * mfree: BSD Compatible Functions. - * min: BSD Compatible Functions. - * mout: BSD Compatible Functions. - * move: BSD Compatible Functions. - * mp_limb_t: MP Basics. - * mp_set_memory_functions: Custom Allocation. - * mpf_abs: Float Arithmetic. - * mpf_add: Float Arithmetic. - * mpf_add_ui: Float Arithmetic. - * mpf_clear: Initializing Floats. - * mpf_cmp: Float Comparison. - * mpf_cmp_si: Float Comparison. - * mpf_cmp_ui: Float Comparison. - * mpf_div: Float Arithmetic. - * mpf_div_2exp: Float Arithmetic. - * mpf_div_ui: Float Arithmetic. - * mpf_eq: Float Comparison. - * mpf_get_d: Converting Floats. - * mpf_get_prec: Initializing Floats. - * mpf_get_str: Converting Floats. - * mpf_init: Initializing Floats. - * mpf_init2: Initializing Floats. - * mpf_init_set: Simultaneous Float Init & Assign. - * mpf_init_set_d: Simultaneous Float Init & Assign. - * mpf_init_set_si: Simultaneous Float Init & Assign. - * mpf_init_set_str: Simultaneous Float Init & Assign. - * mpf_init_set_ui: Simultaneous Float Init & Assign. - * mpf_inp_str: I/O of Floats. - * mpf_mul: Float Arithmetic. - * mpf_mul_2exp: Float Arithmetic. - * mpf_mul_ui: Float Arithmetic. - * mpf_neg: Float Arithmetic. - * mpf_out_str: I/O of Floats. - * mpf_random2: Miscellaneous Float Functions. - * mpf_reldiff: Float Comparison. - * mpf_set: Assigning Floats. - * mpf_set_d: Assigning Floats. - * mpf_set_default_prec: Initializing Floats. - * mpf_set_prec: Initializing Floats. - * mpf_set_prec_raw: Initializing Floats. - * mpf_set_q: Assigning Floats. - * mpf_set_si: Assigning Floats. - * mpf_set_str: Assigning Floats. - * mpf_set_ui: Assigning Floats. - * mpf_set_z: Assigning Floats. - * mpf_sgn: Float Comparison. - * mpf_sqrt: Float Arithmetic. - * mpf_sqrt_ui: Float Arithmetic. - * mpf_sub: Float Arithmetic. - * mpf_sub_ui: Float Arithmetic. - * mpf_t: MP Basics. - * mpf_ui_div: Float Arithmetic. - * mpf_ui_sub: Float Arithmetic. - * mpn_add: Low-level Functions. - * mpn_add_1: Low-level Functions. - * mpn_add_n: Low-level Functions. - * mpn_addmul_1: Low-level Functions. - * mpn_bdivmod: Low-level Functions. - * mpn_cmp: Low-level Functions. - * mpn_divmod: Low-level Functions. - * mpn_divmod_1: Low-level Functions. - * mpn_divrem: Low-level Functions. - * mpn_divrem_1: Low-level Functions. - * mpn_gcd: Low-level Functions. - * mpn_gcd_1: Low-level Functions. - * mpn_gcdext: Low-level Functions. - * mpn_get_str: Low-level Functions. - * mpn_hamdist: Low-level Functions. - * mpn_lshift: Low-level Functions. - * mpn_mod_1: Low-level Functions. - * mpn_mul: Low-level Functions. - * mpn_mul_1: Low-level Functions. - * mpn_mul_n: Low-level Functions. - * mpn_perfect_square_p: Low-level Functions. - * mpn_popcount: Low-level Functions. - * mpn_preinv_mod_1: Low-level Functions. - * mpn_random2: Low-level Functions. - * mpn_rshift: Low-level Functions. - * mpn_scan0: Low-level Functions. - * mpn_scan1: Low-level Functions. - * mpn_set_str: Low-level Functions. - * mpn_sqrtrem: Low-level Functions. - * mpn_sub: Low-level Functions. - * mpn_sub_1: Low-level Functions. - * mpn_sub_n: Low-level Functions. - * mpn_submul_1: Low-level Functions. - * mpq_add: Assigning Rationals. - * mpq_canonicalize: Rational Number Functions. - * mpq_clear: Initializing Rationals. - * mpq_cmp: Comparing Rationals. - * mpq_cmp_ui: Comparing Rationals. - * mpq_denref: Applying Integer Functions. - * mpq_div: Assigning Rationals. - * mpq_equal: Comparing Rationals. - * mpq_get_d: Miscellaneous Rational Functions. - * mpq_get_den: Miscellaneous Rational Functions. - * mpq_get_num: Miscellaneous Rational Functions. - * mpq_init: Initializing Rationals. - * mpq_inv: Assigning Rationals. - * mpq_mul: Assigning Rationals. - * mpq_neg: Assigning Rationals. - * mpq_numref: Applying Integer Functions. - * mpq_set: Initializing Rationals. - * mpq_set_den: Miscellaneous Rational Functions. - * mpq_set_num: Miscellaneous Rational Functions. - * mpq_set_si: Initializing Rationals. - * mpq_set_ui: Initializing Rationals. - * mpq_set_z: Initializing Rationals. - * mpq_sgn: Comparing Rationals. - * mpq_sub: Assigning Rationals. - * mpq_t: MP Basics. - * mpz_abs: Integer Arithmetic. - * mpz_add: Integer Arithmetic. - * mpz_add_ui: Integer Arithmetic. - * mpz_and: Integer Logic and Bit Fiddling. - * mpz_array_init: Initializing Integers. - * mpz_cdiv_q: Integer Arithmetic. - * mpz_cdiv_q_ui: Integer Arithmetic. - * mpz_cdiv_qr: Integer Arithmetic. - * mpz_cdiv_qr_ui: Integer Arithmetic. - * mpz_cdiv_r: Integer Arithmetic. - * mpz_cdiv_r_ui: Integer Arithmetic. - * mpz_cdiv_ui: Integer Arithmetic. - * mpz_clear: Initializing Integers. - * mpz_clrbit: Integer Logic and Bit Fiddling. - * mpz_cmp: Comparison Functions. - * mpz_cmp_si: Comparison Functions. - * mpz_cmp_ui: Comparison Functions. - * mpz_com: Integer Logic and Bit Fiddling. - * mpz_divexact: Integer Arithmetic. - * mpz_fac_ui: Integer Arithmetic. - * mpz_fdiv_q: Integer Arithmetic. - * mpz_fdiv_q_2exp: Integer Arithmetic. - * mpz_fdiv_q_ui: Integer Arithmetic. - * mpz_fdiv_qr: Integer Arithmetic. - * mpz_fdiv_qr_ui: Integer Arithmetic. - * mpz_fdiv_r: Integer Arithmetic. - * mpz_fdiv_r_2exp: Integer Arithmetic. - * mpz_fdiv_r_ui: Integer Arithmetic. - * mpz_fdiv_ui: Integer Arithmetic. - * mpz_gcd: Integer Arithmetic. - * mpz_gcd_ui: Integer Arithmetic. - * mpz_gcdext: Integer Arithmetic. - * mpz_get_d: Converting Integers. - * mpz_get_si: Converting Integers. - * mpz_get_str: Converting Integers. - * mpz_get_ui: Converting Integers. - * mpz_hamdist: Integer Logic and Bit Fiddling. - * mpz_init: Initializing Integers. - * mpz_init_set: Simultaneous Integer Init & Assign. - * mpz_init_set_d: Simultaneous Integer Init & Assign. - * mpz_init_set_si: Simultaneous Integer Init & Assign. - * mpz_init_set_str: Simultaneous Integer Init & Assign. - * mpz_init_set_ui: Simultaneous Integer Init & Assign. - * mpz_inp_raw: I/O of Integers. - * mpz_inp_str: I/O of Integers. - * mpz_invert: Integer Arithmetic. - * mpz_ior: Integer Logic and Bit Fiddling. - * mpz_jacobi: Integer Arithmetic. - * mpz_legendre: Integer Arithmetic. - * mpz_mod: Integer Arithmetic. - * mpz_mod_ui: Integer Arithmetic. - * mpz_mul: Integer Arithmetic. - * mpz_mul_2exp: Integer Arithmetic. - * mpz_mul_ui: Integer Arithmetic. - * mpz_neg: Integer Arithmetic. - * mpz_out_raw: I/O of Integers. - * mpz_out_str: I/O of Integers. - * mpz_perfect_square_p: Integer Arithmetic. - * mpz_popcount: Integer Logic and Bit Fiddling. - * mpz_pow_ui: Integer Arithmetic. - * mpz_powm: Integer Arithmetic. - * mpz_powm_ui: Integer Arithmetic. - * mpz_probab_prime_p: Integer Arithmetic. - * mpz_random: Miscellaneous Integer Functions. - * mpz_random2: Miscellaneous Integer Functions. - * mpz_scan0: Integer Logic and Bit Fiddling. - * mpz_scan1: Integer Logic and Bit Fiddling. - * mpz_set: Assigning Integers. - * mpz_set_d: Assigning Integers. - * mpz_set_f: Assigning Integers. - * mpz_set_q: Assigning Integers. - * mpz_set_si: Assigning Integers. - * mpz_set_str: Assigning Integers. - * mpz_set_ui: Assigning Integers. - * mpz_setbit: Integer Logic and Bit Fiddling. - * mpz_sgn: Comparison Functions. - * mpz_size: Miscellaneous Integer Functions. - * mpz_sizeinbase: Miscellaneous Integer Functions. - * mpz_sqrt: Integer Arithmetic. - * mpz_sqrtrem: Integer Arithmetic. - * mpz_sub: Integer Arithmetic. - * mpz_sub_ui: Integer Arithmetic. - * mpz_t: MP Basics. - * mpz_tdiv_q: Integer Arithmetic. - * mpz_tdiv_q_2exp: Integer Arithmetic. - * mpz_tdiv_q_ui: Integer Arithmetic. - * mpz_tdiv_qr: Integer Arithmetic. - * mpz_tdiv_qr_ui: Integer Arithmetic. - * mpz_tdiv_r: Integer Arithmetic. - * mpz_tdiv_r_2exp: Integer Arithmetic. - * mpz_tdiv_r_ui: Integer Arithmetic. - * mpz_ui_pow_ui: Integer Arithmetic. - * msqrt: BSD Compatible Functions. - * msub: BSD Compatible Functions. - * mtox: BSD Compatible Functions. - * mult: BSD Compatible Functions. - * pow: BSD Compatible Functions. - * reallocate_function: Custom Allocation. - * rpow: BSD Compatible Functions. - * sdiv: BSD Compatible Functions. - * xtom: BSD Compatible Functions. - - --- 0 ---- Index: gmp-2.0.2-ssh-2/demos/.cvsignore =================================================================== RCS file: .cvsignore diff -N .cvsignore *** /dev/null Mon Nov 15 13:08:10 1999 --- /tmp/cvs09952bp Mon Nov 15 13:15:47 1999 *************** *** 0 **** --- 1,2 ---- + Makefile + Makefile.in Index: gmp-2.0.2-ssh-2/demos/Makefile.in =================================================================== RCS file: Makefile.in diff -N Makefile.in *** /tmp/cvs09952bq Mon Nov 15 13:15:47 1999 --- /dev/null Mon Nov 15 13:08:10 1999 *************** *** 1,254 **** - # Makefile.in generated automatically by automake 1.3 from Makefile.am - - # Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc. - # This Makefile.in is free software; the Free Software Foundation - # gives unlimited permission to copy and/or distribute it, - # with or without modifications, as long as this notice is preserved. - - # This program is distributed in the hope that it will be useful, - # but WITHOUT ANY WARRANTY, to the extent permitted by law; without - # even the implied warranty of MERCHANTABILITY or FITNESS FOR A - # PARTICULAR PURPOSE. - - # Copyright (C) 1991, 1993, 1994, 1996 Free Software Foundation, Inc. - - # This file is part of the GNU MP Library. - - # The GNU MP Library is free software; you can redistribute it and/or modify - # it under the terms of the GNU Library General Public License as published by - # the Free Software Foundation; either version 2 of the License, or (at your - # option) any later version. - - # The GNU MP Library is distributed in the hope that it will be useful, but - # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public - # License for more details. - - # You should have received a copy of the GNU Library General Public License - # along with the GNU MP Library; see the file COPYING.LIB. If not, write to - # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, - # MA 02111-1307, USA. - - - SHELL = /bin/sh - - srcdir = @srcdir@ - top_srcdir = @top_srcdir@ - VPATH = @srcdir@ - prefix = @prefix@ - exec_prefix = @exec_prefix@ - - bindir = @bindir@ - sbindir = @sbindir@ - libexecdir = @libexecdir@ - datadir = @datadir@ - sysconfdir = @sysconfdir@ - sharedstatedir = @sharedstatedir@ - localstatedir = @localstatedir@ - libdir = @libdir@ - infodir = @infodir@ - mandir = @mandir@ - includedir = @includedir@ - oldincludedir = /usr/include - - DISTDIR = - - pkgdatadir = $(datadir)/@PACKAGE@ - pkglibdir = $(libdir)/@PACKAGE@ - pkgincludedir = $(includedir)/@PACKAGE@ - - top_builddir = .. - - ACLOCAL = @ACLOCAL@ - AUTOCONF = @AUTOCONF@ - AUTOMAKE = @AUTOMAKE@ - AUTOHEADER = @AUTOHEADER@ - - INSTALL = @INSTALL@ - INSTALL_PROGRAM = @INSTALL_PROGRAM@ - INSTALL_DATA = @INSTALL_DATA@ - INSTALL_SCRIPT = @INSTALL_SCRIPT@ - transform = @program_transform_name@ - - NORMAL_INSTALL = : - PRE_INSTALL = : - POST_INSTALL = : - NORMAL_UNINSTALL = : - PRE_UNINSTALL = : - POST_UNINSTALL = : - host_alias = @host_alias@ - host_triplet = @host@ - CC = @CC@ - LN_S = @LN_S@ - MAKEINFO = @MAKEINFO@ - MPN_DISTCLEANFILES = @MPN_DISTCLEANFILES@ - MPN_OBJS = @MPN_OBJS@ - NM_PATH = @NM_PATH@ - PACKAGE = @PACKAGE@ - RANLIB = @RANLIB@ - SFLAGS = @SFLAGS@ - VERSION = @VERSION@ - - AUTOMAKE_OPTIONS = 1.0 foreign no-dependencies - - INCLUDES = -I.. -I$(srcdir)/.. -I../mpn -I$(srcdir)/../mpn - LDADD = ../libgmp.a - - EXTRA_PROGRAMS = factorize - - factorize_SOURCES = factorize.c - - CLEANFILES = $(EXTRA_PROGRAMS) - mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs - CONFIG_CLEAN_FILES = - - DEFS = @DEFS@ -I. -I$(srcdir) - CPPFLAGS = @CPPFLAGS@ - LDFLAGS = @LDFLAGS@ - LIBS = @LIBS@ - factorize_OBJECTS = factorize.o - factorize_LDADD = $(LDADD) - factorize_DEPENDENCIES = ../libgmp.a - factorize_LDFLAGS = - CFLAGS = @CFLAGS@ - COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) - LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@ - DIST_COMMON = Makefile.am Makefile.in - - - DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) - - TAR = tar - GZIP = --best - SOURCES = $(factorize_SOURCES) - OBJECTS = $(factorize_OBJECTS) - - all: Makefile - - .SUFFIXES: - .SUFFIXES: .S .c .o .s - $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) - cd $(top_srcdir) && $(AUTOMAKE) --foreign demos/Makefile - - Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - cd $(top_builddir) \ - && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status - - - .c.o: - $(COMPILE) -c $< - - .s.o: - $(COMPILE) -c $< - - .S.o: - $(COMPILE) -c $< - - mostlyclean-compile: - -rm -f *.o core *.core - - clean-compile: - - distclean-compile: - -rm -f *.tab.c - - maintainer-clean-compile: - - factorize: $(factorize_OBJECTS) $(factorize_DEPENDENCIES) - @rm -f factorize - $(LINK) $(factorize_LDFLAGS) $(factorize_OBJECTS) $(factorize_LDADD) $(LIBS) - - tags: TAGS - - ID: $(HEADERS) $(SOURCES) $(LISP) - here=`pwd` && cd $(srcdir) \ - && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP) - - TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS)'; \ - unique=`for i in $$list; do echo $$i; done | \ - awk ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) - - mostlyclean-tags: - - clean-tags: - - distclean-tags: - -rm -f TAGS ID - - maintainer-clean-tags: - - distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) - - subdir = demos - - distdir: $(DISTFILES) - @for file in $(DISTFILES); do \ - d=$(srcdir); \ - test -f $(distdir)/$$file \ - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ - || cp -p $$d/$$file $(distdir)/$$file; \ - done - info: - dvi: - check: all - $(MAKE) - installcheck: - install-exec: - @$(NORMAL_INSTALL) - - install-data: - @$(NORMAL_INSTALL) - - install: install-exec install-data all - @: - - uninstall: - - install-strip: - $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install - installdirs: - - - mostlyclean-generic: - -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES) - - clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - - distclean-generic: - -rm -f Makefile $(DISTCLEANFILES) - -rm -f config.cache config.log stamp-h stamp-h[0-9]* - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - - maintainer-clean-generic: - -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) - -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) - mostlyclean: mostlyclean-compile mostlyclean-tags mostlyclean-generic - - clean: clean-compile clean-tags clean-generic mostlyclean - - distclean: distclean-compile distclean-tags distclean-generic clean - -rm -f config.status - - maintainer-clean: maintainer-clean-compile maintainer-clean-tags \ - maintainer-clean-generic distclean - @echo "This command is intended for maintainers to use;" - @echo "it deletes files that may require special tools to rebuild." - - .PHONY: mostlyclean-compile distclean-compile clean-compile \ - maintainer-clean-compile tags mostlyclean-tags distclean-tags \ - clean-tags maintainer-clean-tags distdir info dvi installcheck \ - install-exec install-data install uninstall all installdirs \ - mostlyclean-generic distclean-generic clean-generic \ - maintainer-clean-generic clean mostlyclean distclean maintainer-clean - - - # Tell versions [3.59,3.63) of GNU make to not export all variables. - # Otherwise a system limit (for SysV at least) may be exceeded. - .NOEXPORT: --- 0 ---- Index: gmp-2.0.2-ssh-2/mpbsd/.cvsignore =================================================================== RCS file: .cvsignore diff -N .cvsignore *** /dev/null Mon Nov 15 13:08:10 1999 --- /tmp/cvs09952br Mon Nov 15 13:15:47 1999 *************** *** 0 **** --- 1,2 ---- + Makefile + Makefile.in Index: gmp-2.0.2-ssh-2/mpbsd/Makefile.in =================================================================== RCS file: Makefile.in diff -N Makefile.in *** /tmp/cvs09952bs Mon Nov 15 13:15:47 1999 --- /dev/null Mon Nov 15 13:08:10 1999 *************** *** 1,276 **** - # Makefile.in generated automatically by automake 1.3 from Makefile.am - - # Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc. - # This Makefile.in is free software; the Free Software Foundation - # gives unlimited permission to copy and/or distribute it, - # with or without modifications, as long as this notice is preserved. - - # This program is distributed in the hope that it will be useful, - # but WITHOUT ANY WARRANTY, to the extent permitted by law; without - # even the implied warranty of MERCHANTABILITY or FITNESS FOR A - # PARTICULAR PURPOSE. - - # Copyright (C) 1991, 1993, 1994, 1996 Free Software Foundation, Inc. - - # This file is part of the GNU MP Library. - - # The GNU MP Library is free software; you can redistribute it and/or modify - # it under the terms of the GNU Library General Public License as published by - # the Free Software Foundation; either version 2 of the License, or (at your - # option) any later version. - - # The GNU MP Library is distributed in the hope that it will be useful, but - # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public - # License for more details. - - # You should have received a copy of the GNU Library General Public License - # along with the GNU MP Library; see the file COPYING.LIB. If not, write to - # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, - # MA 02111-1307, USA. - - - SHELL = /bin/sh - - srcdir = @srcdir@ - top_srcdir = @top_srcdir@ - VPATH = @srcdir@ - prefix = @prefix@ - exec_prefix = @exec_prefix@ - - bindir = @bindir@ - sbindir = @sbindir@ - libexecdir = @libexecdir@ - datadir = @datadir@ - sysconfdir = @sysconfdir@ - sharedstatedir = @sharedstatedir@ - localstatedir = @localstatedir@ - libdir = @libdir@ - infodir = @infodir@ - mandir = @mandir@ - includedir = @includedir@ - oldincludedir = /usr/include - - DISTDIR = - - pkgdatadir = $(datadir)/@PACKAGE@ - pkglibdir = $(libdir)/@PACKAGE@ - pkgincludedir = $(includedir)/@PACKAGE@ - - top_builddir = .. - - ACLOCAL = @ACLOCAL@ - AUTOCONF = @AUTOCONF@ - AUTOMAKE = @AUTOMAKE@ - AUTOHEADER = @AUTOHEADER@ - - INSTALL = @INSTALL@ - INSTALL_PROGRAM = @INSTALL_PROGRAM@ - INSTALL_DATA = @INSTALL_DATA@ - INSTALL_SCRIPT = @INSTALL_SCRIPT@ - transform = @program_transform_name@ - - NORMAL_INSTALL = : - PRE_INSTALL = : - POST_INSTALL = : - NORMAL_UNINSTALL = : - PRE_UNINSTALL = : - POST_UNINSTALL = : - host_alias = @host_alias@ - host_triplet = @host@ - CC = @CC@ - LN_S = @LN_S@ - MAKEINFO = @MAKEINFO@ - MPN_DISTCLEANFILES = @MPN_DISTCLEANFILES@ - MPN_OBJS = @MPN_OBJS@ - NM_PATH = @NM_PATH@ - PACKAGE = @PACKAGE@ - RANLIB = @RANLIB@ - SFLAGS = @SFLAGS@ - VERSION = @VERSION@ - - AUTOMAKE_OPTIONS = 1.0 foreign no-dependencies - - noinst_LIBRARIES = libmpbsd.a - - libmpbsd_a_SOURCES = itom.c mdiv.c mfree.c min.c mout.c move.c mtox.c sdiv.c \ - xtom.c realloc.c - - libmpbsd_a_LIBADD = add.o cmp.o gcd.o mul.o pow_ui.o powm.o sqrtrem.o sub.o - - DISTCLEANFILES = add.c cmp.c dmincl.c gcd.c mul.c pow_ui.c powm.c \ - sqrtrem.c sub.c - - INCLUDES = -I.. -I$(srcdir)/.. -I../mpn -I$(srcdir)/../mpn - mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs - CONFIG_CLEAN_FILES = - LIBRARIES = $(noinst_LIBRARIES) - - - DEFS = @DEFS@ -I. -I$(srcdir) - CPPFLAGS = @CPPFLAGS@ - LDFLAGS = @LDFLAGS@ - LIBS = @LIBS@ - libmpbsd_a_DEPENDENCIES = add.o cmp.o gcd.o mul.o pow_ui.o powm.o \ - sqrtrem.o sub.o - libmpbsd_a_OBJECTS = itom.o mdiv.o mfree.o min.o mout.o move.o mtox.o \ - sdiv.o xtom.o realloc.o - AR = ar - CFLAGS = @CFLAGS@ - COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) - LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@ - DIST_COMMON = Makefile.am Makefile.in - - - DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) - - TAR = tar - GZIP = --best - SOURCES = $(libmpbsd_a_SOURCES) - OBJECTS = $(libmpbsd_a_OBJECTS) - - all: Makefile $(LIBRARIES) - - .SUFFIXES: - .SUFFIXES: .S .c .o .s - $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) - cd $(top_srcdir) && $(AUTOMAKE) --foreign mpbsd/Makefile - - Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - cd $(top_builddir) \ - && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status - - - mostlyclean-noinstLIBRARIES: - - clean-noinstLIBRARIES: - -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) - - distclean-noinstLIBRARIES: - - maintainer-clean-noinstLIBRARIES: - - .c.o: - $(COMPILE) -c $< - - .s.o: - $(COMPILE) -c $< - - .S.o: - $(COMPILE) -c $< - - mostlyclean-compile: - -rm -f *.o core *.core - - clean-compile: - - distclean-compile: - -rm -f *.tab.c - - maintainer-clean-compile: - - libmpbsd.a: $(libmpbsd_a_OBJECTS) $(libmpbsd_a_DEPENDENCIES) - -rm -f libmpbsd.a - $(AR) cru libmpbsd.a $(libmpbsd_a_OBJECTS) $(libmpbsd_a_LIBADD) - $(RANLIB) libmpbsd.a - - tags: TAGS - - ID: $(HEADERS) $(SOURCES) $(LISP) - here=`pwd` && cd $(srcdir) \ - && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP) - - TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS)'; \ - unique=`for i in $$list; do echo $$i; done | \ - awk ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) - - mostlyclean-tags: - - clean-tags: - - distclean-tags: - -rm -f TAGS ID - - maintainer-clean-tags: - - distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) - - subdir = mpbsd - - distdir: $(DISTFILES) - @for file in $(DISTFILES); do \ - d=$(srcdir); \ - test -f $(distdir)/$$file \ - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ - || cp -p $$d/$$file $(distdir)/$$file; \ - done - info: - dvi: - check: all - $(MAKE) - installcheck: - install-exec: - @$(NORMAL_INSTALL) - - install-data: - @$(NORMAL_INSTALL) - - install: install-exec install-data all - @: - - uninstall: - - install-strip: - $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install - installdirs: - - - mostlyclean-generic: - -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES) - - clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - - distclean-generic: - -rm -f Makefile $(DISTCLEANFILES) - -rm -f config.cache config.log stamp-h stamp-h[0-9]* - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - - maintainer-clean-generic: - -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) - -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) - mostlyclean: mostlyclean-noinstLIBRARIES mostlyclean-compile \ - mostlyclean-tags mostlyclean-generic - - clean: clean-noinstLIBRARIES clean-compile clean-tags clean-generic \ - mostlyclean - - distclean: distclean-noinstLIBRARIES distclean-compile distclean-tags \ - distclean-generic clean - -rm -f config.status - - maintainer-clean: maintainer-clean-noinstLIBRARIES \ - maintainer-clean-compile maintainer-clean-tags \ - maintainer-clean-generic distclean - @echo "This command is intended for maintainers to use;" - @echo "it deletes files that may require special tools to rebuild." - - .PHONY: mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \ - clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \ - mostlyclean-compile distclean-compile clean-compile \ - maintainer-clean-compile tags mostlyclean-tags distclean-tags \ - clean-tags maintainer-clean-tags distdir info dvi installcheck \ - install-exec install-data install uninstall all installdirs \ - mostlyclean-generic distclean-generic clean-generic \ - maintainer-clean-generic clean mostlyclean distclean maintainer-clean - - - # Tell versions [3.59,3.63) of GNU make to not export all variables. - # Otherwise a system limit (for SysV at least) may be exceeded. - .NOEXPORT: --- 0 ---- Index: gmp-2.0.2-ssh-2/mpf/.cvsignore =================================================================== RCS file: .cvsignore diff -N .cvsignore *** /dev/null Mon Nov 15 13:08:10 1999 --- /tmp/cvs09952bt Mon Nov 15 13:15:47 1999 *************** *** 0 **** --- 1,2 ---- + Makefile + Makefile.in Index: gmp-2.0.2-ssh-2/mpf/Makefile.in =================================================================== RCS file: Makefile.in diff -N Makefile.in *** /tmp/cvs09952bu Mon Nov 15 13:15:47 1999 --- /dev/null Mon Nov 15 13:08:10 1999 *************** *** 1,344 **** - # Makefile.in generated automatically by automake 1.3 from Makefile.am - - # Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc. - # This Makefile.in is free software; the Free Software Foundation - # gives unlimited permission to copy and/or distribute it, - # with or without modifications, as long as this notice is preserved. - - # This program is distributed in the hope that it will be useful, - # but WITHOUT ANY WARRANTY, to the extent permitted by law; without - # even the implied warranty of MERCHANTABILITY or FITNESS FOR A - # PARTICULAR PURPOSE. - - # Copyright (C) 1991, 1993, 1994, 1996 Free Software Foundation, Inc. - - # This file is part of the GNU MP Library. - - # The GNU MP Library is free software; you can redistribute it and/or modify - # it under the terms of the GNU Library General Public License as published by - # the Free Software Foundation; either version 2 of the License, or (at your - # option) any later version. - - # The GNU MP Library is distributed in the hope that it will be useful, but - # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public - # License for more details. - - # You should have received a copy of the GNU Library General Public License - # along with the GNU MP Library; see the file COPYING.LIB. If not, write to - # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, - # MA 02111-1307, USA. - - - SHELL = /bin/sh - - srcdir = @srcdir@ - top_srcdir = @top_srcdir@ - VPATH = @srcdir@ - prefix = @prefix@ - exec_prefix = @exec_prefix@ - - bindir = @bindir@ - sbindir = @sbindir@ - libexecdir = @libexecdir@ - datadir = @datadir@ - sysconfdir = @sysconfdir@ - sharedstatedir = @sharedstatedir@ - localstatedir = @localstatedir@ - libdir = @libdir@ - infodir = @infodir@ - mandir = @mandir@ - includedir = @includedir@ - oldincludedir = /usr/include - - DISTDIR = - - pkgdatadir = $(datadir)/@PACKAGE@ - pkglibdir = $(libdir)/@PACKAGE@ - pkgincludedir = $(includedir)/@PACKAGE@ - - top_builddir = .. - - ACLOCAL = @ACLOCAL@ - AUTOCONF = @AUTOCONF@ - AUTOMAKE = @AUTOMAKE@ - AUTOHEADER = @AUTOHEADER@ - - INSTALL = @INSTALL@ - INSTALL_PROGRAM = @INSTALL_PROGRAM@ - INSTALL_DATA = @INSTALL_DATA@ - INSTALL_SCRIPT = @INSTALL_SCRIPT@ - transform = @program_transform_name@ - - NORMAL_INSTALL = : - PRE_INSTALL = : - POST_INSTALL = : - NORMAL_UNINSTALL = : - PRE_UNINSTALL = : - POST_UNINSTALL = : - host_alias = @host_alias@ - host_triplet = @host@ - CC = @CC@ - LN_S = @LN_S@ - MAKEINFO = @MAKEINFO@ - MPN_DISTCLEANFILES = @MPN_DISTCLEANFILES@ - MPN_OBJS = @MPN_OBJS@ - NM_PATH = @NM_PATH@ - PACKAGE = @PACKAGE@ - RANLIB = @RANLIB@ - SFLAGS = @SFLAGS@ - VERSION = @VERSION@ - - AUTOMAKE_OPTIONS = 1.0 foreign no-dependencies - - SUBDIRS = tests - - noinst_LIBRARIES = libmpf.a - - libmpf_a_SOURCES = init.c init2.c set.c set_ui.c set_si.c set_str.c set_d.c \ - set_z.c iset.c iset_ui.c iset_si.c iset_str.c iset_d.c clear.c get_str.c \ - dump.c size.c eq.c reldiff.c sqrt.c random2.c inp_str.c out_str.c \ - add.c add_ui.c sub.c sub_ui.c ui_sub.c mul.c mul_ui.c div.c div_ui.c \ - cmp.c cmp_ui.c cmp_si.c mul_2exp.c div_2exp.c abs.c neg.c set_q.c get_d.c \ - set_dfl_prec.c set_prc.c set_prc_raw.c get_prc.c ui_div.c sqrt_ui.c - - INCLUDES = -I.. -I../mpn -I$(srcdir)/.. - mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs - CONFIG_CLEAN_FILES = - LIBRARIES = $(noinst_LIBRARIES) - - - DEFS = @DEFS@ -I. -I$(srcdir) - CPPFLAGS = @CPPFLAGS@ - LDFLAGS = @LDFLAGS@ - LIBS = @LIBS@ - libmpf_a_LIBADD = - libmpf_a_OBJECTS = init.o init2.o set.o set_ui.o set_si.o set_str.o \ - set_d.o set_z.o iset.o iset_ui.o iset_si.o iset_str.o iset_d.o clear.o \ - get_str.o dump.o size.o eq.o reldiff.o sqrt.o random2.o inp_str.o \ - out_str.o add.o add_ui.o sub.o sub_ui.o ui_sub.o mul.o mul_ui.o div.o \ - div_ui.o cmp.o cmp_ui.o cmp_si.o mul_2exp.o div_2exp.o abs.o neg.o \ - set_q.o get_d.o set_dfl_prec.o set_prc.o set_prc_raw.o get_prc.o \ - ui_div.o sqrt_ui.o - AR = ar - CFLAGS = @CFLAGS@ - COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) - LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@ - DIST_COMMON = Makefile.am Makefile.in - - - DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) - - TAR = tar - GZIP = --best - SOURCES = $(libmpf_a_SOURCES) - OBJECTS = $(libmpf_a_OBJECTS) - - all: all-recursive all-am - - .SUFFIXES: - .SUFFIXES: .S .c .o .s - $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) - cd $(top_srcdir) && $(AUTOMAKE) --foreign mpf/Makefile - - Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - cd $(top_builddir) \ - && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status - - - mostlyclean-noinstLIBRARIES: - - clean-noinstLIBRARIES: - -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) - - distclean-noinstLIBRARIES: - - maintainer-clean-noinstLIBRARIES: - - .c.o: - $(COMPILE) -c $< - - .s.o: - $(COMPILE) -c $< - - .S.o: - $(COMPILE) -c $< - - mostlyclean-compile: - -rm -f *.o core *.core - - clean-compile: - - distclean-compile: - -rm -f *.tab.c - - maintainer-clean-compile: - - libmpf.a: $(libmpf_a_OBJECTS) $(libmpf_a_DEPENDENCIES) - -rm -f libmpf.a - $(AR) cru libmpf.a $(libmpf_a_OBJECTS) $(libmpf_a_LIBADD) - $(RANLIB) libmpf.a - - # This directory's subdirectories are mostly independent; you can cd - # into them and run `make' without going through this Makefile. - # To change the values of `make' variables: instead of editing Makefiles, - # (1) if the variable is set in `config.status', edit `config.status' - # (which will cause the Makefiles to be regenerated when you run `make'); - # (2) otherwise, pass the desired values on the `make' command line. - - @SET_MAKE@ - - all-recursive install-data-recursive install-exec-recursive \ - installdirs-recursive install-recursive uninstall-recursive \ - check-recursive installcheck-recursive info-recursive dvi-recursive: - @set fnord $(MAKEFLAGS); amf=$$2; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - target=`echo $@ | sed s/-recursive//`; \ - echo "Making $$target in $$subdir"; \ - (cd $$subdir && $(MAKE) $$target) \ - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ - done && test -z "$$fail" - - mostlyclean-recursive clean-recursive distclean-recursive \ - maintainer-clean-recursive: - @set fnord $(MAKEFLAGS); amf=$$2; \ - rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \ - rev="$$subdir $$rev"; \ - done; \ - for subdir in $$rev; do \ - target=`echo $@ | sed s/-recursive//`; \ - echo "Making $$target in $$subdir"; \ - (cd $$subdir && $(MAKE) $$target) \ - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ - done && test -z "$$fail" - tags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - (cd $$subdir && $(MAKE) tags); \ - done - - tags: TAGS - - ID: $(HEADERS) $(SOURCES) $(LISP) - here=`pwd` && cd $(srcdir) \ - && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP) - - TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \ - done; \ - list='$(SOURCES) $(HEADERS)'; \ - unique=`for i in $$list; do echo $$i; done | \ - awk ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) - - mostlyclean-tags: - - clean-tags: - - distclean-tags: - -rm -f TAGS ID - - maintainer-clean-tags: - - distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) - - subdir = mpf - - distdir: $(DISTFILES) - @for file in $(DISTFILES); do \ - d=$(srcdir); \ - test -f $(distdir)/$$file \ - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ - || cp -p $$d/$$file $(distdir)/$$file; \ - done - for subdir in $(SUBDIRS); do \ - test -d $(distdir)/$$subdir \ - || mkdir $(distdir)/$$subdir \ - || exit 1; \ - chmod 777 $(distdir)/$$subdir; \ - (cd $$subdir && $(MAKE) top_distdir=../$(top_distdir) distdir=../$(distdir)/$$subdir distdir) \ - || exit 1; \ - done - info: info-recursive - dvi: dvi-recursive - check: all-am - $(MAKE) check-recursive - installcheck: installcheck-recursive - all-am: Makefile $(LIBRARIES) - - install-exec: install-exec-recursive - @$(NORMAL_INSTALL) - - install-data: install-data-recursive - @$(NORMAL_INSTALL) - - install: install-recursive - @: - - uninstall: uninstall-recursive - - install-strip: - $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install - installdirs: installdirs-recursive - - - mostlyclean-generic: - -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES) - - clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - - distclean-generic: - -rm -f Makefile $(DISTCLEANFILES) - -rm -f config.cache config.log stamp-h stamp-h[0-9]* - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - - maintainer-clean-generic: - -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) - -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) - mostlyclean-am: mostlyclean-noinstLIBRARIES mostlyclean-compile \ - mostlyclean-tags mostlyclean-generic - - clean-am: clean-noinstLIBRARIES clean-compile clean-tags clean-generic \ - mostlyclean-am - - distclean-am: distclean-noinstLIBRARIES distclean-compile \ - distclean-tags distclean-generic clean-am - - maintainer-clean-am: maintainer-clean-noinstLIBRARIES \ - maintainer-clean-compile maintainer-clean-tags \ - maintainer-clean-generic distclean-am - - mostlyclean: mostlyclean-recursive mostlyclean-am - - clean: clean-recursive clean-am - - distclean: distclean-recursive distclean-am - -rm -f config.status - - maintainer-clean: maintainer-clean-recursive maintainer-clean-am - @echo "This command is intended for maintainers to use;" - @echo "it deletes files that may require special tools to rebuild." - - .PHONY: mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \ - clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \ - mostlyclean-compile distclean-compile clean-compile \ - maintainer-clean-compile install-data-recursive \ - uninstall-data-recursive install-exec-recursive \ - uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \ - all-recursive check-recursive installcheck-recursive info-recursive \ - dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \ - maintainer-clean-recursive tags tags-recursive mostlyclean-tags \ - distclean-tags clean-tags maintainer-clean-tags distdir info dvi \ - installcheck all-am install-exec install-data install uninstall all \ - installdirs mostlyclean-generic distclean-generic clean-generic \ - maintainer-clean-generic clean mostlyclean distclean maintainer-clean - - - # Tell versions [3.59,3.63) of GNU make to not export all variables. - # Otherwise a system limit (for SysV at least) may be exceeded. - .NOEXPORT: --- 0 ---- Index: gmp-2.0.2-ssh-2/mpf/tests/.cvsignore =================================================================== RCS file: .cvsignore diff -N .cvsignore *** /dev/null Mon Nov 15 13:08:10 1999 --- /tmp/cvs09952bv Mon Nov 15 13:15:48 1999 *************** *** 0 **** --- 1,2 ---- + Makefile + Makefile.in Index: gmp-2.0.2-ssh-2/mpf/tests/Makefile.in =================================================================== RCS file: Makefile.in diff -N Makefile.in *** /tmp/cvs09952bw Mon Nov 15 13:15:48 1999 --- /dev/null Mon Nov 15 13:08:10 1999 *************** *** 1,335 **** - # Makefile.in generated automatically by automake 1.3 from Makefile.am - - # Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc. - # This Makefile.in is free software; the Free Software Foundation - # gives unlimited permission to copy and/or distribute it, - # with or without modifications, as long as this notice is preserved. - - # This program is distributed in the hope that it will be useful, - # but WITHOUT ANY WARRANTY, to the extent permitted by law; without - # even the implied warranty of MERCHANTABILITY or FITNESS FOR A - # PARTICULAR PURPOSE. - - # Copyright (C) 1991, 1993, 1994, 1996 Free Software Foundation, Inc. - - # This file is part of the GNU MP Library. - - # The GNU MP Library is free software; you can redistribute it and/or modify - # it under the terms of the GNU Library General Public License as published by - # the Free Software Foundation; either version 2 of the License, or (at your - # option) any later version. - - # The GNU MP Library is distributed in the hope that it will be useful, but - # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public - # License for more details. - - # You should have received a copy of the GNU Library General Public License - # along with the GNU MP Library; see the file COPYING.LIB. If not, write to - # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, - # MA 02111-1307, USA. - - - SHELL = /bin/sh - - srcdir = @srcdir@ - top_srcdir = @top_srcdir@ - VPATH = @srcdir@ - prefix = @prefix@ - exec_prefix = @exec_prefix@ - - bindir = @bindir@ - sbindir = @sbindir@ - libexecdir = @libexecdir@ - datadir = @datadir@ - sysconfdir = @sysconfdir@ - sharedstatedir = @sharedstatedir@ - localstatedir = @localstatedir@ - libdir = @libdir@ - infodir = @infodir@ - mandir = @mandir@ - includedir = @includedir@ - oldincludedir = /usr/include - - DISTDIR = - - pkgdatadir = $(datadir)/@PACKAGE@ - pkglibdir = $(libdir)/@PACKAGE@ - pkgincludedir = $(includedir)/@PACKAGE@ - - top_builddir = ../.. - - ACLOCAL = @ACLOCAL@ - AUTOCONF = @AUTOCONF@ - AUTOMAKE = @AUTOMAKE@ - AUTOHEADER = @AUTOHEADER@ - - INSTALL = @INSTALL@ - INSTALL_PROGRAM = @INSTALL_PROGRAM@ - INSTALL_DATA = @INSTALL_DATA@ - INSTALL_SCRIPT = @INSTALL_SCRIPT@ - transform = @program_transform_name@ - - NORMAL_INSTALL = : - PRE_INSTALL = : - POST_INSTALL = : - NORMAL_UNINSTALL = : - PRE_UNINSTALL = : - POST_UNINSTALL = : - host_alias = @host_alias@ - host_triplet = @host@ - CC = @CC@ - LN_S = @LN_S@ - MAKEINFO = @MAKEINFO@ - MPN_DISTCLEANFILES = @MPN_DISTCLEANFILES@ - MPN_OBJS = @MPN_OBJS@ - NM_PATH = @NM_PATH@ - PACKAGE = @PACKAGE@ - RANLIB = @RANLIB@ - SFLAGS = @SFLAGS@ - VERSION = @VERSION@ - - AUTOMAKE_OPTIONS = 1.0 foreign no-dependencies - - INCLUDES = -I../.. -I$(srcdir)/../.. -I../../mpn -I$(srcdir)/../../mpn - LDADD = ../../libgmp.a - - TESTS = reuse t-add t-conv t-dm2exp t-muldiv t-sqrt t-sub - - EXTRA_PROGRAMS = reuse t-add t-conv t-dm2exp t-muldiv t-sqrt t-sub - - reuse_SOURCES = reuse.c - t_add_SOURCES = t-add.c ref.c - t_conv_SOURCES = t-conv.c - t_dm2exp_SOURCES = t-dm2exp.c - t_muldiv_SOURCES = t-muldiv.c - t_sqrt_SOURCES = t-sqrt.c - t_sub_SOURCES = t-sub.c ref.c - - CLEANFILES = $(EXTRA_PROGRAMS) - mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs - CONFIG_CLEAN_FILES = - - DEFS = @DEFS@ -I. -I$(srcdir) - CPPFLAGS = @CPPFLAGS@ - LDFLAGS = @LDFLAGS@ - LIBS = @LIBS@ - reuse_OBJECTS = reuse.o - reuse_LDADD = $(LDADD) - reuse_DEPENDENCIES = ../../libgmp.a - reuse_LDFLAGS = - t_add_OBJECTS = t-add.o ref.o - t_add_LDADD = $(LDADD) - t_add_DEPENDENCIES = ../../libgmp.a - t_add_LDFLAGS = - t_conv_OBJECTS = t-conv.o - t_conv_LDADD = $(LDADD) - t_conv_DEPENDENCIES = ../../libgmp.a - t_conv_LDFLAGS = - t_dm2exp_OBJECTS = t-dm2exp.o - t_dm2exp_LDADD = $(LDADD) - t_dm2exp_DEPENDENCIES = ../../libgmp.a - t_dm2exp_LDFLAGS = - t_muldiv_OBJECTS = t-muldiv.o - t_muldiv_LDADD = $(LDADD) - t_muldiv_DEPENDENCIES = ../../libgmp.a - t_muldiv_LDFLAGS = - t_sqrt_OBJECTS = t-sqrt.o - t_sqrt_LDADD = $(LDADD) - t_sqrt_DEPENDENCIES = ../../libgmp.a - t_sqrt_LDFLAGS = - t_sub_OBJECTS = t-sub.o ref.o - t_sub_LDADD = $(LDADD) - t_sub_DEPENDENCIES = ../../libgmp.a - t_sub_LDFLAGS = - CFLAGS = @CFLAGS@ - COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) - LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@ - DIST_COMMON = Makefile.am Makefile.in - - - DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) - - TAR = tar - GZIP = --best - SOURCES = $(reuse_SOURCES) $(t_add_SOURCES) $(t_conv_SOURCES) $(t_dm2exp_SOURCES) $(t_muldiv_SOURCES) $(t_sqrt_SOURCES) $(t_sub_SOURCES) - OBJECTS = $(reuse_OBJECTS) $(t_add_OBJECTS) $(t_conv_OBJECTS) $(t_dm2exp_OBJECTS) $(t_muldiv_OBJECTS) $(t_sqrt_OBJECTS) $(t_sub_OBJECTS) - - all: Makefile - - .SUFFIXES: - .SUFFIXES: .S .c .o .s - $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) - cd $(top_srcdir) && $(AUTOMAKE) --foreign mpf/tests/Makefile - - Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - cd $(top_builddir) \ - && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status - - - .c.o: - $(COMPILE) -c $< - - .s.o: - $(COMPILE) -c $< - - .S.o: - $(COMPILE) -c $< - - mostlyclean-compile: - -rm -f *.o core *.core - - clean-compile: - - distclean-compile: - -rm -f *.tab.c - - maintainer-clean-compile: - - reuse: $(reuse_OBJECTS) $(reuse_DEPENDENCIES) - @rm -f reuse - $(LINK) $(reuse_LDFLAGS) $(reuse_OBJECTS) $(reuse_LDADD) $(LIBS) - - t-add: $(t_add_OBJECTS) $(t_add_DEPENDENCIES) - @rm -f t-add - $(LINK) $(t_add_LDFLAGS) $(t_add_OBJECTS) $(t_add_LDADD) $(LIBS) - - t-conv: $(t_conv_OBJECTS) $(t_conv_DEPENDENCIES) - @rm -f t-conv - $(LINK) $(t_conv_LDFLAGS) $(t_conv_OBJECTS) $(t_conv_LDADD) $(LIBS) - - t-dm2exp: $(t_dm2exp_OBJECTS) $(t_dm2exp_DEPENDENCIES) - @rm -f t-dm2exp - $(LINK) $(t_dm2exp_LDFLAGS) $(t_dm2exp_OBJECTS) $(t_dm2exp_LDADD) $(LIBS) - - t-muldiv: $(t_muldiv_OBJECTS) $(t_muldiv_DEPENDENCIES) - @rm -f t-muldiv - $(LINK) $(t_muldiv_LDFLAGS) $(t_muldiv_OBJECTS) $(t_muldiv_LDADD) $(LIBS) - - t-sqrt: $(t_sqrt_OBJECTS) $(t_sqrt_DEPENDENCIES) - @rm -f t-sqrt - $(LINK) $(t_sqrt_LDFLAGS) $(t_sqrt_OBJECTS) $(t_sqrt_LDADD) $(LIBS) - - t-sub: $(t_sub_OBJECTS) $(t_sub_DEPENDENCIES) - @rm -f t-sub - $(LINK) $(t_sub_LDFLAGS) $(t_sub_OBJECTS) $(t_sub_LDADD) $(LIBS) - - tags: TAGS - - ID: $(HEADERS) $(SOURCES) $(LISP) - here=`pwd` && cd $(srcdir) \ - && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP) - - TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS)'; \ - unique=`for i in $$list; do echo $$i; done | \ - awk ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) - - mostlyclean-tags: - - clean-tags: - - distclean-tags: - -rm -f TAGS ID - - maintainer-clean-tags: - - distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) - - subdir = mpf/tests - - distdir: $(DISTFILES) - @for file in $(DISTFILES); do \ - d=$(srcdir); \ - test -f $(distdir)/$$file \ - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ - || cp -p $$d/$$file $(distdir)/$$file; \ - done - check-TESTS: $(TESTS) - @failed=0; all=0; \ - srcdir=$(srcdir); export srcdir; \ - for tst in $(TESTS); do \ - if test -f $$tst; then dir=.; \ - else dir="$(srcdir)"; fi; \ - if $(TESTS_ENVIRONMENT) $$dir/$$tst; then \ - all=`expr $$all + 1`; \ - echo "PASS: $$tst"; \ - elif test $$? -ne 77; then \ - all=`expr $$all + 1`; \ - failed=`expr $$failed + 1`; \ - echo "FAIL: $$tst"; \ - fi; \ - done; \ - if test "$$failed" -eq 0; then \ - banner="All $$all tests passed"; \ - else \ - banner="$$failed of $$all tests failed"; \ - fi; \ - dashes=`echo "$$banner" | sed s/./=/g`; \ - echo "$$dashes"; \ - echo "$$banner"; \ - echo "$$dashes"; \ - test "$$failed" -eq 0 - info: - dvi: - check: all - $(MAKE) check-TESTS - installcheck: - install-exec: - @$(NORMAL_INSTALL) - - install-data: - @$(NORMAL_INSTALL) - - install: install-exec install-data all - @: - - uninstall: - - install-strip: - $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install - installdirs: - - - mostlyclean-generic: - -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES) - - clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - - distclean-generic: - -rm -f Makefile $(DISTCLEANFILES) - -rm -f config.cache config.log stamp-h stamp-h[0-9]* - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - - maintainer-clean-generic: - -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) - -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) - mostlyclean: mostlyclean-compile mostlyclean-tags mostlyclean-generic - - clean: clean-compile clean-tags clean-generic mostlyclean - - distclean: distclean-compile distclean-tags distclean-generic clean - -rm -f config.status - - maintainer-clean: maintainer-clean-compile maintainer-clean-tags \ - maintainer-clean-generic distclean - @echo "This command is intended for maintainers to use;" - @echo "it deletes files that may require special tools to rebuild." - - .PHONY: mostlyclean-compile distclean-compile clean-compile \ - maintainer-clean-compile tags mostlyclean-tags distclean-tags \ - clean-tags maintainer-clean-tags distdir check-TESTS info dvi \ - installcheck install-exec install-data install uninstall all \ - installdirs mostlyclean-generic distclean-generic clean-generic \ - maintainer-clean-generic clean mostlyclean distclean maintainer-clean - - - # Tell versions [3.59,3.63) of GNU make to not export all variables. - # Otherwise a system limit (for SysV at least) may be exceeded. - .NOEXPORT: --- 0 ---- Index: gmp-2.0.2-ssh-2/mpn/.cvsignore =================================================================== RCS file: .cvsignore diff -N .cvsignore *** /dev/null Mon Nov 15 13:08:10 1999 --- /tmp/cvs09952bx Mon Nov 15 13:15:49 1999 *************** *** 0 **** --- 1,3 ---- + Makefile + Makefile.in + asm-syntax.h Index: gmp-2.0.2-ssh-2/mpn/Makefile.in =================================================================== RCS file: Makefile.in diff -N Makefile.in *** /tmp/cvs09952by Mon Nov 15 13:15:49 1999 --- /dev/null Mon Nov 15 13:08:10 1999 *************** *** 1,347 **** - # Makefile.in generated automatically by automake 1.3 from Makefile.am - - # Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc. - # This Makefile.in is free software; the Free Software Foundation - # gives unlimited permission to copy and/or distribute it, - # with or without modifications, as long as this notice is preserved. - - # This program is distributed in the hope that it will be useful, - # but WITHOUT ANY WARRANTY, to the extent permitted by law; without - # even the implied warranty of MERCHANTABILITY or FITNESS FOR A - # PARTICULAR PURPOSE. - - # Copyright (C) 1991, 1993, 1994, 1996 Free Software Foundation, Inc. - - # This file is part of the GNU MP Library. - - # The GNU MP Library is free software; you can redistribute it and/or modify - # it under the terms of the GNU Library General Public License as published by - # the Free Software Foundation; either version 2 of the License, or (at your - # option) any later version. - - # The GNU MP Library is distributed in the hope that it will be useful, but - # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public - # License for more details. - - # You should have received a copy of the GNU Library General Public License - # along with the GNU MP Library; see the file COPYING.LIB. If not, write to - # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, - # MA 02111-1307, USA. - - - SHELL = /bin/sh - - srcdir = @srcdir@ - top_srcdir = @top_srcdir@ - VPATH = @srcdir@ - prefix = @prefix@ - exec_prefix = @exec_prefix@ - - bindir = @bindir@ - sbindir = @sbindir@ - libexecdir = @libexecdir@ - datadir = @datadir@ - sysconfdir = @sysconfdir@ - sharedstatedir = @sharedstatedir@ - localstatedir = @localstatedir@ - libdir = @libdir@ - infodir = @infodir@ - mandir = @mandir@ - includedir = @includedir@ - oldincludedir = /usr/include - - DISTDIR = - - pkgdatadir = $(datadir)/@PACKAGE@ - pkglibdir = $(libdir)/@PACKAGE@ - pkgincludedir = $(includedir)/@PACKAGE@ - - top_builddir = .. - - ACLOCAL = @ACLOCAL@ - AUTOCONF = @AUTOCONF@ - AUTOMAKE = @AUTOMAKE@ - AUTOHEADER = @AUTOHEADER@ - - INSTALL = @INSTALL@ - INSTALL_PROGRAM = @INSTALL_PROGRAM@ - INSTALL_DATA = @INSTALL_DATA@ - INSTALL_SCRIPT = @INSTALL_SCRIPT@ - transform = @program_transform_name@ - - NORMAL_INSTALL = : - PRE_INSTALL = : - POST_INSTALL = : - NORMAL_UNINSTALL = : - PRE_UNINSTALL = : - POST_UNINSTALL = : - host_alias = @host_alias@ - host_triplet = @host@ - CC = @CC@ - LN_S = @LN_S@ - MAKEINFO = @MAKEINFO@ - MPN_DISTCLEANFILES = @MPN_DISTCLEANFILES@ - MPN_OBJS = @MPN_OBJS@ - NM_PATH = @NM_PATH@ - PACKAGE = @PACKAGE@ - RANLIB = @RANLIB@ - VERSION = @VERSION@ - - AUTOMAKE_OPTIONS = 1.0 foreign no-dependencies - - SUBDIRS = tests - - noinst_LIBRARIES = libmpn.a - noinst_HEADERS = sysdep.h - - libmpn_a_SOURCES = mp_bases.c - libmpn_a_LIBADD = @MPN_OBJS@ - libmpn_a_DEPENDENCIES = @MPN_OBJS@ - - INCLUDES = -I.. -I$(srcdir)/.. - - SFLAGS = @SFLAGS@ - CPP = @CPP@ - - SUFFIXES = .S .s - - DISTCLEANFILES = @MPN_DISTCLEANFILES@ - CLEANFILES = tmp-*.s - mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs - CONFIG_CLEAN_FILES = - LIBRARIES = $(noinst_LIBRARIES) - - - DEFS = @DEFS@ -I. -I$(srcdir) - CPPFLAGS = @CPPFLAGS@ - LDFLAGS = @LDFLAGS@ - LIBS = @LIBS@ - libmpn_a_OBJECTS = mp_bases.o - AR = ar - CFLAGS = @CFLAGS@ - COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) - LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@ - HEADERS = $(noinst_HEADERS) - - DIST_COMMON = README Makefile.am Makefile.in - - - DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) - - TAR = tar - GZIP = --best - SOURCES = $(libmpn_a_SOURCES) - OBJECTS = $(libmpn_a_OBJECTS) - - all: all-recursive all-am - - .SUFFIXES: - .SUFFIXES: .S .c .o .s - $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) - cd $(top_srcdir) && $(AUTOMAKE) --foreign mpn/Makefile - - Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - cd $(top_builddir) \ - && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status - - - mostlyclean-noinstLIBRARIES: - - clean-noinstLIBRARIES: - -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) - - distclean-noinstLIBRARIES: - - maintainer-clean-noinstLIBRARIES: - - .c.o: - $(COMPILE) -c $< - - mostlyclean-compile: - -rm -f *.o core *.core - - clean-compile: - - distclean-compile: - -rm -f *.tab.c - - maintainer-clean-compile: - - libmpn.a: $(libmpn_a_OBJECTS) $(libmpn_a_DEPENDENCIES) - -rm -f libmpn.a - $(AR) cru libmpn.a $(libmpn_a_OBJECTS) $(libmpn_a_LIBADD) - $(RANLIB) libmpn.a - - # This directory's subdirectories are mostly independent; you can cd - # into them and run `make' without going through this Makefile. - # To change the values of `make' variables: instead of editing Makefiles, - # (1) if the variable is set in `config.status', edit `config.status' - # (which will cause the Makefiles to be regenerated when you run `make'); - # (2) otherwise, pass the desired values on the `make' command line. - - @SET_MAKE@ - - all-recursive install-data-recursive install-exec-recursive \ - installdirs-recursive install-recursive uninstall-recursive \ - check-recursive installcheck-recursive info-recursive dvi-recursive: - @set fnord $(MAKEFLAGS); amf=$$2; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - target=`echo $@ | sed s/-recursive//`; \ - echo "Making $$target in $$subdir"; \ - (cd $$subdir && $(MAKE) $$target) \ - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ - done && test -z "$$fail" - - mostlyclean-recursive clean-recursive distclean-recursive \ - maintainer-clean-recursive: - @set fnord $(MAKEFLAGS); amf=$$2; \ - rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \ - rev="$$subdir $$rev"; \ - done; \ - for subdir in $$rev; do \ - target=`echo $@ | sed s/-recursive//`; \ - echo "Making $$target in $$subdir"; \ - (cd $$subdir && $(MAKE) $$target) \ - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ - done && test -z "$$fail" - tags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - (cd $$subdir && $(MAKE) tags); \ - done - - tags: TAGS - - ID: $(HEADERS) $(SOURCES) $(LISP) - here=`pwd` && cd $(srcdir) \ - && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP) - - TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \ - done; \ - list='$(SOURCES) $(HEADERS)'; \ - unique=`for i in $$list; do echo $$i; done | \ - awk ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) - - mostlyclean-tags: - - clean-tags: - - distclean-tags: - -rm -f TAGS ID - - maintainer-clean-tags: - - distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) - - subdir = mpn - - distdir: $(DISTFILES) - @for file in $(DISTFILES); do \ - d=$(srcdir); \ - test -f $(distdir)/$$file \ - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ - || cp -p $$d/$$file $(distdir)/$$file; \ - done - for subdir in $(SUBDIRS); do \ - test -d $(distdir)/$$subdir \ - || mkdir $(distdir)/$$subdir \ - || exit 1; \ - chmod 777 $(distdir)/$$subdir; \ - (cd $$subdir && $(MAKE) top_distdir=../$(top_distdir) distdir=../$(distdir)/$$subdir distdir) \ - || exit 1; \ - done - info: info-recursive - dvi: dvi-recursive - check: all-am - $(MAKE) check-recursive - installcheck: installcheck-recursive - all-am: Makefile $(LIBRARIES) $(HEADERS) - - install-exec: install-exec-recursive - @$(NORMAL_INSTALL) - - install-data: install-data-recursive - @$(NORMAL_INSTALL) - - install: install-recursive - @: - - uninstall: uninstall-recursive - - install-strip: - $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install - installdirs: installdirs-recursive - - - mostlyclean-generic: - -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES) - - clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - - distclean-generic: - -rm -f Makefile $(DISTCLEANFILES) - -rm -f config.cache config.log stamp-h stamp-h[0-9]* - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - - maintainer-clean-generic: - -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) - -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) - mostlyclean-am: mostlyclean-noinstLIBRARIES mostlyclean-compile \ - mostlyclean-tags mostlyclean-generic - - clean-am: clean-noinstLIBRARIES clean-compile clean-tags clean-generic \ - mostlyclean-am - - distclean-am: distclean-noinstLIBRARIES distclean-compile \ - distclean-tags distclean-generic clean-am - - maintainer-clean-am: maintainer-clean-noinstLIBRARIES \ - maintainer-clean-compile maintainer-clean-tags \ - maintainer-clean-generic distclean-am - - mostlyclean: mostlyclean-recursive mostlyclean-am - - clean: clean-recursive clean-am - - distclean: distclean-recursive distclean-am - -rm -f config.status - - maintainer-clean: maintainer-clean-recursive maintainer-clean-am - @echo "This command is intended for maintainers to use;" - @echo "it deletes files that may require special tools to rebuild." - - .PHONY: mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \ - clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \ - mostlyclean-compile distclean-compile clean-compile \ - maintainer-clean-compile install-data-recursive \ - uninstall-data-recursive install-exec-recursive \ - uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \ - all-recursive check-recursive installcheck-recursive info-recursive \ - dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \ - maintainer-clean-recursive tags tags-recursive mostlyclean-tags \ - distclean-tags clean-tags maintainer-clean-tags distdir info dvi \ - installcheck all-am install-exec install-data install uninstall all \ - installdirs mostlyclean-generic distclean-generic clean-generic \ - maintainer-clean-generic clean mostlyclean distclean maintainer-clean - - - .s.o: - $(CC) -c $(CFLAGS) $(SFLAGS) $< - - .S.o: - $(CPP) $(INCLUDES) $(DEFS) $< | grep -v '^#' >tmp-$*.s - $(CC) $(CFLAGS) $(SFLAGS) -c tmp-$*.s - mv tmp-$*.o $@ - rm -f tmp-$*.s - - # Tell versions [3.59,3.63) of GNU make to not export all variables. - # Otherwise a system limit (for SysV at least) may be exceeded. - .NOEXPORT: --- 0 ---- Index: gmp-2.0.2-ssh-2/mpn/tests/.cvsignore =================================================================== RCS file: .cvsignore diff -N .cvsignore *** /dev/null Mon Nov 15 13:08:10 1999 --- /tmp/cvs09952bz Mon Nov 15 13:15:57 1999 *************** *** 0 **** --- 1,2 ---- + Makefile + Makefile.in Index: gmp-2.0.2-ssh-2/mpn/tests/Makefile.in =================================================================== RCS file: Makefile.in diff -N Makefile.in *** /tmp/cvs09952ca Mon Nov 15 13:15:57 1999 --- /dev/null Mon Nov 15 13:08:10 1999 *************** *** 1,284 **** - # Makefile.in generated automatically by automake 1.3 from Makefile.am - - # Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc. - # This Makefile.in is free software; the Free Software Foundation - # gives unlimited permission to copy and/or distribute it, - # with or without modifications, as long as this notice is preserved. - - # This program is distributed in the hope that it will be useful, - # but WITHOUT ANY WARRANTY, to the extent permitted by law; without - # even the implied warranty of MERCHANTABILITY or FITNESS FOR A - # PARTICULAR PURPOSE. - - # Copyright (C) 1991, 1993, 1994, 1996 Free Software Foundation, Inc. - - # This file is part of the GNU MP Library. - - # The GNU MP Library is free software; you can redistribute it and/or modify - # it under the terms of the GNU Library General Public License as published by - # the Free Software Foundation; either version 2 of the License, or (at your - # option) any later version. - - # The GNU MP Library is distributed in the hope that it will be useful, but - # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public - # License for more details. - - # You should have received a copy of the GNU Library General Public License - # along with the GNU MP Library; see the file COPYING.LIB. If not, write to - # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, - # MA 02111-1307, USA. - - - SHELL = /bin/sh - - srcdir = @srcdir@ - top_srcdir = @top_srcdir@ - VPATH = @srcdir@ - prefix = @prefix@ - exec_prefix = @exec_prefix@ - - bindir = @bindir@ - sbindir = @sbindir@ - libexecdir = @libexecdir@ - datadir = @datadir@ - sysconfdir = @sysconfdir@ - sharedstatedir = @sharedstatedir@ - localstatedir = @localstatedir@ - libdir = @libdir@ - infodir = @infodir@ - mandir = @mandir@ - includedir = @includedir@ - oldincludedir = /usr/include - - DISTDIR = - - pkgdatadir = $(datadir)/@PACKAGE@ - pkglibdir = $(libdir)/@PACKAGE@ - pkgincludedir = $(includedir)/@PACKAGE@ - - top_builddir = ../.. - - ACLOCAL = @ACLOCAL@ - AUTOCONF = @AUTOCONF@ - AUTOMAKE = @AUTOMAKE@ - AUTOHEADER = @AUTOHEADER@ - - INSTALL = @INSTALL@ - INSTALL_PROGRAM = @INSTALL_PROGRAM@ - INSTALL_DATA = @INSTALL_DATA@ - INSTALL_SCRIPT = @INSTALL_SCRIPT@ - transform = @program_transform_name@ - - NORMAL_INSTALL = : - PRE_INSTALL = : - POST_INSTALL = : - NORMAL_UNINSTALL = : - PRE_UNINSTALL = : - POST_UNINSTALL = : - host_alias = @host_alias@ - host_triplet = @host@ - CC = @CC@ - LN_S = @LN_S@ - MAKEINFO = @MAKEINFO@ - MPN_DISTCLEANFILES = @MPN_DISTCLEANFILES@ - MPN_OBJS = @MPN_OBJS@ - NM_PATH = @NM_PATH@ - PACKAGE = @PACKAGE@ - RANLIB = @RANLIB@ - SFLAGS = @SFLAGS@ - VERSION = @VERSION@ - - AUTOMAKE_OPTIONS = 1.0 foreign no-dependencies - - INCLUDES = -I../.. -I$(srcdir)/../.. -I../../mpn -I$(srcdir)/../../mpn - LDADD = ../../libgmp.a - - TESTS = tst-addsub - - EXTRA_PROGRAMS = tst-addsub - - EXTRA_DIST = add_n.c addmul_1.c divmod_1.c divrem.c lshift.c mul_1.c \ - rshift.c mul_1.c rshift.c sub_n.c submul_1.c - - tst_addsub_SOURCES = tst-addsub.c - - CLEANFILES = $(EXTRA_PROGRAMS) - mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs - CONFIG_CLEAN_FILES = - - DEFS = @DEFS@ -I. -I$(srcdir) - CPPFLAGS = @CPPFLAGS@ - LDFLAGS = @LDFLAGS@ - LIBS = @LIBS@ - tst_addsub_OBJECTS = tst-addsub.o - tst_addsub_LDADD = $(LDADD) - tst_addsub_DEPENDENCIES = ../../libgmp.a - tst_addsub_LDFLAGS = - CFLAGS = @CFLAGS@ - COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) - LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@ - DIST_COMMON = Makefile.am Makefile.in - - - DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) - - TAR = tar - GZIP = --best - SOURCES = $(tst_addsub_SOURCES) - OBJECTS = $(tst_addsub_OBJECTS) - - all: Makefile - - .SUFFIXES: - .SUFFIXES: .S .c .o .s - $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) - cd $(top_srcdir) && $(AUTOMAKE) --foreign mpn/tests/Makefile - - Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - cd $(top_builddir) \ - && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status - - - .c.o: - $(COMPILE) -c $< - - .s.o: - $(COMPILE) -c $< - - .S.o: - $(COMPILE) -c $< - - mostlyclean-compile: - -rm -f *.o core *.core - - clean-compile: - - distclean-compile: - -rm -f *.tab.c - - maintainer-clean-compile: - - tst-addsub: $(tst_addsub_OBJECTS) $(tst_addsub_DEPENDENCIES) - @rm -f tst-addsub - $(LINK) $(tst_addsub_LDFLAGS) $(tst_addsub_OBJECTS) $(tst_addsub_LDADD) $(LIBS) - - tags: TAGS - - ID: $(HEADERS) $(SOURCES) $(LISP) - here=`pwd` && cd $(srcdir) \ - && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP) - - TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS)'; \ - unique=`for i in $$list; do echo $$i; done | \ - awk ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) - - mostlyclean-tags: - - clean-tags: - - distclean-tags: - -rm -f TAGS ID - - maintainer-clean-tags: - - distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) - - subdir = mpn/tests - - distdir: $(DISTFILES) - @for file in $(DISTFILES); do \ - d=$(srcdir); \ - test -f $(distdir)/$$file \ - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ - || cp -p $$d/$$file $(distdir)/$$file; \ - done - check-TESTS: $(TESTS) - @failed=0; all=0; \ - srcdir=$(srcdir); export srcdir; \ - for tst in $(TESTS); do \ - if test -f $$tst; then dir=.; \ - else dir="$(srcdir)"; fi; \ - if $(TESTS_ENVIRONMENT) $$dir/$$tst; then \ - all=`expr $$all + 1`; \ - echo "PASS: $$tst"; \ - elif test $$? -ne 77; then \ - all=`expr $$all + 1`; \ - failed=`expr $$failed + 1`; \ - echo "FAIL: $$tst"; \ - fi; \ - done; \ - if test "$$failed" -eq 0; then \ - banner="All $$all tests passed"; \ - else \ - banner="$$failed of $$all tests failed"; \ - fi; \ - dashes=`echo "$$banner" | sed s/./=/g`; \ - echo "$$dashes"; \ - echo "$$banner"; \ - echo "$$dashes"; \ - test "$$failed" -eq 0 - info: - dvi: - check: all - $(MAKE) check-TESTS - installcheck: - install-exec: - @$(NORMAL_INSTALL) - - install-data: - @$(NORMAL_INSTALL) - - install: install-exec install-data all - @: - - uninstall: - - install-strip: - $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install - installdirs: - - - mostlyclean-generic: - -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES) - - clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - - distclean-generic: - -rm -f Makefile $(DISTCLEANFILES) - -rm -f config.cache config.log stamp-h stamp-h[0-9]* - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - - maintainer-clean-generic: - -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) - -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) - mostlyclean: mostlyclean-compile mostlyclean-tags mostlyclean-generic - - clean: clean-compile clean-tags clean-generic mostlyclean - - distclean: distclean-compile distclean-tags distclean-generic clean - -rm -f config.status - - maintainer-clean: maintainer-clean-compile maintainer-clean-tags \ - maintainer-clean-generic distclean - @echo "This command is intended for maintainers to use;" - @echo "it deletes files that may require special tools to rebuild." - - .PHONY: mostlyclean-compile distclean-compile clean-compile \ - maintainer-clean-compile tags mostlyclean-tags distclean-tags \ - clean-tags maintainer-clean-tags distdir check-TESTS info dvi \ - installcheck install-exec install-data install uninstall all \ - installdirs mostlyclean-generic distclean-generic clean-generic \ - maintainer-clean-generic clean mostlyclean distclean maintainer-clean - - - # Tell versions [3.59,3.63) of GNU make to not export all variables. - # Otherwise a system limit (for SysV at least) may be exceeded. - .NOEXPORT: --- 0 ---- Index: gmp-2.0.2-ssh-2/mpq/.cvsignore =================================================================== RCS file: .cvsignore diff -N .cvsignore *** /dev/null Mon Nov 15 13:08:10 1999 --- /tmp/cvs09952cb Mon Nov 15 13:15:59 1999 *************** *** 0 **** --- 1,2 ---- + Makefile + Makefile.in Index: gmp-2.0.2-ssh-2/mpq/Makefile.in =================================================================== RCS file: Makefile.in diff -N Makefile.in *** /tmp/cvs09952cc Mon Nov 15 13:15:59 1999 --- /dev/null Mon Nov 15 13:08:10 1999 *************** *** 1,337 **** - # Makefile.in generated automatically by automake 1.3 from Makefile.am - - # Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc. - # This Makefile.in is free software; the Free Software Foundation - # gives unlimited permission to copy and/or distribute it, - # with or without modifications, as long as this notice is preserved. - - # This program is distributed in the hope that it will be useful, - # but WITHOUT ANY WARRANTY, to the extent permitted by law; without - # even the implied warranty of MERCHANTABILITY or FITNESS FOR A - # PARTICULAR PURPOSE. - - # Copyright (C) 1991, 1993, 1994, 1996 Free Software Foundation, Inc. - - # This file is part of the GNU MP Library. - - # The GNU MP Library is free software; you can redistribute it and/or modify - # it under the terms of the GNU Library General Public License as published by - # the Free Software Foundation; either version 2 of the License, or (at your - # option) any later version. - - # The GNU MP Library is distributed in the hope that it will be useful, but - # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public - # License for more details. - - # You should have received a copy of the GNU Library General Public License - # along with the GNU MP Library; see the file COPYING.LIB. If not, write to - # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, - # MA 02111-1307, USA. - - - SHELL = /bin/sh - - srcdir = @srcdir@ - top_srcdir = @top_srcdir@ - VPATH = @srcdir@ - prefix = @prefix@ - exec_prefix = @exec_prefix@ - - bindir = @bindir@ - sbindir = @sbindir@ - libexecdir = @libexecdir@ - datadir = @datadir@ - sysconfdir = @sysconfdir@ - sharedstatedir = @sharedstatedir@ - localstatedir = @localstatedir@ - libdir = @libdir@ - infodir = @infodir@ - mandir = @mandir@ - includedir = @includedir@ - oldincludedir = /usr/include - - DISTDIR = - - pkgdatadir = $(datadir)/@PACKAGE@ - pkglibdir = $(libdir)/@PACKAGE@ - pkgincludedir = $(includedir)/@PACKAGE@ - - top_builddir = .. - - ACLOCAL = @ACLOCAL@ - AUTOCONF = @AUTOCONF@ - AUTOMAKE = @AUTOMAKE@ - AUTOHEADER = @AUTOHEADER@ - - INSTALL = @INSTALL@ - INSTALL_PROGRAM = @INSTALL_PROGRAM@ - INSTALL_DATA = @INSTALL_DATA@ - INSTALL_SCRIPT = @INSTALL_SCRIPT@ - transform = @program_transform_name@ - - NORMAL_INSTALL = : - PRE_INSTALL = : - POST_INSTALL = : - NORMAL_UNINSTALL = : - PRE_UNINSTALL = : - POST_UNINSTALL = : - host_alias = @host_alias@ - host_triplet = @host@ - CC = @CC@ - LN_S = @LN_S@ - MAKEINFO = @MAKEINFO@ - MPN_DISTCLEANFILES = @MPN_DISTCLEANFILES@ - MPN_OBJS = @MPN_OBJS@ - NM_PATH = @NM_PATH@ - PACKAGE = @PACKAGE@ - RANLIB = @RANLIB@ - SFLAGS = @SFLAGS@ - VERSION = @VERSION@ - - AUTOMAKE_OPTIONS = 1.0 foreign no-dependencies - - SUBDIRS = tests - - noinst_LIBRARIES = libmpq.a - - libmpq_a_SOURCES = add.c canonicalize.c clear.c cmp.c cmp_ui.c div.c get_d.c \ - get_den.c get_num.c init.c inv.c mul.c neg.c set.c set_den.c set_num.c \ - set_si.c set_ui.c sub.c equal.c set_z.c - - INCLUDES = -I.. -I../mpn -I$(srcdir)/.. - mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs - CONFIG_CLEAN_FILES = - LIBRARIES = $(noinst_LIBRARIES) - - - DEFS = @DEFS@ -I. -I$(srcdir) - CPPFLAGS = @CPPFLAGS@ - LDFLAGS = @LDFLAGS@ - LIBS = @LIBS@ - libmpq_a_LIBADD = - libmpq_a_OBJECTS = add.o canonicalize.o clear.o cmp.o cmp_ui.o div.o \ - get_d.o get_den.o get_num.o init.o inv.o mul.o neg.o set.o set_den.o \ - set_num.o set_si.o set_ui.o sub.o equal.o set_z.o - AR = ar - CFLAGS = @CFLAGS@ - COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) - LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@ - DIST_COMMON = Makefile.am Makefile.in - - - DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) - - TAR = tar - GZIP = --best - SOURCES = $(libmpq_a_SOURCES) - OBJECTS = $(libmpq_a_OBJECTS) - - all: all-recursive all-am - - .SUFFIXES: - .SUFFIXES: .S .c .o .s - $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) - cd $(top_srcdir) && $(AUTOMAKE) --foreign mpq/Makefile - - Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - cd $(top_builddir) \ - && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status - - - mostlyclean-noinstLIBRARIES: - - clean-noinstLIBRARIES: - -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) - - distclean-noinstLIBRARIES: - - maintainer-clean-noinstLIBRARIES: - - .c.o: - $(COMPILE) -c $< - - .s.o: - $(COMPILE) -c $< - - .S.o: - $(COMPILE) -c $< - - mostlyclean-compile: - -rm -f *.o core *.core - - clean-compile: - - distclean-compile: - -rm -f *.tab.c - - maintainer-clean-compile: - - libmpq.a: $(libmpq_a_OBJECTS) $(libmpq_a_DEPENDENCIES) - -rm -f libmpq.a - $(AR) cru libmpq.a $(libmpq_a_OBJECTS) $(libmpq_a_LIBADD) - $(RANLIB) libmpq.a - - # This directory's subdirectories are mostly independent; you can cd - # into them and run `make' without going through this Makefile. - # To change the values of `make' variables: instead of editing Makefiles, - # (1) if the variable is set in `config.status', edit `config.status' - # (which will cause the Makefiles to be regenerated when you run `make'); - # (2) otherwise, pass the desired values on the `make' command line. - - @SET_MAKE@ - - all-recursive install-data-recursive install-exec-recursive \ - installdirs-recursive install-recursive uninstall-recursive \ - check-recursive installcheck-recursive info-recursive dvi-recursive: - @set fnord $(MAKEFLAGS); amf=$$2; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - target=`echo $@ | sed s/-recursive//`; \ - echo "Making $$target in $$subdir"; \ - (cd $$subdir && $(MAKE) $$target) \ - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ - done && test -z "$$fail" - - mostlyclean-recursive clean-recursive distclean-recursive \ - maintainer-clean-recursive: - @set fnord $(MAKEFLAGS); amf=$$2; \ - rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \ - rev="$$subdir $$rev"; \ - done; \ - for subdir in $$rev; do \ - target=`echo $@ | sed s/-recursive//`; \ - echo "Making $$target in $$subdir"; \ - (cd $$subdir && $(MAKE) $$target) \ - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ - done && test -z "$$fail" - tags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - (cd $$subdir && $(MAKE) tags); \ - done - - tags: TAGS - - ID: $(HEADERS) $(SOURCES) $(LISP) - here=`pwd` && cd $(srcdir) \ - && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP) - - TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \ - done; \ - list='$(SOURCES) $(HEADERS)'; \ - unique=`for i in $$list; do echo $$i; done | \ - awk ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) - - mostlyclean-tags: - - clean-tags: - - distclean-tags: - -rm -f TAGS ID - - maintainer-clean-tags: - - distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) - - subdir = mpq - - distdir: $(DISTFILES) - @for file in $(DISTFILES); do \ - d=$(srcdir); \ - test -f $(distdir)/$$file \ - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ - || cp -p $$d/$$file $(distdir)/$$file; \ - done - for subdir in $(SUBDIRS); do \ - test -d $(distdir)/$$subdir \ - || mkdir $(distdir)/$$subdir \ - || exit 1; \ - chmod 777 $(distdir)/$$subdir; \ - (cd $$subdir && $(MAKE) top_distdir=../$(top_distdir) distdir=../$(distdir)/$$subdir distdir) \ - || exit 1; \ - done - info: info-recursive - dvi: dvi-recursive - check: all-am - $(MAKE) check-recursive - installcheck: installcheck-recursive - all-am: Makefile $(LIBRARIES) - - install-exec: install-exec-recursive - @$(NORMAL_INSTALL) - - install-data: install-data-recursive - @$(NORMAL_INSTALL) - - install: install-recursive - @: - - uninstall: uninstall-recursive - - install-strip: - $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install - installdirs: installdirs-recursive - - - mostlyclean-generic: - -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES) - - clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - - distclean-generic: - -rm -f Makefile $(DISTCLEANFILES) - -rm -f config.cache config.log stamp-h stamp-h[0-9]* - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - - maintainer-clean-generic: - -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) - -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) - mostlyclean-am: mostlyclean-noinstLIBRARIES mostlyclean-compile \ - mostlyclean-tags mostlyclean-generic - - clean-am: clean-noinstLIBRARIES clean-compile clean-tags clean-generic \ - mostlyclean-am - - distclean-am: distclean-noinstLIBRARIES distclean-compile \ - distclean-tags distclean-generic clean-am - - maintainer-clean-am: maintainer-clean-noinstLIBRARIES \ - maintainer-clean-compile maintainer-clean-tags \ - maintainer-clean-generic distclean-am - - mostlyclean: mostlyclean-recursive mostlyclean-am - - clean: clean-recursive clean-am - - distclean: distclean-recursive distclean-am - -rm -f config.status - - maintainer-clean: maintainer-clean-recursive maintainer-clean-am - @echo "This command is intended for maintainers to use;" - @echo "it deletes files that may require special tools to rebuild." - - .PHONY: mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \ - clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \ - mostlyclean-compile distclean-compile clean-compile \ - maintainer-clean-compile install-data-recursive \ - uninstall-data-recursive install-exec-recursive \ - uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \ - all-recursive check-recursive installcheck-recursive info-recursive \ - dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \ - maintainer-clean-recursive tags tags-recursive mostlyclean-tags \ - distclean-tags clean-tags maintainer-clean-tags distdir info dvi \ - installcheck all-am install-exec install-data install uninstall all \ - installdirs mostlyclean-generic distclean-generic clean-generic \ - maintainer-clean-generic clean mostlyclean distclean maintainer-clean - - - # Tell versions [3.59,3.63) of GNU make to not export all variables. - # Otherwise a system limit (for SysV at least) may be exceeded. - .NOEXPORT: --- 0 ---- Index: gmp-2.0.2-ssh-2/mpq/tests/.cvsignore =================================================================== RCS file: .cvsignore diff -N .cvsignore *** /dev/null Mon Nov 15 13:08:10 1999 --- /tmp/cvs09952cd Mon Nov 15 13:16:00 1999 *************** *** 0 **** --- 1,2 ---- + Makefile + Makefile.in Index: gmp-2.0.2-ssh-2/mpq/tests/Makefile.in =================================================================== RCS file: Makefile.in diff -N Makefile.in *** /tmp/cvs09952ce Mon Nov 15 13:16:00 1999 --- /dev/null Mon Nov 15 13:08:10 1999 *************** *** 1,299 **** - # Makefile.in generated automatically by automake 1.3 from Makefile.am - - # Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc. - # This Makefile.in is free software; the Free Software Foundation - # gives unlimited permission to copy and/or distribute it, - # with or without modifications, as long as this notice is preserved. - - # This program is distributed in the hope that it will be useful, - # but WITHOUT ANY WARRANTY, to the extent permitted by law; without - # even the implied warranty of MERCHANTABILITY or FITNESS FOR A - # PARTICULAR PURPOSE. - - # Copyright (C) 1991, 1993, 1994, 1996 Free Software Foundation, Inc. - - # This file is part of the GNU MP Library. - - # The GNU MP Library is free software; you can redistribute it and/or modify - # it under the terms of the GNU Library General Public License as published by - # the Free Software Foundation; either version 2 of the License, or (at your - # option) any later version. - - # The GNU MP Library is distributed in the hope that it will be useful, but - # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public - # License for more details. - - # You should have received a copy of the GNU Library General Public License - # along with the GNU MP Library; see the file COPYING.LIB. If not, write to - # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, - # MA 02111-1307, USA. - - - SHELL = /bin/sh - - srcdir = @srcdir@ - top_srcdir = @top_srcdir@ - VPATH = @srcdir@ - prefix = @prefix@ - exec_prefix = @exec_prefix@ - - bindir = @bindir@ - sbindir = @sbindir@ - libexecdir = @libexecdir@ - datadir = @datadir@ - sysconfdir = @sysconfdir@ - sharedstatedir = @sharedstatedir@ - localstatedir = @localstatedir@ - libdir = @libdir@ - infodir = @infodir@ - mandir = @mandir@ - includedir = @includedir@ - oldincludedir = /usr/include - - DISTDIR = - - pkgdatadir = $(datadir)/@PACKAGE@ - pkglibdir = $(libdir)/@PACKAGE@ - pkgincludedir = $(includedir)/@PACKAGE@ - - top_builddir = ../.. - - ACLOCAL = @ACLOCAL@ - AUTOCONF = @AUTOCONF@ - AUTOMAKE = @AUTOMAKE@ - AUTOHEADER = @AUTOHEADER@ - - INSTALL = @INSTALL@ - INSTALL_PROGRAM = @INSTALL_PROGRAM@ - INSTALL_DATA = @INSTALL_DATA@ - INSTALL_SCRIPT = @INSTALL_SCRIPT@ - transform = @program_transform_name@ - - NORMAL_INSTALL = : - PRE_INSTALL = : - POST_INSTALL = : - NORMAL_UNINSTALL = : - PRE_UNINSTALL = : - POST_UNINSTALL = : - host_alias = @host_alias@ - host_triplet = @host@ - CC = @CC@ - LN_S = @LN_S@ - MAKEINFO = @MAKEINFO@ - MPN_DISTCLEANFILES = @MPN_DISTCLEANFILES@ - MPN_OBJS = @MPN_OBJS@ - NM_PATH = @NM_PATH@ - PACKAGE = @PACKAGE@ - RANLIB = @RANLIB@ - SFLAGS = @SFLAGS@ - VERSION = @VERSION@ - - AUTOMAKE_OPTIONS = 1.0 foreign no-dependencies - - INCLUDES = -I../.. -I$(srcdir)/../.. -I../../mpn -I$(srcdir)/../../mpn - LDADD = ../../libgmp.a - - TESTS = t-cmp t-cmp_ui t-get_d - - EXTRA_PROGRAMS = t-cmp t-cmp_ui t-get_d - - t_cmp_SOURCES = t-cmp.c - t_cmp_ui_SOURCES = t-cmp_ui.c - t_get_d_SOURCES = t-get_d.c - - CLEANFILES = $(EXTRA_PROGRAMS) - mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs - CONFIG_CLEAN_FILES = - - DEFS = @DEFS@ -I. -I$(srcdir) - CPPFLAGS = @CPPFLAGS@ - LDFLAGS = @LDFLAGS@ - LIBS = @LIBS@ - t_cmp_OBJECTS = t-cmp.o - t_cmp_LDADD = $(LDADD) - t_cmp_DEPENDENCIES = ../../libgmp.a - t_cmp_LDFLAGS = - t_cmp_ui_OBJECTS = t-cmp_ui.o - t_cmp_ui_LDADD = $(LDADD) - t_cmp_ui_DEPENDENCIES = ../../libgmp.a - t_cmp_ui_LDFLAGS = - t_get_d_OBJECTS = t-get_d.o - t_get_d_LDADD = $(LDADD) - t_get_d_DEPENDENCIES = ../../libgmp.a - t_get_d_LDFLAGS = - CFLAGS = @CFLAGS@ - COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) - LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@ - DIST_COMMON = Makefile.am Makefile.in - - - DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) - - TAR = tar - GZIP = --best - SOURCES = $(t_cmp_SOURCES) $(t_cmp_ui_SOURCES) $(t_get_d_SOURCES) - OBJECTS = $(t_cmp_OBJECTS) $(t_cmp_ui_OBJECTS) $(t_get_d_OBJECTS) - - all: Makefile - - .SUFFIXES: - .SUFFIXES: .S .c .o .s - $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) - cd $(top_srcdir) && $(AUTOMAKE) --foreign mpq/tests/Makefile - - Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - cd $(top_builddir) \ - && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status - - - .c.o: - $(COMPILE) -c $< - - .s.o: - $(COMPILE) -c $< - - .S.o: - $(COMPILE) -c $< - - mostlyclean-compile: - -rm -f *.o core *.core - - clean-compile: - - distclean-compile: - -rm -f *.tab.c - - maintainer-clean-compile: - - t-cmp: $(t_cmp_OBJECTS) $(t_cmp_DEPENDENCIES) - @rm -f t-cmp - $(LINK) $(t_cmp_LDFLAGS) $(t_cmp_OBJECTS) $(t_cmp_LDADD) $(LIBS) - - t-cmp_ui: $(t_cmp_ui_OBJECTS) $(t_cmp_ui_DEPENDENCIES) - @rm -f t-cmp_ui - $(LINK) $(t_cmp_ui_LDFLAGS) $(t_cmp_ui_OBJECTS) $(t_cmp_ui_LDADD) $(LIBS) - - t-get_d: $(t_get_d_OBJECTS) $(t_get_d_DEPENDENCIES) - @rm -f t-get_d - $(LINK) $(t_get_d_LDFLAGS) $(t_get_d_OBJECTS) $(t_get_d_LDADD) $(LIBS) - - tags: TAGS - - ID: $(HEADERS) $(SOURCES) $(LISP) - here=`pwd` && cd $(srcdir) \ - && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP) - - TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS)'; \ - unique=`for i in $$list; do echo $$i; done | \ - awk ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) - - mostlyclean-tags: - - clean-tags: - - distclean-tags: - -rm -f TAGS ID - - maintainer-clean-tags: - - distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) - - subdir = mpq/tests - - distdir: $(DISTFILES) - @for file in $(DISTFILES); do \ - d=$(srcdir); \ - test -f $(distdir)/$$file \ - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ - || cp -p $$d/$$file $(distdir)/$$file; \ - done - check-TESTS: $(TESTS) - @failed=0; all=0; \ - srcdir=$(srcdir); export srcdir; \ - for tst in $(TESTS); do \ - if test -f $$tst; then dir=.; \ - else dir="$(srcdir)"; fi; \ - if $(TESTS_ENVIRONMENT) $$dir/$$tst; then \ - all=`expr $$all + 1`; \ - echo "PASS: $$tst"; \ - elif test $$? -ne 77; then \ - all=`expr $$all + 1`; \ - failed=`expr $$failed + 1`; \ - echo "FAIL: $$tst"; \ - fi; \ - done; \ - if test "$$failed" -eq 0; then \ - banner="All $$all tests passed"; \ - else \ - banner="$$failed of $$all tests failed"; \ - fi; \ - dashes=`echo "$$banner" | sed s/./=/g`; \ - echo "$$dashes"; \ - echo "$$banner"; \ - echo "$$dashes"; \ - test "$$failed" -eq 0 - info: - dvi: - check: all - $(MAKE) check-TESTS - installcheck: - install-exec: - @$(NORMAL_INSTALL) - - install-data: - @$(NORMAL_INSTALL) - - install: install-exec install-data all - @: - - uninstall: - - install-strip: - $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install - installdirs: - - - mostlyclean-generic: - -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES) - - clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - - distclean-generic: - -rm -f Makefile $(DISTCLEANFILES) - -rm -f config.cache config.log stamp-h stamp-h[0-9]* - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - - maintainer-clean-generic: - -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) - -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) - mostlyclean: mostlyclean-compile mostlyclean-tags mostlyclean-generic - - clean: clean-compile clean-tags clean-generic mostlyclean - - distclean: distclean-compile distclean-tags distclean-generic clean - -rm -f config.status - - maintainer-clean: maintainer-clean-compile maintainer-clean-tags \ - maintainer-clean-generic distclean - @echo "This command is intended for maintainers to use;" - @echo "it deletes files that may require special tools to rebuild." - - .PHONY: mostlyclean-compile distclean-compile clean-compile \ - maintainer-clean-compile tags mostlyclean-tags distclean-tags \ - clean-tags maintainer-clean-tags distdir check-TESTS info dvi \ - installcheck install-exec install-data install uninstall all \ - installdirs mostlyclean-generic distclean-generic clean-generic \ - maintainer-clean-generic clean mostlyclean distclean maintainer-clean - - - # Tell versions [3.59,3.63) of GNU make to not export all variables. - # Otherwise a system limit (for SysV at least) may be exceeded. - .NOEXPORT: --- 0 ---- Index: gmp-2.0.2-ssh-2/mpz/.cvsignore =================================================================== RCS file: .cvsignore diff -N .cvsignore *** /dev/null Mon Nov 15 13:08:10 1999 --- /tmp/cvs09952cf Mon Nov 15 13:16:00 1999 *************** *** 0 **** --- 1,2 ---- + Makefile + Makefile.in Index: gmp-2.0.2-ssh-2/mpz/Makefile.in =================================================================== RCS file: Makefile.in diff -N Makefile.in *** /tmp/cvs09952cg Mon Nov 15 13:16:01 1999 --- /dev/null Mon Nov 15 13:08:10 1999 *************** *** 1,361 **** - # Makefile.in generated automatically by automake 1.3 from Makefile.am - - # Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc. - # This Makefile.in is free software; the Free Software Foundation - # gives unlimited permission to copy and/or distribute it, - # with or without modifications, as long as this notice is preserved. - - # This program is distributed in the hope that it will be useful, - # but WITHOUT ANY WARRANTY, to the extent permitted by law; without - # even the implied warranty of MERCHANTABILITY or FITNESS FOR A - # PARTICULAR PURPOSE. - - # Copyright (C) 1991, 1993, 1994, 1996 Free Software Foundation, Inc. - - # This file is part of the GNU MP Library. - - # The GNU MP Library is free software; you can redistribute it and/or modify - # it under the terms of the GNU Library General Public License as published by - # the Free Software Foundation; either version 2 of the License, or (at your - # option) any later version. - - # The GNU MP Library is distributed in the hope that it will be useful, but - # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public - # License for more details. - - # You should have received a copy of the GNU Library General Public License - # along with the GNU MP Library; see the file COPYING.LIB. If not, write to - # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, - # MA 02111-1307, USA. - - - SHELL = /bin/sh - - srcdir = @srcdir@ - top_srcdir = @top_srcdir@ - VPATH = @srcdir@ - prefix = @prefix@ - exec_prefix = @exec_prefix@ - - bindir = @bindir@ - sbindir = @sbindir@ - libexecdir = @libexecdir@ - datadir = @datadir@ - sysconfdir = @sysconfdir@ - sharedstatedir = @sharedstatedir@ - localstatedir = @localstatedir@ - libdir = @libdir@ - infodir = @infodir@ - mandir = @mandir@ - includedir = @includedir@ - oldincludedir = /usr/include - - DISTDIR = - - pkgdatadir = $(datadir)/@PACKAGE@ - pkglibdir = $(libdir)/@PACKAGE@ - pkgincludedir = $(includedir)/@PACKAGE@ - - top_builddir = .. - - ACLOCAL = @ACLOCAL@ - AUTOCONF = @AUTOCONF@ - AUTOMAKE = @AUTOMAKE@ - AUTOHEADER = @AUTOHEADER@ - - INSTALL = @INSTALL@ - INSTALL_PROGRAM = @INSTALL_PROGRAM@ - INSTALL_DATA = @INSTALL_DATA@ - INSTALL_SCRIPT = @INSTALL_SCRIPT@ - transform = @program_transform_name@ - - NORMAL_INSTALL = : - PRE_INSTALL = : - POST_INSTALL = : - NORMAL_UNINSTALL = : - PRE_UNINSTALL = : - POST_UNINSTALL = : - host_alias = @host_alias@ - host_triplet = @host@ - CC = @CC@ - LN_S = @LN_S@ - MAKEINFO = @MAKEINFO@ - MPN_DISTCLEANFILES = @MPN_DISTCLEANFILES@ - MPN_OBJS = @MPN_OBJS@ - NM_PATH = @NM_PATH@ - PACKAGE = @PACKAGE@ - RANLIB = @RANLIB@ - SFLAGS = @SFLAGS@ - VERSION = @VERSION@ - - AUTOMAKE_OPTIONS = 1.0 foreign no-dependencies - - SUBDIRS = tests - - noinst_LIBRARIES = libmpz.a - - libmpz_a_SOURCES = init.c set.c set_ui.c set_si.c set_str.c set_d.c set_f.c \ - set_q.c iset.c iset_ui.c iset_si.c iset_str.c iset_d.c clear.c \ - get_ui.c get_si.c get_str.c get_d.c size.c sizeinbase.c \ - add.c add_ui.c sub.c sub_ui.c mul.c mul_ui.c \ - gcd.c gcd_ui.c gcdext.c sqrt.c sqrtrem.c powm.c powm_ui.c \ - cmp.c cmp_ui.c cmp_si.c mul_2exp.c fdiv_q_2exp.c fdiv_r_2exp.c \ - tdiv_q_2exp.c tdiv_r_2exp.c abs.c neg.c com.c and.c ior.c \ - inp_raw.c inp_str.c out_raw.c out_str.c \ - perfsqr.c random.c random2.c pow_ui.c ui_pow_ui.c setbit.c \ - clrbit.c fac_ui.c pprime_p.c realloc.c getlimbn.c popcount.c hamdist.c \ - cdiv_qr.c cdiv_q.c cdiv_r.c cdiv_qr_ui.c cdiv_q_ui.c cdiv_r_ui.c cdiv_ui.c \ - fdiv_qr.c fdiv_q.c fdiv_r.c fdiv_qr_ui.c fdiv_q_ui.c fdiv_r_ui.c fdiv_ui.c \ - tdiv_qr.c tdiv_q.c tdiv_r.c tdiv_qr_ui.c tdiv_q_ui.c tdiv_r_ui.c \ - mod.c divexact.c array_init.c scan0.c scan1.c \ - jacobi.c legendre.c invert.c - - EXTRA_DIST = dmincl.c - - INCLUDES = -I.. -I../mpn -I$(srcdir)/.. - mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs - CONFIG_CLEAN_FILES = - LIBRARIES = $(noinst_LIBRARIES) - - - DEFS = @DEFS@ -I. -I$(srcdir) - CPPFLAGS = @CPPFLAGS@ - LDFLAGS = @LDFLAGS@ - LIBS = @LIBS@ - libmpz_a_LIBADD = - libmpz_a_OBJECTS = init.o set.o set_ui.o set_si.o set_str.o set_d.o \ - set_f.o set_q.o iset.o iset_ui.o iset_si.o iset_str.o iset_d.o clear.o \ - get_ui.o get_si.o get_str.o get_d.o size.o sizeinbase.o add.o add_ui.o \ - sub.o sub_ui.o mul.o mul_ui.o gcd.o gcd_ui.o gcdext.o sqrt.o sqrtrem.o \ - powm.o powm_ui.o cmp.o cmp_ui.o cmp_si.o mul_2exp.o fdiv_q_2exp.o \ - fdiv_r_2exp.o tdiv_q_2exp.o tdiv_r_2exp.o abs.o neg.o com.o and.o ior.o \ - inp_raw.o inp_str.o out_raw.o out_str.o perfsqr.o random.o random2.o \ - pow_ui.o ui_pow_ui.o setbit.o clrbit.o fac_ui.o pprime_p.o realloc.o \ - getlimbn.o popcount.o hamdist.o cdiv_qr.o cdiv_q.o cdiv_r.o \ - cdiv_qr_ui.o cdiv_q_ui.o cdiv_r_ui.o cdiv_ui.o fdiv_qr.o fdiv_q.o \ - fdiv_r.o fdiv_qr_ui.o fdiv_q_ui.o fdiv_r_ui.o fdiv_ui.o tdiv_qr.o \ - tdiv_q.o tdiv_r.o tdiv_qr_ui.o tdiv_q_ui.o tdiv_r_ui.o mod.o divexact.o \ - array_init.o scan0.o scan1.o jacobi.o legendre.o invert.o - AR = ar - CFLAGS = @CFLAGS@ - COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) - LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@ - DIST_COMMON = Makefile.am Makefile.in - - - DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) - - TAR = tar - GZIP = --best - SOURCES = $(libmpz_a_SOURCES) - OBJECTS = $(libmpz_a_OBJECTS) - - all: all-recursive all-am - - .SUFFIXES: - .SUFFIXES: .S .c .o .s - $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) - cd $(top_srcdir) && $(AUTOMAKE) --foreign mpz/Makefile - - Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - cd $(top_builddir) \ - && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status - - - mostlyclean-noinstLIBRARIES: - - clean-noinstLIBRARIES: - -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) - - distclean-noinstLIBRARIES: - - maintainer-clean-noinstLIBRARIES: - - .c.o: - $(COMPILE) -c $< - - .s.o: - $(COMPILE) -c $< - - .S.o: - $(COMPILE) -c $< - - mostlyclean-compile: - -rm -f *.o core *.core - - clean-compile: - - distclean-compile: - -rm -f *.tab.c - - maintainer-clean-compile: - - libmpz.a: $(libmpz_a_OBJECTS) $(libmpz_a_DEPENDENCIES) - -rm -f libmpz.a - $(AR) cru libmpz.a $(libmpz_a_OBJECTS) $(libmpz_a_LIBADD) - $(RANLIB) libmpz.a - - # This directory's subdirectories are mostly independent; you can cd - # into them and run `make' without going through this Makefile. - # To change the values of `make' variables: instead of editing Makefiles, - # (1) if the variable is set in `config.status', edit `config.status' - # (which will cause the Makefiles to be regenerated when you run `make'); - # (2) otherwise, pass the desired values on the `make' command line. - - @SET_MAKE@ - - all-recursive install-data-recursive install-exec-recursive \ - installdirs-recursive install-recursive uninstall-recursive \ - check-recursive installcheck-recursive info-recursive dvi-recursive: - @set fnord $(MAKEFLAGS); amf=$$2; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - target=`echo $@ | sed s/-recursive//`; \ - echo "Making $$target in $$subdir"; \ - (cd $$subdir && $(MAKE) $$target) \ - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ - done && test -z "$$fail" - - mostlyclean-recursive clean-recursive distclean-recursive \ - maintainer-clean-recursive: - @set fnord $(MAKEFLAGS); amf=$$2; \ - rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \ - rev="$$subdir $$rev"; \ - done; \ - for subdir in $$rev; do \ - target=`echo $@ | sed s/-recursive//`; \ - echo "Making $$target in $$subdir"; \ - (cd $$subdir && $(MAKE) $$target) \ - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ - done && test -z "$$fail" - tags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - (cd $$subdir && $(MAKE) tags); \ - done - - tags: TAGS - - ID: $(HEADERS) $(SOURCES) $(LISP) - here=`pwd` && cd $(srcdir) \ - && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP) - - TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \ - done; \ - list='$(SOURCES) $(HEADERS)'; \ - unique=`for i in $$list; do echo $$i; done | \ - awk ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) - - mostlyclean-tags: - - clean-tags: - - distclean-tags: - -rm -f TAGS ID - - maintainer-clean-tags: - - distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) - - subdir = mpz - - distdir: $(DISTFILES) - @for file in $(DISTFILES); do \ - d=$(srcdir); \ - test -f $(distdir)/$$file \ - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ - || cp -p $$d/$$file $(distdir)/$$file; \ - done - for subdir in $(SUBDIRS); do \ - test -d $(distdir)/$$subdir \ - || mkdir $(distdir)/$$subdir \ - || exit 1; \ - chmod 777 $(distdir)/$$subdir; \ - (cd $$subdir && $(MAKE) top_distdir=../$(top_distdir) distdir=../$(distdir)/$$subdir distdir) \ - || exit 1; \ - done - info: info-recursive - dvi: dvi-recursive - check: all-am - $(MAKE) check-recursive - installcheck: installcheck-recursive - all-am: Makefile $(LIBRARIES) - - install-exec: install-exec-recursive - @$(NORMAL_INSTALL) - - install-data: install-data-recursive - @$(NORMAL_INSTALL) - - install: install-recursive - @: - - uninstall: uninstall-recursive - - install-strip: - $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install - installdirs: installdirs-recursive - - - mostlyclean-generic: - -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES) - - clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - - distclean-generic: - -rm -f Makefile $(DISTCLEANFILES) - -rm -f config.cache config.log stamp-h stamp-h[0-9]* - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - - maintainer-clean-generic: - -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) - -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) - mostlyclean-am: mostlyclean-noinstLIBRARIES mostlyclean-compile \ - mostlyclean-tags mostlyclean-generic - - clean-am: clean-noinstLIBRARIES clean-compile clean-tags clean-generic \ - mostlyclean-am - - distclean-am: distclean-noinstLIBRARIES distclean-compile \ - distclean-tags distclean-generic clean-am - - maintainer-clean-am: maintainer-clean-noinstLIBRARIES \ - maintainer-clean-compile maintainer-clean-tags \ - maintainer-clean-generic distclean-am - - mostlyclean: mostlyclean-recursive mostlyclean-am - - clean: clean-recursive clean-am - - distclean: distclean-recursive distclean-am - -rm -f config.status - - maintainer-clean: maintainer-clean-recursive maintainer-clean-am - @echo "This command is intended for maintainers to use;" - @echo "it deletes files that may require special tools to rebuild." - - .PHONY: mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \ - clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \ - mostlyclean-compile distclean-compile clean-compile \ - maintainer-clean-compile install-data-recursive \ - uninstall-data-recursive install-exec-recursive \ - uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \ - all-recursive check-recursive installcheck-recursive info-recursive \ - dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \ - maintainer-clean-recursive tags tags-recursive mostlyclean-tags \ - distclean-tags clean-tags maintainer-clean-tags distdir info dvi \ - installcheck all-am install-exec install-data install uninstall all \ - installdirs mostlyclean-generic distclean-generic clean-generic \ - maintainer-clean-generic clean mostlyclean distclean maintainer-clean - - - # Tell versions [3.59,3.63) of GNU make to not export all variables. - # Otherwise a system limit (for SysV at least) may be exceeded. - .NOEXPORT: --- 0 ---- Index: gmp-2.0.2-ssh-2/mpz/tests/.cvsignore =================================================================== RCS file: .cvsignore diff -N .cvsignore *** /dev/null Mon Nov 15 13:08:10 1999 --- /tmp/cvs09952ch Mon Nov 15 13:16:02 1999 *************** *** 0 **** --- 1,2 ---- + Makefile + Makefile.in Index: gmp-2.0.2-ssh-2/mpz/tests/Makefile.in =================================================================== RCS file: Makefile.in diff -N Makefile.in *** /tmp/cvs09952ci Mon Nov 15 13:16:02 1999 --- /dev/null Mon Nov 15 13:08:10 1999 *************** *** 1,411 **** - # Makefile.in generated automatically by automake 1.3 from Makefile.am - - # Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc. - # This Makefile.in is free software; the Free Software Foundation - # gives unlimited permission to copy and/or distribute it, - # with or without modifications, as long as this notice is preserved. - - # This program is distributed in the hope that it will be useful, - # but WITHOUT ANY WARRANTY, to the extent permitted by law; without - # even the implied warranty of MERCHANTABILITY or FITNESS FOR A - # PARTICULAR PURPOSE. - - # Copyright (C) 1991, 1993, 1994, 1996 Free Software Foundation, Inc. - - # This file is part of the GNU MP Library. - - # The GNU MP Library is free software; you can redistribute it and/or modify - # it under the terms of the GNU Library General Public License as published by - # the Free Software Foundation; either version 2 of the License, or (at your - # option) any later version. - - # The GNU MP Library is distributed in the hope that it will be useful, but - # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public - # License for more details. - - # You should have received a copy of the GNU Library General Public License - # along with the GNU MP Library; see the file COPYING.LIB. If not, write to - # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, - # MA 02111-1307, USA. - - - SHELL = /bin/sh - - srcdir = @srcdir@ - top_srcdir = @top_srcdir@ - VPATH = @srcdir@ - prefix = @prefix@ - exec_prefix = @exec_prefix@ - - bindir = @bindir@ - sbindir = @sbindir@ - libexecdir = @libexecdir@ - datadir = @datadir@ - sysconfdir = @sysconfdir@ - sharedstatedir = @sharedstatedir@ - localstatedir = @localstatedir@ - libdir = @libdir@ - infodir = @infodir@ - mandir = @mandir@ - includedir = @includedir@ - oldincludedir = /usr/include - - DISTDIR = - - pkgdatadir = $(datadir)/@PACKAGE@ - pkglibdir = $(libdir)/@PACKAGE@ - pkgincludedir = $(includedir)/@PACKAGE@ - - top_builddir = ../.. - - ACLOCAL = @ACLOCAL@ - AUTOCONF = @AUTOCONF@ - AUTOMAKE = @AUTOMAKE@ - AUTOHEADER = @AUTOHEADER@ - - INSTALL = @INSTALL@ - INSTALL_PROGRAM = @INSTALL_PROGRAM@ - INSTALL_DATA = @INSTALL_DATA@ - INSTALL_SCRIPT = @INSTALL_SCRIPT@ - transform = @program_transform_name@ - - NORMAL_INSTALL = : - PRE_INSTALL = : - POST_INSTALL = : - NORMAL_UNINSTALL = : - PRE_UNINSTALL = : - POST_UNINSTALL = : - host_alias = @host_alias@ - host_triplet = @host@ - CC = @CC@ - LN_S = @LN_S@ - MAKEINFO = @MAKEINFO@ - MPN_DISTCLEANFILES = @MPN_DISTCLEANFILES@ - MPN_OBJS = @MPN_OBJS@ - NM_PATH = @NM_PATH@ - PACKAGE = @PACKAGE@ - RANLIB = @RANLIB@ - SFLAGS = @SFLAGS@ - VERSION = @VERSION@ - - AUTOMAKE_OPTIONS = 1.0 foreign no-dependencies - - INCLUDES = -I../.. -I$(srcdir)/../.. -I../../mpn -I$(srcdir)/../../mpn - LDADD = ../../libgmp.a - - TESTS = t-mul t-tdiv t-tdiv_ui t-fdiv t-fdiv_ui t-gcd t-gcd2 \ - dive t-sqrtrem convert io logic t-powm t-powm_ui reuse - - EXTRA_PROGRAMS = t-mul t-tdiv t-tdiv_ui t-fdiv t-fdiv_ui t-gcd t-gcd2 \ - dive t-sqrtrem convert io logic t-powm t-powm_ui reuse - - t_mul_SOURCES = t-mul.c - t_tdiv_SOURCES = t-tdiv.c - t_tdiv_ui_SOURCES = t-tdiv_ui.c - t_fdiv_SOURCES = t-fdiv.c - t_fdiv_ui_SOURCES = t-fdiv_ui.c - t_gcd_SOURCES = t-gcd.c - t_gcd2_SOURCES = t-gcd2.c - dive_SOURCES = dive.c - t_sqrtrem_SOURCES = t-sqrtrem.c - convert_SOURCES = convert.c - io_SOURCES = io.c - logic_SOURCES = logic.c - t_powm_SOURCES = t-powm.c - t_powm_ui_SOURCES = t-powm_ui.c - reuse_SOURCES = reuse.c - - EXTRA_DIST = io-binary.c - - CLEANFILES = $(EXTRA_PROGRAMS) - mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs - CONFIG_CLEAN_FILES = - - DEFS = @DEFS@ -I. -I$(srcdir) - CPPFLAGS = @CPPFLAGS@ - LDFLAGS = @LDFLAGS@ - LIBS = @LIBS@ - t_mul_OBJECTS = t-mul.o - t_mul_LDADD = $(LDADD) - t_mul_DEPENDENCIES = ../../libgmp.a - t_mul_LDFLAGS = - t_tdiv_OBJECTS = t-tdiv.o - t_tdiv_LDADD = $(LDADD) - t_tdiv_DEPENDENCIES = ../../libgmp.a - t_tdiv_LDFLAGS = - t_tdiv_ui_OBJECTS = t-tdiv_ui.o - t_tdiv_ui_LDADD = $(LDADD) - t_tdiv_ui_DEPENDENCIES = ../../libgmp.a - t_tdiv_ui_LDFLAGS = - t_fdiv_OBJECTS = t-fdiv.o - t_fdiv_LDADD = $(LDADD) - t_fdiv_DEPENDENCIES = ../../libgmp.a - t_fdiv_LDFLAGS = - t_fdiv_ui_OBJECTS = t-fdiv_ui.o - t_fdiv_ui_LDADD = $(LDADD) - t_fdiv_ui_DEPENDENCIES = ../../libgmp.a - t_fdiv_ui_LDFLAGS = - t_gcd_OBJECTS = t-gcd.o - t_gcd_LDADD = $(LDADD) - t_gcd_DEPENDENCIES = ../../libgmp.a - t_gcd_LDFLAGS = - t_gcd2_OBJECTS = t-gcd2.o - t_gcd2_LDADD = $(LDADD) - t_gcd2_DEPENDENCIES = ../../libgmp.a - t_gcd2_LDFLAGS = - dive_OBJECTS = dive.o - dive_LDADD = $(LDADD) - dive_DEPENDENCIES = ../../libgmp.a - dive_LDFLAGS = - t_sqrtrem_OBJECTS = t-sqrtrem.o - t_sqrtrem_LDADD = $(LDADD) - t_sqrtrem_DEPENDENCIES = ../../libgmp.a - t_sqrtrem_LDFLAGS = - convert_OBJECTS = convert.o - convert_LDADD = $(LDADD) - convert_DEPENDENCIES = ../../libgmp.a - convert_LDFLAGS = - io_OBJECTS = io.o - io_LDADD = $(LDADD) - io_DEPENDENCIES = ../../libgmp.a - io_LDFLAGS = - logic_OBJECTS = logic.o - logic_LDADD = $(LDADD) - logic_DEPENDENCIES = ../../libgmp.a - logic_LDFLAGS = - t_powm_OBJECTS = t-powm.o - t_powm_LDADD = $(LDADD) - t_powm_DEPENDENCIES = ../../libgmp.a - t_powm_LDFLAGS = - t_powm_ui_OBJECTS = t-powm_ui.o - t_powm_ui_LDADD = $(LDADD) - t_powm_ui_DEPENDENCIES = ../../libgmp.a - t_powm_ui_LDFLAGS = - reuse_OBJECTS = reuse.o - reuse_LDADD = $(LDADD) - reuse_DEPENDENCIES = ../../libgmp.a - reuse_LDFLAGS = - CFLAGS = @CFLAGS@ - COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) - LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@ - DIST_COMMON = Makefile.am Makefile.in - - - DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) - - TAR = tar - GZIP = --best - SOURCES = $(t_mul_SOURCES) $(t_tdiv_SOURCES) $(t_tdiv_ui_SOURCES) $(t_fdiv_SOURCES) $(t_fdiv_ui_SOURCES) $(t_gcd_SOURCES) $(t_gcd2_SOURCES) $(dive_SOURCES) $(t_sqrtrem_SOURCES) $(convert_SOURCES) $(io_SOURCES) $(logic_SOURCES) $(t_powm_SOURCES) $(t_powm_ui_SOURCES) $(reuse_SOURCES) - OBJECTS = $(t_mul_OBJECTS) $(t_tdiv_OBJECTS) $(t_tdiv_ui_OBJECTS) $(t_fdiv_OBJECTS) $(t_fdiv_ui_OBJECTS) $(t_gcd_OBJECTS) $(t_gcd2_OBJECTS) $(dive_OBJECTS) $(t_sqrtrem_OBJECTS) $(convert_OBJECTS) $(io_OBJECTS) $(logic_OBJECTS) $(t_powm_OBJECTS) $(t_powm_ui_OBJECTS) $(reuse_OBJECTS) - - all: Makefile - - .SUFFIXES: - .SUFFIXES: .S .c .o .s - $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) - cd $(top_srcdir) && $(AUTOMAKE) --foreign mpz/tests/Makefile - - Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - cd $(top_builddir) \ - && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status - - - .c.o: - $(COMPILE) -c $< - - .s.o: - $(COMPILE) -c $< - - .S.o: - $(COMPILE) -c $< - - mostlyclean-compile: - -rm -f *.o core *.core - - clean-compile: - - distclean-compile: - -rm -f *.tab.c - - maintainer-clean-compile: - - t-mul: $(t_mul_OBJECTS) $(t_mul_DEPENDENCIES) - @rm -f t-mul - $(LINK) $(t_mul_LDFLAGS) $(t_mul_OBJECTS) $(t_mul_LDADD) $(LIBS) - - t-tdiv: $(t_tdiv_OBJECTS) $(t_tdiv_DEPENDENCIES) - @rm -f t-tdiv - $(LINK) $(t_tdiv_LDFLAGS) $(t_tdiv_OBJECTS) $(t_tdiv_LDADD) $(LIBS) - - t-tdiv_ui: $(t_tdiv_ui_OBJECTS) $(t_tdiv_ui_DEPENDENCIES) - @rm -f t-tdiv_ui - $(LINK) $(t_tdiv_ui_LDFLAGS) $(t_tdiv_ui_OBJECTS) $(t_tdiv_ui_LDADD) $(LIBS) - - t-fdiv: $(t_fdiv_OBJECTS) $(t_fdiv_DEPENDENCIES) - @rm -f t-fdiv - $(LINK) $(t_fdiv_LDFLAGS) $(t_fdiv_OBJECTS) $(t_fdiv_LDADD) $(LIBS) - - t-fdiv_ui: $(t_fdiv_ui_OBJECTS) $(t_fdiv_ui_DEPENDENCIES) - @rm -f t-fdiv_ui - $(LINK) $(t_fdiv_ui_LDFLAGS) $(t_fdiv_ui_OBJECTS) $(t_fdiv_ui_LDADD) $(LIBS) - - t-gcd: $(t_gcd_OBJECTS) $(t_gcd_DEPENDENCIES) - @rm -f t-gcd - $(LINK) $(t_gcd_LDFLAGS) $(t_gcd_OBJECTS) $(t_gcd_LDADD) $(LIBS) - - t-gcd2: $(t_gcd2_OBJECTS) $(t_gcd2_DEPENDENCIES) - @rm -f t-gcd2 - $(LINK) $(t_gcd2_LDFLAGS) $(t_gcd2_OBJECTS) $(t_gcd2_LDADD) $(LIBS) - - dive: $(dive_OBJECTS) $(dive_DEPENDENCIES) - @rm -f dive - $(LINK) $(dive_LDFLAGS) $(dive_OBJECTS) $(dive_LDADD) $(LIBS) - - t-sqrtrem: $(t_sqrtrem_OBJECTS) $(t_sqrtrem_DEPENDENCIES) - @rm -f t-sqrtrem - $(LINK) $(t_sqrtrem_LDFLAGS) $(t_sqrtrem_OBJECTS) $(t_sqrtrem_LDADD) $(LIBS) - - convert: $(convert_OBJECTS) $(convert_DEPENDENCIES) - @rm -f convert - $(LINK) $(convert_LDFLAGS) $(convert_OBJECTS) $(convert_LDADD) $(LIBS) - - io: $(io_OBJECTS) $(io_DEPENDENCIES) - @rm -f io - $(LINK) $(io_LDFLAGS) $(io_OBJECTS) $(io_LDADD) $(LIBS) - - logic: $(logic_OBJECTS) $(logic_DEPENDENCIES) - @rm -f logic - $(LINK) $(logic_LDFLAGS) $(logic_OBJECTS) $(logic_LDADD) $(LIBS) - - t-powm: $(t_powm_OBJECTS) $(t_powm_DEPENDENCIES) - @rm -f t-powm - $(LINK) $(t_powm_LDFLAGS) $(t_powm_OBJECTS) $(t_powm_LDADD) $(LIBS) - - t-powm_ui: $(t_powm_ui_OBJECTS) $(t_powm_ui_DEPENDENCIES) - @rm -f t-powm_ui - $(LINK) $(t_powm_ui_LDFLAGS) $(t_powm_ui_OBJECTS) $(t_powm_ui_LDADD) $(LIBS) - - reuse: $(reuse_OBJECTS) $(reuse_DEPENDENCIES) - @rm -f reuse - $(LINK) $(reuse_LDFLAGS) $(reuse_OBJECTS) $(reuse_LDADD) $(LIBS) - - tags: TAGS - - ID: $(HEADERS) $(SOURCES) $(LISP) - here=`pwd` && cd $(srcdir) \ - && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP) - - TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS)'; \ - unique=`for i in $$list; do echo $$i; done | \ - awk ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) - - mostlyclean-tags: - - clean-tags: - - distclean-tags: - -rm -f TAGS ID - - maintainer-clean-tags: - - distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) - - subdir = mpz/tests - - distdir: $(DISTFILES) - @for file in $(DISTFILES); do \ - d=$(srcdir); \ - test -f $(distdir)/$$file \ - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ - || cp -p $$d/$$file $(distdir)/$$file; \ - done - check-TESTS: $(TESTS) - @failed=0; all=0; \ - srcdir=$(srcdir); export srcdir; \ - for tst in $(TESTS); do \ - if test -f $$tst; then dir=.; \ - else dir="$(srcdir)"; fi; \ - if $(TESTS_ENVIRONMENT) $$dir/$$tst; then \ - all=`expr $$all + 1`; \ - echo "PASS: $$tst"; \ - elif test $$? -ne 77; then \ - all=`expr $$all + 1`; \ - failed=`expr $$failed + 1`; \ - echo "FAIL: $$tst"; \ - fi; \ - done; \ - if test "$$failed" -eq 0; then \ - banner="All $$all tests passed"; \ - else \ - banner="$$failed of $$all tests failed"; \ - fi; \ - dashes=`echo "$$banner" | sed s/./=/g`; \ - echo "$$dashes"; \ - echo "$$banner"; \ - echo "$$dashes"; \ - test "$$failed" -eq 0 - info: - dvi: - check: all - $(MAKE) check-TESTS - installcheck: - install-exec: - @$(NORMAL_INSTALL) - - install-data: - @$(NORMAL_INSTALL) - - install: install-exec install-data all - @: - - uninstall: - - install-strip: - $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install - installdirs: - - - mostlyclean-generic: - -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES) - - clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - - distclean-generic: - -rm -f Makefile $(DISTCLEANFILES) - -rm -f config.cache config.log stamp-h stamp-h[0-9]* - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - - maintainer-clean-generic: - -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) - -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) - mostlyclean: mostlyclean-compile mostlyclean-tags mostlyclean-generic - - clean: clean-compile clean-tags clean-generic mostlyclean - - distclean: distclean-compile distclean-tags distclean-generic clean - -rm -f config.status - - maintainer-clean: maintainer-clean-compile maintainer-clean-tags \ - maintainer-clean-generic distclean - @echo "This command is intended for maintainers to use;" - @echo "it deletes files that may require special tools to rebuild." - - .PHONY: mostlyclean-compile distclean-compile clean-compile \ - maintainer-clean-compile tags mostlyclean-tags distclean-tags \ - clean-tags maintainer-clean-tags distdir check-TESTS info dvi \ - installcheck install-exec install-data install uninstall all \ - installdirs mostlyclean-generic distclean-generic clean-generic \ - maintainer-clean-generic clean mostlyclean distclean maintainer-clean - - - # Tell versions [3.59,3.63) of GNU make to not export all variables. - # Otherwise a system limit (for SysV at least) may be exceeded. - .NOEXPORT: --- 0 ---- Index: zlib-1.0.4/.cvsignore =================================================================== RCS file: .cvsignore diff -N .cvsignore *** /dev/null Mon Nov 15 13:08:10 1999 --- /tmp/cvs09952cj Mon Nov 15 13:16:02 1999 *************** *** 0 **** --- 1 ---- + Makefile Index: zlib-1.0.4/Makefile =================================================================== RCS file: Makefile diff -N Makefile *** /tmp/cvs09952ck Mon Nov 15 13:16:02 1999 --- /dev/null Mon Nov 15 13:08:10 1999 *************** *** 1,141 **** - # Generated automatically from Makefile.in by configure. - # Makefile for zlib - # Copyright (C) 1995-1996 Jean-loup Gailly. - # For conditions of distribution and use, see copyright notice in zlib.h - - # To compile and test, type: - # ./configure; make test - # The call of configure is optional if you don't have special requirements - - # To install /usr/local/lib/libz.* and /usr/local/include/zlib.h, type: - # make install - # To install in $HOME instead of /usr/local, use: - # make install prefix=$HOME - - srcdir = . - - prefix = /usr/local - exec_prefix = ${prefix} - bindir = ${exec_prefix}/bin - sbindir = ${exec_prefix}/sbin - mandir = ${prefix}/man - libdir = ${exec_prefix}/lib - includedir = ${prefix}/include - - CC=cc - - CFLAGS=-O - #CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7 - #CFLAGS=-g -DDEBUG - #CFLAGS=-O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \ - # -Wstrict-prototypes -Wmissing-prototypes - - LDFLAGS=-L. -lz - LDSHARED=$(CC) - - VER=1.0.4 - LIBS=libz.a - - AR=ar rc - RANLIB=ranlib - TAR=tar - - OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \ - zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o - - TEST_OBJS = example.o minigzip.o - - DISTFILES = README INDEX ChangeLog configure Make*[a-z0-9] descrip.mms \ - zlib.def zlib.rc algorithm.doc *.[ch] - - all: example minigzip - - test: all - ./example - echo hello world | ./minigzip | ./minigzip -d - - libz.a: $(OBJS) - $(AR) $@ $(OBJS) - -@ ($(RANLIB) $@ || true) 2>/dev/null - - libz.so.$(VER): $(OBJS) - $(LDSHARED) -o $@ $(OBJS) - rm -f libz.so; ln -s $@ libz.so - - example: example.o $(LIBS) - $(CC) $(CFLAGS) -o $@ example.o $(LDFLAGS) - - minigzip: minigzip.o $(LIBS) - $(CC) $(CFLAGS) -o $@ minigzip.o $(LDFLAGS) - - install: $(LIBS) - -@if [ ! $(prefix)/include ]; then mkdir $(prefix)/include; fi - -@if [ ! $(exec_prefix)/lib ]; then mkdir $(exec_prefix)/lib; fi - cp $(srcdir)/zlib.h $(srcdir)/zconf.h $(prefix)/include - chmod 644 $(prefix)/include/zlib.h $(prefix)/include/zconf.h - cp $(LIBS) $(exec_prefix)/lib - cd $(exec_prefix)/lib; chmod 644 $(LIBS) - -@(cd $(exec_prefix)/lib; $(RANLIB) libz.a || true) >/dev/null 2>&1 - cd $(exec_prefix)/lib; if test -f libz.so.$(VER); then \ - ln -s libz.so.$(VER) libz.so; \ - fi - # The ranlib in install is needed on NeXTSTEP which checks file times - - uninstall: - cd $(exec_prefix)/lib; rm -f $(LIBS); \ - if test -f libz.so; then \ - v=`sed -n '/VERSION "/s/.*"\(.*\)".*/\1/p'<$(prefix)/include/zlib.h`;\ - rm -f libz.so.$$v libz.so; \ - fi - cd $(prefix)/include; rm -f zlib.h zconf.h - - clean: - rm -f *.o *~ example minigzip libz.a libz.so* foo.gz - - distclean: clean - rm -f Makefile - - zip: - mv Makefile Makefile~; cp -p Makefile.in Makefile - v=`sed -n -e 's/\.//g' -e '/VERSION "/s/.*"\(.*\)".*/\1/p' < zlib.h`;\ - zip -ul9 zlib$$v $(DISTFILES) - mv Makefile~ Makefile - - dist: - mv Makefile Makefile~; cp -p Makefile.in Makefile - d=zlib-`sed -n '/VERSION "/s/.*"\(.*\)".*/\1/p' < zlib.h`;\ - rm -f $$d.tar.gz; \ - if test ! -d ../$$d; then rm -f ../$$d; ln -s `pwd` ../$$d; fi; \ - files=""; \ - for f in $(DISTFILES); do files="$$files $$d/$$f"; done; \ - cd ..; \ - GZIP=-9 $(TAR) chofz $$d/$$d.tar.gz $$files; \ - if test ! -d $$d; then rm -f $$d; fi - mv Makefile~ Makefile - - tags: - etags *.[ch] - - depend: - makedepend -- $(CFLAGS) -- *.[ch] - - # DO NOT DELETE THIS LINE -- make depend depends on it. - - adler32.o: zlib.h zconf.h - compress.o: zlib.h zconf.h - crc32.o: zlib.h zconf.h - deflate.o: deflate.h zutil.h zlib.h zconf.h - example.o: zlib.h zconf.h - gzio.o: zutil.h zlib.h zconf.h - infblock.o: infblock.h inftrees.h infcodes.h infutil.h zutil.h zlib.h zconf.h - infcodes.o: zutil.h zlib.h zconf.h - infcodes.o: inftrees.h infblock.h infcodes.h infutil.h inffast.h - inffast.o: zutil.h zlib.h zconf.h inftrees.h - inffast.o: infblock.h infcodes.h infutil.h inffast.h - inflate.o: zutil.h zlib.h zconf.h infblock.h - inftrees.o: zutil.h zlib.h zconf.h inftrees.h - infutil.o: zutil.h zlib.h zconf.h infblock.h inftrees.h infcodes.h infutil.h - minigzip.o: zlib.h zconf.h - trees.o: deflate.h zutil.h zlib.h zconf.h - uncompr.o: zlib.h zconf.h - zutil.o: zutil.h zlib.h zconf.h --- 0 ---- .