home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / ncftp-2.3.0-diffs.gz / ncftp-2.3.0-diffs
Text File  |  1996-10-13  |  56KB  |  1,753 lines

  1. This file contains patches that transform the baseline version into
  2. the amiga version.  Assuming that you have unarchived the baseline
  3. version in the current directory, just run the command:
  4.  
  5.     patch -p1 -E -b .pbak <diff-file
  6.  
  7. where 'diff-file' is this patch file.  After running patch you should
  8. remove all the generated *.pbak files, and look for any *.rej files
  9. that indicate a problem patching the baseline source.
  10.  
  11. diff -rup --new-file baseline/contrib/ncftp/Product-Info amiga/contrib/ncftp/Product-Info
  12. --- baseline/contrib/ncftp/Product-Info    Wed Dec 31 17:00:00 1969
  13. +++ amiga/contrib/ncftp/Product-Info    Sat Sep 28 00:00:00 1996
  14. @@ -0,0 +1,38 @@
  15. +.name
  16. +ncftp
  17. +.type
  18. +Network utility
  19. +.short
  20. +Internet file transfer program
  21. +.description
  22. +NcFTP is a user interface to the Internet standard File Transfer
  23. +Protocol.  This program allows a user to transfer files to and from a
  24. +remote network site, and offers additional features that are not found
  25. +in the standard interface, ftp.
  26. +
  27. +The program runs in one of three modes: visual mode, line mode, and
  28. +colon mode.
  29. +
  30. +If your system is somewhat modern, the default mode should be visual
  31. +mode.  This is a full-screen interface that uses the curses library.
  32. +With visual mode, you edit the program's settings with a nice screen
  33. +interface instead of typing arcane commands.
  34. +
  35. +If you are not in visual mode, you will be using line mode for the
  36. +interactive shell.  This mode is a no-frills command-line interface
  37. +that will look like the default ftp program's command shell.
  38. +
  39. +The third mode, colon mode, refers to the program's ability to do a
  40. +quick retrieve of a file directly from your shell command line,
  41. +without going into the program's own shell.  This mode is useful for
  42. +shell scripts.
  43. +.version
  44. +2.3.0
  45. +.author
  46. +Mike Gleason
  47. +.distribution
  48. +Freely redistributable for non commercial purposes.
  49. +.described-by
  50. +Fred Fish (fnf@ninemoons.com)
  51. +.submittal
  52. +Downloaded via ftp from ftp.cs.unl.edu:pub/ncftp.
  53. diff -rup --new-file baseline/contrib/ncftp/configure amiga/contrib/ncftp/configure
  54. --- baseline/contrib/ncftp/configure    Sun Nov 26 20:56:08 1995
  55. +++ amiga/contrib/ncftp/configure    Mon Sep 30 22:32:45 1996
  56. @@ -1,8 +1,8 @@
  57.  #! /bin/sh
  58.  
  59.  # Guess values for system-dependent variables and create Makefiles.
  60. -# Generated automatically using autoconf version 2.7 
  61. -# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
  62. +# Generated automatically using autoconf version 2.10 
  63. +# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  64.  #
  65.  # This configure script is free software; the Free Software Foundation
  66.  # gives unlimited permission to copy, distribute and modify it.
  67. @@ -60,6 +60,9 @@ libdir='${exec_prefix}/lib'
  68.  includedir='${prefix}/include'
  69.  oldincludedir='/usr/include'
  70.  infodir='${prefix}/info'
  71. +guidedir='${prefix}/guide'
  72. +psdir='${prefix}/ps'
  73. +dvidir='${prefix}/dvi'
  74.  mandir='${prefix}/man'
  75.  
  76.  # Initialize some other variables.
  77. @@ -174,6 +177,9 @@ Directory and file names:
  78.    --includedir=DIR        C header files in DIR [PREFIX/include]
  79.    --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  80.    --infodir=DIR           info documentation in DIR [PREFIX/info]
  81. +  --guidedir=DIR          Amigaguide documentation in DIR [PREFIX/guide]
  82. +  --psdir=DIR             postscript documentation in DIR [PREFIX/ps]
  83. +  --dvidir=DIR            TeX dvi documentation in DIR [PREFIX/dvi]
  84.    --mandir=DIR            man documentation in DIR [PREFIX/man]
  85.    --srcdir=DIR            find the sources in DIR [configure dir or ..]
  86.    --program-prefix=PREFIX prepend PREFIX to installed program names
  87. @@ -216,6 +222,18 @@ EOF
  88.    -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  89.      infodir="$ac_optarg" ;;
  90.  
  91. + -guidedir | --guidedir | --guidedi | --guided | --guide | --gui)
  92. +   ac_prev=guidedir ;;
  93. + -guidedir=* | --guidedir=* | --guidedi=* | --guided=* | --guide=* |--gui=*)+    guidedir="$ac_optarg" ;;
  94. +
  95. + -psdir | --psdir | --psdi | --psd | --ps)
  96. +   ac_prev=psdir ;;
  97. + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)+    psdir="$ac_optarg" ;;
  98. +
  99. + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  100. +   ac_prev=dvidir ;;
  101. + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* |--dv=*)+    dvidir="$ac_optarg" ;;
  102. +
  103.    -libdir | --libdir | --libdi | --libd)
  104.      ac_prev=libdir ;;
  105.    -libdir=* | --libdir=* | --libdi=* | --libd=*)
  106. @@ -346,7 +364,7 @@ EOF
  107.      verbose=yes ;;
  108.  
  109.    -version | --version | --versio | --versi | --vers)
  110. -    echo "configure generated by autoconf version 2.7"
  111. +    echo "configure generated by autoconf version 2.10"
  112.      exit 0 ;;
  113.  
  114.    -with-* | --with-*)
  115. @@ -511,12 +529,9 @@ fi
  116.  
  117.  ac_ext=c
  118.  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  119. -ac_cpp='echo $CPP $CPPFLAGS 1>&5;
  120. -$CPP $CPPFLAGS'
  121. -ac_compile='echo ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5;
  122. -${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
  123. -ac_link='echo ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5;
  124. -${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
  125. +ac_cpp='$CPP $CPPFLAGS'
  126. +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  127. +ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  128.  
  129.  if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  130.    # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  131. @@ -645,7 +660,6 @@ else
  132.      fi
  133.    done
  134.    IFS="$ac_save_ifs"
  135. -  test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
  136.  fi
  137.  fi
  138.  CC="$ac_cv_prog_CC"
  139. @@ -655,6 +669,55 @@ else
  140.    echo "$ac_t""no" 1>&6
  141.  fi
  142.  
  143. +if test -z "$CC"; then
  144. +  # Extract the first word of "cc", so it can be a program name with args.
  145. +set dummy cc; ac_word=$2
  146. +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  147. +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  148. +  echo $ac_n "(cached) $ac_c" 1>&6
  149. +else
  150. +  if test -n "$CC"; then
  151. +  ac_cv_prog_CC="$CC" # Let the user override the test.
  152. +else
  153. +  IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  154. +  ac_prog_rejected=no
  155. +  for ac_dir in $PATH; do
  156. +    test -z "$ac_dir" && ac_dir=.
  157. +    if test -f $ac_dir/$ac_word; then
  158. +      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  159. +        ac_prog_rejected=yes
  160. +    continue
  161. +      fi
  162. +      ac_cv_prog_CC="cc"
  163. +      break
  164. +    fi
  165. +  done
  166. +  IFS="$ac_save_ifs"
  167. +if test $ac_prog_rejected = yes; then
  168. +  # We found a bogon in the path, so make sure we never use it.
  169. +  set dummy $ac_cv_prog_CC
  170. +  shift
  171. +  if test $# -gt 0; then
  172. +    # We chose a different compiler from the bogus one.
  173. +    # However, it has the same basename, so the bogon will be chosen
  174. +    # first if we set CC to just the basename; use the full file name.
  175. +    shift
  176. +    set dummy "$ac_dir/$ac_word" "$@"
  177. +    shift
  178. +    ac_cv_prog_CC="$@"
  179. +  fi
  180. +fi
  181. +fi
  182. +fi
  183. +CC="$ac_cv_prog_CC"
  184. +if test -n "$CC"; then
  185. +  echo "$ac_t""$CC" 1>&6
  186. +else
  187. +  echo "$ac_t""no" 1>&6
  188. +fi
  189. +
  190. +  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  191. +fi
  192.  
  193.  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  194.  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  195. @@ -665,7 +728,7 @@ else
  196.    yes;
  197.  #endif
  198.  EOF
  199. -if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
  200. +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  201.    ac_cv_prog_gcc=yes
  202.  else
  203.    ac_cv_prog_gcc=no
  204. @@ -692,9 +755,9 @@ fi
  205.  
  206.  echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  207.      if test $ac_cv_prog_gcc_g = yes; then
  208. -      CFLAGS="-g -O"
  209. +      CFLAGS="-g -O2"
  210.      else
  211. -      CFLAGS="-O"
  212. +      CFLAGS="-O2"
  213.      fi
  214.    fi
  215.  else
  216. @@ -751,7 +814,7 @@ echo "$ac_t""$ac_cv_hpux_flags" 1>&6
  217.  
  218.  echo $ac_n "checking if the compiler supports function prototypes""... $ac_c" 1>&6
  219.  cat > conftest.$ac_ext <<EOF
  220. -#line 755 "configure"
  221. +#line 818 "configure"
  222.  #include "confdefs.h"
  223.  
  224.  int main() { return 0; }
  225. @@ -759,7 +822,7 @@ int t() {
  226.  extern void exit(int status);
  227.  ; return 0; }
  228.  EOF
  229. -if eval $ac_compile; then
  230. +if { (eval echo configure:826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  231.    rm -rf conftest*
  232.    wi_cv_prototypes=yes
  233.  cat >> confdefs.h <<\EOF
  234. @@ -1075,7 +1138,7 @@ if eval "test \"`echo '$''{'ac_cv_c_cons
  235.    echo $ac_n "(cached) $ac_c" 1>&6
  236.  else
  237.    cat > conftest.$ac_ext <<EOF
  238. -#line 1079 "configure"
  239. +#line 1142 "configure"
  240.  #include "confdefs.h"
  241.  
  242.  int main() { return 0; }
  243. @@ -1125,7 +1188,7 @@ ccp = (char const *const *) p;
  244.  
  245.  ; return 0; }
  246.  EOF
  247. -if eval $ac_compile; then
  248. +if { (eval echo configure:1192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  249.    rm -rf conftest*
  250.    ac_cv_c_const=yes
  251.  else
  252. @@ -1146,22 +1209,26 @@ fi
  253.  
  254.  
  255.  echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
  256. -ac_lib_var=`echo socket | tr '.-/+' '___p'`
  257. +ac_lib_var=`echo socket'_'socket | tr './+\055' '__p_'`
  258.  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  259.    echo $ac_n "(cached) $ac_c" 1>&6
  260.  else
  261.    ac_save_LIBS="$LIBS"
  262.  LIBS="-lsocket  $LIBS"
  263.  cat > conftest.$ac_ext <<EOF
  264. -#line 1157 "configure"
  265. +#line 1220 "configure"
  266.  #include "confdefs.h"
  267. +/* Override any gcc2 internal prototype to avoid an error.  */
  268. +/* We use char because int might match the return type of a gcc2
  269. +    builtin and then its argument prototype would still apply.  */
  270. +char socket();
  271.  
  272. -int main() { return 0; }
  273. +int main() { t(); return 0; }
  274.  int t() {
  275.  socket()
  276.  ; return 0; }
  277.  EOF
  278. -if eval $ac_link; then
  279. +if { (eval echo configure:1232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  280.    rm -rf conftest*
  281.    eval "ac_cv_lib_$ac_lib_var=yes"
  282.  else
  283. @@ -1174,7 +1241,7 @@ LIBS="$ac_save_LIBS"
  284.  fi
  285.  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  286.    echo "$ac_t""yes" 1>&6
  287. -    ac_tr_lib=HAVE_LIB`echo socket | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  288. +    ac_tr_lib=HAVE_LIB`echo socket | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  289.    cat >> confdefs.h <<EOF
  290.  #define $ac_tr_lib 1
  291.  EOF
  292. @@ -1186,22 +1253,22 @@ else
  293.  fi
  294.  
  295.  echo $ac_n "checking for -linet""... $ac_c" 1>&6
  296. -ac_lib_var=`echo inet | tr '.-/+' '___p'`
  297. +ac_lib_var=`echo inet'_'main | tr './+\055' '__p_'`
  298.  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  299.    echo $ac_n "(cached) $ac_c" 1>&6
  300.  else
  301.    ac_save_LIBS="$LIBS"
  302.  LIBS="-linet  $LIBS"
  303.  cat > conftest.$ac_ext <<EOF
  304. -#line 1197 "configure"
  305. +#line 1264 "configure"
  306.  #include "confdefs.h"
  307.  
  308. -int main() { return 0; }
  309. +int main() { t(); return 0; }
  310.  int t() {
  311.  main()
  312.  ; return 0; }
  313.  EOF
  314. -if eval $ac_link; then
  315. +if { (eval echo configure:1272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  316.    rm -rf conftest*
  317.    eval "ac_cv_lib_$ac_lib_var=yes"
  318.  else
  319. @@ -1214,7 +1281,7 @@ LIBS="$ac_save_LIBS"
  320.  fi
  321.  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  322.    echo "$ac_t""yes" 1>&6
  323. -    ac_tr_lib=HAVE_LIB`echo inet | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  324. +    ac_tr_lib=HAVE_LIB`echo inet | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  325.    cat >> confdefs.h <<EOF
  326.  #define $ac_tr_lib 1
  327.  EOF
  328. @@ -1235,11 +1302,11 @@ else
  329.    ac_cv_c_cross=yes
  330.  else
  331.  cat > conftest.$ac_ext <<EOF
  332. -#line 1239 "configure"
  333. +#line 1306 "configure"
  334.  #include "confdefs.h"
  335.  main(){return(0);}
  336.  EOF
  337. -eval $ac_link
  338. +{ (eval echo configure:1310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  339.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  340.    ac_cv_c_cross=no
  341.  else
  342. @@ -1264,11 +1331,11 @@ if test "$cross_compiling" = yes; then
  343.    nc_cv_use_libnsl=no
  344.  else
  345.  cat > conftest.$ac_ext <<EOF
  346. -#line 1268 "configure"
  347. +#line 1335 "configure"
  348.  #include "confdefs.h"
  349.  main() { if (getpwuid(getuid())) exit(0); exit(-1); }
  350.  EOF
  351. -eval $ac_link
  352. +{ (eval echo configure:1339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  353.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  354.    nc_cv_use_libnsl=yes
  355.  else
  356. @@ -1290,7 +1357,7 @@ if test "$cross_compiling" = yes; then
  357.    look_for_resolv=yes
  358.  else
  359.  cat > conftest.$ac_ext <<EOF
  360. -#line 1294 "configure"
  361. +#line 1361 "configure"
  362.  #include "confdefs.h"
  363.  
  364.  #include <sys/types.h>
  365. @@ -1309,7 +1376,7 @@ main()
  366.      exit(! result);
  367.  }
  368.  EOF
  369. -eval $ac_link
  370. +{ (eval echo configure:1380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  371.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  372.    look_for_resolv=no
  373.  else
  374. @@ -1322,22 +1389,22 @@ echo $ac_n "checking if we need to look 
  375.  echo "$ac_t""$look_for_resolv" 1>&6
  376.  if test "$look_for_resolv" = yes ; then
  377.  echo $ac_n "checking for -lresolv""... $ac_c" 1>&6
  378. -ac_lib_var=`echo resolv | tr '.-/+' '___p'`
  379. +ac_lib_var=`echo resolv'_'main | tr './+\055' '__p_'`
  380.  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  381.    echo $ac_n "(cached) $ac_c" 1>&6
  382.  else
  383.    ac_save_LIBS="$LIBS"
  384.  LIBS="-lresolv  $LIBS"
  385.  cat > conftest.$ac_ext <<EOF
  386. -#line 1333 "configure"
  387. +#line 1400 "configure"
  388.  #include "confdefs.h"
  389.  
  390. -int main() { return 0; }
  391. +int main() { t(); return 0; }
  392.  int t() {
  393.  main()
  394.  ; return 0; }
  395.  EOF
  396. -if eval $ac_link; then
  397. +if { (eval echo configure:1408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  398.    rm -rf conftest*
  399.    eval "ac_cv_lib_$ac_lib_var=yes"
  400.  else
  401. @@ -1350,7 +1417,7 @@ LIBS="$ac_save_LIBS"
  402.  fi
  403.  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  404.    echo "$ac_t""yes" 1>&6
  405. -    ac_tr_lib=HAVE_LIB`echo resolv | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  406. +    ac_tr_lib=HAVE_LIB`echo resolv | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  407.    cat >> confdefs.h <<EOF
  408.  #define $ac_tr_lib 1
  409.  EOF
  410. @@ -1370,22 +1437,22 @@ if test "$nc_cv_socks5" = yes ; then
  411.  # Look for the "SOCKS" library for use with Firewalls/Gateways.
  412.  savelibs="$LIBS"
  413.  echo $ac_n "checking for -ldb""... $ac_c" 1>&6
  414. -ac_lib_var=`echo db | tr '.-/+' '___p'`
  415. +ac_lib_var=`echo db'_'main | tr './+\055' '__p_'`
  416.  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  417.    echo $ac_n "(cached) $ac_c" 1>&6
  418.  else
  419.    ac_save_LIBS="$LIBS"
  420.  LIBS="-ldb  $LIBS"
  421.  cat > conftest.$ac_ext <<EOF
  422. -#line 1381 "configure"
  423. +#line 1448 "configure"
  424.  #include "confdefs.h"
  425.  
  426. -int main() { return 0; }
  427. +int main() { t(); return 0; }
  428.  int t() {
  429.  main()
  430.  ; return 0; }
  431.  EOF
  432. -if eval $ac_link; then
  433. +if { (eval echo configure:1456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  434.    rm -rf conftest*
  435.    eval "ac_cv_lib_$ac_lib_var=yes"
  436.  else
  437. @@ -1398,7 +1465,7 @@ LIBS="$ac_save_LIBS"
  438.  fi
  439.  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  440.    echo "$ac_t""yes" 1>&6
  441. -    ac_tr_lib=HAVE_LIB`echo db | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  442. +    ac_tr_lib=HAVE_LIB`echo db | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  443.    cat >> confdefs.h <<EOF
  444.  #define $ac_tr_lib 1
  445.  EOF
  446. @@ -1410,22 +1477,22 @@ else
  447.  fi
  448.  
  449.  echo $ac_n "checking for -lisode""... $ac_c" 1>&6
  450. -ac_lib_var=`echo isode | tr '.-/+' '___p'`
  451. +ac_lib_var=`echo isode'_'main | tr './+\055' '__p_'`
  452.  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  453.    echo $ac_n "(cached) $ac_c" 1>&6
  454.  else
  455.    ac_save_LIBS="$LIBS"
  456.  LIBS="-lisode  $LIBS"
  457.  cat > conftest.$ac_ext <<EOF
  458. -#line 1421 "configure"
  459. +#line 1488 "configure"
  460.  #include "confdefs.h"
  461.  
  462. -int main() { return 0; }
  463. +int main() { t(); return 0; }
  464.  int t() {
  465.  main()
  466.  ; return 0; }
  467.  EOF
  468. -if eval $ac_link; then
  469. +if { (eval echo configure:1496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  470.    rm -rf conftest*
  471.    eval "ac_cv_lib_$ac_lib_var=yes"
  472.  else
  473. @@ -1438,7 +1505,7 @@ LIBS="$ac_save_LIBS"
  474.  fi
  475.  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  476.    echo "$ac_t""yes" 1>&6
  477. -    ac_tr_lib=HAVE_LIB`echo isode | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  478. +    ac_tr_lib=HAVE_LIB`echo isode | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  479.    cat >> confdefs.h <<EOF
  480.  #define $ac_tr_lib 1
  481.  EOF
  482. @@ -1450,22 +1517,22 @@ else
  483.  fi
  484.  
  485.  echo $ac_n "checking for -lcom_err""... $ac_c" 1>&6
  486. -ac_lib_var=`echo com_err | tr '.-/+' '___p'`
  487. +ac_lib_var=`echo com_err'_'main | tr './+\055' '__p_'`
  488.  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  489.    echo $ac_n "(cached) $ac_c" 1>&6
  490.  else
  491.    ac_save_LIBS="$LIBS"
  492.  LIBS="-lcom_err  $LIBS"
  493.  cat > conftest.$ac_ext <<EOF
  494. -#line 1461 "configure"
  495. +#line 1528 "configure"
  496.  #include "confdefs.h"
  497.  
  498. -int main() { return 0; }
  499. +int main() { t(); return 0; }
  500.  int t() {
  501.  main()
  502.  ; return 0; }
  503.  EOF
  504. -if eval $ac_link; then
  505. +if { (eval echo configure:1536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  506.    rm -rf conftest*
  507.    eval "ac_cv_lib_$ac_lib_var=yes"
  508.  else
  509. @@ -1478,7 +1545,7 @@ LIBS="$ac_save_LIBS"
  510.  fi
  511.  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  512.    echo "$ac_t""yes" 1>&6
  513. -    ac_tr_lib=HAVE_LIB`echo com_err | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  514. +    ac_tr_lib=HAVE_LIB`echo com_err | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  515.    cat >> confdefs.h <<EOF
  516.  #define $ac_tr_lib 1
  517.  EOF
  518. @@ -1490,22 +1557,22 @@ else
  519.  fi
  520.  
  521.  echo $ac_n "checking for -lcrypto""... $ac_c" 1>&6
  522. -ac_lib_var=`echo crypto | tr '.-/+' '___p'`
  523. +ac_lib_var=`echo crypto'_'main | tr './+\055' '__p_'`
  524.  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  525.    echo $ac_n "(cached) $ac_c" 1>&6
  526.  else
  527.    ac_save_LIBS="$LIBS"
  528.  LIBS="-lcrypto  $LIBS"
  529.  cat > conftest.$ac_ext <<EOF
  530. -#line 1501 "configure"
  531. +#line 1568 "configure"
  532.  #include "confdefs.h"
  533.  
  534. -int main() { return 0; }
  535. +int main() { t(); return 0; }
  536.  int t() {
  537.  main()
  538.  ; return 0; }
  539.  EOF
  540. -if eval $ac_link; then
  541. +if { (eval echo configure:1576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  542.    rm -rf conftest*
  543.    eval "ac_cv_lib_$ac_lib_var=yes"
  544.  else
  545. @@ -1518,7 +1585,7 @@ LIBS="$ac_save_LIBS"
  546.  fi
  547.  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  548.    echo "$ac_t""yes" 1>&6
  549. -    ac_tr_lib=HAVE_LIB`echo crypto | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  550. +    ac_tr_lib=HAVE_LIB`echo crypto | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  551.    cat >> confdefs.h <<EOF
  552.  #define $ac_tr_lib 1
  553.  EOF
  554. @@ -1530,22 +1597,22 @@ else
  555.  fi
  556.  
  557.  echo $ac_n "checking for -lkrb5""... $ac_c" 1>&6
  558. -ac_lib_var=`echo krb5 | tr '.-/+' '___p'`
  559. +ac_lib_var=`echo krb5'_'main | tr './+\055' '__p_'`
  560.  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  561.    echo $ac_n "(cached) $ac_c" 1>&6
  562.  else
  563.    ac_save_LIBS="$LIBS"
  564.  LIBS="-lkrb5  $LIBS"
  565.  cat > conftest.$ac_ext <<EOF
  566. -#line 1541 "configure"
  567. +#line 1608 "configure"
  568.  #include "confdefs.h"
  569.  
  570. -int main() { return 0; }
  571. +int main() { t(); return 0; }
  572.  int t() {
  573.  main()
  574.  ; return 0; }
  575.  EOF
  576. -if eval $ac_link; then
  577. +if { (eval echo configure:1616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  578.    rm -rf conftest*
  579.    eval "ac_cv_lib_$ac_lib_var=yes"
  580.  else
  581. @@ -1558,7 +1625,7 @@ LIBS="$ac_save_LIBS"
  582.  fi
  583.  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  584.    echo "$ac_t""yes" 1>&6
  585. -    ac_tr_lib=HAVE_LIB`echo krb5 | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  586. +    ac_tr_lib=HAVE_LIB`echo krb5 | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  587.    cat >> confdefs.h <<EOF
  588.  #define $ac_tr_lib 1
  589.  EOF
  590. @@ -1570,22 +1637,22 @@ else
  591.  fi
  592.  
  593.  echo $ac_n "checking for -lgssapi_krb5""... $ac_c" 1>&6
  594. -ac_lib_var=`echo gssapi_krb5 | tr '.-/+' '___p'`
  595. +ac_lib_var=`echo gssapi_krb5'_'main | tr './+\055' '__p_'`
  596.  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  597.    echo $ac_n "(cached) $ac_c" 1>&6
  598.  else
  599.    ac_save_LIBS="$LIBS"
  600.  LIBS="-lgssapi_krb5  $LIBS"
  601.  cat > conftest.$ac_ext <<EOF
  602. -#line 1581 "configure"
  603. +#line 1648 "configure"
  604.  #include "confdefs.h"
  605.  
  606. -int main() { return 0; }
  607. +int main() { t(); return 0; }
  608.  int t() {
  609.  main()
  610.  ; return 0; }
  611.  EOF
  612. -if eval $ac_link; then
  613. +if { (eval echo configure:1656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  614.    rm -rf conftest*
  615.    eval "ac_cv_lib_$ac_lib_var=yes"
  616.  else
  617. @@ -1598,7 +1665,7 @@ LIBS="$ac_save_LIBS"
  618.  fi
  619.  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  620.    echo "$ac_t""yes" 1>&6
  621. -    ac_tr_lib=HAVE_LIB`echo gssapi_krb5 | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  622. +    ac_tr_lib=HAVE_LIB`echo gssapi_krb5 | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  623.    cat >> confdefs.h <<EOF
  624.  #define $ac_tr_lib 1
  625.  EOF
  626. @@ -1610,22 +1677,26 @@ else
  627.  fi
  628.  
  629.  echo $ac_n "checking for -lsocks5""... $ac_c" 1>&6
  630. -ac_lib_var=`echo socks5 | tr '.-/+' '___p'`
  631. +ac_lib_var=`echo socks5'_'SOCKSinit | tr './+\055' '__p_'`
  632.  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  633.    echo $ac_n "(cached) $ac_c" 1>&6
  634.  else
  635.    ac_save_LIBS="$LIBS"
  636.  LIBS="-lsocks5  $LIBS"
  637.  cat > conftest.$ac_ext <<EOF
  638. -#line 1621 "configure"
  639. +#line 1688 "configure"
  640.  #include "confdefs.h"
  641. +/* Override any gcc2 internal prototype to avoid an error.  */
  642. +/* We use char because int might match the return type of a gcc2
  643. +    builtin and then its argument prototype would still apply.  */
  644. +char SOCKSinit();
  645.  
  646. -int main() { return 0; }
  647. +int main() { t(); return 0; }
  648.  int t() {
  649.  SOCKSinit()
  650.  ; return 0; }
  651.  EOF
  652. -if eval $ac_link; then
  653. +if { (eval echo configure:1700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  654.    rm -rf conftest*
  655.    eval "ac_cv_lib_$ac_lib_var=yes"
  656.  else
  657. @@ -1638,7 +1709,7 @@ LIBS="$ac_save_LIBS"
  658.  fi
  659.  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  660.    echo "$ac_t""yes" 1>&6
  661. -    ac_tr_lib=HAVE_LIB`echo socks5 | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  662. +    ac_tr_lib=HAVE_LIB`echo socks5 | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  663.    cat >> confdefs.h <<EOF
  664.  #define $ac_tr_lib 1
  665.  EOF
  666. @@ -1661,22 +1732,26 @@ fi
  667.  if test "$nc_cv_socks" = yes ; then
  668.  # Look for the "SOCKS" library for use with Firewalls/Gateways.
  669.  echo $ac_n "checking for -lsocks""... $ac_c" 1>&6
  670. -ac_lib_var=`echo socks | tr '.-/+' '___p'`
  671. +ac_lib_var=`echo socks'_'SOCKSinit | tr './+\055' '__p_'`
  672.  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  673.    echo $ac_n "(cached) $ac_c" 1>&6
  674.  else
  675.    ac_save_LIBS="$LIBS"
  676.  LIBS="-lsocks  $LIBS"
  677.  cat > conftest.$ac_ext <<EOF
  678. -#line 1672 "configure"
  679. +#line 1743 "configure"
  680.  #include "confdefs.h"
  681. +/* Override any gcc2 internal prototype to avoid an error.  */
  682. +/* We use char because int might match the return type of a gcc2
  683. +    builtin and then its argument prototype would still apply.  */
  684. +char SOCKSinit();
  685.  
  686. -int main() { return 0; }
  687. +int main() { t(); return 0; }
  688.  int t() {
  689.  SOCKSinit()
  690.  ; return 0; }
  691.  EOF
  692. -if eval $ac_link; then
  693. +if { (eval echo configure:1755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  694.    rm -rf conftest*
  695.    eval "ac_cv_lib_$ac_lib_var=yes"
  696.  else
  697. @@ -1689,7 +1764,7 @@ LIBS="$ac_save_LIBS"
  698.  fi
  699.  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  700.    echo "$ac_t""yes" 1>&6
  701. -    ac_tr_lib=HAVE_LIB`echo socks | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  702. +    ac_tr_lib=HAVE_LIB`echo socks | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  703.    cat >> confdefs.h <<EOF
  704.  #define $ac_tr_lib 1
  705.  EOF
  706. @@ -1716,22 +1791,22 @@ fi
  707.  if test "$nc_cv_termnet" = yes ; then
  708.  # Look for the "TERM" library for use with Linux, etc.
  709.  echo $ac_n "checking for -ltermnet""... $ac_c" 1>&6
  710. -ac_lib_var=`echo termnet | tr '.-/+' '___p'`
  711. +ac_lib_var=`echo termnet'_'main | tr './+\055' '__p_'`
  712.  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  713.    echo $ac_n "(cached) $ac_c" 1>&6
  714.  else
  715.    ac_save_LIBS="$LIBS"
  716.  LIBS="-ltermnet  $LIBS"
  717.  cat > conftest.$ac_ext <<EOF
  718. -#line 1727 "configure"
  719. +#line 1802 "configure"
  720.  #include "confdefs.h"
  721.  
  722. -int main() { return 0; }
  723. +int main() { t(); return 0; }
  724.  int t() {
  725.  main()
  726.  ; return 0; }
  727.  EOF
  728. -if eval $ac_link; then
  729. +if { (eval echo configure:1810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  730.    rm -rf conftest*
  731.    eval "ac_cv_lib_$ac_lib_var=yes"
  732.  else
  733. @@ -1744,7 +1819,7 @@ LIBS="$ac_save_LIBS"
  734.  fi
  735.  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  736.    echo "$ac_t""yes" 1>&6
  737. -    ac_tr_lib=HAVE_LIB`echo termnet | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  738. +    ac_tr_lib=HAVE_LIB`echo termnet | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  739.    cat >> confdefs.h <<EOF
  740.  #define $ac_tr_lib 1
  741.  EOF
  742. @@ -1761,22 +1836,26 @@ fi
  743.  
  744.  if test "$nc_cv_readline" = no; then
  745.  echo $ac_n "checking for -lgetline""... $ac_c" 1>&6
  746. -ac_lib_var=`echo getline | tr '.-/+' '___p'`
  747. +ac_lib_var=`echo getline'_'gl_histadd | tr './+\055' '__p_'`
  748.  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  749.    echo $ac_n "(cached) $ac_c" 1>&6
  750.  else
  751.    ac_save_LIBS="$LIBS"
  752.  LIBS="-lgetline  $LIBS"
  753.  cat > conftest.$ac_ext <<EOF
  754. -#line 1772 "configure"
  755. +#line 1847 "configure"
  756.  #include "confdefs.h"
  757. +/* Override any gcc2 internal prototype to avoid an error.  */
  758. +/* We use char because int might match the return type of a gcc2
  759. +    builtin and then its argument prototype would still apply.  */
  760. +char gl_histadd();
  761.  
  762. -int main() { return 0; }
  763. +int main() { t(); return 0; }
  764.  int t() {
  765.  gl_histadd()
  766.  ; return 0; }
  767.  EOF
  768. -if eval $ac_link; then
  769. +if { (eval echo configure:1859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  770.    rm -rf conftest*
  771.    eval "ac_cv_lib_$ac_lib_var=yes"
  772.  else
  773. @@ -1789,7 +1868,7 @@ LIBS="$ac_save_LIBS"
  774.  fi
  775.  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  776.    echo "$ac_t""yes" 1>&6
  777. -    ac_tr_lib=HAVE_LIB`echo getline | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  778. +    ac_tr_lib=HAVE_LIB`echo getline | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  779.    cat >> confdefs.h <<EOF
  780.  #define $ac_tr_lib 1
  781.  EOF
  782. @@ -1806,22 +1885,26 @@ fi
  783.  # with -lcurses -ltermcap.
  784.  
  785.  echo $ac_n "checking for -ltermcap""... $ac_c" 1>&6
  786. -ac_lib_var=`echo termcap | tr '.-/+' '___p'`
  787. +ac_lib_var=`echo termcap'_'tgetstr | tr './+\055' '__p_'`
  788.  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  789.    echo $ac_n "(cached) $ac_c" 1>&6
  790.  else
  791.    ac_save_LIBS="$LIBS"
  792.  LIBS="-ltermcap  $LIBS"
  793.  cat > conftest.$ac_ext <<EOF
  794. -#line 1817 "configure"
  795. +#line 1896 "configure"
  796.  #include "confdefs.h"
  797. +/* Override any gcc2 internal prototype to avoid an error.  */
  798. +/* We use char because int might match the return type of a gcc2
  799. +    builtin and then its argument prototype would still apply.  */
  800. +char tgetstr();
  801.  
  802. -int main() { return 0; }
  803. +int main() { t(); return 0; }
  804.  int t() {
  805.  tgetstr()
  806.  ; return 0; }
  807.  EOF
  808. -if eval $ac_link; then
  809. +if { (eval echo configure:1908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  810.    rm -rf conftest*
  811.    eval "ac_cv_lib_$ac_lib_var=yes"
  812.  else
  813. @@ -1848,22 +1931,26 @@ obselete_lib=no
  814.  if test $nc_cv_curses = yes ; then
  815.      # cursesX is an Ultrix oddity
  816.      echo $ac_n "checking for -lcursesX""... $ac_c" 1>&6
  817. -ac_lib_var=`echo cursesX | tr '.-/+' '___p'`
  818. +ac_lib_var=`echo cursesX'_'endwin | tr './+\055' '__p_'`
  819.  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  820.    echo $ac_n "(cached) $ac_c" 1>&6
  821.  else
  822.    ac_save_LIBS="$LIBS"
  823.  LIBS="-lcursesX  $LIBS"
  824.  cat > conftest.$ac_ext <<EOF
  825. -#line 1859 "configure"
  826. +#line 1942 "configure"
  827.  #include "confdefs.h"
  828. +/* Override any gcc2 internal prototype to avoid an error.  */
  829. +/* We use char because int might match the return type of a gcc2
  830. +    builtin and then its argument prototype would still apply.  */
  831. +char endwin();
  832.  
  833. -int main() { return 0; }
  834. +int main() { t(); return 0; }
  835.  int t() {
  836.  endwin()
  837.  ; return 0; }
  838.  EOF
  839. -if eval $ac_link; then
  840. +if { (eval echo configure:1954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  841.    rm -rf conftest*
  842.    eval "ac_cv_lib_$ac_lib_var=yes"
  843.  else
  844. @@ -1884,22 +1971,26 @@ fi
  845.  
  846.      if test "$CURSESLIB" = "" ; then
  847.          echo $ac_n "checking for -lcurses""... $ac_c" 1>&6
  848. -ac_lib_var=`echo curses | tr '.-/+' '___p'`
  849. +ac_lib_var=`echo curses'_'wnoutrefresh | tr './+\055' '__p_'`
  850.  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  851.    echo $ac_n "(cached) $ac_c" 1>&6
  852.  else
  853.    ac_save_LIBS="$LIBS"
  854.  LIBS="-lcurses  $LIBS"
  855.  cat > conftest.$ac_ext <<EOF
  856. -#line 1895 "configure"
  857. +#line 1982 "configure"
  858.  #include "confdefs.h"
  859. +/* Override any gcc2 internal prototype to avoid an error.  */
  860. +/* We use char because int might match the return type of a gcc2
  861. +    builtin and then its argument prototype would still apply.  */
  862. +char wnoutrefresh();
  863.  
  864. -int main() { return 0; }
  865. +int main() { t(); return 0; }
  866.  int t() {
  867.  wnoutrefresh()
  868.  ; return 0; }
  869.  EOF
  870. -if eval $ac_link; then
  871. +if { (eval echo configure:1994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  872.    rm -rf conftest*
  873.    eval "ac_cv_lib_$ac_lib_var=yes"
  874.  else
  875. @@ -1926,22 +2017,26 @@ fi
  876.              unset ac_cv_lib_curses
  877.              echo "configure: warning: Did not detect curses, but trying again with termcap:" 1>&2
  878.              echo $ac_n "checking for -lcurses""... $ac_c" 1>&6
  879. -ac_lib_var=`echo curses | tr '.-/+' '___p'`
  880. +ac_lib_var=`echo curses'_'wnoutrefresh | tr './+\055' '__p_'`
  881.  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  882.    echo $ac_n "(cached) $ac_c" 1>&6
  883.  else
  884.    ac_save_LIBS="$LIBS"
  885.  LIBS="-lcurses -ltermcap $LIBS"
  886.  cat > conftest.$ac_ext <<EOF
  887. -#line 1937 "configure"
  888. +#line 2028 "configure"
  889.  #include "confdefs.h"
  890. +/* Override any gcc2 internal prototype to avoid an error.  */
  891. +/* We use char because int might match the return type of a gcc2
  892. +    builtin and then its argument prototype would still apply.  */
  893. +char wnoutrefresh();
  894.  
  895. -int main() { return 0; }
  896. +int main() { t(); return 0; }
  897.  int t() {
  898.  wnoutrefresh()
  899.  ; return 0; }
  900.  EOF
  901. -if eval $ac_link; then
  902. +if { (eval echo configure:2040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  903.    rm -rf conftest*
  904.    eval "ac_cv_lib_$ac_lib_var=yes"
  905.  else
  906. @@ -1970,22 +2065,26 @@ fi
  907.                  unset ac_cv_lib_curses
  908.                  if test "$nc_cv_lib_termcap" = yes ; then
  909.                      echo $ac_n "checking for -lcurses""... $ac_c" 1>&6
  910. -ac_lib_var=`echo curses | tr '.-/+' '___p'`
  911. +ac_lib_var=`echo curses'_'endwin | tr './+\055' '__p_'`
  912.  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  913.    echo $ac_n "(cached) $ac_c" 1>&6
  914.  else
  915.    ac_save_LIBS="$LIBS"
  916.  LIBS="-lcurses -ltermcap $LIBS"
  917.  cat > conftest.$ac_ext <<EOF
  918. -#line 1981 "configure"
  919. +#line 2076 "configure"
  920.  #include "confdefs.h"
  921. +/* Override any gcc2 internal prototype to avoid an error.  */
  922. +/* We use char because int might match the return type of a gcc2
  923. +    builtin and then its argument prototype would still apply.  */
  924. +char endwin();
  925.  
  926. -int main() { return 0; }
  927. +int main() { t(); return 0; }
  928.  int t() {
  929.  endwin()
  930.  ; return 0; }
  931.  EOF
  932. -if eval $ac_link; then
  933. +if { (eval echo configure:2088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  934.    rm -rf conftest*
  935.    eval "ac_cv_lib_$ac_lib_var=yes"
  936.  else
  937. @@ -2006,22 +2105,26 @@ fi
  938.  
  939.                  else
  940.                      echo $ac_n "checking for -lcurses""... $ac_c" 1>&6
  941. -ac_lib_var=`echo curses | tr '.-/+' '___p'`
  942. +ac_lib_var=`echo curses'_'endwin | tr './+\055' '__p_'`
  943.  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  944.    echo $ac_n "(cached) $ac_c" 1>&6
  945.  else
  946.    ac_save_LIBS="$LIBS"
  947.  LIBS="-lcurses  $LIBS"
  948.  cat > conftest.$ac_ext <<EOF
  949. -#line 2017 "configure"
  950. +#line 2116 "configure"
  951.  #include "confdefs.h"
  952. +/* Override any gcc2 internal prototype to avoid an error.  */
  953. +/* We use char because int might match the return type of a gcc2
  954. +    builtin and then its argument prototype would still apply.  */
  955. +char endwin();
  956.  
  957. -int main() { return 0; }
  958. +int main() { t(); return 0; }
  959.  int t() {
  960.  endwin()
  961.  ; return 0; }
  962.  EOF
  963. -if eval $ac_link; then
  964. +if { (eval echo configure:2128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  965.    rm -rf conftest*
  966.    eval "ac_cv_lib_$ac_lib_var=yes"
  967.  else
  968. @@ -2052,22 +2155,26 @@ fi
  969.      if test "$CURSESLIB" = "" ; then
  970.          # Try termlib with Solaris 2.3
  971.          echo $ac_n "checking for -ltermlib""... $ac_c" 1>&6
  972. -ac_lib_var=`echo termlib | tr '.-/+' '___p'`
  973. +ac_lib_var=`echo termlib'_'endwin | tr './+\055' '__p_'`
  974.  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  975.    echo $ac_n "(cached) $ac_c" 1>&6
  976.  else
  977.    ac_save_LIBS="$LIBS"
  978.  LIBS="-ltermlib  $LIBS"
  979.  cat > conftest.$ac_ext <<EOF
  980. -#line 2063 "configure"
  981. +#line 2166 "configure"
  982.  #include "confdefs.h"
  983. +/* Override any gcc2 internal prototype to avoid an error.  */
  984. +/* We use char because int might match the return type of a gcc2
  985. +    builtin and then its argument prototype would still apply.  */
  986. +char endwin();
  987.  
  988. -int main() { return 0; }
  989. +int main() { t(); return 0; }
  990.  int t() {
  991.  endwin()
  992.  ; return 0; }
  993.  EOF
  994. -if eval $ac_link; then
  995. +if { (eval echo configure:2178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  996.    rm -rf conftest*
  997.    eval "ac_cv_lib_$ac_lib_var=yes"
  998.  else
  999. @@ -2090,22 +2197,26 @@ fi
  1000.  
  1001.  if test $nc_cv_ncurses = yes ; then
  1002.      echo $ac_n "checking for -lncurses""... $ac_c" 1>&6
  1003. -ac_lib_var=`echo ncurses | tr '.-/+' '___p'`
  1004. +ac_lib_var=`echo ncurses'_'endwin | tr './+\055' '__p_'`
  1005.  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1006.    echo $ac_n "(cached) $ac_c" 1>&6
  1007.  else
  1008.    ac_save_LIBS="$LIBS"
  1009.  LIBS="-lncurses  $LIBS"
  1010.  cat > conftest.$ac_ext <<EOF
  1011. -#line 2101 "configure"
  1012. +#line 2208 "configure"
  1013.  #include "confdefs.h"
  1014. +/* Override any gcc2 internal prototype to avoid an error.  */
  1015. +/* We use char because int might match the return type of a gcc2
  1016. +    builtin and then its argument prototype would still apply.  */
  1017. +char endwin();
  1018.  
  1019. -int main() { return 0; }
  1020. +int main() { t(); return 0; }
  1021.  int t() {
  1022.  endwin()
  1023.  ; return 0; }
  1024.  EOF
  1025. -if eval $ac_link; then
  1026. +if { (eval echo configure:2220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1027.    rm -rf conftest*
  1028.    eval "ac_cv_lib_$ac_lib_var=yes"
  1029.  else
  1030. @@ -2256,22 +2367,26 @@ fi
  1031.  if test "$nc_cv_readline" = yes ; then
  1032.      READLINELIB=''
  1033.      echo $ac_n "checking for -lreadline""... $ac_c" 1>&6
  1034. -ac_lib_var=`echo readline | tr '.-/+' '___p'`
  1035. +ac_lib_var=`echo readline'_'readline | tr './+\055' '__p_'`
  1036.  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1037.    echo $ac_n "(cached) $ac_c" 1>&6
  1038.  else
  1039.    ac_save_LIBS="$LIBS"
  1040.  LIBS="-lreadline  $LIBS"
  1041.  cat > conftest.$ac_ext <<EOF
  1042. -#line 2267 "configure"
  1043. +#line 2378 "configure"
  1044.  #include "confdefs.h"
  1045. +/* Override any gcc2 internal prototype to avoid an error.  */
  1046. +/* We use char because int might match the return type of a gcc2
  1047. +    builtin and then its argument prototype would still apply.  */
  1048. +char readline();
  1049.  
  1050. -int main() { return 0; }
  1051. +int main() { t(); return 0; }
  1052.  int t() {
  1053.  readline()
  1054.  ; return 0; }
  1055.  EOF
  1056. -if eval $ac_link; then
  1057. +if { (eval echo configure:2390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1058.    rm -rf conftest*
  1059.    eval "ac_cv_lib_$ac_lib_var=yes"
  1060.  else
  1061. @@ -2322,15 +2437,17 @@ if eval "test \"`echo '$''{'ac_cv_func_$
  1062.    echo $ac_n "(cached) $ac_c" 1>&6
  1063.  else
  1064.    cat > conftest.$ac_ext <<EOF
  1065. -#line 2326 "configure"
  1066. +#line 2441 "configure"
  1067.  #include "confdefs.h"
  1068.  /* System header to define __stub macros and hopefully few prototypes,
  1069.      which can conflict with char $ac_func(); below.  */
  1070.  #include <assert.h>
  1071.  /* Override any gcc2 internal prototype to avoid an error.  */
  1072. +/* We use char because int might match the return type of a gcc2
  1073. +    builtin and then its argument prototype would still apply.  */
  1074.  char $ac_func();
  1075.  
  1076. -int main() { return 0; }
  1077. +int main() { t(); return 0; }
  1078.  int t() {
  1079.  
  1080.  /* The GNU C library defines this for functions which it implements
  1081. @@ -2344,7 +2461,7 @@ $ac_func();
  1082.  
  1083.  ; return 0; }
  1084.  EOF
  1085. -if eval $ac_link; then
  1086. +if { (eval echo configure:2465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1087.    rm -rf conftest*
  1088.    eval "ac_cv_func_$ac_func=yes"
  1089.  else
  1090. @@ -2379,10 +2496,10 @@ echo $ac_n "checking if readline and ncu
  1091.  j="$LIBS"
  1092.  LIBS="-lreadline -lncurses"
  1093.  cat > conftest.$ac_ext <<EOF
  1094. -#line 2383 "configure"
  1095. +#line 2500 "configure"
  1096.  #include "confdefs.h"
  1097.  
  1098. -int main() { return 0; }
  1099. +int main() { t(); return 0; }
  1100.  int t() {
  1101.  
  1102.  readline("prompt");
  1103. @@ -2390,7 +2507,7 @@ endwin();
  1104.  
  1105.  ; return 0; }
  1106.  EOF
  1107. -if eval $ac_link; then
  1108. +if { (eval echo configure:2511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1109.    rm -rf conftest*
  1110.    k=yes
  1111.  else
  1112. @@ -2417,22 +2534,26 @@ fi
  1113.  fi
  1114.  
  1115.  echo $ac_n "checking for -lposix""... $ac_c" 1>&6
  1116. -ac_lib_var=`echo posix | tr '.-/+' '___p'`
  1117. +ac_lib_var=`echo posix'_'tcgetpgrp | tr './+\055' '__p_'`
  1118.  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1119.    echo $ac_n "(cached) $ac_c" 1>&6
  1120.  else
  1121.    ac_save_LIBS="$LIBS"
  1122.  LIBS="-lposix  $LIBS"
  1123.  cat > conftest.$ac_ext <<EOF
  1124. -#line 2428 "configure"
  1125. +#line 2545 "configure"
  1126.  #include "confdefs.h"
  1127. +/* Override any gcc2 internal prototype to avoid an error.  */
  1128. +/* We use char because int might match the return type of a gcc2
  1129. +    builtin and then its argument prototype would still apply.  */
  1130. +char tcgetpgrp();
  1131.  
  1132. -int main() { return 0; }
  1133. +int main() { t(); return 0; }
  1134.  int t() {
  1135.  tcgetpgrp()
  1136.  ; return 0; }
  1137.  EOF
  1138. -if eval $ac_link; then
  1139. +if { (eval echo configure:2557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1140.    rm -rf conftest*
  1141.    eval "ac_cv_lib_$ac_lib_var=yes"
  1142.  else
  1143. @@ -2445,7 +2566,7 @@ LIBS="$ac_save_LIBS"
  1144.  fi
  1145.  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1146.    echo "$ac_t""yes" 1>&6
  1147. -    ac_tr_lib=HAVE_LIB`echo posix | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1148. +    ac_tr_lib=HAVE_LIB`echo posix | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  1149.    cat >> confdefs.h <<EOF
  1150.  #define $ac_tr_lib 1
  1151.  EOF
  1152. @@ -2460,22 +2581,22 @@ fi
  1153.  if test "$nc_cv_shared_libc" = yes ; then
  1154.  # This should be the last library to look for.
  1155.  echo $ac_n "checking for -lc_s""... $ac_c" 1>&6
  1156. -ac_lib_var=`echo c_s | tr '.-/+' '___p'`
  1157. +ac_lib_var=`echo c_s'_'main | tr './+\055' '__p_'`
  1158.  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1159.    echo $ac_n "(cached) $ac_c" 1>&6
  1160.  else
  1161.    ac_save_LIBS="$LIBS"
  1162.  LIBS="-lc_s  $LIBS"
  1163.  cat > conftest.$ac_ext <<EOF
  1164. -#line 2471 "configure"
  1165. +#line 2592 "configure"
  1166.  #include "confdefs.h"
  1167.  
  1168. -int main() { return 0; }
  1169. +int main() { t(); return 0; }
  1170.  int t() {
  1171.  main()
  1172.  ; return 0; }
  1173.  EOF
  1174. -if eval $ac_link; then
  1175. +if { (eval echo configure:2600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1176.    rm -rf conftest*
  1177.    eval "ac_cv_lib_$ac_lib_var=yes"
  1178.  else
  1179. @@ -2488,7 +2609,7 @@ LIBS="$ac_save_LIBS"
  1180.  fi
  1181.  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1182.    echo "$ac_t""yes" 1>&6
  1183. -    ac_tr_lib=HAVE_LIB`echo c_s | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1184. +    ac_tr_lib=HAVE_LIB`echo c_s | tr 'abcdefghijklmnopqrstuvwxyz+' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
  1185.    cat >> confdefs.h <<EOF
  1186.  #define $ac_tr_lib 1
  1187.  EOF
  1188. @@ -2505,22 +2626,26 @@ fi
  1189.  
  1190.  # strftime is in -lintl on SCO UNIX.
  1191.  echo $ac_n "checking for -lintl""... $ac_c" 1>&6
  1192. -ac_lib_var=`echo intl | tr '.-/+' '___p'`
  1193. +ac_lib_var=`echo intl'_'strftime | tr './+\055' '__p_'`
  1194.  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1195.    echo $ac_n "(cached) $ac_c" 1>&6
  1196.  else
  1197.    ac_save_LIBS="$LIBS"
  1198.  LIBS="-lintl  $LIBS"
  1199.  cat > conftest.$ac_ext <<EOF
  1200. -#line 2516 "configure"
  1201. +#line 2637 "configure"
  1202.  #include "confdefs.h"
  1203. +/* Override any gcc2 internal prototype to avoid an error.  */
  1204. +/* We use char because int might match the return type of a gcc2
  1205. +    builtin and then its argument prototype would still apply.  */
  1206. +char strftime();
  1207.  
  1208. -int main() { return 0; }
  1209. +int main() { t(); return 0; }
  1210.  int t() {
  1211.  strftime()
  1212.  ; return 0; }
  1213.  EOF
  1214. -if eval $ac_link; then
  1215. +if { (eval echo configure:2649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1216.    rm -rf conftest*
  1217.    eval "ac_cv_lib_$ac_lib_var=yes"
  1218.  else
  1219. @@ -2543,15 +2668,17 @@ if eval "test \"`echo '$''{'ac_cv_func_s
  1220.    echo $ac_n "(cached) $ac_c" 1>&6
  1221.  else
  1222.    cat > conftest.$ac_ext <<EOF
  1223. -#line 2547 "configure"
  1224. +#line 2672 "configure"
  1225.  #include "confdefs.h"
  1226.  /* System header to define __stub macros and hopefully few prototypes,
  1227.      which can conflict with char strftime(); below.  */
  1228.  #include <assert.h>
  1229.  /* Override any gcc2 internal prototype to avoid an error.  */
  1230. +/* We use char because int might match the return type of a gcc2
  1231. +    builtin and then its argument prototype would still apply.  */
  1232.  char strftime();
  1233.  
  1234. -int main() { return 0; }
  1235. +int main() { t(); return 0; }
  1236.  int t() {
  1237.  
  1238.  /* The GNU C library defines this for functions which it implements
  1239. @@ -2565,7 +2692,7 @@ strftime();
  1240.  
  1241.  ; return 0; }
  1242.  EOF
  1243. -if eval $ac_link; then
  1244. +if { (eval echo configure:2696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1245.    rm -rf conftest*
  1246.    eval "ac_cv_func_strftime=yes"
  1247.  else
  1248. @@ -2593,15 +2720,17 @@ if eval "test \"`echo '$''{'ac_cv_func_$
  1249.    echo $ac_n "(cached) $ac_c" 1>&6
  1250.  else
  1251.    cat > conftest.$ac_ext <<EOF
  1252. -#line 2597 "configure"
  1253. +#line 2724 "configure"
  1254.  #include "confdefs.h"
  1255.  /* System header to define __stub macros and hopefully few prototypes,
  1256.      which can conflict with char $ac_func(); below.  */
  1257.  #include <assert.h>
  1258.  /* Override any gcc2 internal prototype to avoid an error.  */
  1259. +/* We use char because int might match the return type of a gcc2
  1260. +    builtin and then its argument prototype would still apply.  */
  1261.  char $ac_func();
  1262.  
  1263. -int main() { return 0; }
  1264. +int main() { t(); return 0; }
  1265.  int t() {
  1266.  
  1267.  /* The GNU C library defines this for functions which it implements
  1268. @@ -2615,7 +2744,7 @@ $ac_func();
  1269.  
  1270.  ; return 0; }
  1271.  EOF
  1272. -if eval $ac_link; then
  1273. +if { (eval echo configure:2748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1274.    rm -rf conftest*
  1275.    eval "ac_cv_func_$ac_func=yes"
  1276.  else
  1277. @@ -2644,15 +2773,17 @@ if eval "test \"`echo '$''{'ac_cv_func_$
  1278.    echo $ac_n "(cached) $ac_c" 1>&6
  1279.  else
  1280.    cat > conftest.$ac_ext <<EOF
  1281. -#line 2648 "configure"
  1282. +#line 2777 "configure"
  1283.  #include "confdefs.h"
  1284.  /* System header to define __stub macros and hopefully few prototypes,
  1285.      which can conflict with char $ac_func(); below.  */
  1286.  #include <assert.h>
  1287.  /* Override any gcc2 internal prototype to avoid an error.  */
  1288. +/* We use char because int might match the return type of a gcc2
  1289. +    builtin and then its argument prototype would still apply.  */
  1290.  char $ac_func();
  1291.  
  1292. -int main() { return 0; }
  1293. +int main() { t(); return 0; }
  1294.  int t() {
  1295.  
  1296.  /* The GNU C library defines this for functions which it implements
  1297. @@ -2666,7 +2797,7 @@ $ac_func();
  1298.  
  1299.  ; return 0; }
  1300.  EOF
  1301. -if eval $ac_link; then
  1302. +if { (eval echo configure:2801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1303.    rm -rf conftest*
  1304.    eval "ac_cv_func_$ac_func=yes"
  1305.  else
  1306. @@ -2718,15 +2849,17 @@ if eval "test \"`echo '$''{'ac_cv_func_$
  1307.    echo $ac_n "(cached) $ac_c" 1>&6
  1308.  else
  1309.    cat > conftest.$ac_ext <<EOF
  1310. -#line 2722 "configure"
  1311. +#line 2853 "configure"
  1312.  #include "confdefs.h"
  1313.  /* System header to define __stub macros and hopefully few prototypes,
  1314.      which can conflict with char $ac_func(); below.  */
  1315.  #include <assert.h>
  1316.  /* Override any gcc2 internal prototype to avoid an error.  */
  1317. +/* We use char because int might match the return type of a gcc2
  1318. +    builtin and then its argument prototype would still apply.  */
  1319.  char $ac_func();
  1320.  
  1321. -int main() { return 0; }
  1322. +int main() { t(); return 0; }
  1323.  int t() {
  1324.  
  1325.  /* The GNU C library defines this for functions which it implements
  1326. @@ -2740,7 +2873,7 @@ $ac_func();
  1327.  
  1328.  ; return 0; }
  1329.  EOF
  1330. -if eval $ac_link; then
  1331. +if { (eval echo configure:2877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1332.    rm -rf conftest*
  1333.    eval "ac_cv_func_$ac_func=yes"
  1334.  else
  1335. @@ -2765,7 +2898,7 @@ done
  1336.      if test $ac_cv_func_getmaxyx = no ; then
  1337.          echo $ac_n "checking for maxx or _maxx in WINDOW structure""... $ac_c" 1>&6
  1338.          cat > conftest.$ac_ext <<EOF
  1339. -#line 2769 "configure"
  1340. +#line 2902 "configure"
  1341.  #include "confdefs.h"
  1342.  #include <curses.h>
  1343.  int main() { return 0; }
  1344. @@ -2778,7 +2911,7 @@ int t() {
  1345.          delwin(w);
  1346.  ; return 0; }
  1347.  EOF
  1348. -if eval $ac_compile; then
  1349. +if { (eval echo configure:2915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1350.    rm -rf conftest*
  1351.    maxx=yes
  1352.  else
  1353. @@ -2835,12 +2968,13 @@ else
  1354.    # On the NeXT, cc -E runs the code through the compiler's parser,
  1355.    # not just through cpp.
  1356.    cat > conftest.$ac_ext <<EOF
  1357. -#line 2839 "configure"
  1358. +#line 2972 "configure"
  1359.  #include "confdefs.h"
  1360.  #include <assert.h>
  1361.  Syntax Error
  1362.  EOF
  1363. -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1364. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1365. +{ (eval echo configure:2978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1366.  ac_err=`grep -v '^ *+' conftest.out`
  1367.  if test -z "$ac_err"; then
  1368.    :
  1369. @@ -2849,12 +2983,13 @@ else
  1370.    rm -rf conftest*
  1371.    CPP="${CC-cc} -E -traditional-cpp"
  1372.    cat > conftest.$ac_ext <<EOF
  1373. -#line 2853 "configure"
  1374. +#line 2987 "configure"
  1375.  #include "confdefs.h"
  1376.  #include <assert.h>
  1377.  Syntax Error
  1378.  EOF
  1379. -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1380. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1381. +{ (eval echo configure:2993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1382.  ac_err=`grep -v '^ *+' conftest.out`
  1383.  if test -z "$ac_err"; then
  1384.    :
  1385. @@ -2879,14 +3014,15 @@ if eval "test \"`echo '$''{'ac_cv_header
  1386.    echo $ac_n "(cached) $ac_c" 1>&6
  1387.  else
  1388.    cat > conftest.$ac_ext <<EOF
  1389. -#line 2883 "configure"
  1390. +#line 3018 "configure"
  1391.  #include "confdefs.h"
  1392.  #include <stdlib.h>
  1393.  #include <stdarg.h>
  1394.  #include <string.h>
  1395.  #include <float.h>
  1396.  EOF
  1397. -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1398. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1399. +{ (eval echo configure:3026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1400.  ac_err=`grep -v '^ *+' conftest.out`
  1401.  if test -z "$ac_err"; then
  1402.    rm -rf conftest*
  1403. @@ -2901,7 +3037,7 @@ rm -f conftest*
  1404.  if test $ac_cv_header_stdc = yes; then
  1405.    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1406.  cat > conftest.$ac_ext <<EOF
  1407. -#line 2905 "configure"
  1408. +#line 3041 "configure"
  1409.  #include "confdefs.h"
  1410.  #include <string.h>
  1411.  EOF
  1412. @@ -2919,7 +3055,7 @@ fi
  1413.  if test $ac_cv_header_stdc = yes; then
  1414.    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1415.  cat > conftest.$ac_ext <<EOF
  1416. -#line 2923 "configure"
  1417. +#line 3059 "configure"
  1418.  #include "confdefs.h"
  1419.  #include <stdlib.h>
  1420.  EOF
  1421. @@ -2940,7 +3076,7 @@ if test "$cross_compiling" = yes; then
  1422.    :
  1423.  else
  1424.  cat > conftest.$ac_ext <<EOF
  1425. -#line 2944 "configure"
  1426. +#line 3080 "configure"
  1427.  #include "confdefs.h"
  1428.  #include <ctype.h>
  1429.  #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1430. @@ -2951,7 +3087,7 @@ if (XOR (islower (i), ISLOWER (i)) || to
  1431.  exit (0); }
  1432.  
  1433.  EOF
  1434. -eval $ac_link
  1435. +{ (eval echo configure:3091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1436.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1437.    :
  1438.  else
  1439. @@ -2978,11 +3114,12 @@ if eval "test \"`echo '$''{'ac_cv_header
  1440.    echo $ac_n "(cached) $ac_c" 1>&6
  1441.  else
  1442.    cat > conftest.$ac_ext <<EOF
  1443. -#line 2982 "configure"
  1444. +#line 3118 "configure"
  1445.  #include "confdefs.h"
  1446.  #include <$ac_hdr>
  1447.  EOF
  1448. -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1449. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1450. +{ (eval echo configure:3123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1451.  ac_err=`grep -v '^ *+' conftest.out`
  1452.  if test -z "$ac_err"; then
  1453.    rm -rf conftest*
  1454. @@ -3014,11 +3151,12 @@ if eval "test \"`echo '$''{'ac_cv_header
  1455.    echo $ac_n "(cached) $ac_c" 1>&6
  1456.  else
  1457.    cat > conftest.$ac_ext <<EOF
  1458. -#line 3018 "configure"
  1459. +#line 3155 "configure"
  1460.  #include "confdefs.h"
  1461.  #include <$ac_hdr>
  1462.  EOF
  1463. -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1464. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1465. +{ (eval echo configure:3160: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1466.  ac_err=`grep -v '^ *+' conftest.out`
  1467.  if test -z "$ac_err"; then
  1468.    rm -rf conftest*
  1469. @@ -3050,11 +3188,12 @@ if eval "test \"`echo '$''{'ac_cv_header
  1470.    echo $ac_n "(cached) $ac_c" 1>&6
  1471.  else
  1472.    cat > conftest.$ac_ext <<EOF
  1473. -#line 3054 "configure"
  1474. +#line 3192 "configure"
  1475.  #include "confdefs.h"
  1476.  #include <$ac_hdr>
  1477.  EOF
  1478. -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1479. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1480. +{ (eval echo configure:3197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1481.  ac_err=`grep -v '^ *+' conftest.out`
  1482.  if test -z "$ac_err"; then
  1483.    rm -rf conftest*
  1484. @@ -3086,11 +3225,12 @@ if eval "test \"`echo '$''{'ac_cv_header
  1485.    echo $ac_n "(cached) $ac_c" 1>&6
  1486.  else
  1487.    cat > conftest.$ac_ext <<EOF
  1488. -#line 3090 "configure"
  1489. +#line 3229 "configure"
  1490.  #include "confdefs.h"
  1491.  #include <$ac_hdr>
  1492.  EOF
  1493. -eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1494. +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1495. +{ (eval echo configure:3234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1496.  ac_err=`grep -v '^ *+' conftest.out`
  1497.  if test -z "$ac_err"; then
  1498.    rm -rf conftest*
  1499. @@ -3119,7 +3259,7 @@ if eval "test \"`echo '$''{'ac_cv_header
  1500.    echo $ac_n "(cached) $ac_c" 1>&6
  1501.  else
  1502.    cat > conftest.$ac_ext <<EOF
  1503. -#line 3123 "configure"
  1504. +#line 3263 "configure"
  1505.  #include "confdefs.h"
  1506.  #include <sys/types.h>
  1507.  #include <sys/time.h>
  1508. @@ -3129,7 +3269,7 @@ int t() {
  1509.  struct tm *tp;
  1510.  ; return 0; }
  1511.  EOF
  1512. -if eval $ac_compile; then
  1513. +if { (eval echo configure:3273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1514.    rm -rf conftest*
  1515.    ac_cv_header_time=yes
  1516.  else
  1517. @@ -3157,11 +3297,18 @@ else
  1518.      { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  1519.  else
  1520.  cat > conftest.$ac_ext <<EOF
  1521. -#line 3161 "configure"
  1522. +#line 3301 "configure"
  1523.  #include "confdefs.h"
  1524.  #include <stdio.h>
  1525.  /* If setvbuf has the reversed format, exit 0. */
  1526.  main () {
  1527. +#ifdef __amigaos__
  1528. +  /* AmigaOS is a non-reversed system.  Instead of the test program
  1529. +     getting a segfault (no memory protection), it causes enforcer hits
  1530. +     or other nastiness, so don't run the test program, just exit with
  1531. +     status 1 to indicate that it is non-reversed.  -fnf */
  1532. +  exit(1);
  1533. +#endif
  1534.    /* This call has the arguments reversed.
  1535.       A reversed system may check and see that the address of main
  1536.       is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
  1537. @@ -3171,7 +3318,7 @@ main () {
  1538.    exit(0);            /* Non-reversed systems segv here.  */
  1539.  }
  1540.  EOF
  1541. -eval $ac_link
  1542. +{ (eval echo configure:3322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1543.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1544.    ac_cv_func_setvbuf_reversed=yes
  1545.  else
  1546. @@ -3198,7 +3345,7 @@ else
  1547.    { echo "configure: error: cannot check getpgrp if cross compiling" 1>&2; exit 1; }
  1548.  else
  1549.  cat > conftest.$ac_ext <<EOF
  1550. -#line 3202 "configure"
  1551. +#line 3349 "configure"
  1552.  #include "confdefs.h"
  1553.  
  1554.  /*
  1555. @@ -3229,7 +3376,11 @@ main()
  1556.          if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
  1557.                  exit(0);
  1558.  
  1559. +#ifdef __amigaos__
  1560. +        child = vfork();
  1561. +#else
  1562.          child = fork();
  1563. +#endif
  1564.          if (child < 0)
  1565.                  exit(1);
  1566.          else if (child == 0) {
  1567. @@ -3253,7 +3404,7 @@ main()
  1568.  }
  1569.  
  1570.  EOF
  1571. -eval $ac_link
  1572. +{ (eval echo configure:3408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
  1573.  if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1574.    ac_cv_func_getpgrp_void=yes
  1575.  else
  1576. @@ -3279,7 +3430,7 @@ if eval "test \"`echo '$''{'ac_cv_prog_g
  1577.  else
  1578.      ac_pattern="Autoconf.*'x'"
  1579.    cat > conftest.$ac_ext <<EOF
  1580. -#line 3283 "configure"
  1581. +#line 3434 "configure"
  1582.  #include "confdefs.h"
  1583.  #include <sgtty.h>
  1584.  Autoconf TIOCGETP
  1585. @@ -3297,7 +3448,7 @@ rm -f conftest*
  1586.  
  1587.    if test $ac_cv_prog_gcc_traditional = no; then
  1588.      cat > conftest.$ac_ext <<EOF
  1589. -#line 3301 "configure"
  1590. +#line 3452 "configure"
  1591.  #include "confdefs.h"
  1592.  #include <termio.h>
  1593.  Autoconf TCGETA
  1594. @@ -3324,7 +3475,7 @@ if eval "test \"`echo '$''{'ac_cv_type_s
  1595.    echo $ac_n "(cached) $ac_c" 1>&6
  1596.  else
  1597.    cat > conftest.$ac_ext <<EOF
  1598. -#line 3328 "configure"
  1599. +#line 3479 "configure"
  1600.  #include "confdefs.h"
  1601.  #include <sys/types.h>
  1602.  #if STDC_HEADERS
  1603. @@ -3406,7 +3557,9 @@ DEFS=-DHAVE_CONFIG_H
  1604.  : ${CONFIG_STATUS=./config.status}
  1605.  
  1606.  echo creating $CONFIG_STATUS
  1607. -rm -f $CONFIG_STATUS
  1608. +# Some systems, like AmigaOS, won't allow you to remove a script that is
  1609. +# being executed, so just move it out of the way instead.
  1610. +if test -f $CONFIG_STATUS; then mv $CONFIG_STATUS $CONFIG_STATUS.old; else true; fi
  1611.  cat > $CONFIG_STATUS <<EOF
  1612.  #! /bin/sh
  1613.  # Generated automatically by configure.
  1614. @@ -3427,7 +3580,7 @@ do
  1615.      echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1616.      exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1617.    -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1618. -    echo "$CONFIG_STATUS generated by autoconf version 2.7"
  1619. +    echo "$CONFIG_STATUS generated by autoconf version 2.10"
  1620.      exit 0 ;;
  1621.    -help | --help | --hel | --he | --h)
  1622.      echo "\$ac_cs_usage"; exit 0 ;;
  1623. @@ -3466,6 +3619,9 @@ s%@libdir@%$libdir%g
  1624.  s%@includedir@%$includedir%g
  1625.  s%@oldincludedir@%$oldincludedir%g
  1626.  s%@infodir@%$infodir%g
  1627. +s%@guidedir@%$guidedir%g
  1628. +s%@psdir@%$psdir%g
  1629. +s%@dvidir@%$dvidir%g
  1630.  s%@mandir@%$mandir%g
  1631.  s%@Z10@%$Z10%g
  1632.  s%@Z11@%$Z11%g
  1633. @@ -3578,7 +3734,7 @@ rm -f conftest.vals
  1634.  cat > conftest.hdr <<\EOF
  1635.  s/[\\&%]/\\&/g
  1636.  s%[\\$`]%\\&%g
  1637. -s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  1638. +s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  1639.  s%ac_d%ac_u%gp
  1640.  s%ac_u%ac_e%gp
  1641.  EOF
  1642. @@ -3626,6 +3782,12 @@ cat >> $CONFIG_STATUS <<\EOF
  1643.      echo "$ac_file is unchanged"
  1644.      rm -f conftest.h
  1645.    else
  1646. +    # Remove last slash and all that follows it.  Not all systems have dirname.
  1647. +      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1648. +      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1649. +      # The file is in a subdirectory.
  1650. +      test ! -d "$ac_dir" && mkdir "$ac_dir"
  1651. +    fi
  1652.      rm -f $ac_file
  1653.      mv conftest.h $ac_file
  1654.    fi
  1655. @@ -3636,6 +3798,7 @@ fi; done
  1656.  exit 0
  1657.  EOF
  1658.  chmod +x $CONFIG_STATUS
  1659. +rm -f CONFIG.STATUS.old
  1660.  rm -fr confdefs* $ac_clean_files
  1661.  test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  1662.  
  1663. diff -rup --new-file baseline/contrib/ncftp/manifests/bin amiga/contrib/ncftp/manifests/bin
  1664. --- baseline/contrib/ncftp/manifests/bin    Wed Dec 31 17:00:00 1969
  1665. +++ amiga/contrib/ncftp/manifests/bin    Sat Sep 28 00:00:00 1996
  1666. @@ -0,0 +1,2 @@
  1667. +bin/ncftp
  1668. +man/man1/ncftp.1
  1669. diff -rup --new-file baseline/contrib/ncftp/manifests/src amiga/contrib/ncftp/manifests/src
  1670. --- baseline/contrib/ncftp/manifests/src    Wed Dec 31 17:00:00 1969
  1671. +++ amiga/contrib/ncftp/manifests/src    Sat Sep 28 00:00:00 1996
  1672. @@ -0,0 +1,80 @@
  1673. +contrib/ncftp/Bookmark.c
  1674. +contrib/ncftp/Bookmark.h
  1675. +contrib/ncftp/CHANGELOG
  1676. +contrib/ncftp/COPYRIGHT.h
  1677. +contrib/ncftp/Cmdline.c
  1678. +contrib/ncftp/Cmdline.h
  1679. +contrib/ncftp/Cmdlist.c
  1680. +contrib/ncftp/Cmds.c
  1681. +contrib/ncftp/Cmds.h
  1682. +contrib/ncftp/Complete.c
  1683. +contrib/ncftp/Complete.h
  1684. +contrib/ncftp/Config.h.in
  1685. +contrib/ncftp/Config.h.top
  1686. +contrib/ncftp/Cpp.c
  1687. +contrib/ncftp/Cpp.h
  1688. +contrib/ncftp/Curses.h
  1689. +contrib/ncftp/DateSize.c
  1690. +contrib/ncftp/DateSize.h
  1691. +contrib/ncftp/FTP.c
  1692. +contrib/ncftp/FTP.h
  1693. +contrib/ncftp/Find.c
  1694. +contrib/ncftp/Find.h
  1695. +contrib/ncftp/Get.c
  1696. +contrib/ncftp/Get.h
  1697. +contrib/ncftp/GetPass.c
  1698. +contrib/ncftp/GetPass.h
  1699. +contrib/ncftp/Getopt.c
  1700. +contrib/ncftp/Getopt.h
  1701. +contrib/ncftp/Glob.c
  1702. +contrib/ncftp/Glob.h
  1703. +contrib/ncftp/Hostwin.c
  1704. +contrib/ncftp/Hostwin.h
  1705. +contrib/ncftp/LGets.c
  1706. +contrib/ncftp/LGets.h
  1707. +contrib/ncftp/LineList.c
  1708. +contrib/ncftp/LineList.h
  1709. +contrib/ncftp/List.c
  1710. +contrib/ncftp/List.h
  1711. +contrib/ncftp/Macro.c
  1712. +contrib/ncftp/Macro.h
  1713. +contrib/ncftp/Main.c
  1714. +contrib/ncftp/Main.h
  1715. +contrib/ncftp/MakeArgv.c
  1716. +contrib/ncftp/MakeArgv.h
  1717. +contrib/ncftp/Makefile.in
  1718. +contrib/ncftp/Open.c
  1719. +contrib/ncftp/Open.h
  1720. +contrib/ncftp/Poll.h
  1721. +contrib/ncftp/Prefs.c
  1722. +contrib/ncftp/Prefs.h
  1723. +contrib/ncftp/Product-Info
  1724. +contrib/ncftp/Progress.c
  1725. +contrib/ncftp/Progress.h
  1726. +contrib/ncftp/Put.c
  1727. +contrib/ncftp/Put.h
  1728. +contrib/ncftp/RCmd.c
  1729. +contrib/ncftp/RCmd.h
  1730. +contrib/ncftp/README
  1731. +contrib/ncftp/Strn.c
  1732. +contrib/ncftp/Strn.h
  1733. +contrib/ncftp/Sys.h
  1734. +contrib/ncftp/Tips.c
  1735. +contrib/ncftp/Tips.h
  1736. +contrib/ncftp/Util.c
  1737. +contrib/ncftp/Util.h
  1738. +contrib/ncftp/Version.h
  1739. +contrib/ncftp/WGets.c
  1740. +contrib/ncftp/WGets.h
  1741. +contrib/ncftp/WHATSNEW
  1742. +contrib/ncftp/Win.c
  1743. +contrib/ncftp/Win.h
  1744. +contrib/ncftp/Xfer.c
  1745. +contrib/ncftp/Xfer.h
  1746. +contrib/ncftp/acconfig.h
  1747. +contrib/ncftp/aclocal.m4
  1748. +contrib/ncftp/configure
  1749. +contrib/ncftp/configure.in
  1750. +contrib/ncftp/manifests/bin
  1751. +contrib/ncftp/manifests/src
  1752. +contrib/ncftp/ncftp.1
  1753.