Mercurial > octave
diff configure.in @ 3805:44386b0e53da
[project @ 2001-03-01 16:54:31 by jwe]
author | jwe |
---|---|
date | Thu, 01 Mar 2001 16:54:33 +0000 |
parents | 63c75bc3db82 |
children | f0ab8a324da7 |
line wrap: on
line diff
--- a/configure.in Wed Feb 28 08:38:39 2001 +0000 +++ b/configure.in Thu Mar 01 16:54:33 2001 +0000 @@ -21,7 +21,7 @@ ### Software Foundation, 59 Temple Place - Suite 330, Boston, MA ### 02111-1307, USA. -AC_REVISION($Revision: 1.341 $) +AC_REVISION($Revision: 1.342 $) AC_PREREQ(2.9) AC_INIT(src/octave.cc) AC_CONFIG_HEADER(config.h) @@ -853,8 +853,17 @@ AC_ISC_POSIX AC_MINIX AC_AIX -AC_CHECK_FUNC(getpwnam, , AC_CHECK_LIB(sun, getpwnam)) -AC_CHECK_FUNC(gethostname, , AC_CHECK_LIB(socket, gethostname)) +AC_CHECK_FUNCS(gethostname getpwnam) +if test "$ac_cv_func_gethostname" = yes; then + true +else + AC_CHECK_LIB(socket, gethostname) +fi +if test "$ac_cv_func_getpwnam" = yes; then + true +else + AC_CHECK_LIB(sun, getpwnam) +fi ### How big are ints and how are they oriented? These could probably ### be eliminated in favor of run-time checks.