diff --git a/appl/telnet/config.h.in b/appl/telnet/config.h.in index 627aba1f3..a9869e669 100644 --- a/appl/telnet/config.h.in +++ b/appl/telnet/config.h.in @@ -53,6 +53,9 @@ /* Define if you have the frevoke function. */ #undef HAVE_FREVOKE +/* Define if you have the gethostbyname function. */ +#undef HAVE_GETHOSTBYNAME + /* Define if you have the getmsg function. */ #undef HAVE_GETMSG @@ -62,6 +65,9 @@ /* Define if you have the grantpt function. */ #undef HAVE_GRANTPT +/* Define if you have the logout function. */ +#undef HAVE_LOGOUT + /* Define if you have the mktime function. */ #undef HAVE_MKTIME @@ -80,6 +86,9 @@ /* Define if you have the setupterm function. */ #undef HAVE_SETUPTERM +/* Define if you have the socket function. */ +#undef HAVE_SOCKET + /* Define if you have the tgetent function. */ #undef HAVE_TGETENT diff --git a/appl/telnet/configure b/appl/telnet/configure index baf548cc0..2d4a86bc7 100755 --- a/appl/telnet/configure +++ b/appl/telnet/configure @@ -961,14 +961,15 @@ if test -f /lib/pse.exp ;then LIBS="$LIBS -Wl,-bI:/lib/pse.exp" fi -echo $ac_n "checking for -ltermcap""... $ac_c" 1>&6 -if eval "test \"`echo '$''{'ac_cv_lib_termcap'+set}'`\" = set"; then + + +echo $ac_n "checking for tgetent""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'j_cv_func_tgetent'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - ac_save_LIBS="$LIBS" -LIBS="-ltermcap $LIBS" + cat > conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext <&6 - ac_tr_lib=HAVE_LIB`echo termcap | tr '[a-z]' '[A-Z]'` - cat >> confdefs.h <> confdefs.h <&6 + ;; + no) + echo "$ac_t""no" 1>&6 + ;; + *) + j_tr_func=HAVE_`echo tgetent | tr '[a-z]' '[A-Z]'` + j_tr_lib=HAVE_LIB`echo $j_res | sed -e 's/-l//' | tr '[a-z]' '[A-Z]'` + cat >> confdefs.h <&6 -fi + cat >> confdefs.h <&6 -if eval "test \"`echo '$''{'ac_cv_lib_curses'+set}'`\" = set"; then + echo "$ac_t""yes, in $j_res" 1>&6 + + LIBS="$j_res $LIBS" + ;; +esac + + + +echo $ac_n "checking for setupterm""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'j_cv_func_setupterm'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - ac_save_LIBS="$LIBS" -LIBS="-lcurses $LIBS" + cat > conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext <&6 - ac_tr_lib=HAVE_LIB`echo curses | tr '[a-z]' '[A-Z]'` - cat >> confdefs.h <> confdefs.h <&6 + ;; + no) + echo "$ac_t""no" 1>&6 + ;; + *) + j_tr_func=HAVE_`echo setupterm | tr '[a-z]' '[A-Z]'` + j_tr_lib=HAVE_LIB`echo $j_res | sed -e 's/-l//' | tr '[a-z]' '[A-Z]'` + cat >> confdefs.h <&6 -fi + cat >> confdefs.h <&6 -if eval "test \"`echo '$''{'ac_cv_lib_socket'+set}'`\" = set"; then + echo "$ac_t""yes, in $j_res" 1>&6 + + LIBS="$j_res $LIBS" + ;; +esac + + + +echo $ac_n "checking for socket""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'j_cv_func_socket'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - ac_save_LIBS="$LIBS" -LIBS="-lsocket $LIBS" + cat > conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext <&6 - ac_tr_lib=HAVE_LIB`echo socket | tr '[a-z]' '[A-Z]'` - cat >> confdefs.h <> confdefs.h <&6 + ;; + no) + echo "$ac_t""no" 1>&6 + ;; + *) + j_tr_func=HAVE_`echo socket | tr '[a-z]' '[A-Z]'` + j_tr_lib=HAVE_LIB`echo $j_res | sed -e 's/-l//' | tr '[a-z]' '[A-Z]'` + cat >> confdefs.h <&6 -fi + cat >> confdefs.h <&6 -if eval "test \"`echo '$''{'ac_cv_lib_nsl'+set}'`\" = set"; then + echo "$ac_t""yes, in $j_res" 1>&6 + + LIBS="$j_res $LIBS" + ;; +esac + + + +echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'j_cv_func_gethostbyname'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - ac_save_LIBS="$LIBS" -LIBS="-lnsl $LIBS" + cat > conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext <&6 - ac_tr_lib=HAVE_LIB`echo nsl | tr '[a-z]' '[A-Z]'` - cat >> confdefs.h <> confdefs.h <&6 + ;; + no) + echo "$ac_t""no" 1>&6 + ;; + *) + j_tr_func=HAVE_`echo gethostbyname | tr '[a-z]' '[A-Z]'` + j_tr_lib=HAVE_LIB`echo $j_res | sed -e 's/-l//' | tr '[a-z]' '[A-Z]'` + cat >> confdefs.h <&6 -fi + cat >> confdefs.h <&6 + + LIBS="$j_res $LIBS" + ;; +esac @@ -1126,7 +1390,7 @@ 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 <&6 else cat > conftest.$ac_ext <&6 else cat > conftest.$ac_ext <&6 else cat > conftest.$ac_ext <&6 -if eval "test \"`echo '$''{'ac_cv_lib_util'+set}'`\" = set"; then + + +echo $ac_n "checking for logout""... $ac_c" 1>&6 +if eval "test \"`echo '$''{'j_cv_func_logout'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - ac_save_LIBS="$LIBS" -LIBS="-lutil $LIBS" + cat > conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext <&6 - ac_tr_lib=HAVE_LIB`echo util | tr '[a-z]' '[A-Z]'` - cat >> confdefs.h <> confdefs.h <&6 + ;; + no) + echo "$ac_t""no" 1>&6 + ;; + *) + j_tr_func=HAVE_`echo logout | tr '[a-z]' '[A-Z]'` + j_tr_lib=HAVE_LIB`echo $j_res | sed -e 's/-l//' | tr '[a-z]' '[A-Z]'` + cat >> confdefs.h <&6 -fi + cat >> confdefs.h <&6 + + LIBS="$j_res $LIBS" + ;; +esac @@ -1374,7 +1704,7 @@ 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 @@ -1410,7 +1740,7 @@ 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 @@ -1446,7 +1776,7 @@ 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 diff --git a/appl/telnet/configure.in b/appl/telnet/configure.in index f5e2ae505..35cd56c83 100644 --- a/appl/telnet/configure.in +++ b/appl/telnet/configure.in @@ -233,10 +233,10 @@ if test -f /lib/pse.exp ;then LIBS="$LIBS -Wl,-bI:/lib/pse.exp" fi -AC_CHECK_LIB(termcap, tgetent) -AC_CHECK_LIB(curses, setupterm) -AC_CHECK_LIB(socket, socket) -AC_CHECK_LIB(nsl, gethostbyname) +AC_FIND_FUNC(tgetent, termcap) +AC_FIND_FUNC(setupterm, curses) +AC_FIND_FUNC(socket, socket) +AC_FIND_FUNC(gethostbyname, nsl) AC_REPLACE_FUNCS(getent herror memmove setenv strdup strerror strftime) @@ -270,7 +270,7 @@ dnl if test "$ac_cv_func_gethostbyname" = no; then dnl AC_CHECK_LIB(nsl, gethostbyname) dnl fi -AC_CHECK_LIB(util, logout) +AC_FIND_FUNC(logout, util) AC_SUBST(HAVE_LIBTERMCAP)