Changeset a0c1805bd992c0ae1fa018156358d831fbaf8f93

Show
Ignore:
Timestamp:
03/15/01 02:42:20 (7 years ago)
Author:
Sam Hocevar <sam@videolan.org>
git-committer:
Sam Hocevar <sam@videolan.org> 984620540 +0000
git-parent:

[93ca3031ee75338ae1eb922b74cbfe7ee0dc66b8]

git-author:
Sam Hocevar <sam@videolan.org> 984620540 +0000
Message:
  • Bug fixes and enhancements in the Gtk+/Gnome interfaces.

o the slider should behave correctly and stop jumping here and

there (this bug is _not_ related to Stef's similar bug)

o added an "open network" menu (useless since the input doesn't

handle it properly yet)

o tried to reorganize gnome_callbacks.c and gtk_callbacks.c
o stream date is now displayed instead of percentage
o renamed gnome_sys.h to intf_gnome.h, and gtk_sys.h to intf_gtk.h

  • Changed documentation and package creation files.

o added versioned conflicts/replaces to vlc-gtk (Closes Debian bug #88796)
o removed useless or outdated documentation from doc/*
o moved vlc.1 manpage from debian/vlc.1 to doc/vlc.1

  • Added basic Qt interface.

o working features: slide bar, open file, toolbar, popup menu
o added "qvlc" alias, equivalent to "vlc -I qt"
o known issues : no "open disc" or "open network" menus yet

the IntfWindow? class is never cleaned on destruction
the popup menu always pop at the middle of the screen

  • Misc fixes/updates.

o renamed netutils.h functions from input_* to network_*
o renamed *plst* files and functions to *playlist* (it was stupid

from me to name them "plst")

o made a few input error messages more meaningful
o added -I, -A and -V short flags, corresponding to --intf, --audio

and --video

I got a lot of conflicts on this commit, lart me if I forgot a

file or made old bugs reappear.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • INSTALL

    r2afb724 ra0c1805  
    1313Then, run `make' to build vlc. 
    1414 
    15 Here is a shortcut to copy-paste for a clean build: 
     15Here is a shortcut to copy-paste for a complete build: 
    1616 
    1717   make distclean 2>/dev/null ; ./configure --prefix=/usr --enable-gnome \ 
    1818      --enable-fb --with-glide --with-ggi --with-sdl --enable-esd \ 
    19       --enable-alsa --enable-mga --enable-gtk && make 
     19      --enable-alsa --enable-mga --enable-gtk --enable-qt && make 
     20 
     21If you intend to debug stuff, you may want to disable optimizations: 
     22 
     23   make distclean 2>/dev/null ; ./configure --prefix=/usr --enable-gnome \ 
     24      --enable-fb --with-glide --with-ggi --with-sdl --enable-esd \ 
     25      --enable-alsa --enable-mga --enable-gtk --enable-qt \ 
     26      --disable-optimizatons && make 
    2027 
    2128 
  • Makefile.in

    r585b6ad ra0c1805  
    191191        src/interface/intf_cmd.o \ 
    192192        src/interface/intf_ctrl.o \ 
    193         src/interface/intf_plst.o \ 
     193        src/interface/intf_playlist.o \ 
    194194        src/interface/intf_channels.o \ 
    195195        src/interface/intf_console.o \ 
     
    335335        plugins/gnome/gnome_support.o 
    336336 
     337PLUGIN_QT = plugins/qt/qt.o \ 
     338        plugins/qt/intf_qt.o 
     339 
    337340PLUGIN_KDE =    plugins/kde/kde.o \ 
    338         plugins/kde/intf_kde.o \ 
    339         plugins/kde/kvlc.o 
     341        plugins/kde/intf_kde.o 
    340342 
    341343PLUGIN_IDCT =   plugins/idct/idct.o \ 
     
    432434NONSTD_CPP_PLUGIN_OBJ = \ 
    433435        $(PLUGIN_BEOS) \ 
     436        $(PLUGIN_QT) \ 
    434437        $(PLUGIN_KDE) 
    435438 
     
    457460    rm -f $(C_OBJ) $(CPP_OBJ) $(ASM_OBJ) $(STD_PLUGIN_OBJ) 
    458461    rm -f plugins/*/*.o src/*/*.o lib/*.so 
    459     rm -f vlc kvlc gvlc 
     462    rm -f vlc gvlc kvlc qvlc 
    460463 
    461464distclean: clean 
     
    495498    rm -rf /tmp/vlc-@VLC_VERSION@* /tmp/vlc-@VLC_VERSION@nocss* 
    496499    # copy archive in /tmp 
    497     find -type d | grep -v CVS | grep -v '^\.dep' | while read i ; \ 
     500    find -type d | grep -v CVS | grep -v '\.dep' | while read i ; \ 
    498501        do mkdir -p /tmp/vlc-@VLC_VERSION@/$$i ; \ 
    499502    done 
     
    535538# the namespace 
    536539# 
    537 gvlc kvlc: vlc 
     540gvlc kvlc qvlc: vlc 
    538541    rm -f $@ && ln -s vlc $@ 
    539542 
     
    570573$(PLUGIN_GTK): %.o: .dep/%.d 
    571574$(PLUGIN_GTK): %.o: %.c 
    572     $(CC) $(CFLAGS) $(PCFLAGS) `glib-config --cflags glib` `gtk-config --cflags gtk` -c -o $@ $< 
     575    $(CC) $(CFLAGS) $(PCFLAGS) `gtk-config --cflags gtk` -c -o $@ $< 
    573576 
    574577$(PLUGIN_GNOME): %.o: Makefile.dep 
    575578$(PLUGIN_GNOME): %.o: .dep/%.d 
    576579$(PLUGIN_GNOME): %.o: %.c 
    577     $(CC) $(CFLAGS) $(PCFLAGS) `glib-config --cflags glib` `gnome-config --cflags gnomeui` -c -o $@ $< 
     580    $(CC) $(CFLAGS) $(PCFLAGS) `gnome-config --cflags gtk gnomeui` -c -o $@ $< 
    578581 
    579582$(PLUGIN_GLIDE): %.o: Makefile.dep 
     
    581584$(PLUGIN_GLIDE): %.o: %.c 
    582585    $(CC) $(CFLAGS) $(PCFLAGS) -I/usr/include/glide -c -o $@ $< 
     586 
     587$(PLUGIN_QT): %.o: Makefile.dep 
     588$(PLUGIN_QT): %.o: .dep/%.dpp 
     589$(PLUGIN_QT): %.o: %.moc 
     590    $(CC) $(CFLAGS) $(PCFLAGS) -I/usr/include/qt -c -o $@ $(<:%.moc=%.cpp) 
     591$(PLUGIN_QT:%.o=%.moc): %.moc: %.cpp 
     592    moc -i $< -o $@ 
    583593 
    584594$(PLUGIN_KDE): %.o: Makefile.dep 
     
    622632    $(CC) $(PCFLAGS) -shared -o $@ $^ 
    623633 
     634lib/qt.so: $(PLUGIN_QT) 
     635    $(CC) $(PCFLAGS) -shared -o $@ $^ -lqt 
     636 
    624637lib/kde.so: $(PLUGIN_KDE) 
    625638    $(CC) $(PCFLAGS) -shared -o $@ $^ -lkdeui -lkdecore -lqt -ldl 
  • configure

    r585b6ad ra0c1805  
    4242ac_help="$ac_help 
    4343  --enable-ncurses        ncurses interface support (default disabled)" 
     44ac_help="$ac_help 
     45  --enable-qt             Qt interface support (default disabled)" 
    4446ac_help="$ac_help 
    4547  --enable-kde            KDE interface support (default disabled)" 
     
    590592 
    591593echo $ac_n "checking host system type""... $ac_c" 1>&6 
    592 echo "configure:593: checking host system type" >&5 
     594echo "configure:595: checking host system type" >&5 
    593595 
    594596host_alias=$host 
     
    617619 
    618620echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 
    619 echo "configure:620: checking whether ${MAKE-make} sets \${MAKE}" >&5 
     621echo "configure:622: checking whether ${MAKE-make} sets \${MAKE}" >&5 
    620622set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 
    621623if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 
     
    647649set dummy gcc; ac_word=$2 
    648650echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
    649 echo "configure:650: checking for $ac_word" >&5 
     651echo "configure:652: checking for $ac_word" >&5 
    650652if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 
    651653  echo $ac_n "(cached) $ac_c" 1>&6 
     
    677679set dummy cc; ac_word=$2 
    678680echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
    679 echo "configure:680: checking for $ac_word" >&5 
     681echo "configure:682: checking for $ac_word" >&5 
    680682if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 
    681683  echo $ac_n "(cached) $ac_c" 1>&6 
     
    728730set dummy cl; ac_word=$2 
    729731echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 
    730 echo "configure:731: checking for $ac_word" >&5 
     732echo "configure:733: checking for $ac_word" >&5 
    731733if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 
    732734  echo $ac_n "(cached) $ac_c" 1>&6 
     
    760762 
    761763echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 
    762 echo "configure:763: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 
     764echo "configure:765: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 
    763765 
    764766ac_ext=c 
     
    771773cat > conftest.$ac_ext << EOF 
    772774 
    773 #line 774 "configure" 
     775#line 776 "configure" 
    774776#include "confdefs.h" 
    775777 
    776778main(){return(0);} 
    777779EOF 
    778 if { (eval echo configure:779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     780if { (eval echo configure:781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    779781  ac_cv_prog_cc_works=yes 
    780782  # If we can't run a trivial program, we are probably using a cross compiler. 
     
    802804fi 
    803805echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 
    804 echo "configure:805: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 
     806echo "configure:807: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 
    805807echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 
    806808cross_compiling=$ac_cv_prog_cc_cross 
    807809 
    808810echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 
    809 echo "configure:810: checking whether we are using GNU C" >&5 
     811echo "configure:812: checking whether we are using GNU C" >&5 
    810812if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 
    811813  echo $ac_n "(cached) $ac_c" 1>&6 
     
    816818#endif 
    817819EOF 
    818 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 
     820if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 
    819821  ac_cv_prog_gcc=yes 
    820822else 
     
    835837CFLAGS= 
    836838echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 
    837 echo "configure:838: checking whether ${CC-cc} accepts -g" >&5 
     839echo "configure:840: checking whether ${CC-cc} accepts -g" >&5 
    838840if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 
    839841  echo $ac_n "(cached) $ac_c" 1>&6 
     
    869871if test -z "$CPP"; then 
    870872  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 
    871 echo "configure:872: checking how to run the C preprocessor" >&5 
     873echo "configure:874: checking how to run the C preprocessor" >&5 
    872874# On Suns, sometimes $CPP names a directory. 
    873875if test -n "$CPP" && test -d "$CPP"; then 
     
    884886  # not just through cpp. 
    885887  cat > conftest.$ac_ext <<EOF 
    886 #line 887 "configure" 
     888#line 889 "configure" 
    887889#include "confdefs.h" 
    888890#include <assert.h> 
     
    890892EOF 
    891893ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    892 { (eval echo configure:893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     894{ (eval echo configure:895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    893895ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    894896if test -z "$ac_err"; then 
     
    901903  CPP="${CC-cc} -E -traditional-cpp" 
    902904  cat > conftest.$ac_ext <<EOF 
    903 #line 904 "configure" 
     905#line 906 "configure" 
    904906#include "confdefs.h" 
    905907#include <assert.h> 
     
    907909EOF 
    908910ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    909 { (eval echo configure:910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     911{ (eval echo configure:912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    910912ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    911913if test -z "$ac_err"; then 
     
    918920  CPP="${CC-cc} -nologo -E" 
    919921  cat > conftest.$ac_ext <<EOF 
    920 #line 921 "configure" 
     922#line 923 "configure" 
    921923#include "confdefs.h" 
    922924#include <assert.h> 
     
    924926EOF 
    925927ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    926 { (eval echo configure:927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     928{ (eval echo configure:929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    927929ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    928930if test -z "$ac_err"; then 
     
    962964# ./install, which can be erroneously created by make from ./install.sh. 
    963965echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 
    964 echo "configure:965: checking for a BSD compatible install" >&5 
     966echo "configure:967: checking for a BSD compatible install" >&5 
    965967if test -z "$INSTALL"; then 
    966968if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 
     
    10161018 
    10171019echo $ac_n "checking for working const""... $ac_c" 1>&6 
    1018 echo "configure:1019: checking for working const" >&5 
     1020echo "configure:1021: checking for working const" >&5 
    10191021if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 
    10201022  echo $ac_n "(cached) $ac_c" 1>&6 
    10211023else 
    10221024  cat > conftest.$ac_ext <<EOF 
    1023 #line 1024 "configure" 
     1025#line 1026 "configure" 
    10241026#include "confdefs.h" 
    10251027 
     
    10271029 
    10281030/* Ultrix mips cc rejects this.  */ 
    1029 typedef int charset[2]; const charset x = {0,0}
     1031typedef int charset[2]; const charset x
    10301032/* SunOS 4.1.1 cc rejects this.  */ 
    10311033char const *const *ccp; 
     
    10701072; return 0; } 
    10711073EOF 
    1072 if { (eval echo configure:1073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 
     1074if { (eval echo configure:1075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 
    10731075  rm -rf conftest* 
    10741076  ac_cv_c_const=yes 
     
    10911093 
    10921094echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 
    1093 echo "configure:1094: checking whether byte ordering is bigendian" >&5 
     1095echo "configure:1096: checking whether byte ordering is bigendian" >&5 
    10941096if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then 
    10951097  echo $ac_n "(cached) $ac_c" 1>&6 
     
    10981100# See if sys/param.h defines the BYTE_ORDER macro. 
    10991101cat > conftest.$ac_ext <<EOF 
    1100 #line 1101 "configure" 
     1102#line 1103 "configure" 
    11011103#include "confdefs.h" 
    11021104#include <sys/types.h> 
     
    11091111; return 0; } 
    11101112EOF 
    1111 if { (eval echo configure:1112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 
     1113if { (eval echo configure:1114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 
    11121114  rm -rf conftest* 
    11131115  # It does; now see whether it defined to BIG_ENDIAN or not. 
    11141116cat > conftest.$ac_ext <<EOF 
    1115 #line 1116 "configure" 
     1117#line 1118 "configure" 
    11161118#include "confdefs.h" 
    11171119#include <sys/types.h> 
     
    11241126; return 0; } 
    11251127EOF 
    1126 if { (eval echo configure:1127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 
     1128if { (eval echo configure:1129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 
    11271129  rm -rf conftest* 
    11281130  ac_cv_c_bigendian=yes 
     
    11441146else 
    11451147  cat > conftest.$ac_ext <<EOF 
    1146 #line 1147 "configure" 
     1148#line 1149 "configure" 
    11471149#include "confdefs.h" 
    11481150main () { 
     
    11571159} 
    11581160EOF 
    1159 if { (eval echo configure:1160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 
     1161if { (eval echo configure:1162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 
    11601162then 
    11611163  ac_cv_c_bigendian=no 
     
    11821184 
    11831185echo $ac_n "checking whether compiler accepts bswap x86 instruction""... $ac_c" 1>&6 
    1184 echo "configure:1185: checking whether compiler accepts bswap x86 instruction" >&5 
     1186echo "configure:1187: checking whether compiler accepts bswap x86 instruction" >&5 
    11851187cat > conftest.$ac_ext <<EOF 
    1186 #line 1187 "configure" 
     1188#line 1189 "configure" 
    11871189#include "confdefs.h" 
    11881190unsigned int foo( unsigned int x ) 
     
    11921194; return 0; } 
    11931195EOF 
    1194 if { (eval echo configure:1195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 
     1196if { (eval echo configure:1197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 
    11951197  rm -rf conftest* 
    11961198  cat >> confdefs.h <<\EOF 
     
    12091211do 
    12101212echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 
    1211 echo "configure:1212: checking for $ac_func" >&5 
     1213echo "configure:1214: checking for $ac_func" >&5 
    12121214if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 
    12131215  echo $ac_n "(cached) $ac_c" 1>&6 
    12141216else 
    12151217  cat > conftest.$ac_ext <<EOF 
    1216 #line 1217 "configure" 
     1218#line 1219 "configure" 
    12171219#include "confdefs.h" 
    12181220/* System header to define __stub macros and hopefully few prototypes, 
     
    12371239; return 0; } 
    12381240EOF 
    1239 if { (eval echo configure:1240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     1241if { (eval echo configure:1242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    12401242  rm -rf conftest* 
    12411243  eval "ac_cv_func_$ac_func=yes" 
     
    12641266do 
    12651267echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 
    1266 echo "configure:1267: checking for $ac_func" >&5 
     1268echo "configure:1269: checking for $ac_func" >&5 
    12671269if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 
    12681270  echo $ac_n "(cached) $ac_c" 1>&6 
    12691271else 
    12701272  cat > conftest.$ac_ext <<EOF 
    1271 #line 1272 "configure" 
     1273#line 1274 "configure" 
    12721274#include "confdefs.h" 
    12731275/* System header to define __stub macros and hopefully few prototypes, 
     
    12921294; return 0; } 
    12931295EOF 
    1294 if { (eval echo configure:1295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     1296if { (eval echo configure:1297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    12951297  rm -rf conftest* 
    12961298  eval "ac_cv_func_$ac_func=yes" 
     
    13171319 
    13181320echo $ac_n "checking for connect""... $ac_c" 1>&6 
    1319 echo "configure:1320: checking for connect" >&5 
     1321echo "configure:1322: checking for connect" >&5 
    13201322if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then 
    13211323  echo $ac_n "(cached) $ac_c" 1>&6 
    13221324else 
    13231325  cat > conftest.$ac_ext <<EOF 
    1324 #line 1325 "configure" 
     1326#line 1327 "configure" 
    13251327#include "confdefs.h" 
    13261328/* System header to define __stub macros and hopefully few prototypes, 
     
    13451347; return 0; } 
    13461348EOF 
    1347 if { (eval echo configure:1348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     1349if { (eval echo configure:1350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    13481350  rm -rf conftest* 
    13491351  eval "ac_cv_func_connect=yes" 
     
    13631365  echo "$ac_t""no" 1>&6 
    13641366echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 
    1365 echo "configure:1366: checking for connect in -lsocket" >&5 
     1367echo "configure:1368: checking for connect in -lsocket" >&5 
    13661368ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 
    13671369if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
     
    13711373LIBS="-lsocket  $LIBS" 
    13721374cat > conftest.$ac_ext <<EOF 
    1373 #line 1374 "configure" 
     1375#line 1376 "configure" 
    13741376#include "confdefs.h" 
    13751377/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    13821384; return 0; } 
    13831385EOF 
    1384 if { (eval echo configure:1385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     1386if { (eval echo configure:1387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    13851387  rm -rf conftest* 
    13861388  eval "ac_cv_lib_$ac_lib_var=yes" 
     
    14121414 
    14131415echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 
    1414 echo "configure:1415: checking for gethostbyname" >&5 
     1416echo "configure:1417: checking for gethostbyname" >&5 
    14151417if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then 
    14161418  echo $ac_n "(cached) $ac_c" 1>&6 
    14171419else 
    14181420  cat > conftest.$ac_ext <<EOF 
    1419 #line 1420 "configure" 
     1421#line 1422 "configure" 
    14201422#include "confdefs.h" 
    14211423/* System header to define __stub macros and hopefully few prototypes, 
     
    14401442; return 0; } 
    14411443EOF 
    1442 if { (eval echo configure:1443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     1444if { (eval echo configure:1445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    14431445  rm -rf conftest* 
    14441446  eval "ac_cv_func_gethostbyname=yes" 
     
    14581460  echo "$ac_t""no" 1>&6 
    14591461echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 
    1460 echo "configure:1461: checking for gethostbyname in -lnsl" >&5 
     1462echo "configure:1463: checking for gethostbyname in -lnsl" >&5 
    14611463ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 
    14621464if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
     
    14661468LIBS="-lnsl  $LIBS" 
    14671469cat > conftest.$ac_ext <<EOF 
    1468 #line 1469 "configure" 
     1470#line 1471 "configure" 
    14691471#include "confdefs.h" 
    14701472/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    14771479; return 0; } 
    14781480EOF 
    1479 if { (eval echo configure:1480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     1481if { (eval echo configure:1482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    14801482  rm -rf conftest* 
    14811483  eval "ac_cv_lib_$ac_lib_var=yes" 
     
    15071509 
    15081510echo $ac_n "checking for nanosleep""... $ac_c" 1>&6 
    1509 echo "configure:1510: checking for nanosleep" >&5 
     1511echo "configure:1512: checking for nanosleep" >&5 
    15101512if eval "test \"`echo '$''{'ac_cv_func_nanosleep'+set}'`\" = set"; then 
    15111513  echo $ac_n "(cached) $ac_c" 1>&6 
    15121514else 
    15131515  cat > conftest.$ac_ext <<EOF 
    1514 #line 1515 "configure" 
     1516#line 1517 "configure" 
    15151517#include "confdefs.h" 
    15161518/* System header to define __stub macros and hopefully few prototypes, 
     
    15351537; return 0; } 
    15361538EOF 
    1537 if { (eval echo configure:1538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     1539if { (eval echo configure:1540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    15381540  rm -rf conftest* 
    15391541  eval "ac_cv_func_nanosleep=yes" 
     
    15531555  echo "$ac_t""no" 1>&6 
    15541556echo $ac_n "checking for nanosleep in -lrt""... $ac_c" 1>&6 
    1555 echo "configure:1556: checking for nanosleep in -lrt" >&5 
     1557echo "configure:1558: checking for nanosleep in -lrt" >&5 
    15561558ac_lib_var=`echo rt'_'nanosleep | sed 'y%./+-%__p_%'` 
    15571559if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
     
    15611563LIBS="-lrt  $LIBS" 
    15621564cat > conftest.$ac_ext <<EOF 
    1563 #line 1564 "configure" 
     1565#line 1566 "configure" 
    15641566#include "confdefs.h" 
    15651567/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    15721574; return 0; } 
    15731575EOF 
    1574 if { (eval echo configure:1575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     1576if { (eval echo configure:1577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    15751577  rm -rf conftest* 
    15761578  eval "ac_cv_lib_$ac_lib_var=yes" 
     
    15981600  echo "$ac_t""no" 1>&6 
    15991601echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 
    1600 echo "configure:1601: checking for nanosleep in -lposix4" >&5 
     1602echo "configure:1603: checking for nanosleep in -lposix4" >&5 
    16011603ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` 
    16021604if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
     
    16061608LIBS="-lposix4  $LIBS" 
    16071609cat > conftest.$ac_ext <<EOF 
    1608 #line 1609 "configure" 
     1610#line 1611 "configure" 
    16091611#include "confdefs.h" 
    16101612/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    16171619; return 0; } 
    16181620EOF 
    1619 if { (eval echo configure:1620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     1621if { (eval echo configure:1622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    16201622  rm -rf conftest* 
    16211623  eval "ac_cv_lib_$ac_lib_var=yes" 
     
    16511653do 
    16521654echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 
    1653 echo "configure:1654: checking for $ac_func" >&5 
     1655echo "configure:1656: checking for $ac_func" >&5 
    16541656if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 
    16551657  echo $ac_n "(cached) $ac_c" 1>&6 
    16561658else 
    16571659  cat > conftest.$ac_ext <<EOF 
    1658 #line 1659 "configure" 
     1660#line 1661 "configure" 
    16591661#include "confdefs.h" 
    16601662/* System header to define __stub macros and hopefully few prototypes, 
     
    16791681; return 0; } 
    16801682EOF 
    1681 if { (eval echo configure:1682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     1683if { (eval echo configure:1684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    16821684  rm -rf conftest* 
    16831685  eval "ac_cv_func_$ac_func=yes" 
     
    17041706 
    17051707echo $ac_n "checking for inet_aton""... $ac_c" 1>&6 
    1706 echo "configure:1707: checking for inet_aton" >&5 
     1708echo "configure:1709: checking for inet_aton" >&5 
    17071709if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then 
    17081710  echo $ac_n "(cached) $ac_c" 1>&6 
    17091711else 
    17101712  cat > conftest.$ac_ext <<EOF 
    1711 #line 1712 "configure" 
     1713#line 1714 "configure" 
    17121714#include "confdefs.h" 
    17131715/* System header to define __stub macros and hopefully few prototypes, 
     
    17321734; return 0; } 
    17331735EOF 
    1734 if { (eval echo configure:1735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     1736if { (eval echo configure:1737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    17351737  rm -rf conftest* 
    17361738  eval "ac_cv_func_inet_aton=yes" 
     
    17501752  echo "$ac_t""no" 1>&6 
    17511753echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6 
    1752 echo "configure:1753: checking for inet_aton in -lresolv" >&5 
     1754echo "configure:1755: checking for inet_aton in -lresolv" >&5 
    17531755ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'` 
    17541756if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
     
    17581760LIBS="-lresolv  $LIBS" 
    17591761cat > conftest.$ac_ext <<EOF 
    1760 #line 1761 "configure" 
     1762#line 1763 "configure" 
    17611763#include "confdefs.h" 
    17621764/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    17691771; return 0; } 
    17701772EOF 
    1771 if { (eval echo configure:1772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     1773if { (eval echo configure:1774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    17721774  rm -rf conftest* 
    17731775  eval "ac_cv_lib_$ac_lib_var=yes" 
     
    18011803do 
    18021804echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 
    1803 echo "configure:1804: checking for $ac_func" >&5 
     1805echo "configure:1806: checking for $ac_func" >&5 
    18041806if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 
    18051807  echo $ac_n "(cached) $ac_c" 1>&6 
    18061808else 
    18071809  cat > conftest.$ac_ext <<EOF 
    1808 #line 1809 "configure" 
     1810#line 1811 "configure" 
    18091811#include "confdefs.h" 
    18101812/* System header to define __stub macros and hopefully few prototypes, 
     
    18291831; return 0; } 
    18301832EOF 
    1831 if { (eval echo configure:1832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     1833if { (eval echo configure:1834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    18321834  rm -rf conftest* 
    18331835  eval "ac_cv_func_$ac_func=yes" 
     
    18571859ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 
    18581860echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 
    1859 echo "configure:1860: checking for $ac_hdr" >&5 
     1861echo "configure:1862: checking for $ac_hdr" >&5 
    18601862if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 
    18611863  echo $ac_n "(cached) $ac_c" 1>&6 
    18621864else 
    18631865  cat > conftest.$ac_ext <<EOF 
    1864 #line 1865 "configure" 
     1866#line 1867 "configure" 
    18651867#include "confdefs.h" 
    18661868#include <$ac_hdr> 
    18671869EOF 
    18681870ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 
    1869 { (eval echo configure:1870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
     1871{ (eval echo configure:1872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 
    18701872ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 
    18711873if test -z "$ac_err"; then 
     
    18961898do 
    18971899echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 
    1898 echo "configure:1899: checking for $ac_func" >&5 
     1900echo "configure:1901: checking for $ac_func" >&5 
    18991901if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 
    19001902  echo $ac_n "(cached) $ac_c" 1>&6 
    19011903else 
    19021904  cat > conftest.$ac_ext <<EOF 
    1903 #line 1904 "configure" 
     1905#line 1906 "configure" 
    19041906#include "confdefs.h" 
    19051907/* System header to define __stub macros and hopefully few prototypes, 
     
    19241926; return 0; } 
    19251927EOF 
    1926 if { (eval echo configure:1927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     1928if { (eval echo configure:1929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    19271929  rm -rf conftest* 
    19281930  eval "ac_cv_func_$ac_func=yes" 
     
    19491951 
    19501952echo $ac_n "checking for working mmap""... $ac_c" 1>&6 
    1951 echo "configure:1952: checking for working mmap" >&5 
     1953echo "configure:1954: checking for working mmap" >&5 
    19521954if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then 
    19531955  echo $ac_n "(cached) $ac_c" 1>&6 
     
    19571959else 
    19581960  cat > conftest.$ac_ext <<EOF 
    1959 #line 1960 "configure" 
     1961#line 1962 "configure" 
    19601962#include "confdefs.h" 
    19611963 
     
    19841986#include <fcntl.h> 
    19851987#include <sys/mman.h> 
    1986 #include <stdlib.h> 
    1987 #include <sys/stat.h> 
    1988  
    1989 #ifdef HAVE_UNISTD_H 
    1990 # include <unistd.h> 
    1991 #endif 
    19921988 
    19931989/* This mess was copied from the GNU getpagesize.h.  */ 
    19941990#ifndef HAVE_GETPAGESIZE 
     1991# ifdef HAVE_UNISTD_H 
     1992#  include <unistd.h> 
     1993# endif 
    19951994 
    19961995/* Assume that all systems that can run configure have sys/param.h.  */ 
     
    20472046     * First, make a file with some known garbage in it. 
    20482047     */ 
    2049     data = (char*)malloc(pagesize); 
     2048    data = malloc(pagesize); 
    20502049    if (!data) 
    20512050        exit(1); 
     
    20682067    if (fd < 0) 
    20692068        exit(1); 
    2070     data2 = (char*)malloc(2 * pagesize); 
     2069    data2 = malloc(2 * pagesize); 
    20712070    if (!data2) 
    20722071        exit(1); 
     
    20862085    for (i = 0; i < pagesize; ++i) 
    20872086        *(data2 + i) = *(data2 + i) + 1; 
    2088     data3 = (char*)malloc(pagesize); 
     2087    data3 = malloc(pagesize); 
    20892088    if (!data3) 
    20902089        exit(1); 
     
    21002099 
    21012100EOF 
    2102 if { (eval echo configure:2103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 
     2101if { (eval echo configure:2102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 
    21032102then 
    21042103  ac_cv_func_mmap_fixed_mapped=yes 
     
    21232122 
    21242123echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 
    2125 echo "configure:2126: checking return type of signal handlers" >&5 
     2124echo "configure:2125: checking return type of signal handlers" >&5 
    21262125if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 
    21272126  echo $ac_n "(cached) $ac_c" 1>&6 
    21282127else 
    21292128  cat > conftest.$ac_ext <<EOF 
    2130 #line 2131 "configure" 
     2129#line 2130 "configure" 
    21312130#include "confdefs.h" 
    21322131#include <sys/types.h> 
     
    21452144; return 0; } 
    21462145EOF 
    2147 if { (eval echo configure:2148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 
     2146if { (eval echo configure:2147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 
    21482147  rm -rf conftest* 
    21492148  ac_cv_type_signal=void 
     
    21642163 
    21652164echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 
    2166 echo "configure:2167: checking for dlopen in -ldl" >&5 
     2165echo "configure:2166: checking for dlopen in -ldl" >&5 
    21672166ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 
    21682167if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
     
    21722171LIBS="-ldl  $LIBS" 
    21732172cat > conftest.$ac_ext <<EOF 
    2174 #line 2175 "configure" 
     2173#line 2174 "configure" 
    21752174#include "confdefs.h" 
    21762175/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    21832182; return 0; } 
    21842183EOF 
    2185 if { (eval echo configure:2186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     2184if { (eval echo configure:2185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    21862185  rm -rf conftest* 
    21872186  eval "ac_cv_lib_$ac_lib_var=yes" 
     
    22112210 
    22122211echo $ac_n "checking for optarg in -lgnugetopt""... $ac_c" 1>&6 
    2213 echo "configure:2214: checking for optarg in -lgnugetopt" >&5 
     2212echo "configure:2213: checking for optarg in -lgnugetopt" >&5 
    22142213ac_lib_var=`echo gnugetopt'_'optarg | sed 'y%./+-%__p_%'` 
    22152214if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
     
    22192218LIBS="-lgnugetopt  $LIBS" 
    22202219cat > conftest.$ac_ext <<EOF 
    2221 #line 2222 "configure" 
     2220#line 2221 "configure" 
    22222221#include "confdefs.h" 
    22232222/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    22302229; return 0; } 
    22312230EOF 
    2232 if { (eval echo configure:2233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     2231if { (eval echo configure:2232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    22332232  rm -rf conftest* 
    22342233  eval "ac_cv_lib_$ac_lib_var=yes" 
     
    22582257 
    22592258echo $ac_n "checking for _ in -lbe""... $ac_c" 1>&6 
    2260 echo "configure:2261: checking for _ in -lbe" >&5 
     2259echo "configure:2260: checking for _ in -lbe" >&5 
    22612260ac_lib_var=`echo be'_'_ | sed 'y%./+-%__p_%'` 
    22622261if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
     
    22662265LIBS="-lbe  $LIBS" 
    22672266cat > conftest.$ac_ext <<EOF 
    2268 #line 2269 "configure" 
     2267#line 2268 "configure" 
    22692268#include "confdefs.h" 
    22702269/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    22772276; return 0; } 
    22782277EOF 
    2279 if { (eval echo configure:2280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     2278if { (eval echo configure:2279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    22802279  rm -rf conftest* 
    22812280  eval "ac_cv_lib_$ac_lib_var=yes" 
     
    23052304 
    23062305echo $ac_n "checking for _ in -lgame""... $ac_c" 1>&6 
    2307 echo "configure:2308: checking for _ in -lgame" >&5 
     2306echo "configure:2307: checking for _ in -lgame" >&5 
    23082307ac_lib_var=`echo game'_'_ | sed 'y%./+-%__p_%'` 
    23092308if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
     
    23132312LIBS="-lgame  $LIBS" 
    23142313cat > conftest.$ac_ext <<EOF 
    2315 #line 2316 "configure" 
     2314#line 2315 "configure" 
    23162315#include "confdefs.h" 
    23172316/* Override any gcc2 internal prototype to avoid an error.  */ 
     
    23242323; return 0; } 
    23252324EOF 
    2326 if { (eval echo configure:2327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
     2325if { (eval echo configure:2326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 
    23272326  rm -rf conftest* 
    23282327  eval "ac_cv_lib_$ac_lib_var=yes" 
     
    23522351 
    23532352echo $ac_n "checking for _ in -lroot""... $ac_c" 1>&6 
    2354 echo "configure:2355: checking for _ in -lroot" >&5 
     2353echo "configure:2354: checking for _ in -lroot" >&5 
    23552354ac_lib_var=`echo root'_'_ | sed 'y%./+-%__p_%'` 
    23562355if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 
     
    23602359LIBS="-lroot&nbs