Index: ChangeLog =================================================================== RCS file: /home/circledb/.cvs/circle/ChangeLog,v retrieving revision 1.203 retrieving revision 1.211 diff -u -p -r1.203 -r1.211 --- ChangeLog 2002/01/16 00:19:45 1.203 +++ ChangeLog 2002/04/16 02:23:37 1.211 @@ -3805,3 +3805,211 @@ change. -- gg - shop.c: destroy_shops(): Make usable without shutdown. -- gg - Released patchlevel 20. + +******** Patchlevel 21 *************************************************** + +1/6/2002 + +-- gg - Makefile.lcc, structs.h: bpl20 -> bpl21 + README.CYGWIN: Reword to avoid changes every patchlevel. + +-- gg - db.c: Remove write-only variable 'top_of_p_file'. + From Juliano Ravasi Ferraz . + +-- gg - licheck: Last-minute file rename broke printing license. + +1/27/2002 + +-- gg - act.other.c, act.wizard.c, ban.c, class.c, comm.c, db.c, fight.c, + house.c, interpreter.c, limits.c, modify.c, objsave.c, + spells.c, utils.c, utils.h: Variable argument mudlog(). + +-- gg - comm.c, comm.h, handler.c, interpreter.c, modify.c: Replace + SEND_TO_Q with varargs write_to_output(). + +-- gg - utils.c: strlcpy(): New. + sprintbit(), sprinttype(): 'length' parameter. + +-- gg - castle.c: tim(), tom(), dickndavid(): Use 'argument', not 'arg'. + +-- gg - utils.c, utils.h, configure.in: Add proper autoconf support for + strdup and strlcpy. + +-- gg - sysdep.h, utils.c, utils.h: Do autoconf checks for str(n)casecmp + and str(n)icmp. + +-- gg - s/str_dup/strdup/ -- it's now an autoconf check. + +-- gg - Variable argument send_to_char(). + comm.c: Remove sanity_check(). + +1/31/2002 + +-- gg - sysdep.h, conf.h.in: Added autoconf check for mcheck.h. + +-- gg - structs.h: Remove unused 'last_direction' from mob_special_data. + From: Juliano Ravasi Ferraz + +-- gg - structs.h: Make mob_special_data.attack_type a byte. + act.wizard.c: Cast attack_type to integer for array access. + From: Juliano Ravasi Ferraz + +-- gg - act.movement.c act.wizard.c comm.c handler.c magic.c, + spec_procs.c spells.c utils.c: Remove redundant prototypes. + +-- gg - class.c, fight.c, objsave.c, shop.c: Added some casts for + C++ warnings, some of which I think I removed recently.. + +-- gg - act.movement.c: do_doorcmd(): Since LOCK_DOOR is no longer + a toggle and does what it says, lockpicking needed a + new TOGGLE_LOCK macro to work properly. (Unless you + always wanted to pick the lock locked, that is.) + +-- gg - structs.h: 'struct index_data' needs to use the *_vnum types. + From: Anton Graham + +-- gg - spec_procs.c: SPECIAL(dump): Use SCMD_DROP for do_drop() call. + From: Juliano Ravasi Ferraz + +-- gg - interpreter.c: find_name() and get_ptable_by_name() did the + same thing. Delete find_name() as it doesn't relate + to other functions as much. + From: Juliano Ravasi Ferraz + db.c: get_{ptable,id}_by_name(): Don't use one_argument since + names don't have whitespace anyway. + +-- gg - db.h: Remove 'arg', 'buf', 'buf1', and 'buf2' global buffers. + +-- gg - fight.c: death_cry(), damage(); + spells.c: spell_locate_object(): + ->in_room to IN_ROOM() + +-- gg - act.wizard.c: do_restore(): Allow people to restore themselves. + That's what I get for changing my mind at the last minute + for '>=' instead of '>'. + +-- gg - perl -i -pe 's/([^_])number\(/$1rand_number\(/g;' *.[ch] + Renamed number() to rand_number() to avoid shadowing variables + and also avoid a BSD function reportedly with that name. + +-- gg - Fixed -Wshadow warnings, most having to do with 'index'. + +2/15/2002 + +-- gg - act.movement.c: Removed unused DOOR_LOCK macro. + From: Juliano Ravasi Ferraz + +-- gg - interpreter.c: special(): Delayed extraction can result in dead + mobiles during special procedure check so avoid anyone + to be removed. + From: Welcor + fight.c: perform_violence(): Likewise. + +2/20/2002 + +-- gg - comm.c: vwrite_to_output(): Fix sign/unsign warning. + write_to_descriptor(): Not worth using varargs here. + comm.h: Update write_to_descriptor() prototype. + +3/3/2002 + +-- gg - act.item.c: give_find_vict(): Use skip_spaces(). + From: Juliano Ravasi Ferraz + +-- gg - fight.c: make_corpse(): Fix odd test. "A || (!A && B)" + From: Juliano Ravasi Ferraz + +-- gg - act.item.c: do_put(): Remove extra-dimensional bags. + From: Juliano Ravasi Ferraz + +-- gg - utils.h: Fixed unused OBJAFF_FLAGGED. + From: "Kras Kresh" + +-- gg - shop.c: Give discounts (or price-inflation) based on charisma. + +-- gg - act.wizard.c: do_advance(): Run autowiz when demoting gods. + class.c: do_start(): Reset max hit/mana/move but don't reset playtime. + db.c: init_char(): Use macros for more structure accesses. Don't set + hit/mana/move for characters here, but do set them for the + first character (implementor). Also comment the height/weight + values better. + limits.c: check_autowiz(): Rename to run_autowiz() and change to run + instead of test. + gain_exp(), gain_exp_regardless(): check_autowiz -> run_autowiz. + +3/20/2002 + +-- gg - cnf/aclocal.m4: Use 'official' method of a 3rd argument to AC_DEFINE() + to generate autoheader hints instead of a local hack to + autoheader itself. + cnf/configure.in: Add checks for more functions, more prototypes, and + mcheck.h. + +-- gg - conf.h.in: Regenerated due to AC_CHECK_PROTO changes. + +-- gg - act.wizard.c: do_stat_character(): Adjusted formatting of output. + +-- gg - alias.c: write_aliases(), write_aliases(); objsave.c: Add buffer + length argument to get_filename(). + read_aliases(): Error-check fscanf() results. Avoids infinite loop + while sucking down memory. + utils.c: get_filename(): Need a buffer length argument to write + proper amount. + utils.h: get_filename() prototype adjustment. + +-- gg - structs.h: title_type is no longer used. + +4/9/2002 + +-- gg - castle.c: king_welmar(), castle_twin_proc(); + comm.c: process_output(); + db.c: parse_room(), char_to_store(), fread_string(), file_to_string(); + handler.c: create_money(); + shop.c: shopping_buy(); + spec_procs.c: mayor(), puff(); + utils.c: mudlog(): + String buffer size assumption comments. + +-- gg - configure: Regenerated from configure.in + +-- gg - act.informative.c: show_obj_to_char(): Might as well use snprintf(). + db.c: global: Remove unused spell_info[] extern; + load_help(): Avoid help entry overflows. + shop.c: evaluate_expression(): Increase 'name' buffer size. + act.item.c: name_from_drinkcon(); + act.wizard.c: perform_set(); + ban.c: load_banned(), do_ban(); + comm.c: make_prompt(), new_descriptor(), perform_subst(); + db.c: save_char(); + interpreter.c: nanny(); + mail.c: store_mail(); + mobact.c: aggressive_mob_on_a_leash(); + modify.c: show_string(); + shop.c: evaluate_expression(), shopping_list(); + spec_procs.c: cityguard(); + spell_parser.c: say_spell(), find_skill_num(); + spells.h: struct spell_info_type; + utils.c: strlcpy(): + String buffer size comments. + +-- gg - class.c; spec_procs.c: guild_guard(); structs.h: Fix use of integers + for room virtual numbers in guild_info[] array. + From: Edward J Glamkowski + class.c: find_class_bitvector(); + act.informative.c: do_who(), do_users(): + Make find_class_bitvector() use parse_class() and loop itself. + Partially from: Edward J Glamkowski + +-- gg - comm.c: make_prompt(): People with 'disp none' need prompt[] + cleared first. + +-- gg - utils.c: mudlog(): Fixed parenthesis lost in reformatting. + From: kras_kresh@hotmail.com + +4/15/2002 + +-- gg - Makefile.in, conf.h.in, sysdep.h: Check for snprintf(). + bsd-snprintf.c, bsd-snprintf.h: BSD-licensed replacements for + snprintf() and vsnprintf() for platforms lacking them. + cnf/configure.in: HAVE_(V)SNPRINTF checks. + configure: Regenerated. Index: autorun =================================================================== RCS file: /home/circledb/.cvs/circle/autorun,v retrieving revision 1.5 retrieving revision 1.6 diff -u -p -r1.5 -r1.6 --- autorun 2001/06/26 11:28:42 1.5 +++ autorun 2002/01/31 18:05:29 1.6 @@ -138,6 +138,8 @@ while ( : ) do echo "autorun starting game $DATE" > syslog echo "running bin/circle $FLAGS $PORT" >> syslog + # On Cygwin, you may need to precede this next line with './' for + # './bin/circle' as the command. bin/circle $FLAGS $PORT >> syslog 2>&1 if [ -r .killscript ]; then Index: configure =================================================================== RCS file: /home/circledb/.cvs/circle/configure,v retrieving revision 1.14 retrieving revision 1.16 diff -u -p -r1.14 -r1.16 --- configure 1999/08/02 00:33:11 1.14 +++ configure 2002/04/16 02:23:38 1.16 @@ -1,7 +1,7 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated automatically using autoconf version 2.13 +# Generated automatically using autoconf version 2.14.1 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. # # This configure script is free software; the Free Software Foundation @@ -333,7 +333,7 @@ EOF verbose=yes ;; -version | --version | --versio | --versi | --vers) - echo "configure generated by autoconf version 2.13" + echo "configure generated by autoconf version 2.14.1" exit 0 ;; -with-* | --with-*) @@ -493,7 +493,7 @@ done if test -r "$cache_file"; then echo "loading cache $cache_file" - . $cache_file + test -f "$cache_file" && . $cache_file else echo "creating cache $cache_file" > $cache_file @@ -537,7 +537,7 @@ do set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:540: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_MORE'+set}'`\" = set"; then +if eval "test \"\${ac_cv_prog_MORE+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$MORE"; then @@ -570,7 +570,7 @@ done set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:573: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then +if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then @@ -600,7 +600,7 @@ if test -z "$CC"; then set dummy cc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:603: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then +if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then @@ -646,12 +646,12 @@ fi if test -z "$CC"; then case "`uname -s`" in - *win32* | *WIN32*) + *win32* | *WIN32* | *CYGWIN*) # Extract the first word of "cl", so it can be a program name with args. set dummy cl; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:654: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then +if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then @@ -681,8 +681,8 @@ 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:686: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 +echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6 +echo "configure:686: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5 ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. @@ -723,14 +723,14 @@ 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:728: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 +echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 +echo "configure:728: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $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:733: checking whether we are using GNU C" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then +if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.c <&6 echo "configure:761: checking whether ${CC-cc} accepts -g" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then +if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else echo 'void f(){}' > conftest.c @@ -793,7 +793,7 @@ if test $ac_cv_prog_gcc = yes; then echo $ac_n "checking whether ${CC-cc} -Wall also needs -Wno-char-subscripts""... $ac_c" 1>&6 echo "configure:796: checking whether ${CC-cc} -Wall also needs -Wno-char-subscripts" >&5 -if eval "test \"`echo '$''{'ac_cv_char_warn'+set}'`\" = set"; then +if eval "test \"\${ac_cv_char_warn+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -829,7 +829,7 @@ echo "$ac_t""$ac_cv_char_warn" 1>&6 echo $ac_n "checking whether ${CC-cc} accepts -Wno-char-subscripts""... $ac_c" 1>&6 echo "configure:832: checking whether ${CC-cc} accepts -Wno-char-subscripts" >&5 -if eval "test \"`echo '$''{'ac_cv_gcc_ncs'+set}'`\" = set"; then +if eval "test \"\${ac_cv_gcc_ncs+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -877,7 +877,7 @@ fi echo $ac_n "checking for gethostbyaddr""... $ac_c" 1>&6 echo "configure:880: checking for gethostbyaddr" >&5 -if eval "test \"`echo '$''{'ac_cv_func_gethostbyaddr'+set}'`\" = set"; then +if eval "test \"\${ac_cv_func_gethostbyaddr+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_gethostbyaddr=yes" else @@ -922,15 +923,15 @@ if eval "test \"`echo '$ac_cv_func_'geth else echo "$ac_t""no" 1>&6 echo $ac_n "checking for gethostbyaddr in -lnsl""... $ac_c" 1>&6 -echo "configure:926: checking for gethostbyaddr in -lnsl" >&5 +echo "configure:927: checking for gethostbyaddr in -lnsl" >&5 ac_lib_var=`echo nsl'_'gethostbyaddr | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then +if eval "test \"\${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${ac_exeext}; then +if { (eval echo configure:946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -965,12 +966,12 @@ fi echo $ac_n "checking for socket""... $ac_c" 1>&6 -echo "configure:969: checking for socket" >&5 -if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then +echo "configure:970: checking for socket" >&5 +if eval "test \"\${ac_cv_func_socket+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_socket=yes" else @@ -1011,15 +1013,15 @@ if eval "test \"`echo '$ac_cv_func_'sock else echo "$ac_t""no" 1>&6 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 -echo "configure:1015: checking for socket in -lsocket" >&5 +echo "configure:1017: 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 +if eval "test \"\${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${ac_exeext}; then +if { (eval echo configure:1036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -1054,12 +1056,12 @@ fi echo $ac_n "checking for malloc""... $ac_c" 1>&6 -echo "configure:1058: checking for malloc" >&5 -if eval "test \"`echo '$''{'ac_cv_func_malloc'+set}'`\" = set"; then +echo "configure:1060: checking for malloc" >&5 +if eval "test \"\${ac_cv_func_malloc+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_malloc=yes" else @@ -1100,15 +1103,15 @@ if eval "test \"`echo '$ac_cv_func_'mall else echo "$ac_t""no" 1>&6 echo $ac_n "checking for malloc in -lmalloc""... $ac_c" 1>&6 -echo "configure:1104: checking for malloc in -lmalloc" >&5 +echo "configure:1107: checking for malloc in -lmalloc" >&5 ac_lib_var=`echo malloc'_'malloc | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then +if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lmalloc $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -1150,12 +1153,12 @@ fi echo $ac_n "checking for crypt""... $ac_c" 1>&6 -echo "configure:1154: checking for crypt" >&5 -if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then +echo "configure:1157: checking for crypt" >&5 +if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_crypt=yes" else @@ -1199,15 +1203,15 @@ EOF else echo "$ac_t""no" 1>&6 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 -echo "configure:1203: checking for crypt in -lcrypt" >&5 +echo "configure:1207: 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 +if eval "test \"\${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${ac_exeext}; then +if { (eval echo configure:1226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -1246,13 +1250,13 @@ fi echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 -echo "configure:1250: checking how to run the C preprocessor" >&5 +echo "configure:1254: 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 +if eval "test \"\${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 @@ -1261,13 +1265,13 @@ else # 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:1271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -1278,13 +1282,13 @@ else 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:1288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -1295,13 +1299,13 @@ else rm -rf conftest* CPP="${CC-cc} -nologo -E" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -1326,12 +1330,12 @@ fi echo "$ac_t""$CPP" 1>&6 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 -echo "configure:1330: checking for ANSI C header files" >&5 -if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then +echo "configure:1334: checking for ANSI C header files" >&5 +if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -1339,7 +1343,7 @@ else #include EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -1356,7 +1360,7 @@ 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 @@ -1374,7 +1378,7 @@ 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 @@ -1395,7 +1399,7 @@ if test "$cross_compiling" = yes; then : else cat > conftest.$ac_ext < #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') @@ -1406,7 +1410,7 @@ if (XOR (islower (i), ISLOWER (i)) || to exit (0); } EOF -if { (eval echo configure:1410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:1414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then : else @@ -1430,12 +1434,12 @@ EOF fi echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 -echo "configure:1434: 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 "configure:1438: checking for sys/wait.h that is POSIX.1 compatible" >&5 +if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -1451,7 +1455,7 @@ wait (&s); s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; ; return 0; } EOF -if { (eval echo configure:1455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_header_sys_wait_h=yes else @@ -1475,17 +1479,21 @@ for ac_hdr in fcntl.h sys/fcntl.h errno. do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:1479: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then +echo "configure:1483: checking for $ac_hdr" >&5 +if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < +#endif #include <$ac_hdr> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -1515,17 +1523,21 @@ for ac_hdr in limits.h sys/time.h sys/se do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:1519: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then +echo "configure:1527: checking for $ac_hdr" >&5 +if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < +#endif #include <$ac_hdr> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1541: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -1555,17 +1567,21 @@ for ac_hdr in memory.h crypt.h assert.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:1559: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then +echo "configure:1571: checking for $ac_hdr" >&5 +if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < +#endif #include <$ac_hdr> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -1595,17 +1611,21 @@ for ac_hdr in sys/stat.h sys/socket.h sy do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:1599: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then +echo "configure:1615: checking for $ac_hdr" >&5 +if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < +#endif #include <$ac_hdr> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1609: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -1631,21 +1651,25 @@ else fi done -for ac_hdr in signal.h sys/uio.h +for ac_hdr in signal.h sys/uio.h mcheck.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:1639: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then +echo "configure:1659: checking for $ac_hdr" >&5 +if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < +#endif #include <$ac_hdr> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -1674,8 +1698,8 @@ done echo $ac_n "checking whether crypt needs over 10 characters""... $ac_c" 1>&6 -echo "configure:1678: checking whether crypt needs over 10 characters" >&5 -if eval "test \"`echo '$''{'ac_cv_unsafe_crypt'+set}'`\" = set"; then +echo "configure:1702: checking whether crypt needs over 10 characters" >&5 +if eval "test \"\${ac_cv_unsafe_crypt+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1690,7 +1714,7 @@ else ac_cv_unsafe_crypt=no else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:1741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_unsafe_crypt=yes else @@ -1740,12 +1764,12 @@ fi echo $ac_n "checking for working const""... $ac_c" 1>&6 -echo "configure:1744: checking for working const" >&5 -if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then +echo "configure:1768: checking for working const" >&5 +if eval "test \"\${ac_cv_c_const+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_const=yes else @@ -1815,111 +1839,129 @@ EOF fi echo $ac_n "checking for pid_t""... $ac_c" 1>&6 -echo "configure:1819: checking for pid_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then +echo "configure:1843: checking for pid_t" >&5 +if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS +#include #include #include #endif +#if HAVE_SYS_BITYPES_H +#include +#endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then rm -rf conftest* - ac_cv_type_pid_t=yes + eval "ac_cv_type_pid_t=yes" else rm -rf conftest* - ac_cv_type_pid_t=no + eval "ac_cv_type_pid_t=no" fi rm -f conftest* fi -echo "$ac_t""$ac_cv_type_pid_t" 1>&6 -if test $ac_cv_type_pid_t = no; then - cat >> confdefs.h <<\EOF +if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then + echo "$ac_t""yes" 1>&6 +else + echo "$ac_t""no" 1>&6 + cat >> confdefs.h <&6 -echo "configure:1852: checking for size_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then +echo "configure:1882: checking for size_t" >&5 +if eval "test \"\${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 #include #endif +#if HAVE_SYS_BITYPES_H +#include +#endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then rm -rf conftest* - ac_cv_type_size_t=yes + eval "ac_cv_type_size_t=yes" else rm -rf conftest* - ac_cv_type_size_t=no + eval "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 +if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then + echo "$ac_t""yes" 1>&6 +else + echo "$ac_t""no" 1>&6 + cat >> confdefs.h <&6 -echo "configure:1885: checking for ssize_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then +echo "configure:1921: checking for ssize_t" >&5 +if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS +#include #include #include #endif +#if HAVE_SYS_BITYPES_H +#include +#endif EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then rm -rf conftest* - ac_cv_type_ssize_t=yes + eval "ac_cv_type_ssize_t=yes" else rm -rf conftest* - ac_cv_type_ssize_t=no + eval "ac_cv_type_ssize_t=no" fi rm -f conftest* fi -echo "$ac_t""$ac_cv_type_ssize_t" 1>&6 -if test $ac_cv_type_ssize_t = no; then - cat >> confdefs.h <<\EOF +if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then + echo "$ac_t""yes" 1>&6 +else + echo "$ac_t""no" 1>&6 + cat >> confdefs.h <&6 -echo "configure:1918: 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 "configure:1960: checking whether time.h and sys/time.h may both be included" >&5 +if eval "test \"\${ac_cv_header_time+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -1928,7 +1970,7 @@ int main() { struct tm *tp; ; return 0; } EOF -if { (eval echo configure:1932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_header_time=yes else @@ -1949,7 +1991,6 @@ EOF fi - if test $ac_cv_header_netinet_in_h = no; then ac_cv_struct_in_addr = no else @@ -1964,19 +2005,19 @@ EOF fi echo $ac_n "checking for struct in_addr""... $ac_c" 1>&6 -echo "configure:1968: checking for struct in_addr" >&5 -if eval "test \"`echo '$''{'ac_cv_struct_in_addr'+set}'`\" = set"; then +echo "configure:2009: checking for struct in_addr" >&5 +if eval "test \"\${ac_cv_struct_in_addr+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_struct_in_addr=yes else @@ -2003,19 +2044,19 @@ if test $ac_cv_header_sys_socket_h = no; ac_cv_socklen_t = no; else echo $ac_n "checking for typedef socklen_t""... $ac_c" 1>&6 -echo "configure:2007: checking for typedef socklen_t" >&5 -if eval "test \"`echo '$''{'ac_cv_socklen_t'+set}'`\" = set"; then +echo "configure:2048: checking for typedef socklen_t" >&5 +if eval "test \"\${ac_cv_socklen_t+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { socklen_t sl; sl=0; ; return 0; } EOF -if { (eval echo configure:2019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_socklen_t=yes else @@ -2039,12 +2080,12 @@ fi echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 -echo "configure:2043: checking return type of signal handlers" >&5 -if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then +echo "configure:2084: checking return type of signal handlers" >&5 +if eval "test \"\${ac_cv_type_signal+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -2061,7 +2102,7 @@ int main() { int i; ; return 0; } EOF -if { (eval echo configure:2065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_type_signal=void else @@ -2079,18 +2120,181 @@ cat >> confdefs.h <&6 +echo "configure:2125: checking for vprintf" >&5 +if eval "test \"\${ac_cv_func_vprintf+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 vprintf(); +char (*f)(); + +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_vprintf) || defined (__stub___vprintf) +choke me +#else +f = vprintf; +#endif + +; return 0; } +EOF +if { (eval echo configure:2154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_vprintf=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_vprintf=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define HAVE_VPRINTF 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + +if test "$ac_cv_func_vprintf" != yes; then +echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 +echo "configure:2178: checking for _doprnt" >&5 +if eval "test \"\${ac_cv_func__doprnt+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 _doprnt(); +char (*f)(); + +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__doprnt) || defined (__stub____doprnt) +choke me +#else +f = _doprnt; +#endif + +; return 0; } +EOF +if { (eval echo configure:2207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func__doprnt=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func__doprnt=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define HAVE_DOPRNT 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + +fi + +for ac_func in gettimeofday select snprintf strcasecmp strdup strerror stricmp strlcpy strncasecmp strnicmp strstr vsnprintf +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:2234: checking for $ac_func" >&5 +if eval "test \"\${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(); +char (*f)(); + +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 +f = $ac_func; +#endif + +; return 0; } +EOF +if { (eval echo configure:2263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; 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 + ORIGLIBS=$LIBS LIBS="$LIBS $NETLIB" for ac_func in inet_addr inet_aton do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:2089: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then +echo "configure:2293: checking for $ac_func" >&5 +if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -2140,18 +2345,16 @@ done LIBS=$ORIGLIBS -ac_safe=`echo "accept" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo accept | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=accept; - echo $ac_n "checking if accept is prototyped""... $ac_c" 1>&6 -echo "configure:2149: checking if accept is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:2352: checking if accept is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -2184,26 +2387,24 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_ACCEPT_PROTO EOF echo "$ac_t""no" 1>&6 fi - -ac_safe=`echo "atoi" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo atoi | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=atoi; echo $ac_n "checking if atoi is prototyped""... $ac_c" 1>&6 -echo "configure:2201: checking if atoi is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:2402: checking if atoi is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -2236,26 +2437,24 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_ATOI_PROTO EOF echo "$ac_t""no" 1>&6 fi -ac_safe=`echo "atol" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo atol | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=atol; - echo $ac_n "checking if atol is prototyped""... $ac_c" 1>&6 -echo "configure:2253: checking if atol is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:2452: checking if atol is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -2288,26 +2487,24 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_ATOL_PROTO EOF echo "$ac_t""no" 1>&6 fi - -ac_safe=`echo "bind" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo bind | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=bind; echo $ac_n "checking if bind is prototyped""... $ac_c" 1>&6 -echo "configure:2305: checking if bind is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:2502: checking if bind is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -2340,26 +2537,24 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_BIND_PROTO EOF echo "$ac_t""no" 1>&6 fi -ac_safe=`echo "bzero" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo bzero | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=bzero; - echo $ac_n "checking if bzero is prototyped""... $ac_c" 1>&6 -echo "configure:2357: checking if bzero is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:2552: checking if bzero is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -2392,26 +2587,24 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_BZERO_PROTO EOF echo "$ac_t""no" 1>&6 fi - -ac_safe=`echo "chdir" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo chdir | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=chdir; echo $ac_n "checking if chdir is prototyped""... $ac_c" 1>&6 -echo "configure:2409: checking if chdir is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:2602: checking if chdir is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -2444,26 +2637,24 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_CHDIR_PROTO EOF echo "$ac_t""no" 1>&6 fi -ac_safe=`echo "close" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo close | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=close; - echo $ac_n "checking if close is prototyped""... $ac_c" 1>&6 -echo "configure:2461: checking if close is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:2652: checking if close is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -2496,26 +2687,24 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_CLOSE_PROTO EOF echo "$ac_t""no" 1>&6 fi - -ac_safe=`echo "crypt" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo crypt | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=crypt; echo $ac_n "checking if crypt is prototyped""... $ac_c" 1>&6 -echo "configure:2513: checking if crypt is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:2702: checking if crypt is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -2548,26 +2737,24 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_CRYPT_PROTO EOF echo "$ac_t""no" 1>&6 fi -ac_safe=`echo "fclose" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo fclose | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=fclose; - echo $ac_n "checking if fclose is prototyped""... $ac_c" 1>&6 -echo "configure:2565: checking if fclose is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:2752: checking if fclose is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -2600,26 +2787,24 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_FCLOSE_PROTO EOF echo "$ac_t""no" 1>&6 fi - -ac_safe=`echo "fcntl" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo fcntl | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=fcntl; echo $ac_n "checking if fcntl is prototyped""... $ac_c" 1>&6 -echo "configure:2617: checking if fcntl is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:2802: checking if fcntl is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -2652,26 +2837,24 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_FCNTL_PROTO EOF echo "$ac_t""no" 1>&6 fi -ac_safe=`echo "fflush" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo fflush | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=fflush; - echo $ac_n "checking if fflush is prototyped""... $ac_c" 1>&6 -echo "configure:2669: checking if fflush is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:2852: checking if fflush is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -2704,26 +2887,24 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_FFLUSH_PROTO EOF echo "$ac_t""no" 1>&6 fi - -ac_safe=`echo "fprintf" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo fprintf | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=fprintf; echo $ac_n "checking if fprintf is prototyped""... $ac_c" 1>&6 -echo "configure:2721: checking if fprintf is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:2902: checking if fprintf is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -2756,26 +2937,24 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_FPRINTF_PROTO EOF echo "$ac_t""no" 1>&6 fi -ac_safe=`echo "fputc" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo fputc | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=fputc; - echo $ac_n "checking if fputc is prototyped""... $ac_c" 1>&6 -echo "configure:2773: checking if fputc is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:2952: checking if fputc is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -2808,26 +2987,24 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_FPUTC_PROTO EOF echo "$ac_t""no" 1>&6 fi - -ac_safe=`echo "fputs" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo fputs | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=fputs; echo $ac_n "checking if fputs is prototyped""... $ac_c" 1>&6 -echo "configure:2825: checking if fputs is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:3002: checking if fputs is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -2860,26 +3037,24 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_FPUTS_PROTO EOF echo "$ac_t""no" 1>&6 fi -ac_safe=`echo "fread" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo fread | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=fread; - echo $ac_n "checking if fread is prototyped""... $ac_c" 1>&6 -echo "configure:2877: checking if fread is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:3052: checking if fread is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -2912,26 +3087,24 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_FREAD_PROTO EOF echo "$ac_t""no" 1>&6 fi - -ac_safe=`echo "fscanf" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo fscanf | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=fscanf; echo $ac_n "checking if fscanf is prototyped""... $ac_c" 1>&6 -echo "configure:2929: checking if fscanf is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:3102: checking if fscanf is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -2964,26 +3137,24 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_FSCANF_PROTO EOF echo "$ac_t""no" 1>&6 fi -ac_safe=`echo "fseek" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo fseek | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=fseek; - echo $ac_n "checking if fseek is prototyped""... $ac_c" 1>&6 -echo "configure:2981: checking if fseek is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:3152: checking if fseek is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -3016,26 +3187,24 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_FSEEK_PROTO EOF echo "$ac_t""no" 1>&6 fi - -ac_safe=`echo "fwrite" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo fwrite | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=fwrite; echo $ac_n "checking if fwrite is prototyped""... $ac_c" 1>&6 -echo "configure:3033: checking if fwrite is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:3202: checking if fwrite is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -3068,26 +3237,24 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_FWRITE_PROTO EOF echo "$ac_t""no" 1>&6 fi -ac_safe=`echo "getpeername" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo getpeername | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=getpeername; - echo $ac_n "checking if getpeername is prototyped""... $ac_c" 1>&6 -echo "configure:3085: checking if getpeername is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:3252: checking if getpeername is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -3120,26 +3287,24 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_GETPEERNAME_PROTO EOF echo "$ac_t""no" 1>&6 fi - -ac_safe=`echo "getpid" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo getpid | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=getpid; echo $ac_n "checking if getpid is prototyped""... $ac_c" 1>&6 -echo "configure:3137: checking if getpid is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:3302: checking if getpid is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -3172,26 +3337,24 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_GETPID_PROTO EOF echo "$ac_t""no" 1>&6 fi -ac_safe=`echo "getrlimit" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo getrlimit | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=getrlimit; - echo $ac_n "checking if getrlimit is prototyped""... $ac_c" 1>&6 -echo "configure:3189: checking if getrlimit is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:3352: checking if getrlimit is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -3224,26 +3387,24 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_GETRLIMIT_PROTO EOF echo "$ac_t""no" 1>&6 fi - -ac_safe=`echo "getsockname" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo getsockname | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=getsockname; echo $ac_n "checking if getsockname is prototyped""... $ac_c" 1>&6 -echo "configure:3241: checking if getsockname is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:3402: checking if getsockname is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -3276,26 +3437,24 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_GETSOCKNAME_PROTO EOF echo "$ac_t""no" 1>&6 fi -ac_safe=`echo "gettimeofday" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo gettimeofday | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=gettimeofday; - echo $ac_n "checking if gettimeofday is prototyped""... $ac_c" 1>&6 -echo "configure:3293: checking if gettimeofday is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:3452: checking if gettimeofday is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -3328,26 +3487,24 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_GETTIMEOFDAY_PROTO EOF echo "$ac_t""no" 1>&6 fi - -ac_safe=`echo "htonl" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo htonl | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=htonl; echo $ac_n "checking if htonl is prototyped""... $ac_c" 1>&6 -echo "configure:3345: checking if htonl is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:3502: checking if htonl is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -3380,26 +3537,24 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_HTONL_PROTO EOF echo "$ac_t""no" 1>&6 fi -ac_safe=`echo "htons" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo htons | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=htons; - echo $ac_n "checking if htons is prototyped""... $ac_c" 1>&6 -echo "configure:3397: checking if htons is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:3552: checking if htons is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -3432,26 +3587,24 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_HTONS_PROTO EOF echo "$ac_t""no" 1>&6 fi - -ac_safe=`echo "inet_addr" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo inet_addr | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=inet_addr; echo $ac_n "checking if inet_addr is prototyped""... $ac_c" 1>&6 -echo "configure:3449: checking if inet_addr is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:3602: checking if inet_addr is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -3484,26 +3637,24 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_INET_ADDR_PROTO EOF echo "$ac_t""no" 1>&6 fi -ac_safe=`echo "inet_aton" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo inet_aton | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=inet_aton; - echo $ac_n "checking if inet_aton is prototyped""... $ac_c" 1>&6 -echo "configure:3501: checking if inet_aton is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:3652: checking if inet_aton is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -3536,26 +3687,24 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_INET_ATON_PROTO EOF echo "$ac_t""no" 1>&6 fi - -ac_safe=`echo "inet_ntoa" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo inet_ntoa | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=inet_ntoa; echo $ac_n "checking if inet_ntoa is prototyped""... $ac_c" 1>&6 -echo "configure:3553: checking if inet_ntoa is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:3702: checking if inet_ntoa is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -3588,26 +3737,24 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_INET_NTOA_PROTO EOF echo "$ac_t""no" 1>&6 fi -ac_safe=`echo "listen" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo listen | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=listen; - echo $ac_n "checking if listen is prototyped""... $ac_c" 1>&6 -echo "configure:3605: checking if listen is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:3752: checking if listen is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -3640,26 +3787,24 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_LISTEN_PROTO EOF echo "$ac_t""no" 1>&6 fi - -ac_safe=`echo "ntohl" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo ntohl | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=ntohl; echo $ac_n "checking if ntohl is prototyped""... $ac_c" 1>&6 -echo "configure:3657: checking if ntohl is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:3802: checking if ntohl is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -3692,26 +3837,24 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_NTOHL_PROTO EOF echo "$ac_t""no" 1>&6 fi -ac_safe=`echo "perror" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo perror | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=perror; - echo $ac_n "checking if perror is prototyped""... $ac_c" 1>&6 -echo "configure:3709: checking if perror is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:3852: checking if perror is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -3744,26 +3887,24 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_PERROR_PROTO EOF echo "$ac_t""no" 1>&6 fi - -ac_safe=`echo "printf" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo printf | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=printf; echo $ac_n "checking if printf is prototyped""... $ac_c" 1>&6 -echo "configure:3761: checking if printf is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:3902: checking if printf is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -3796,26 +3937,24 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_PRINTF_PROTO EOF echo "$ac_t""no" 1>&6 fi -ac_safe=`echo "qsort" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo qsort | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=qsort; - echo $ac_n "checking if qsort is prototyped""... $ac_c" 1>&6 -echo "configure:3813: checking if qsort is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:3952: checking if qsort is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -3848,26 +3987,24 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_QSORT_PROTO EOF echo "$ac_t""no" 1>&6 fi - -ac_safe=`echo "read" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo read | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=read; echo $ac_n "checking if read is prototyped""... $ac_c" 1>&6 -echo "configure:3865: checking if read is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:4002: checking if read is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -3900,26 +4037,24 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_READ_PROTO EOF echo "$ac_t""no" 1>&6 fi - -ac_safe=`echo "remove" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo remove | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=remove; echo $ac_n "checking if remove is prototyped""... $ac_c" 1>&6 -echo "configure:3917: checking if remove is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:4052: checking if remove is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -3952,26 +4087,24 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_REMOVE_PROTO EOF echo "$ac_t""no" 1>&6 fi - -ac_safe=`echo "rewind" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo rewind | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=rewind; echo $ac_n "checking if rewind is prototyped""... $ac_c" 1>&6 -echo "configure:3969: checking if rewind is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:4102: checking if rewind is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -4004,26 +4137,24 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_REWIND_PROTO EOF echo "$ac_t""no" 1>&6 fi - -ac_safe=`echo "select" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo select | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=select; echo $ac_n "checking if select is prototyped""... $ac_c" 1>&6 -echo "configure:4021: checking if select is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:4152: checking if select is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -4056,26 +4187,24 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_SELECT_PROTO EOF echo "$ac_t""no" 1>&6 fi - -ac_safe=`echo "setitimer" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo setitimer | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=setitimer; echo $ac_n "checking if setitimer is prototyped""... $ac_c" 1>&6 -echo "configure:4073: checking if setitimer is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:4202: checking if setitimer is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -4108,26 +4237,24 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_SETITIMER_PROTO EOF echo "$ac_t""no" 1>&6 fi - -ac_safe=`echo "setrlimit" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo setrlimit | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=setrlimit; echo $ac_n "checking if setrlimit is prototyped""... $ac_c" 1>&6 -echo "configure:4125: checking if setrlimit is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:4252: checking if setrlimit is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -4160,26 +4287,24 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_SETRLIMIT_PROTO EOF echo "$ac_t""no" 1>&6 fi - -ac_safe=`echo "setsockopt" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo setsockopt | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=setsockopt; echo $ac_n "checking if setsockopt is prototyped""... $ac_c" 1>&6 -echo "configure:4177: checking if setsockopt is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:4302: checking if setsockopt is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -4212,26 +4337,74 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_SETSOCKOPT_PROTO EOF echo "$ac_t""no" 1>&6 fi + +ac_safe=snprintf; + +echo $ac_n "checking if snprintf is prototyped""... $ac_c" 1>&6 +echo "configure:4352: checking if snprintf is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + # +cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + eval "ac_cv_prototype_$ac_safe=no" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_prototype_$ac_safe=yes" +fi +rm -f conftest* +fi + + +if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 +else + cat >> confdefs.h <<\EOF +#define NEED_SNPRINTF_PROTO +EOF + + echo "$ac_t""no" 1>&6 +fi + + +ac_safe=socket; + echo $ac_n "checking if socket is prototyped""... $ac_c" 1>&6 -echo "configure:4229: checking if socket is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:4402: checking if socket is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -4264,26 +4437,24 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_SOCKET_PROTO EOF echo "$ac_t""no" 1>&6 fi - -ac_safe=`echo "sprintf" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo sprintf | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=sprintf; echo $ac_n "checking if sprintf is prototyped""... $ac_c" 1>&6 -echo "configure:4281: checking if sprintf is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:4452: checking if sprintf is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -4316,26 +4487,24 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_SPRINTF_PROTO EOF echo "$ac_t""no" 1>&6 fi - -ac_safe=`echo "sscanf" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo sscanf | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=sscanf; echo $ac_n "checking if sscanf is prototyped""... $ac_c" 1>&6 -echo "configure:4333: checking if sscanf is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:4502: checking if sscanf is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -4368,26 +4537,124 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_SSCANF_PROTO +EOF + + echo "$ac_t""no" 1>&6 +fi + + +ac_safe=strcasecmp; + +echo $ac_n "checking if strcasecmp is prototyped""... $ac_c" 1>&6 +echo "configure:4552: checking if strcasecmp is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + # +cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + eval "ac_cv_prototype_$ac_safe=no" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_prototype_$ac_safe=yes" +fi +rm -f conftest* + +fi + +if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 +else + cat >> confdefs.h <<\EOF +#define NEED_STRCASECMP_PROTO +EOF + echo "$ac_t""no" 1>&6 fi + +ac_safe=strdup; + +echo $ac_n "checking if strdup is prototyped""... $ac_c" 1>&6 +echo "configure:4602: checking if strdup is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + # +cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + eval "ac_cv_prototype_$ac_safe=no" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_prototype_$ac_safe=yes" +fi +rm -f conftest* + +fi + +if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 +else + cat >> confdefs.h <<\EOF +#define NEED_STRDUP_PROTO +EOF + + echo "$ac_t""no" 1>&6 +fi + + +ac_safe=strerror; + echo $ac_n "checking if strerror is prototyped""... $ac_c" 1>&6 -echo "configure:4385: checking if strerror is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:4652: checking if strerror is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -4420,26 +4687,224 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_STRERROR_PROTO +EOF + + echo "$ac_t""no" 1>&6 +fi + + +ac_safe=stricmp; + +echo $ac_n "checking if stricmp is prototyped""... $ac_c" 1>&6 +echo "configure:4702: checking if stricmp is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + # +cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + eval "ac_cv_prototype_$ac_safe=no" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_prototype_$ac_safe=yes" +fi +rm -f conftest* + +fi + + +if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 +else + cat >> confdefs.h <<\EOF +#define NEED_STRICMP_PROTO +EOF + + echo "$ac_t""no" 1>&6 +fi + + +ac_safe=strlcpy; + +echo $ac_n "checking if strlcpy is prototyped""... $ac_c" 1>&6 +echo "configure:4752: checking if strlcpy is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + # +cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + eval "ac_cv_prototype_$ac_safe=no" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_prototype_$ac_safe=yes" +fi +rm -f conftest* + +fi + + +if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 +else + cat >> confdefs.h <<\EOF +#define NEED_STRLCPY_PROTO +EOF + + echo "$ac_t""no" 1>&6 +fi + + +ac_safe=strncasecmp; + +echo $ac_n "checking if strncasecmp is prototyped""... $ac_c" 1>&6 +echo "configure:4802: checking if strncasecmp is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + # +cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + eval "ac_cv_prototype_$ac_safe=no" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_prototype_$ac_safe=yes" +fi +rm -f conftest* + +fi + + +if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 +else + cat >> confdefs.h <<\EOF +#define NEED_STRNCASECMP_PROTO EOF echo "$ac_t""no" 1>&6 fi + +ac_safe=strnicmp; + +echo $ac_n "checking if strnicmp is prototyped""... $ac_c" 1>&6 +echo "configure:4852: checking if strnicmp is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + # +cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + eval "ac_cv_prototype_$ac_safe=no" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_prototype_$ac_safe=yes" +fi +rm -f conftest* + +fi -ac_safe=`echo "system" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo system | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 +else + cat >> confdefs.h <<\EOF +#define NEED_STRNICMP_PROTO +EOF + + echo "$ac_t""no" 1>&6 +fi + + +ac_safe=system; echo $ac_n "checking if system is prototyped""... $ac_c" 1>&6 -echo "configure:4437: checking if system is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:4902: checking if system is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -4472,26 +4937,24 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_SYSTEM_PROTO EOF echo "$ac_t""no" 1>&6 fi - -ac_safe=`echo "time" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo time | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=time; echo $ac_n "checking if time is prototyped""... $ac_c" 1>&6 -echo "configure:4489: checking if time is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:4952: checking if time is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -4524,26 +4987,24 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_TIME_PROTO EOF echo "$ac_t""no" 1>&6 fi -ac_safe=`echo "unlink" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo unlink | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=unlink; - echo $ac_n "checking if unlink is prototyped""... $ac_c" 1>&6 -echo "configure:4541: checking if unlink is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:5002: checking if unlink is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -4576,26 +5037,74 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_UNLINK_PROTO EOF echo "$ac_t""no" 1>&6 fi -ac_safe=`echo "write" | sed 'y%./+-%__p_%'` -ac_proto=NEED_`echo write | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO +ac_safe=vsnprintf; +echo $ac_n "checking if vsnprintf is prototyped""... $ac_c" 1>&6 +echo "configure:5052: checking if vsnprintf is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + # +cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + eval "ac_cv_prototype_$ac_safe=no" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_prototype_$ac_safe=yes" +fi +rm -f conftest* + +fi + + +if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 +else + cat >> confdefs.h <<\EOF +#define NEED_VSNPRINTF_PROTO +EOF + + echo "$ac_t""no" 1>&6 +fi + + +ac_safe=write; + echo $ac_n "checking if write is prototyped""... $ac_c" 1>&6 -echo "configure:4593: checking if write is prototyped" >&5 -if eval "test \"`echo '$''{'ac_cv_prototype_$ac_safe'+set}'`\" = set"; then +echo "configure:5102: checking if write is prototyped" >&5 +if eval "test \"\${ac_cv_prototype_$ac_safe+set}\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* eval "ac_cv_prototype_$ac_safe=no" else @@ -4628,8 +5137,8 @@ fi if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 else - cat >> confdefs.h <> confdefs.h <<\EOF +#define NEED_WRITE_PROTO EOF echo "$ac_t""no" 1>&6 @@ -4726,7 +5235,7 @@ do 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.13" + echo "$CONFIG_STATUS generated by autoconf version 2.14.1" exit 0 ;; -help | --help | --hel | --he | --h) echo "\$ac_cs_usage"; exit 0 ;; @@ -4986,7 +5495,7 @@ 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 +test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1 # echo "Configuration completed. To compile, type: cd src; make" Index: cnf/aclocal.m4 =================================================================== RCS file: /home/circledb/.cvs/circle/cnf/aclocal.m4,v retrieving revision 1.5 retrieving revision 1.6 diff -u -p -r1.5 -r1.6 --- cnf/aclocal.m4 1998/10/24 03:30:54 1.5 +++ cnf/aclocal.m4 2002/03/20 22:23:11 1.6 @@ -1,20 +1,6 @@ -define(MAKE_PROTO_SAFE, `echo "$1" | sed 'y%./+-%__p_%'`) -define(MAKE_PROTO_NAME, [dnl -changequote({, })dnl -{NEED_`echo $1 | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO} -changequote([, ])dnl -]) - -ifdef([AC_AUTOHEADER], -[ - define(AC_CHECK_PROTO, [@@@protos="$protos $1"@@@]) -], -[ AC_DEFUN(AC_CHECK_PROTO, [ -dnl Do the transliteration at runtime so arg 1 can be a shell variable. -ac_safe=MAKE_PROTO_SAFE($1) -ac_proto=MAKE_PROTO_NAME($1) +ac_safe=translit($1, './+-', '__p_'); AC_MSG_CHECKING([if $1 is prototyped]) AC_CACHE_VAL(ac_cv_prototype_$ac_safe, [# @@ -35,14 +21,14 @@ eval "ac_cv_prototype_$ac_safe=no",eval if eval "test \"`echo '$ac_cv_prototype_'$ac_safe`\" = yes"; then AC_MSG_RESULT(yes) else - AC_DEFINE_UNQUOTED($ac_proto) + AC_DEFINE(builtin(format, NEED_%s_PROTO, translit($1, 'a-z', 'A-Z')), , Check for a prototype to $1.) AC_MSG_RESULT(no) fi ]) -]) dnl @@@t1="MAKE_PROTO_SAFE($1)"; t2="MAKE_PROTO_NAME($t1)"; literals="$literals $t2"@@@]) + AC_DEFUN(AC_UNSAFE_CRYPT, [ AC_CACHE_CHECK([whether crypt needs over 10 characters], ac_cv_unsafe_crypt, [ if test ${ac_cv_header_crypt_h-no} = yes; then @@ -82,4 +68,3 @@ if test ${ac_cv_lib_crypt_crypt-no} = ye LIBS=$ORIGLIBS fi ]) - Index: cnf/configure.in =================================================================== RCS file: /home/circledb/.cvs/circle/cnf/configure.in,v retrieving revision 1.14 retrieving revision 1.16 diff -u -p -r1.14 -r1.16 --- cnf/configure.in 1999/08/02 00:24:06 1.14 +++ cnf/configure.in 2002/04/16 02:23:06 1.16 @@ -85,7 +85,7 @@ AC_CHECK_HEADERS(fcntl.h sys/fcntl.h err AC_CHECK_HEADERS(limits.h sys/time.h sys/select.h sys/types.h unistd.h) AC_CHECK_HEADERS(memory.h crypt.h assert.h arpa/telnet.h arpa/inet.h) AC_CHECK_HEADERS(sys/stat.h sys/socket.h sys/resource.h netinet/in.h netdb.h) -AC_CHECK_HEADERS(signal.h sys/uio.h) +AC_CHECK_HEADERS(signal.h sys/uio.h mcheck.h) AC_UNSAFE_CRYPT @@ -96,8 +96,6 @@ AC_TYPE_SIZE_T AC_CHECK_TYPE(ssize_t, int) AC_HEADER_TIME -dnl Check for the 'typedef socklen_t' definition. Even uglier, yes. - dnl Check for the 'struct in_addr' definition. Ugly, yes. if test $ac_cv_header_netinet_in_h = no; then ac_cv_struct_in_addr = no @@ -136,6 +134,8 @@ fi dnl Checks for library functions. AC_TYPE_SIGNAL +AC_FUNC_VPRINTF +AC_CHECK_FUNCS(gettimeofday select snprintf strcasecmp strdup strerror stricmp strlcpy strncasecmp strnicmp strstr vsnprintf) dnl Check for functions that parse IP addresses ORIGLIBS=$LIBS @@ -184,13 +184,21 @@ AC_CHECK_PROTO(select) AC_CHECK_PROTO(setitimer) AC_CHECK_PROTO(setrlimit) AC_CHECK_PROTO(setsockopt) +AC_CHECK_PROTO(snprintf) AC_CHECK_PROTO(socket) AC_CHECK_PROTO(sprintf) AC_CHECK_PROTO(sscanf) +AC_CHECK_PROTO(strcasecmp) +AC_CHECK_PROTO(strdup) AC_CHECK_PROTO(strerror) +AC_CHECK_PROTO(stricmp) +AC_CHECK_PROTO(strlcpy) +AC_CHECK_PROTO(strncasecmp) +AC_CHECK_PROTO(strnicmp) AC_CHECK_PROTO(system) AC_CHECK_PROTO(time) AC_CHECK_PROTO(unlink) +AC_CHECK_PROTO(vsnprintf) AC_CHECK_PROTO(write) AC_OUTPUT(src/Makefile src/util/Makefile) Index: doc/README.CYGWIN =================================================================== RCS file: /home/circledb/.cvs/circle/doc/README.CYGWIN,v retrieving revision 1.6 retrieving revision 1.7 diff -u -p -r1.6 -r1.7 --- doc/README.CYGWIN 2001/08/29 15:39:56 1.6 +++ doc/README.CYGWIN 2002/01/16 03:11:09 1.7 @@ -39,8 +39,9 @@ another form of Unix: gunzip which come with the full Cygwin package. 4) Start the "bash" shell and go to the directory where you have extracted - CircleMUD (we will assume "C:\circle30bpl20", or "/circle30bpl20" from - within bash). DO NOT go into the "src" directory yet. + CircleMUD (we will assume "C:\circle30bplXX", or "/circle30bplXX" from + within bash, where 'XX' is the current patchlevel). DO NOT go into the + "src" directory yet. 5) Run the shell script "./configure". This will automatically detect whether or not certain programs and library functions are available, and @@ -51,9 +52,10 @@ another form of Unix: an executable, you can also try "sh configure", "sh ./configure", "bash configure" and "bash ./configure" until one of them works. -6) NOW change to the /circle30bpl20/src directory, and type "make", and watch +6) NOW change to the /circle30bplXX/src directory, and type "make", and watch CircleMUD and the additional utilies included in the Circle distribution - automatically being compiled and placed in /circle30bpl20/bin. + automatically being compiled and placed in /circle30bplXX/bin. (Remember, + 'XX' is the current patchlevel number, e.g., 'circle30bpl20'.) 7) Make sure your TCP/IP stack is installed, correctly configured, and running. If you are already using TCP/IP applications from your Windows machine such @@ -68,7 +70,7 @@ another form of Unix: YOU MUST INSTALL AND CONFIGURE YOUR TCP/IP STACK, EVEN IF YOU ARE NOT CONNECTED TO THE INTERNET. -8) Go back to /circle30bpl20, and run the MUD either directly by typing +8) Go back to /circle30bplXX, and run the MUD either directly by typing "bin/circle", or by using the "./autorun" script. 9) Start a telnet program (SEE NOTE BELOW). Open a connection to your Index: doc/sources/FAQ.tex =================================================================== RCS file: FAQ.tex diff -N FAQ.tex --- /dev/null Tue May 5 13:32:27 1998 +++ /tmp/cvsvUh7cy Mon Apr 15 20:36:21 2002 @@ -0,0 +1,618 @@ +\documentclass[11pt]{article} +\usepackage{url} +\usepackage{times} +\usepackage{varioref} +% Document typeset from the original document that was typeset by Alex Fletcher. +% This document typeset by Alex Fletcher on Dec 9/2001 + +\addtolength{\topmargin}{-.5in} % repairing LaTeX's huge margins... +\addtolength{\textheight}{1in} % more margin hacking +\addtolength{\textwidth}{1in} % and here... +\addtolength{\oddsidemargin}{-0.5in} +\addtolength{\evensidemargin}{-0.5in} +\setlength{\parskip}{\baselineskip} +\setlength{\parindent}{0pt} + +\title{Frequently Asked Questions (FAQ) for CircleMUD with Answers} +\author{Alex Fletcher\\ +\texttt{furry@circlemud.org}} +\begin{document} + +\maketitle + +\begin{abstract} +This file is intended to cover common questions related to the CircleMUD distribution source by +Jeremy Elson \url{} and not general DikuMud questions. Any contributions and corrections are more than welcome. It is currently maintained by Alex Fletcher (aka Furry) \url{} Please direct corrections to this address. The original author was Ryan Watkins (aka VampLestat).\par +More information about CircleMUD, including up-to-date versions of this documentation in ASCII and Postscript, can be found at the CircleMUD Home Page \url{} or the FTP site \url{}. +\end{abstract} + +\tableofcontents + +\section{Introduction} +\subsection{I've never played a MUD before. What should I do?} +Do not try to use your own copy of CircleMUD! There are two levels of MUD users: players and administrators. Administrators do what you're trying to do now -- get a copy of a MUD's source code, compile it, and run it. Players use MUDs that are being administered by someone else. If you try to actually run a MUD before you've ever played one, you'll get very confused indeed! Your best bet for now is to play someone else's MUD first. There are a large number of excellent MUDs out there already, some of which are based on CircleMUD code. A good place to start looking is the Mud Connector \url{}. The CircleMUD web server also has a smaller CircleMUD Site List \url{}. + +\subsection{I'm new to C and/or coding. What do I do?} +First, a Mud is not a learning project. It has thousands of lines to it many of which are obscure and unclear to even moderately skilled programmers. Those little, ``Hello, world,'' programs are for learning, maybe little math tests, etc. A Mud is a pretty ambitious project to start with. That is like trying to run before you can walk, and while there's more difficult things than a mud to start with, there's a ton of easier things you should start with. +\par +Second, if you are persistent, get a good C reference book and read the code, try to comprehend what everything is doing (to some small extent). You should probably avoid \texttt{comm.c} as it is home to the socket functions which general C books don't cover and are usually explained in other books on network programming. +For some good resources to learn C, see Question 18.9 in the C FAQ \url{}. +\par +Third, try small projects, something similar to what already exists. This way, you can get away with a cut-and-paste job and changing some of the code. Adding a simple version of races is not all that difficult, just examine the class code in \texttt{class.c} and the \texttt{CON\_QCLASS} block in \texttt{interpreter.c}, cut, paste, and modify. Also look at \texttt{structs.h}, for \texttt{\#define CLASS\_} You'll begin understanding more and more of the code as you copy and change it, eventually you'll be able to write a whole function by yourself. Spend time learning, going with haste will hurt you more than it will help you. +\par +Remember that if you attempt to run a mud without knowing how to program in C, you will fail. Your mud will remain a stock mud, your friends will not play, and you will annoy off anyone you ask for help when you repeatedly show no drive to learn how to do it yourself. + +\subsection{I want to build my own mud. Where do I start?} +Many common questions arise from new mud admins. It is a good idea to pay attention to them and take their answers to heart. These include things like the following: +\par +{\em I don't have any coding experience with MUDs, but do have a lot of ideas for my own. I have played many MUDs for a LONG time, though.} +\par +Read the FAQ. Mud Experience doesn't help a huge amount. Code experience does. +\par +{\em I am interested in having a level system of 1-50 mortal and 51-60 imms. I am also interested in adding races and classes. How can I accomplish these things?} +\par +By checking the FTP Site under the contrib tree \url{}. Learn a lot from there. Especially the \texttt{code/} subdirectory. Above all, {\em know} the FAQ. +\par +{\em Also, is there anything that I should know about CircleMUD being a ``newbie'' to it?} +\par +See the above comment. + +\subsection{What is CircleMUD?} +CircleMUD is a DikuMud derivative, developed by Jeremy Elson \url{} +and is from the Gamma v0.0 of DikuMud created by Han