ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/configure
(Generate patch)

Comparing BasiliskII/src/Unix/configure (file contents):
Revision 1.1 by cebix, 1999-10-03T14:16:25Z vs.
Revision 1.13 by cebix, 1999-10-26T16:28:30Z

# Line 12 | Line 12 | ac_help=
12   ac_default_prefix=/usr/local
13   # Any additions from configure.in:
14   ac_help="$ac_help
15 <  --enable-dga            use the DGA extension (default)"
15 >  --enable-xf86-dga       use the XFree86 DGA extension [default=yes]"
16   ac_help="$ac_help
17 <  --enable-ui             use GTK user interface (default)"
17 >  --enable-fbdev-dga      use direct frame buffer access via /dev/fb [default=yes]"
18 > ac_help="$ac_help
19 >  --with-esd              support ESD for sound under Linux/FreeBSD [default=yes]"
20 > ac_help="$ac_help
21 >  --with-gtk              use GTK user interface [default=yes]"
22 > ac_help="$ac_help
23 >  --with-mon              use mon as debugger [default=yes]"
24   ac_help="$ac_help
25    --with-x                use the X Window System"
26   ac_help="$ac_help
# Line 23 | Line 29 | ac_help="$ac_help
29    --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
30   ac_help="$ac_help
31    --disable-gtktest       Do not try to compile and run a test GTK program"
32 + ac_help="$ac_help
33 +  --with-esd-prefix=PFX   Prefix where ESD is installed (optional)"
34 + ac_help="$ac_help
35 +  --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)"
36 + ac_help="$ac_help
37 +  --disable-esdtest       Do not try to compile and run a test ESD program"
38  
39   # Initialize some variables set by options.
40   # The variables have the same names as the options, with
# Line 536 | Line 548 | fi
548  
549  
550  
551 < WANT_DGA=yes
552 < WANT_UI=yes
553 < # Check whether --enable-dga or --disable-dga was given.
554 < if test "${enable_dga+set}" = set; then
555 <  enableval="$enable_dga"
556 <  WANT_DGA=$enableval
551 > # Check whether --enable-xf86-dga or --disable-xf86-dga was given.
552 > if test "${enable_xf86_dga+set}" = set; then
553 >  enableval="$enable_xf86_dga"
554 >  WANT_XF86_DGA=$enableval
555 > else
556 >  WANT_XF86_DGA=yes
557   fi
558  
559 < # Check whether --enable-ui or --disable-ui was given.
560 < if test "${enable_ui+set}" = set; then
561 <  enableval="$enable_ui"
562 <  WANT_UI=$enableval
559 > # Check whether --enable-fbdev-dga or --disable-fbdev-dga was given.
560 > if test "${enable_fbdev_dga+set}" = set; then
561 >  enableval="$enable_fbdev_dga"
562 >  WANT_FBDEV_DGA=$enableval
563 > else
564 >  WANT_FBDEV_DGA=yes
565 > fi
566 >
567 > # Check whether --with-esd or --without-esd was given.
568 > if test "${with_esd+set}" = set; then
569 >  withval="$with_esd"
570 >  WANT_ESD=$withval
571 > else
572 >  WANT_ESD=yes
573 > fi
574 >
575 > # Check whether --with-gtk or --without-gtk was given.
576 > if test "${with_gtk+set}" = set; then
577 >  withval="$with_gtk"
578 >  WANT_GTK=$withval
579 > else
580 >  WANT_GTK=yes
581 > fi
582 >
583 > # Check whether --with-mon or --without-mon was given.
584 > if test "${with_mon+set}" = set; then
585 >  withval="$with_mon"
586 >  WANT_MON=$withval
587 > else
588 >  WANT_MON=yes
589   fi
590  
591  
592   # Extract the first word of "gcc", so it can be a program name with args.
593   set dummy gcc; ac_word=$2
594   echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
595 < echo "configure:558: checking for $ac_word" >&5
595 > echo "configure:596: checking for $ac_word" >&5
596   if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
597    echo $ac_n "(cached) $ac_c" 1>&6
598   else
# Line 584 | Line 622 | if test -z "$CC"; then
622    # Extract the first word of "cc", so it can be a program name with args.
623   set dummy cc; ac_word=$2
624   echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
625 < echo "configure:588: checking for $ac_word" >&5
625 > echo "configure:626: checking for $ac_word" >&5
626   if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
627    echo $ac_n "(cached) $ac_c" 1>&6
628   else
# Line 635 | Line 673 | fi
673        # Extract the first word of "cl", so it can be a program name with args.
674   set dummy cl; ac_word=$2
675   echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
676 < echo "configure:639: checking for $ac_word" >&5
676 > echo "configure:677: checking for $ac_word" >&5
677   if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
678    echo $ac_n "(cached) $ac_c" 1>&6
679   else
# Line 667 | Line 705 | fi
705   fi
706  
707   echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
708 < echo "configure:671: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
708 > echo "configure:709: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
709  
710   ac_ext=c
711   # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
# Line 678 | Line 716 | cross_compiling=$ac_cv_prog_cc_cross
716  
717   cat > conftest.$ac_ext << EOF
718  
719 < #line 682 "configure"
719 > #line 720 "configure"
720   #include "confdefs.h"
721  
722   main(){return(0);}
723   EOF
724 < if { (eval echo configure:687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
724 > if { (eval echo configure:725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
725    ac_cv_prog_cc_works=yes
726    # If we can't run a trivial program, we are probably using a cross compiler.
727    if (./conftest; exit) 2>/dev/null; then
# Line 709 | Line 747 | if test $ac_cv_prog_cc_works = no; then
747    { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
748   fi
749   echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
750 < echo "configure:713: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
750 > echo "configure:751: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
751   echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
752   cross_compiling=$ac_cv_prog_cc_cross
753  
754   echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
755 < echo "configure:718: checking whether we are using GNU C" >&5
755 > echo "configure:756: checking whether we are using GNU C" >&5
756   if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
757    echo $ac_n "(cached) $ac_c" 1>&6
758   else
# Line 723 | Line 761 | else
761    yes;
762   #endif
763   EOF
764 < if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
764 > if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
765    ac_cv_prog_gcc=yes
766   else
767    ac_cv_prog_gcc=no
# Line 742 | Line 780 | ac_test_CFLAGS="${CFLAGS+set}"
780   ac_save_CFLAGS="$CFLAGS"
781   CFLAGS=
782   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
783 < echo "configure:746: checking whether ${CC-cc} accepts -g" >&5
783 > echo "configure:784: checking whether ${CC-cc} accepts -g" >&5
784   if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
785    echo $ac_n "(cached) $ac_c" 1>&6
786   else
# Line 773 | Line 811 | else
811    fi
812   fi
813  
814 + echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
815 + echo "configure:816: checking how to run the C preprocessor" >&5
816 + # On Suns, sometimes $CPP names a directory.
817 + if test -n "$CPP" && test -d "$CPP"; then
818 +  CPP=
819 + fi
820 + if test -z "$CPP"; then
821 + if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
822 +  echo $ac_n "(cached) $ac_c" 1>&6
823 + else
824 +    # This must be in double quotes, not single quotes, because CPP may get
825 +  # substituted into the Makefile and "${CC-cc}" will confuse make.
826 +  CPP="${CC-cc} -E"
827 +  # On the NeXT, cc -E runs the code through the compiler's parser,
828 +  # not just through cpp.
829 +  cat > conftest.$ac_ext <<EOF
830 + #line 831 "configure"
831 + #include "confdefs.h"
832 + #include <assert.h>
833 + Syntax Error
834 + EOF
835 + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
836 + { (eval echo configure:837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
837 + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
838 + if test -z "$ac_err"; then
839 +  :
840 + else
841 +  echo "$ac_err" >&5
842 +  echo "configure: failed program was:" >&5
843 +  cat conftest.$ac_ext >&5
844 +  rm -rf conftest*
845 +  CPP="${CC-cc} -E -traditional-cpp"
846 +  cat > conftest.$ac_ext <<EOF
847 + #line 848 "configure"
848 + #include "confdefs.h"
849 + #include <assert.h>
850 + Syntax Error
851 + EOF
852 + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
853 + { (eval echo configure:854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
854 + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
855 + if test -z "$ac_err"; then
856 +  :
857 + else
858 +  echo "$ac_err" >&5
859 +  echo "configure: failed program was:" >&5
860 +  cat conftest.$ac_ext >&5
861 +  rm -rf conftest*
862 +  CPP="${CC-cc} -nologo -E"
863 +  cat > conftest.$ac_ext <<EOF
864 + #line 865 "configure"
865 + #include "confdefs.h"
866 + #include <assert.h>
867 + Syntax Error
868 + EOF
869 + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
870 + { (eval echo configure:871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
871 + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
872 + if test -z "$ac_err"; then
873 +  :
874 + else
875 +  echo "$ac_err" >&5
876 +  echo "configure: failed program was:" >&5
877 +  cat conftest.$ac_ext >&5
878 +  rm -rf conftest*
879 +  CPP=/lib/cpp
880 + fi
881 + rm -f conftest*
882 + fi
883 + rm -f conftest*
884 + fi
885 + rm -f conftest*
886 +  ac_cv_prog_CPP="$CPP"
887 + fi
888 +  CPP="$ac_cv_prog_CPP"
889 + else
890 +  ac_cv_prog_CPP="$CPP"
891 + fi
892 + echo "$ac_t""$CPP" 1>&6
893 +
894   for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
895   do
896   # Extract the first word of "$ac_prog", so it can be a program name with args.
897   set dummy $ac_prog; ac_word=$2
898   echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
899 < echo "configure:782: checking for $ac_word" >&5
899 > echo "configure:900: checking for $ac_word" >&5
900   if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
901    echo $ac_n "(cached) $ac_c" 1>&6
902   else
# Line 810 | Line 928 | test -n "$CXX" || CXX="gcc"
928  
929  
930   echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
931 < echo "configure:814: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
931 > echo "configure:932: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
932  
933   ac_ext=C
934   # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
# Line 821 | Line 939 | cross_compiling=$ac_cv_prog_cxx_cross
939  
940   cat > conftest.$ac_ext << EOF
941  
942 < #line 825 "configure"
942 > #line 943 "configure"
943   #include "confdefs.h"
944  
945   int main(){return(0);}
946   EOF
947 < if { (eval echo configure:830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
947 > if { (eval echo configure:948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
948    ac_cv_prog_cxx_works=yes
949    # If we can't run a trivial program, we are probably using a cross compiler.
950    if (./conftest; exit) 2>/dev/null; then
# Line 852 | Line 970 | if test $ac_cv_prog_cxx_works = no; then
970    { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
971   fi
972   echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
973 < echo "configure:856: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
973 > echo "configure:974: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
974   echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
975   cross_compiling=$ac_cv_prog_cxx_cross
976  
977   echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
978 < echo "configure:861: checking whether we are using GNU C++" >&5
978 > echo "configure:979: checking whether we are using GNU C++" >&5
979   if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
980    echo $ac_n "(cached) $ac_c" 1>&6
981   else
# Line 866 | Line 984 | else
984    yes;
985   #endif
986   EOF
987 < if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
987 > if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
988    ac_cv_prog_gxx=yes
989   else
990    ac_cv_prog_gxx=no
# Line 885 | Line 1003 | ac_test_CXXFLAGS="${CXXFLAGS+set}"
1003   ac_save_CXXFLAGS="$CXXFLAGS"
1004   CXXFLAGS=
1005   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1006 < echo "configure:889: checking whether ${CXX-g++} accepts -g" >&5
1006 > echo "configure:1007: checking whether ${CXX-g++} accepts -g" >&5
1007   if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1008    echo $ac_n "(cached) $ac_c" 1>&6
1009   else
# Line 916 | Line 1034 | else
1034    fi
1035   fi
1036  
919 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
920 echo "configure:921: checking how to run the C preprocessor" >&5
921 # On Suns, sometimes $CPP names a directory.
922 if test -n "$CPP" && test -d "$CPP"; then
923  CPP=
924 fi
925 if test -z "$CPP"; then
926 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
927  echo $ac_n "(cached) $ac_c" 1>&6
928 else
929    # This must be in double quotes, not single quotes, because CPP may get
930  # substituted into the Makefile and "${CC-cc}" will confuse make.
931  CPP="${CC-cc} -E"
932  # On the NeXT, cc -E runs the code through the compiler's parser,
933  # not just through cpp.
934  cat > conftest.$ac_ext <<EOF
935 #line 936 "configure"
936 #include "confdefs.h"
937 #include <assert.h>
938 Syntax Error
939 EOF
940 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
941 { (eval echo configure:942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
942 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
943 if test -z "$ac_err"; then
944  :
945 else
946  echo "$ac_err" >&5
947  echo "configure: failed program was:" >&5
948  cat conftest.$ac_ext >&5
949  rm -rf conftest*
950  CPP="${CC-cc} -E -traditional-cpp"
951  cat > conftest.$ac_ext <<EOF
952 #line 953 "configure"
953 #include "confdefs.h"
954 #include <assert.h>
955 Syntax Error
956 EOF
957 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
958 { (eval echo configure:959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
959 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
960 if test -z "$ac_err"; then
961  :
962 else
963  echo "$ac_err" >&5
964  echo "configure: failed program was:" >&5
965  cat conftest.$ac_ext >&5
966  rm -rf conftest*
967  CPP="${CC-cc} -nologo -E"
968  cat > conftest.$ac_ext <<EOF
969 #line 970 "configure"
970 #include "confdefs.h"
971 #include <assert.h>
972 Syntax Error
973 EOF
974 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
975 { (eval echo configure:976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
976 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
977 if test -z "$ac_err"; then
978  :
979 else
980  echo "$ac_err" >&5
981  echo "configure: failed program was:" >&5
982  cat conftest.$ac_ext >&5
983  rm -rf conftest*
984  CPP=/lib/cpp
985 fi
986 rm -f conftest*
987 fi
988 rm -f conftest*
989 fi
990 rm -f conftest*
991  ac_cv_prog_CPP="$CPP"
992 fi
993  CPP="$ac_cv_prog_CPP"
994 else
995  ac_cv_prog_CPP="$CPP"
996 fi
997 echo "$ac_t""$CPP" 1>&6
998
1037   echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1038 < echo "configure:1001: checking whether ${MAKE-make} sets \${MAKE}" >&5
1038 > echo "configure:1039: checking whether ${MAKE-make} sets \${MAKE}" >&5
1039   set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1040   if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1041    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1054 | Line 1092 | ac_configure=$ac_aux_dir/configure # Thi
1092   # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1093   # ./install, which can be erroneously created by make from ./install.sh.
1094   echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1095 < echo "configure:1058: checking for a BSD compatible install" >&5
1095 > echo "configure:1096: checking for a BSD compatible install" >&5
1096   if test -z "$INSTALL"; then
1097   if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1098    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1107 | Line 1145 | test -z "$INSTALL_SCRIPT" && INSTALL_SCR
1145   test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1146  
1147  
1148 + MONSRCS=
1149 + echo $ac_n "checking for mon""... $ac_c" 1>&6
1150 + echo "configure:1151: checking for mon" >&5
1151 + if grep mon_init ../../../mon/src/mon.h >/dev/null 2>/dev/null; then
1152 +  echo "$ac_t""yes" 1>&6
1153 +  WANT_MON=yes
1154 +  DEFINES="$DEFINES -DENABLE_MON=1"
1155 +  MONSRCS="../../../mon/src/mon.cpp ../../../mon/src/mon_6502.cpp ../../../mon/src/mon_68k.cpp ../../../mon/src/mon_8080.cpp ../../../mon/src/mon_cmd.cpp ../../../mon/src/mon_ppc.cpp ../../../mon/src/mon_x86.cpp"
1156 +  CXXFLAGS="$CXXFLAGS -I../../../mon/src"
1157 +  echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
1158 + echo "configure:1159: checking for readline in -lreadline" >&5
1159 + ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
1160 + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1161 +  echo $ac_n "(cached) $ac_c" 1>&6
1162 + else
1163 +  ac_save_LIBS="$LIBS"
1164 + LIBS="-lreadline  $LIBS"
1165 + cat > conftest.$ac_ext <<EOF
1166 + #line 1167 "configure"
1167 + #include "confdefs.h"
1168 + /* Override any gcc2 internal prototype to avoid an error.  */
1169 + /* We use char because int might match the return type of a gcc2
1170 +    builtin and then its argument prototype would still apply.  */
1171 + char readline();
1172 +
1173 + int main() {
1174 + readline()
1175 + ; return 0; }
1176 + EOF
1177 + if { (eval echo configure:1178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1178 +  rm -rf conftest*
1179 +  eval "ac_cv_lib_$ac_lib_var=yes"
1180 + else
1181 +  echo "configure: failed program was:" >&5
1182 +  cat conftest.$ac_ext >&5
1183 +  rm -rf conftest*
1184 +  eval "ac_cv_lib_$ac_lib_var=no"
1185 + fi
1186 + rm -f conftest*
1187 + LIBS="$ac_save_LIBS"
1188 +
1189 + fi
1190 + if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1191 +  echo "$ac_t""yes" 1>&6
1192 +    ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1193 +    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1194 +  cat >> confdefs.h <<EOF
1195 + #define $ac_tr_lib 1
1196 + EOF
1197 +
1198 +  LIBS="-lreadline $LIBS"
1199 +
1200 + else
1201 +  echo "$ac_t""no" 1>&6
1202 + fi
1203 +
1204 +  for ac_hdr in readline/readline.h readline/history.h
1205 + do
1206 + ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1207 + echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1208 + echo "configure:1209: checking for $ac_hdr" >&5
1209 + if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1210 +  echo $ac_n "(cached) $ac_c" 1>&6
1211 + else
1212 +  cat > conftest.$ac_ext <<EOF
1213 + #line 1214 "configure"
1214 + #include "confdefs.h"
1215 + #include <$ac_hdr>
1216 + EOF
1217 + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1218 + { (eval echo configure:1219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1219 + ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1220 + if test -z "$ac_err"; then
1221 +  rm -rf conftest*
1222 +  eval "ac_cv_header_$ac_safe=yes"
1223 + else
1224 +  echo "$ac_err" >&5
1225 +  echo "configure: failed program was:" >&5
1226 +  cat conftest.$ac_ext >&5
1227 +  rm -rf conftest*
1228 +  eval "ac_cv_header_$ac_safe=no"
1229 + fi
1230 + rm -f conftest*
1231 + fi
1232 + if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1233 +  echo "$ac_t""yes" 1>&6
1234 +    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1235 +  cat >> confdefs.h <<EOF
1236 + #define $ac_tr_hdr 1
1237 + EOF
1238 +
1239 + else
1240 +  echo "$ac_t""no" 1>&6
1241 + fi
1242 + done
1243 +
1244 + else
1245 +  echo "$ac_t""no" 1>&6
1246 +  WANT_MON=no
1247 +  DEFINES="$DEFINES -DENABLE_MON=0"
1248 + fi
1249 +
1250 + echo $ac_n "checking for sem_init in -lposix4""... $ac_c" 1>&6
1251 + echo "configure:1252: checking for sem_init in -lposix4" >&5
1252 + ac_lib_var=`echo posix4'_'sem_init | sed 'y%./+-%__p_%'`
1253 + if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1254 +  echo $ac_n "(cached) $ac_c" 1>&6
1255 + else
1256 +  ac_save_LIBS="$LIBS"
1257 + LIBS="-lposix4  $LIBS"
1258 + cat > conftest.$ac_ext <<EOF
1259 + #line 1260 "configure"
1260 + #include "confdefs.h"
1261 + /* Override any gcc2 internal prototype to avoid an error.  */
1262 + /* We use char because int might match the return type of a gcc2
1263 +    builtin and then its argument prototype would still apply.  */
1264 + char sem_init();
1265 +
1266 + int main() {
1267 + sem_init()
1268 + ; return 0; }
1269 + EOF
1270 + if { (eval echo configure:1271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1271 +  rm -rf conftest*
1272 +  eval "ac_cv_lib_$ac_lib_var=yes"
1273 + else
1274 +  echo "configure: failed program was:" >&5
1275 +  cat conftest.$ac_ext >&5
1276 +  rm -rf conftest*
1277 +  eval "ac_cv_lib_$ac_lib_var=no"
1278 + fi
1279 + rm -f conftest*
1280 + LIBS="$ac_save_LIBS"
1281 +
1282 + fi
1283 + if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1284 +  echo "$ac_t""yes" 1>&6
1285 +    ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1286 +    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1287 +  cat >> confdefs.h <<EOF
1288 + #define $ac_tr_lib 1
1289 + EOF
1290 +
1291 +  LIBS="-lposix4 $LIBS"
1292 +
1293 + else
1294 +  echo "$ac_t""no" 1>&6
1295 + fi
1296 +
1297 +
1298   # If we find X, set shell vars x_includes and x_libraries to the
1299   # paths, otherwise set no_x=yes.
1300   # Uses ac_ vars as temps to allow command line to override cache and checks.
1301   # --without-x overrides everything else, but does not touch the cache.
1302   echo $ac_n "checking for X""... $ac_c" 1>&6
1303 < echo "configure:1116: checking for X" >&5
1303 > echo "configure:1304: checking for X" >&5
1304  
1305   # Check whether --with-x or --without-x was given.
1306   if test "${with_x+set}" = set; then
# Line 1174 | Line 1362 | if test "$ac_x_includes" = NO; then
1362  
1363    # First, try using that file with no special directory specified.
1364   cat > conftest.$ac_ext <<EOF
1365 < #line 1178 "configure"
1365 > #line 1366 "configure"
1366   #include "confdefs.h"
1367   #include <$x_direct_test_include>
1368   EOF
1369   ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1370 < { (eval echo configure:1183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1370 > { (eval echo configure:1371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1371   ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1372   if test -z "$ac_err"; then
1373    rm -rf conftest*
# Line 1248 | Line 1436 | if test "$ac_x_libraries" = NO; then
1436    ac_save_LIBS="$LIBS"
1437    LIBS="-l$x_direct_test_library $LIBS"
1438   cat > conftest.$ac_ext <<EOF
1439 < #line 1252 "configure"
1439 > #line 1440 "configure"
1440   #include "confdefs.h"
1441  
1442   int main() {
1443   ${x_direct_test_function}()
1444   ; return 0; }
1445   EOF
1446 < if { (eval echo configure:1259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1446 > if { (eval echo configure:1447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1447    rm -rf conftest*
1448    LIBS="$ac_save_LIBS"
1449   # We can link X programs with no special library path.
# Line 1361 | Line 1549 | else
1549      case "`(uname -sr) 2>/dev/null`" in
1550      "SunOS 5"*)
1551        echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1552 < echo "configure:1365: checking whether -R must be followed by a space" >&5
1552 > echo "configure:1553: checking whether -R must be followed by a space" >&5
1553        ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1554        cat > conftest.$ac_ext <<EOF
1555 < #line 1368 "configure"
1555 > #line 1556 "configure"
1556   #include "confdefs.h"
1557  
1558   int main() {
1559  
1560   ; return 0; }
1561   EOF
1562 < if { (eval echo configure:1375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1562 > if { (eval echo configure:1563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1563    rm -rf conftest*
1564    ac_R_nospace=yes
1565   else
# Line 1387 | Line 1575 | rm -f conftest*
1575        else
1576          LIBS="$ac_xsave_LIBS -R $x_libraries"
1577          cat > conftest.$ac_ext <<EOF
1578 < #line 1391 "configure"
1578 > #line 1579 "configure"
1579   #include "confdefs.h"
1580  
1581   int main() {
1582  
1583   ; return 0; }
1584   EOF
1585 < if { (eval echo configure:1398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1585 > if { (eval echo configure:1586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1586    rm -rf conftest*
1587    ac_R_space=yes
1588   else
# Line 1426 | Line 1614 | rm -f conftest*
1614      # libraries were built with DECnet support.  And karl@cs.umb.edu says
1615      # the Alpha needs dnet_stub (dnet does not exist).
1616      echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1617 < echo "configure:1430: checking for dnet_ntoa in -ldnet" >&5
1617 > echo "configure:1618: checking for dnet_ntoa in -ldnet" >&5
1618   ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1619   if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1620    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1434 | Line 1622 | else
1622    ac_save_LIBS="$LIBS"
1623   LIBS="-ldnet  $LIBS"
1624   cat > conftest.$ac_ext <<EOF
1625 < #line 1438 "configure"
1625 > #line 1626 "configure"
1626   #include "confdefs.h"
1627   /* Override any gcc2 internal prototype to avoid an error.  */
1628   /* We use char because int might match the return type of a gcc2
# Line 1445 | Line 1633 | int main() {
1633   dnet_ntoa()
1634   ; return 0; }
1635   EOF
1636 < if { (eval echo configure:1449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1636 > if { (eval echo configure:1637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1637    rm -rf conftest*
1638    eval "ac_cv_lib_$ac_lib_var=yes"
1639   else
# Line 1467 | Line 1655 | fi
1655  
1656      if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1657        echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1658 < echo "configure:1471: checking for dnet_ntoa in -ldnet_stub" >&5
1658 > echo "configure:1659: checking for dnet_ntoa in -ldnet_stub" >&5
1659   ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1660   if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1661    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1475 | Line 1663 | else
1663    ac_save_LIBS="$LIBS"
1664   LIBS="-ldnet_stub  $LIBS"
1665   cat > conftest.$ac_ext <<EOF
1666 < #line 1479 "configure"
1666 > #line 1667 "configure"
1667   #include "confdefs.h"
1668   /* Override any gcc2 internal prototype to avoid an error.  */
1669   /* We use char because int might match the return type of a gcc2
# Line 1486 | Line 1674 | int main() {
1674   dnet_ntoa()
1675   ; return 0; }
1676   EOF
1677 < if { (eval echo configure:1490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1677 > if { (eval echo configure:1678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1678    rm -rf conftest*
1679    eval "ac_cv_lib_$ac_lib_var=yes"
1680   else
# Line 1515 | Line 1703 | fi
1703      # The nsl library prevents programs from opening the X display
1704      # on Irix 5.2, according to dickey@clark.net.
1705      echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1706 < echo "configure:1519: checking for gethostbyname" >&5
1706 > echo "configure:1707: checking for gethostbyname" >&5
1707   if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1708    echo $ac_n "(cached) $ac_c" 1>&6
1709   else
1710    cat > conftest.$ac_ext <<EOF
1711 < #line 1524 "configure"
1711 > #line 1712 "configure"
1712   #include "confdefs.h"
1713   /* System header to define __stub macros and hopefully few prototypes,
1714      which can conflict with char gethostbyname(); below.  */
# Line 1543 | Line 1731 | gethostbyname();
1731  
1732   ; return 0; }
1733   EOF
1734 < if { (eval echo configure:1547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1734 > if { (eval echo configure:1735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1735    rm -rf conftest*
1736    eval "ac_cv_func_gethostbyname=yes"
1737   else
# Line 1564 | Line 1752 | fi
1752  
1753      if test $ac_cv_func_gethostbyname = no; then
1754        echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1755 < echo "configure:1568: checking for gethostbyname in -lnsl" >&5
1755 > echo "configure:1756: checking for gethostbyname in -lnsl" >&5
1756   ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1757   if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1758    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1572 | Line 1760 | else
1760    ac_save_LIBS="$LIBS"
1761   LIBS="-lnsl  $LIBS"
1762   cat > conftest.$ac_ext <<EOF
1763 < #line 1576 "configure"
1763 > #line 1764 "configure"
1764   #include "confdefs.h"
1765   /* Override any gcc2 internal prototype to avoid an error.  */
1766   /* We use char because int might match the return type of a gcc2
# Line 1583 | Line 1771 | int main() {
1771   gethostbyname()
1772   ; return 0; }
1773   EOF
1774 < if { (eval echo configure:1587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1774 > if { (eval echo configure:1775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1775    rm -rf conftest*
1776    eval "ac_cv_lib_$ac_lib_var=yes"
1777   else
# Line 1613 | Line 1801 | fi
1801      # -lsocket must be given before -lnsl if both are needed.
1802      # We assume that if connect needs -lnsl, so does gethostbyname.
1803      echo $ac_n "checking for connect""... $ac_c" 1>&6
1804 < echo "configure:1617: checking for connect" >&5
1804 > echo "configure:1805: checking for connect" >&5
1805   if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1806    echo $ac_n "(cached) $ac_c" 1>&6
1807   else
1808    cat > conftest.$ac_ext <<EOF
1809 < #line 1622 "configure"
1809 > #line 1810 "configure"
1810   #include "confdefs.h"
1811   /* System header to define __stub macros and hopefully few prototypes,
1812      which can conflict with char connect(); below.  */
# Line 1641 | Line 1829 | connect();
1829  
1830   ; return 0; }
1831   EOF
1832 < if { (eval echo configure:1645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1832 > if { (eval echo configure:1833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1833    rm -rf conftest*
1834    eval "ac_cv_func_connect=yes"
1835   else
# Line 1662 | Line 1850 | fi
1850  
1851      if test $ac_cv_func_connect = no; then
1852        echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1853 < echo "configure:1666: checking for connect in -lsocket" >&5
1853 > echo "configure:1854: checking for connect in -lsocket" >&5
1854   ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1855   if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1856    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1670 | Line 1858 | else
1858    ac_save_LIBS="$LIBS"
1859   LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1860   cat > conftest.$ac_ext <<EOF
1861 < #line 1674 "configure"
1861 > #line 1862 "configure"
1862   #include "confdefs.h"
1863   /* Override any gcc2 internal prototype to avoid an error.  */
1864   /* We use char because int might match the return type of a gcc2
# Line 1681 | Line 1869 | int main() {
1869   connect()
1870   ; return 0; }
1871   EOF
1872 < if { (eval echo configure:1685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1872 > if { (eval echo configure:1873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1873    rm -rf conftest*
1874    eval "ac_cv_lib_$ac_lib_var=yes"
1875   else
# Line 1705 | Line 1893 | fi
1893  
1894      # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1895      echo $ac_n "checking for remove""... $ac_c" 1>&6
1896 < echo "configure:1709: checking for remove" >&5
1896 > echo "configure:1897: checking for remove" >&5
1897   if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1898    echo $ac_n "(cached) $ac_c" 1>&6
1899   else
1900    cat > conftest.$ac_ext <<EOF
1901 < #line 1714 "configure"
1901 > #line 1902 "configure"
1902   #include "confdefs.h"
1903   /* System header to define __stub macros and hopefully few prototypes,
1904      which can conflict with char remove(); below.  */
# Line 1733 | Line 1921 | remove();
1921  
1922   ; return 0; }
1923   EOF
1924 < if { (eval echo configure:1737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1924 > if { (eval echo configure:1925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1925    rm -rf conftest*
1926    eval "ac_cv_func_remove=yes"
1927   else
# Line 1754 | Line 1942 | fi
1942  
1943      if test $ac_cv_func_remove = no; then
1944        echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1945 < echo "configure:1758: checking for remove in -lposix" >&5
1945 > echo "configure:1946: checking for remove in -lposix" >&5
1946   ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1947   if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1948    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1762 | Line 1950 | else
1950    ac_save_LIBS="$LIBS"
1951   LIBS="-lposix  $LIBS"
1952   cat > conftest.$ac_ext <<EOF
1953 < #line 1766 "configure"
1953 > #line 1954 "configure"
1954   #include "confdefs.h"
1955   /* Override any gcc2 internal prototype to avoid an error.  */
1956   /* We use char because int might match the return type of a gcc2
# Line 1773 | Line 1961 | int main() {
1961   remove()
1962   ; return 0; }
1963   EOF
1964 < if { (eval echo configure:1777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1964 > if { (eval echo configure:1965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1965    rm -rf conftest*
1966    eval "ac_cv_lib_$ac_lib_var=yes"
1967   else
# Line 1797 | Line 1985 | fi
1985  
1986      # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1987      echo $ac_n "checking for shmat""... $ac_c" 1>&6
1988 < echo "configure:1801: checking for shmat" >&5
1988 > echo "configure:1989: checking for shmat" >&5
1989   if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1990    echo $ac_n "(cached) $ac_c" 1>&6
1991   else
1992    cat > conftest.$ac_ext <<EOF
1993 < #line 1806 "configure"
1993 > #line 1994 "configure"
1994   #include "confdefs.h"
1995   /* System header to define __stub macros and hopefully few prototypes,
1996      which can conflict with char shmat(); below.  */
# Line 1825 | Line 2013 | shmat();
2013  
2014   ; return 0; }
2015   EOF
2016 < if { (eval echo configure:1829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2016 > if { (eval echo configure:2017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2017    rm -rf conftest*
2018    eval "ac_cv_func_shmat=yes"
2019   else
# Line 1846 | Line 2034 | fi
2034  
2035      if test $ac_cv_func_shmat = no; then
2036        echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2037 < echo "configure:1850: checking for shmat in -lipc" >&5
2037 > echo "configure:2038: checking for shmat in -lipc" >&5
2038   ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2039   if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2040    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1854 | Line 2042 | else
2042    ac_save_LIBS="$LIBS"
2043   LIBS="-lipc  $LIBS"
2044   cat > conftest.$ac_ext <<EOF
2045 < #line 1858 "configure"
2045 > #line 2046 "configure"
2046   #include "confdefs.h"
2047   /* Override any gcc2 internal prototype to avoid an error.  */
2048   /* We use char because int might match the return type of a gcc2
# Line 1865 | Line 2053 | int main() {
2053   shmat()
2054   ; return 0; }
2055   EOF
2056 < if { (eval echo configure:1869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2056 > if { (eval echo configure:2057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2057    rm -rf conftest*
2058    eval "ac_cv_lib_$ac_lib_var=yes"
2059   else
# Line 1898 | Line 2086 | fi
2086    # libraries we check for below, so use a different variable.
2087    #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2088    echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2089 < echo "configure:1902: checking for IceConnectionNumber in -lICE" >&5
2089 > echo "configure:2090: checking for IceConnectionNumber in -lICE" >&5
2090   ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2091   if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2092    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1906 | Line 2094 | else
2094    ac_save_LIBS="$LIBS"
2095   LIBS="-lICE $X_EXTRA_LIBS $LIBS"
2096   cat > conftest.$ac_ext <<EOF
2097 < #line 1910 "configure"
2097 > #line 2098 "configure"
2098   #include "confdefs.h"
2099   /* Override any gcc2 internal prototype to avoid an error.  */
2100   /* We use char because int might match the return type of a gcc2
# Line 1917 | Line 2105 | int main() {
2105   IceConnectionNumber()
2106   ; return 0; }
2107   EOF
2108 < if { (eval echo configure:1921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2108 > if { (eval echo configure:2109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2109    rm -rf conftest*
2110    eval "ac_cv_lib_$ac_lib_var=yes"
2111   else
# Line 1944 | Line 2132 | fi
2132   if [ "x$no_x" = "xyes" ]; then
2133    { echo "configure: error: You need X11 to run Basilisk II." 1>&2; exit 1; }
2134   fi
1947
2135   CFLAGS="$CFLAGS $X_CFLAGS"
2136   CXXFLAGS="$CXXFLAGS $X_CFLAGS"
2137   LIBS="$LIBS $X_PRE_LIBS $X_LIBS -lX11 -lXext $X_EXTRA_LIBS"
1951 STATICLIBS=
2138  
2139   echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2140 < echo "configure:1955: checking for pthread_create in -lpthread" >&5
2140 > echo "configure:2141: checking for pthread_create in -lpthread" >&5
2141   ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2142   if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2143    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1959 | Line 2145 | else
2145    ac_save_LIBS="$LIBS"
2146   LIBS="-lpthread  $LIBS"
2147   cat > conftest.$ac_ext <<EOF
2148 < #line 1963 "configure"
2148 > #line 2149 "configure"
2149   #include "confdefs.h"
2150   /* Override any gcc2 internal prototype to avoid an error.  */
2151   /* We use char because int might match the return type of a gcc2
# Line 1970 | Line 2156 | int main() {
2156   pthread_create()
2157   ; return 0; }
2158   EOF
2159 < if { (eval echo configure:1974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2159 > if { (eval echo configure:2160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2160    rm -rf conftest*
2161    eval "ac_cv_lib_$ac_lib_var=yes"
2162   else
# Line 1985 | Line 2171 | LIBS="$ac_save_LIBS"
2171   fi
2172   if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2173    echo "$ac_t""yes" 1>&6
2174 <  HAVE_PTHREADS=yes
2174 >    ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2175 >    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2176 >  cat >> confdefs.h <<EOF
2177 > #define $ac_tr_lib 1
2178 > EOF
2179 >
2180 >  LIBS="-lpthread $LIBS"
2181 >
2182   else
2183    echo "$ac_t""no" 1>&6
1991 HAVE_PTHREADS=no
1992 fi
2184  
2185 < if [ "x$HAVE_PTHREADS" = "xno" ]; then
2186 <    echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
1996 < echo "configure:1997: checking for pthread_create in -lc_r" >&5
2185 >  echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
2186 > echo "configure:2187: checking for pthread_create in -lc_r" >&5
2187   ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
2188   if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2189    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2001 | Line 2191 | else
2191    ac_save_LIBS="$LIBS"
2192   LIBS="-lc_r  $LIBS"
2193   cat > conftest.$ac_ext <<EOF
2194 < #line 2005 "configure"
2194 > #line 2195 "configure"
2195   #include "confdefs.h"
2196   /* Override any gcc2 internal prototype to avoid an error.  */
2197   /* We use char because int might match the return type of a gcc2
# Line 2012 | Line 2202 | int main() {
2202   pthread_create()
2203   ; return 0; }
2204   EOF
2205 < if { (eval echo configure:2016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2205 > if { (eval echo configure:2206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2206    rm -rf conftest*
2207    eval "ac_cv_lib_$ac_lib_var=yes"
2208   else
# Line 2027 | Line 2217 | LIBS="$ac_save_LIBS"
2217   fi
2218   if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2219    echo "$ac_t""yes" 1>&6
2220 <  HAVE_PTHREADS=yes
2220 >    ac_tr_lib=HAVE_LIB`echo c_r | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2221 >    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2222 >  cat >> confdefs.h <<EOF
2223 > #define $ac_tr_lib 1
2224 > EOF
2225 >
2226 >  LIBS="-lc_r $LIBS"
2227 >
2228   else
2229    echo "$ac_t""no" 1>&6
2230 < HAVE_PTHREADS=no
2230 >
2231 >    echo $ac_n "checking for pthread_create in -lPTL""... $ac_c" 1>&6
2232 > echo "configure:2233: checking for pthread_create in -lPTL" >&5
2233 > ac_lib_var=`echo PTL'_'pthread_create | sed 'y%./+-%__p_%'`
2234 > if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2235 >  echo $ac_n "(cached) $ac_c" 1>&6
2236 > else
2237 >  ac_save_LIBS="$LIBS"
2238 > LIBS="-lPTL  $LIBS"
2239 > cat > conftest.$ac_ext <<EOF
2240 > #line 2241 "configure"
2241 > #include "confdefs.h"
2242 > /* Override any gcc2 internal prototype to avoid an error.  */
2243 > /* We use char because int might match the return type of a gcc2
2244 >    builtin and then its argument prototype would still apply.  */
2245 > char pthread_create();
2246 >
2247 > int main() {
2248 > pthread_create()
2249 > ; return 0; }
2250 > EOF
2251 > if { (eval echo configure:2252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2252 >  rm -rf conftest*
2253 >  eval "ac_cv_lib_$ac_lib_var=yes"
2254 > else
2255 >  echo "configure: failed program was:" >&5
2256 >  cat conftest.$ac_ext >&5
2257 >  rm -rf conftest*
2258 >  eval "ac_cv_lib_$ac_lib_var=no"
2259   fi
2260 + rm -f conftest*
2261 + LIBS="$ac_save_LIBS"
2262 +
2263 + fi
2264 + if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2265 +  echo "$ac_t""yes" 1>&6
2266 +    ac_tr_lib=HAVE_LIB`echo PTL | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2267 +    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2268 +  cat >> confdefs.h <<EOF
2269 + #define $ac_tr_lib 1
2270 + EOF
2271 +
2272 +  LIBS="-lPTL $LIBS"
2273  
2036  if [ "x$HAVE_PTHREADS" = "xno" ]; then
2037     { echo "configure: error: You need libpthreads to run Basilisk II." 1>&2; exit 1; }
2038  else
2039     LIBS="$LIBS -lc_r"
2040  fi
2274   else
2275 <  LIBS="$LIBS -lpthread"
2275 >  echo "$ac_t""no" 1>&6
2276 >
2277 >      { echo "configure: error: You need pthreads to run Basilisk II." 1>&2; exit 1; }
2278 >    
2279   fi
2280 < for ac_func in pthread_cancel
2280 >
2281 >  
2282 > fi
2283 >
2284 >
2285 > fi
2286 >
2287 >
2288 > SEMSRCS=
2289 > for ac_func in sem_init
2290   do
2291   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2292 < echo "configure:2048: checking for $ac_func" >&5
2292 > echo "configure:2293: checking for $ac_func" >&5
2293   if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2294    echo $ac_n "(cached) $ac_c" 1>&6
2295   else
2296    cat > conftest.$ac_ext <<EOF
2297 < #line 2053 "configure"
2297 > #line 2298 "configure"
2298   #include "confdefs.h"
2299   /* System header to define __stub macros and hopefully few prototypes,
2300      which can conflict with char $ac_func(); below.  */
# Line 2072 | Line 2317 | $ac_func();
2317  
2318   ; return 0; }
2319   EOF
2320 < if { (eval echo configure:2076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2320 > if { (eval echo configure:2321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2321    rm -rf conftest*
2322    eval "ac_cv_func_$ac_func=yes"
2323   else
# Line 2093 | Line 2338 | EOF
2338  
2339   else
2340    echo "$ac_t""no" 1>&6
2341 + SEMSRCS=posix_sem.cpp
2342 +
2343   fi
2344   done
2345  
2346  
2347 < if [ "x$WANT_DGA" = "xyes" ]; then
2347 > if [ "x$WANT_XF86_DGA" = "xyes" ]; then
2348    echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
2349 < echo "configure:2103: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
2349 > echo "configure:2350: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
2350   ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
2351   if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2352    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2107 | Line 2354 | else
2354    ac_save_LIBS="$LIBS"
2355   LIBS="-lXxf86dga  $LIBS"
2356   cat > conftest.$ac_ext <<EOF
2357 < #line 2111 "configure"
2357 > #line 2358 "configure"
2358   #include "confdefs.h"
2359   /* Override any gcc2 internal prototype to avoid an error.  */
2360   /* We use char because int might match the return type of a gcc2
# Line 2118 | Line 2365 | int main() {
2365   XF86DGAQueryExtension()
2366   ; return 0; }
2367   EOF
2368 < if { (eval echo configure:2122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2368 > if { (eval echo configure:2369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2369    rm -rf conftest*
2370    eval "ac_cv_lib_$ac_lib_var=yes"
2371   else
# Line 2133 | Line 2380 | LIBS="$ac_save_LIBS"
2380   fi
2381   if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2382    echo "$ac_t""yes" 1>&6
2383 <  HAVE_DGA=yes
2383 >  
2384 >    DEFINES="$DEFINES -DENABLE_XF86_DGA=1"
2385 >    LIBS="$LIBS -lXxf86dga"
2386 >    if [ "x$WANT_FBDEV_DGA" = "xyes" ]; then
2387 >      echo "configure: warning: Cannot have both --enable-xf86-dga and --enable-fbdev-dga, ignoring --enable-fbdev-dga." 1>&2
2388 >      WANT_FBDEV_DGA=no
2389 >    fi
2390 >  
2391   else
2392    echo "$ac_t""no" 1>&6
2393 < HAVE_DGA=no
2393 >
2394 >    echo "configure: warning: Could not find XFree86 DGA extension, ignoring --enable-xf86-dga." 1>&2
2395 >    WANT_XF86_DGA=no
2396 >    DEFINES="$DEFINES -DENABLE_XF86_DGA=0"
2397 >  
2398   fi
2399  
2400 <  if [ "x$HAVE_DGA" = "xno" ]; then
2401 <    echo "configure: warning: Could not find DGA extension, ignoring --enable-dga." 1>&2
2402 <  else
2403 <    DEFINES="$DEFINES -DENABLE_DGA=1"
2404 <    LIBS="$LIBS -lXxf86dga"
2405 <  fi
2400 > else
2401 >  DEFINES="$DEFINES -DENABLE_XF86_DGA=0"
2402 > fi
2403 > if [ "x$WANT_FBDEV_DGA" = "xyes" ]; then
2404 >  DEFINES="$DEFINES -DENABLE_FBDEV_DGA=1"
2405 > else
2406 >  DEFINES="$DEFINES -DENABLE_FBDEV_DGA=0"
2407   fi
2408  
2409 < if [ "x$WANT_UI" = "xyes" ]; then
2409 > UISRCS=../dummy/prefs_editor_dummy.cpp
2410 > if [ "x$WANT_GTK" = "xyes" ]; then
2411    # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
2412   if test "${with_gtk_prefix+set}" = set; then
2413    withval="$with_gtk_prefix"
# Line 2189 | Line 2449 | fi
2449    # Extract the first word of "gtk-config", so it can be a program name with args.
2450   set dummy gtk-config; ac_word=$2
2451   echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2452 < echo "configure:2193: checking for $ac_word" >&5
2452 > echo "configure:2453: checking for $ac_word" >&5
2453   if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
2454    echo $ac_n "(cached) $ac_c" 1>&6
2455   else
# Line 2224 | Line 2484 | fi
2484  
2485    min_gtk_version=1.2.0
2486    echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
2487 < echo "configure:2228: checking for GTK - version >= $min_gtk_version" >&5
2487 > echo "configure:2488: checking for GTK - version >= $min_gtk_version" >&5
2488    no_gtk=""
2489    if test "$GTK_CONFIG" = "no" ; then
2490      no_gtk=yes
# Line 2247 | Line 2507 | echo "configure:2228: checking for GTK -
2507    echo $ac_n "cross compiling; assumed OK... $ac_c"
2508   else
2509    cat > conftest.$ac_ext <<EOF
2510 < #line 2251 "configure"
2510 > #line 2511 "configure"
2511   #include "confdefs.h"
2512  
2513   #include <gtk/gtk.h>
# Line 2310 | Line 2570 | main ()
2570   }
2571  
2572   EOF
2573 < if { (eval echo configure:2314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2573 > if { (eval echo configure:2574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2574   then
2575    :
2576   else
# Line 2328 | Line 2588 | fi
2588    fi
2589    if test "x$no_gtk" = x ; then
2590       echo "$ac_t""yes" 1>&6
2591 <     :    
2591 >    
2592 >    DEFINES="$DEFINES -DENABLE_GTK=1"
2593 >    CFLAGS="$CFLAGS $GTK_CFLAGS"
2594 >    CXXFLAGS="$CXXFLAGS $GTK_CFLAGS"
2595 >    LIBS="$LIBS $GTK_LIBS"
2596 >    UISRCS=prefs_editor_gtk.cpp
2597 >      
2598    else
2599       echo "$ac_t""no" 1>&6
2600       if test "$GTK_CONFIG" = "no" ; then
# Line 2344 | Line 2610 | fi
2610            CFLAGS="$CFLAGS $GTK_CFLAGS"
2611            LIBS="$LIBS $GTK_LIBS"
2612            cat > conftest.$ac_ext <<EOF
2613 < #line 2348 "configure"
2613 > #line 2614 "configure"
2614   #include "confdefs.h"
2615  
2616   #include <gtk/gtk.h>
# Line 2354 | Line 2620 | int main() {
2620   return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
2621   ; return 0; }
2622   EOF
2623 < if { (eval echo configure:2358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2623 > if { (eval echo configure:2624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2624    rm -rf conftest*
2625     echo "*** The test program compiled, but did not run. This usually means"
2626            echo "*** that the run-time linker is not finding GTK or finding the wrong"
# Line 2386 | Line 2652 | rm -f conftest*
2652       fi
2653       GTK_CFLAGS=""
2654       GTK_LIBS=""
2655 <     :
2655 >    
2656 >    echo "configure: warning: Could not find GTK+, disabling user interface." 1>&2
2657 >    WANT_GTK=no
2658 >  
2659    fi
2660    
2661    
2662    rm -f conf.gtktest
2663  
2395  if [ "x$no_gtk" = "xyes" ]; then
2396    echo "Did not find gtk+, disabling user interface."
2397    WANT_UI=no
2398    GTK_CFLAGS=
2399    GTK_LIBS=
2400  else
2401    DEFINES="$DEFINES -DENABLE_GTK=1"
2402  fi
2403  CFLAGS="$CFLAGS $GTK_CFLAGS"
2404  CXXFLAGS="$CXXFLAGS $GTK_CFLAGS"
2405  LIBS="$LIBS $GTK_LIBS"
2664   fi
2665  
2666 < SEMSRCS=
2667 < for ac_func in sem_init
2668 < do
2669 < echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2670 < echo "configure:2413: checking for $ac_func" >&5
2413 < if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2414 <  echo $ac_n "(cached) $ac_c" 1>&6
2666 > if [ "x$WANT_ESD" = "xyes" ]; then
2667 >  # Check whether --with-esd-prefix or --without-esd-prefix was given.
2668 > if test "${with_esd_prefix+set}" = set; then
2669 >  withval="$with_esd_prefix"
2670 >  esd_prefix="$withval"
2671   else
2672 <  cat > conftest.$ac_ext <<EOF
2673 < #line 2418 "configure"
2418 < #include "confdefs.h"
2419 < /* System header to define __stub macros and hopefully few prototypes,
2420 <    which can conflict with char $ac_func(); below.  */
2421 < #include <assert.h>
2422 < /* Override any gcc2 internal prototype to avoid an error.  */
2423 < /* We use char because int might match the return type of a gcc2
2424 <    builtin and then its argument prototype would still apply.  */
2425 < char $ac_func();
2426 <
2427 < int main() {
2428 <
2429 < /* The GNU C library defines this for functions which it implements
2430 <    to always fail with ENOSYS.  Some functions are actually named
2431 <    something starting with __ and the normal name is an alias.  */
2432 < #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2433 < choke me
2434 < #else
2435 < $ac_func();
2436 < #endif
2672 >  esd_prefix=""
2673 > fi
2674  
2675 < ; return 0; }
2676 < EOF
2677 < if { (eval echo configure:2441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2678 <  rm -rf conftest*
2442 <  eval "ac_cv_func_$ac_func=yes"
2675 > # Check whether --with-esd-exec-prefix or --without-esd-exec-prefix was given.
2676 > if test "${with_esd_exec_prefix+set}" = set; then
2677 >  withval="$with_esd_exec_prefix"
2678 >  esd_exec_prefix="$withval"
2679   else
2680 <  echo "configure: failed program was:" >&5
2445 <  cat conftest.$ac_ext >&5
2446 <  rm -rf conftest*
2447 <  eval "ac_cv_func_$ac_func=no"
2680 >  esd_exec_prefix=""
2681   fi
2682 < rm -f conftest*
2682 >
2683 > # Check whether --enable-esdtest or --disable-esdtest was given.
2684 > if test "${enable_esdtest+set}" = set; then
2685 >  enableval="$enable_esdtest"
2686 >  :
2687 > else
2688 >  enable_esdtest=yes
2689   fi
2690  
2691 < if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2692 <  echo "$ac_t""yes" 1>&6
2693 <    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2694 <  cat >> confdefs.h <<EOF
2695 < #define $ac_tr_func 1
2696 < EOF
2697 <
2691 >
2692 >  if test x$esd_exec_prefix != x ; then
2693 >     esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
2694 >     if test x${ESD_CONFIG+set} != xset ; then
2695 >        ESD_CONFIG=$esd_exec_prefix/bin/esd-config
2696 >     fi
2697 >  fi
2698 >  if test x$esd_prefix != x ; then
2699 >     esd_args="$esd_args --prefix=$esd_prefix"
2700 >     if test x${ESD_CONFIG+set} != xset ; then
2701 >        ESD_CONFIG=$esd_prefix/bin/esd-config
2702 >     fi
2703 >  fi
2704 >
2705 >  # Extract the first word of "esd-config", so it can be a program name with args.
2706 > set dummy esd-config; ac_word=$2
2707 > echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2708 > echo "configure:2709: checking for $ac_word" >&5
2709 > if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
2710 >  echo $ac_n "(cached) $ac_c" 1>&6
2711 > else
2712 >  case "$ESD_CONFIG" in
2713 >  /*)
2714 >  ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
2715 >  ;;
2716 >  ?:/*)                  
2717 >  ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
2718 >  ;;
2719 >  *)
2720 >  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2721 >  ac_dummy="$PATH"
2722 >  for ac_dir in $ac_dummy; do
2723 >    test -z "$ac_dir" && ac_dir=.
2724 >    if test -f $ac_dir/$ac_word; then
2725 >      ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
2726 >      break
2727 >    fi
2728 >  done
2729 >  IFS="$ac_save_ifs"
2730 >  test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
2731 >  ;;
2732 > esac
2733 > fi
2734 > ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
2735 > if test -n "$ESD_CONFIG"; then
2736 >  echo "$ac_t""$ESD_CONFIG" 1>&6
2737   else
2738    echo "$ac_t""no" 1>&6
2739   fi
2462 done
2740  
2741 < if [ "x$ac_cv_func_sem_init" = "xno" ]; then
2742 <  echo $ac_n "checking for sem_init in -lposix4""... $ac_c" 1>&6
2743 < echo "configure:2467: checking for sem_init in -lposix4" >&5
2744 < ac_lib_var=`echo posix4'_'sem_init | sed 'y%./+-%__p_%'`
2745 < if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2746 <  echo $ac_n "(cached) $ac_c" 1>&6
2741 >  min_esd_version=0.2.8
2742 >  echo $ac_n "checking for ESD - version >= $min_esd_version""... $ac_c" 1>&6
2743 > echo "configure:2744: checking for ESD - version >= $min_esd_version" >&5
2744 >  no_esd=""
2745 >  if test "$ESD_CONFIG" = "no" ; then
2746 >    no_esd=yes
2747 >  else
2748 >    ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
2749 >    ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
2750 >
2751 >    esd_major_version=`$ESD_CONFIG $esd_args --version | \
2752 >           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
2753 >    esd_minor_version=`$ESD_CONFIG $esd_args --version | \
2754 >           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
2755 >    esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
2756 >           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
2757 >    if test "x$enable_esdtest" = "xyes" ; then
2758 >      ac_save_CFLAGS="$CFLAGS"
2759 >      ac_save_LIBS="$LIBS"
2760 >      CFLAGS="$CFLAGS $ESD_CFLAGS"
2761 >      LIBS="$LIBS $ESD_LIBS"
2762 >      rm -f conf.esdtest
2763 >      if test "$cross_compiling" = yes; then
2764 >  echo $ac_n "cross compiling; assumed OK... $ac_c"
2765   else
2766 <  ac_save_LIBS="$LIBS"
2767 < LIBS="-lposix4  $LIBS"
2473 < cat > conftest.$ac_ext <<EOF
2474 < #line 2475 "configure"
2766 >  cat > conftest.$ac_ext <<EOF
2767 > #line 2768 "configure"
2768   #include "confdefs.h"
2476 /* Override any gcc2 internal prototype to avoid an error.  */
2477 /* We use char because int might match the return type of a gcc2
2478    builtin and then its argument prototype would still apply.  */
2479 char sem_init();
2769  
2770 < int main() {
2771 < sem_init()
2772 < ; return 0; }
2770 > #include <stdio.h>
2771 > #include <stdlib.h>
2772 > #include <string.h>
2773 > #include <esd.h>
2774 >
2775 > char*
2776 > my_strdup (char *str)
2777 > {
2778 >  char *new_str;
2779 >  
2780 >  if (str)
2781 >    {
2782 >      new_str = malloc ((strlen (str) + 1) * sizeof(char));
2783 >      strcpy (new_str, str);
2784 >    }
2785 >  else
2786 >    new_str = NULL;
2787 >  
2788 >  return new_str;
2789 > }
2790 >
2791 > int main ()
2792 > {
2793 >  int major, minor, micro;
2794 >  char *tmp_version;
2795 >
2796 >  system ("touch conf.esdtest");
2797 >
2798 >  /* HP/UX 9 (%@#!) writes to sscanf strings */
2799 >  tmp_version = my_strdup("$min_esd_version");
2800 >  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
2801 >     printf("%s, bad version string\n", "$min_esd_version");
2802 >     exit(1);
2803 >   }
2804 >
2805 >   if (($esd_major_version > major) ||
2806 >      (($esd_major_version == major) && ($esd_minor_version > minor)) ||
2807 >      (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
2808 >    {
2809 >      return 0;
2810 >    }
2811 >  else
2812 >    {
2813 >      printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
2814 >      printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
2815 >      printf("*** best to upgrade to the required version.\n");
2816 >      printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
2817 >      printf("*** to point to the correct copy of esd-config, and remove the file\n");
2818 >      printf("*** config.cache before re-running configure\n");
2819 >      return 1;
2820 >    }
2821 > }
2822 >
2823 >
2824   EOF
2825 < if { (eval echo configure:2486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2826 <  rm -rf conftest*
2827 <  eval "ac_cv_lib_$ac_lib_var=yes"
2825 > if { (eval echo configure:2826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2826 > then
2827 >  :
2828   else
2829    echo "configure: failed program was:" >&5
2830    cat conftest.$ac_ext >&5
2831 <  rm -rf conftest*
2832 <  eval "ac_cv_lib_$ac_lib_var=no"
2493 < fi
2494 < rm -f conftest*
2495 < LIBS="$ac_save_LIBS"
2496 <
2831 >  rm -fr conftest*
2832 >  no_esd=yes
2833   fi
2834 < if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2499 <  echo "$ac_t""yes" 1>&6
2500 <  HAVE_LIBPOSIX4=yes
2501 < else
2502 <  echo "$ac_t""no" 1>&6
2503 < HAVE_LIBPOSIX4=no
2834 > rm -fr conftest*
2835   fi
2836  
2837 <  if [ "x$HAVE_LIBPOSIX4" = "xno" ]; then
2838 <        for ac_func in semget
2839 < do
2840 < echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2841 < echo "configure:2511: checking for $ac_func" >&5
2842 < if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2843 <  echo $ac_n "(cached) $ac_c" 1>&6
2844 < else
2845 <  cat > conftest.$ac_ext <<EOF
2846 < #line 2516 "configure"
2837 >       CFLAGS="$ac_save_CFLAGS"
2838 >       LIBS="$ac_save_LIBS"
2839 >     fi
2840 >  fi
2841 >  if test "x$no_esd" = x ; then
2842 >     echo "$ac_t""yes" 1>&6
2843 >    
2844 >    DEFINES="$DEFINES -DENABLE_ESD=1"
2845 >    CFLAGS="$CFLAGS $ESD_CFLAGS"
2846 >    CXXFLAGS="$CXXFLAGS $ESD_CFLAGS"
2847 >    LIBS="$LIBS $ESD_LIBS"
2848 >      
2849 >  else
2850 >     echo "$ac_t""no" 1>&6
2851 >     if test "$ESD_CONFIG" = "no" ; then
2852 >       echo "*** The esd-config script installed by ESD could not be found"
2853 >       echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
2854 >       echo "*** your path, or set the ESD_CONFIG environment variable to the"
2855 >       echo "*** full path to esd-config."
2856 >     else
2857 >       if test -f conf.esdtest ; then
2858 >        :
2859 >       else
2860 >          echo "*** Could not run ESD test program, checking why..."
2861 >          CFLAGS="$CFLAGS $ESD_CFLAGS"
2862 >          LIBS="$LIBS $ESD_LIBS"
2863 >          cat > conftest.$ac_ext <<EOF
2864 > #line 2865 "configure"
2865   #include "confdefs.h"
2517 /* System header to define __stub macros and hopefully few prototypes,
2518    which can conflict with char $ac_func(); below.  */
2519 #include <assert.h>
2520 /* Override any gcc2 internal prototype to avoid an error.  */
2521 /* We use char because int might match the return type of a gcc2
2522    builtin and then its argument prototype would still apply.  */
2523 char $ac_func();
2524
2525 int main() {
2866  
2867 < /* The GNU C library defines this for functions which it implements
2868 <    to always fail with ENOSYS.  Some functions are actually named
2529 <    something starting with __ and the normal name is an alias.  */
2530 < #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2531 < choke me
2532 < #else
2533 < $ac_func();
2534 < #endif
2867 > #include <stdio.h>
2868 > #include <esd.h>
2869  
2870 + int main() {
2871 + return 0;
2872   ; return 0; }
2873   EOF
2874 < if { (eval echo configure:2539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2874 > if { (eval echo configure:2875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2875    rm -rf conftest*
2876 <  eval "ac_cv_func_$ac_func=yes"
2876 >   echo "*** The test program compiled, but did not run. This usually means"
2877 >          echo "*** that the run-time linker is not finding ESD or finding the wrong"
2878 >          echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
2879 >          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
2880 >          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
2881 >          echo "*** is required on your system"
2882 >          echo "***"
2883 >          echo "*** If you have an old version installed, it is best to remove it, although"
2884 >          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
2885   else
2886    echo "configure: failed program was:" >&5
2887    cat conftest.$ac_ext >&5
2888    rm -rf conftest*
2889 <  eval "ac_cv_func_$ac_func=no"
2889 >   echo "*** The test program failed to compile or link. See the file config.log for the"
2890 >          echo "*** exact error that occured. This usually means ESD was incorrectly installed"
2891 >          echo "*** or that you have moved ESD since it was installed. In the latter case, you"
2892 >          echo "*** may want to edit the esd-config script: $ESD_CONFIG"
2893   fi
2894   rm -f conftest*
2895 < fi
2896 <
2897 < if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2898 <  echo "$ac_t""yes" 1>&6
2899 <    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2900 <  cat >> confdefs.h <<EOF
2901 < #define $ac_tr_func 1
2902 < EOF
2903 <
2904 < else
2558 <  echo "$ac_t""no" 1>&6
2559 < fi
2560 < done
2561 <
2562 <    if [ "x$ac_cv_func_semget" = "xno" ]; then
2563 <      { echo "configure: error: You need POSIX.4 semaphores to run Basilisk II." 1>&2; exit 1; }
2564 <    else
2565 <      SEMSRCS="posix_sem.cpp"
2566 <    fi
2567 <  else
2568 <    LIBS="$LIBS -lposix4"
2895 >          CFLAGS="$ac_save_CFLAGS"
2896 >          LIBS="$ac_save_LIBS"
2897 >       fi
2898 >     fi
2899 >     ESD_CFLAGS=""
2900 >     ESD_LIBS=""
2901 >    
2902 >    echo "configure: warning: Could not find ESD, disabling ESD support." 1>&2
2903 >    WANT_ESD=no
2904 >  
2905    fi
2906 +  
2907 +  
2908 +  rm -f conf.esdtest
2909 +
2910   fi
2911  
2912   echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2913 < echo "configure:2574: checking for ANSI C header files" >&5
2913 > echo "configure:2914: checking for ANSI C header files" >&5
2914   if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2915    echo $ac_n "(cached) $ac_c" 1>&6
2916   else
2917    cat > conftest.$ac_ext <<EOF
2918 < #line 2579 "configure"
2918 > #line 2919 "configure"
2919   #include "confdefs.h"
2920   #include <stdlib.h>
2921   #include <stdarg.h>
# Line 2583 | Line 2923 | else
2923   #include <float.h>
2924   EOF
2925   ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2926 < { (eval echo configure:2587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2926 > { (eval echo configure:2927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2927   ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2928   if test -z "$ac_err"; then
2929    rm -rf conftest*
# Line 2600 | Line 2940 | rm -f conftest*
2940   if test $ac_cv_header_stdc = yes; then
2941    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2942   cat > conftest.$ac_ext <<EOF
2943 < #line 2604 "configure"
2943 > #line 2944 "configure"
2944   #include "confdefs.h"
2945   #include <string.h>
2946   EOF
# Line 2618 | Line 2958 | fi
2958   if test $ac_cv_header_stdc = yes; then
2959    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2960   cat > conftest.$ac_ext <<EOF
2961 < #line 2622 "configure"
2961 > #line 2962 "configure"
2962   #include "confdefs.h"
2963   #include <stdlib.h>
2964   EOF
# Line 2639 | Line 2979 | if test "$cross_compiling" = yes; then
2979    :
2980   else
2981    cat > conftest.$ac_ext <<EOF
2982 < #line 2643 "configure"
2982 > #line 2983 "configure"
2983   #include "confdefs.h"
2984   #include <ctype.h>
2985   #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# Line 2650 | Line 2990 | if (XOR (islower (i), ISLOWER (i)) || to
2990   exit (0); }
2991  
2992   EOF
2993 < if { (eval echo configure:2654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2993 > if { (eval echo configure:2994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2994   then
2995    :
2996   else
# Line 2677 | Line 3017 | for ac_hdr in unistd.h fcntl.h sys/time.
3017   do
3018   ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3019   echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3020 < echo "configure:2681: checking for $ac_hdr" >&5
3020 > echo "configure:3021: checking for $ac_hdr" >&5
3021   if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3022    echo $ac_n "(cached) $ac_c" 1>&6
3023   else
3024    cat > conftest.$ac_ext <<EOF
3025 < #line 2686 "configure"
3025 > #line 3026 "configure"
3026   #include "confdefs.h"
3027   #include <$ac_hdr>
3028   EOF
3029   ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3030 < { (eval echo configure:2691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3030 > { (eval echo configure:3031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3031   ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3032   if test -z "$ac_err"; then
3033    rm -rf conftest*
# Line 2715 | Line 3055 | done
3055  
3056  
3057   echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3058 < echo "configure:2719: checking whether byte ordering is bigendian" >&5
3058 > echo "configure:3059: checking whether byte ordering is bigendian" >&5
3059   if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3060    echo $ac_n "(cached) $ac_c" 1>&6
3061   else
3062    ac_cv_c_bigendian=unknown
3063   # See if sys/param.h defines the BYTE_ORDER macro.
3064   cat > conftest.$ac_ext <<EOF
3065 < #line 2726 "configure"
3065 > #line 3066 "configure"
3066   #include "confdefs.h"
3067   #include <sys/types.h>
3068   #include <sys/param.h>
# Line 2733 | Line 3073 | int main() {
3073   #endif
3074   ; return 0; }
3075   EOF
3076 < if { (eval echo configure:2737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3076 > if { (eval echo configure:3077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3077    rm -rf conftest*
3078    # It does; now see whether it defined to BIG_ENDIAN or not.
3079   cat > conftest.$ac_ext <<EOF
3080 < #line 2741 "configure"
3080 > #line 3081 "configure"
3081   #include "confdefs.h"
3082   #include <sys/types.h>
3083   #include <sys/param.h>
# Line 2748 | Line 3088 | int main() {
3088   #endif
3089   ; return 0; }
3090   EOF
3091 < if { (eval echo configure:2752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3091 > if { (eval echo configure:3092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3092    rm -rf conftest*
3093    ac_cv_c_bigendian=yes
3094   else
# Line 2768 | Line 3108 | if test "$cross_compiling" = yes; then
3108      { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3109   else
3110    cat > conftest.$ac_ext <<EOF
3111 < #line 2772 "configure"
3111 > #line 3112 "configure"
3112   #include "confdefs.h"
3113   main () {
3114    /* Are we little or big endian?  From Harbison&Steele.  */
# Line 2781 | Line 3121 | main () {
3121    exit (u.c[sizeof (long) - 1] == 1);
3122   }
3123   EOF
3124 < if { (eval echo configure:2785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3124 > if { (eval echo configure:3125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3125   then
3126    ac_cv_c_bigendian=no
3127   else
# Line 2805 | Line 3145 | EOF
3145   fi
3146  
3147   echo $ac_n "checking for working const""... $ac_c" 1>&6
3148 < echo "configure:2809: checking for working const" >&5
3148 > echo "configure:3149: checking for working const" >&5
3149   if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3150    echo $ac_n "(cached) $ac_c" 1>&6
3151   else
3152    cat > conftest.$ac_ext <<EOF
3153 < #line 2814 "configure"
3153 > #line 3154 "configure"
3154   #include "confdefs.h"
3155  
3156   int main() {
# Line 2859 | Line 3199 | ccp = (char const *const *) p;
3199  
3200   ; return 0; }
3201   EOF
3202 < if { (eval echo configure:2863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3202 > if { (eval echo configure:3203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3203    rm -rf conftest*
3204    ac_cv_c_const=yes
3205   else
# Line 2880 | Line 3220 | EOF
3220   fi
3221  
3222   echo $ac_n "checking for inline""... $ac_c" 1>&6
3223 < echo "configure:2884: checking for inline" >&5
3223 > echo "configure:3224: checking for inline" >&5
3224   if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3225    echo $ac_n "(cached) $ac_c" 1>&6
3226   else
3227    ac_cv_c_inline=no
3228   for ac_kw in inline __inline__ __inline; do
3229    cat > conftest.$ac_ext <<EOF
3230 < #line 2891 "configure"
3230 > #line 3231 "configure"
3231   #include "confdefs.h"
3232  
3233   int main() {
3234   } $ac_kw foo() {
3235   ; return 0; }
3236   EOF
3237 < if { (eval echo configure:2898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3237 > if { (eval echo configure:3238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3238    rm -rf conftest*
3239    ac_cv_c_inline=$ac_kw; break
3240   else
# Line 2920 | Line 3260 | EOF
3260   esac
3261  
3262   echo $ac_n "checking size of short""... $ac_c" 1>&6
3263 < echo "configure:2924: checking size of short" >&5
3263 > echo "configure:3264: checking size of short" >&5
3264   if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3265    echo $ac_n "(cached) $ac_c" 1>&6
3266   else
# Line 2928 | Line 3268 | else
3268    ac_cv_sizeof_short=2
3269   else
3270    cat > conftest.$ac_ext <<EOF
3271 < #line 2932 "configure"
3271 > #line 3272 "configure"
3272   #include "confdefs.h"
3273   #include <stdio.h>
3274   main()
# Line 2939 | Line 3279 | main()
3279    exit(0);
3280   }
3281   EOF
3282 < if { (eval echo configure:2943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3282 > if { (eval echo configure:3283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3283   then
3284    ac_cv_sizeof_short=`cat conftestval`
3285   else
# Line 2959 | Line 3299 | EOF
3299  
3300  
3301   echo $ac_n "checking size of int""... $ac_c" 1>&6
3302 < echo "configure:2963: checking size of int" >&5
3302 > echo "configure:3303: checking size of int" >&5
3303   if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3304    echo $ac_n "(cached) $ac_c" 1>&6
3305   else
# Line 2967 | Line 3307 | else
3307    ac_cv_sizeof_int=4
3308   else
3309    cat > conftest.$ac_ext <<EOF
3310 < #line 2971 "configure"
3310 > #line 3311 "configure"
3311   #include "confdefs.h"
3312   #include <stdio.h>
3313   main()
# Line 2978 | Line 3318 | main()
3318    exit(0);
3319   }
3320   EOF
3321 < if { (eval echo configure:2982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3321 > if { (eval echo configure:3322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3322   then
3323    ac_cv_sizeof_int=`cat conftestval`
3324   else
# Line 2998 | Line 3338 | EOF
3338  
3339  
3340   echo $ac_n "checking size of long""... $ac_c" 1>&6
3341 < echo "configure:3002: checking size of long" >&5
3341 > echo "configure:3342: checking size of long" >&5
3342   if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3343    echo $ac_n "(cached) $ac_c" 1>&6
3344   else
# Line 3006 | Line 3346 | else
3346    ac_cv_sizeof_long=4
3347   else
3348    cat > conftest.$ac_ext <<EOF
3349 < #line 3010 "configure"
3349 > #line 3350 "configure"
3350   #include "confdefs.h"
3351   #include <stdio.h>
3352   main()
# Line 3017 | Line 3357 | main()
3357    exit(0);
3358   }
3359   EOF
3360 < if { (eval echo configure:3021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3360 > if { (eval echo configure:3361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3361   then
3362    ac_cv_sizeof_long=`cat conftestval`
3363   else
# Line 3037 | Line 3377 | EOF
3377  
3378  
3379   echo $ac_n "checking size of long long""... $ac_c" 1>&6
3380 < echo "configure:3041: checking size of long long" >&5
3380 > echo "configure:3381: checking size of long long" >&5
3381   if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
3382    echo $ac_n "(cached) $ac_c" 1>&6
3383   else
# Line 3045 | Line 3385 | else
3385    ac_cv_sizeof_long_long=8
3386   else
3387    cat > conftest.$ac_ext <<EOF
3388 < #line 3049 "configure"
3388 > #line 3389 "configure"
3389   #include "confdefs.h"
3390   #include <stdio.h>
3391   main()
# Line 3056 | Line 3396 | main()
3396    exit(0);
3397   }
3398   EOF
3399 < if { (eval echo configure:3060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3399 > if { (eval echo configure:3400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3400   then
3401    ac_cv_sizeof_long_long=`cat conftestval`
3402   else
# Line 3076 | Line 3416 | EOF
3416  
3417  
3418   echo $ac_n "checking for off_t""... $ac_c" 1>&6
3419 < echo "configure:3080: checking for off_t" >&5
3419 > echo "configure:3420: checking for off_t" >&5
3420   if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3421    echo $ac_n "(cached) $ac_c" 1>&6
3422   else
3423    cat > conftest.$ac_ext <<EOF
3424 < #line 3085 "configure"
3424 > #line 3425 "configure"
3425   #include "confdefs.h"
3426   #include <sys/types.h>
3427   #if STDC_HEADERS
# Line 3109 | Line 3449 | EOF
3449   fi
3450  
3451   echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3452 < echo "configure:3113: checking for loff_t" >&5
3452 > echo "configure:3453: checking for loff_t" >&5
3453   if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3454    echo $ac_n "(cached) $ac_c" 1>&6
3455   else
3456    cat > conftest.$ac_ext <<EOF
3457 < #line 3118 "configure"
3457 > #line 3458 "configure"
3458   #include "confdefs.h"
3459   #include <sys/types.h>
3460   #if STDC_HEADERS
# Line 3142 | Line 3482 | EOF
3482   fi
3483  
3484   echo $ac_n "checking for size_t""... $ac_c" 1>&6
3485 < echo "configure:3146: checking for size_t" >&5
3485 > echo "configure:3486: checking for size_t" >&5
3486   if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3487    echo $ac_n "(cached) $ac_c" 1>&6
3488   else
3489    cat > conftest.$ac_ext <<EOF
3490 < #line 3151 "configure"
3490 > #line 3491 "configure"
3491   #include "confdefs.h"
3492   #include <sys/types.h>
3493   #if STDC_HEADERS
# Line 3175 | Line 3515 | EOF
3515   fi
3516  
3517   echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3518 < echo "configure:3179: checking whether time.h and sys/time.h may both be included" >&5
3518 > echo "configure:3519: checking whether time.h and sys/time.h may both be included" >&5
3519   if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3520    echo $ac_n "(cached) $ac_c" 1>&6
3521   else
3522    cat > conftest.$ac_ext <<EOF
3523 < #line 3184 "configure"
3523 > #line 3524 "configure"
3524   #include "confdefs.h"
3525   #include <sys/types.h>
3526   #include <sys/time.h>
# Line 3189 | Line 3529 | int main() {
3529   struct tm *tp;
3530   ; return 0; }
3531   EOF
3532 < if { (eval echo configure:3193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3532 > if { (eval echo configure:3533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3533    rm -rf conftest*
3534    ac_cv_header_time=yes
3535   else
# Line 3210 | Line 3550 | EOF
3550   fi
3551  
3552   echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3553 < echo "configure:3214: checking whether struct tm is in sys/time.h or time.h" >&5
3553 > echo "configure:3554: checking whether struct tm is in sys/time.h or time.h" >&5
3554   if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3555    echo $ac_n "(cached) $ac_c" 1>&6
3556   else
3557    cat > conftest.$ac_ext <<EOF
3558 < #line 3219 "configure"
3558 > #line 3559 "configure"
3559   #include "confdefs.h"
3560   #include <sys/types.h>
3561   #include <time.h>
# Line 3223 | Line 3563 | int main() {
3563   struct tm *tp; tp->tm_sec;
3564   ; return 0; }
3565   EOF
3566 < if { (eval echo configure:3227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3566 > if { (eval echo configure:3567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3567    rm -rf conftest*
3568    ac_cv_struct_tm=time.h
3569   else
# Line 3247 | Line 3587 | fi
3587   for ac_func in strdup cfmakeraw
3588   do
3589   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3590 < echo "configure:3251: checking for $ac_func" >&5
3590 > echo "configure:3591: checking for $ac_func" >&5
3591   if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3592    echo $ac_n "(cached) $ac_c" 1>&6
3593   else
3594    cat > conftest.$ac_ext <<EOF
3595 < #line 3256 "configure"
3595 > #line 3596 "configure"
3596   #include "confdefs.h"
3597   /* System header to define __stub macros and hopefully few prototypes,
3598      which can conflict with char $ac_func(); below.  */
# Line 3275 | Line 3615 | $ac_func();
3615  
3616   ; return 0; }
3617   EOF
3618 < if { (eval echo configure:3279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3618 > if { (eval echo configure:3619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3619    rm -rf conftest*
3620    eval "ac_cv_func_$ac_func=yes"
3621   else
# Line 3302 | Line 3642 | done
3642   for ac_func in nanosleep clock_gettime timer_create
3643   do
3644   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3645 < echo "configure:3306: checking for $ac_func" >&5
3645 > echo "configure:3646: checking for $ac_func" >&5
3646   if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3647    echo $ac_n "(cached) $ac_c" 1>&6
3648   else
3649    cat > conftest.$ac_ext <<EOF
3650 < #line 3311 "configure"
3650 > #line 3651 "configure"
3651   #include "confdefs.h"
3652   /* System header to define __stub macros and hopefully few prototypes,
3653      which can conflict with char $ac_func(); below.  */
# Line 3330 | Line 3670 | $ac_func();
3670  
3671   ; return 0; }
3672   EOF
3673 < if { (eval echo configure:3334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3673 > if { (eval echo configure:3674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3674 >  rm -rf conftest*
3675 >  eval "ac_cv_func_$ac_func=yes"
3676 > else
3677 >  echo "configure: failed program was:" >&5
3678 >  cat conftest.$ac_ext >&5
3679 >  rm -rf conftest*
3680 >  eval "ac_cv_func_$ac_func=no"
3681 > fi
3682 > rm -f conftest*
3683 > fi
3684 >
3685 > if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3686 >  echo "$ac_t""yes" 1>&6
3687 >    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3688 >  cat >> confdefs.h <<EOF
3689 > #define $ac_tr_func 1
3690 > EOF
3691 >
3692 > else
3693 >  echo "$ac_t""no" 1>&6
3694 > fi
3695 > done
3696 >
3697 > for ac_func in pthread_cancel
3698 > do
3699 > echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3700 > echo "configure:3701: checking for $ac_func" >&5
3701 > if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3702 >  echo $ac_n "(cached) $ac_c" 1>&6
3703 > else
3704 >  cat > conftest.$ac_ext <<EOF
3705 > #line 3706 "configure"
3706 > #include "confdefs.h"
3707 > /* System header to define __stub macros and hopefully few prototypes,
3708 >    which can conflict with char $ac_func(); below.  */
3709 > #include <assert.h>
3710 > /* Override any gcc2 internal prototype to avoid an error.  */
3711 > /* We use char because int might match the return type of a gcc2
3712 >    builtin and then its argument prototype would still apply.  */
3713 > char $ac_func();
3714 >
3715 > int main() {
3716 >
3717 > /* The GNU C library defines this for functions which it implements
3718 >    to always fail with ENOSYS.  Some functions are actually named
3719 >    something starting with __ and the normal name is an alias.  */
3720 > #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3721 > choke me
3722 > #else
3723 > $ac_func();
3724 > #endif
3725 >
3726 > ; return 0; }
3727 > EOF
3728 > if { (eval echo configure:3729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3729    rm -rf conftest*
3730    eval "ac_cv_func_$ac_func=yes"
3731   else
# Line 3359 | Line 3754 | SYSSRCS="../dummy/ether_dummy.cpp ../dum
3754   if MACHINE=`uname -a 2>/dev/null`; then
3755    case "$MACHINE" in
3756    Linux*)
3757 <    SYSSRCS="Linux/ether_linux.cpp Linux/scsi_linux.cpp Linux/audio_linux.cpp"
3757 >    SYSSRCS="Linux/ether_linux.cpp Linux/scsi_linux.cpp audio_oss_esd.cpp"
3758      ;;
3759    FreeBSD*3.*)
3760          echo $ac_n "checking for cam_open_btl in -lcam""... $ac_c" 1>&6
3761 < echo "configure:3367: checking for cam_open_btl in -lcam" >&5
3761 > echo "configure:3762: checking for cam_open_btl in -lcam" >&5
3762   ac_lib_var=`echo cam'_'cam_open_btl | sed 'y%./+-%__p_%'`
3763   if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3764    echo $ac_n "(cached) $ac_c" 1>&6
# Line 3371 | Line 3766 | else
3766    ac_save_LIBS="$LIBS"
3767   LIBS="-lcam  $LIBS"
3768   cat > conftest.$ac_ext <<EOF
3769 < #line 3375 "configure"
3769 > #line 3770 "configure"
3770   #include "confdefs.h"
3771   /* Override any gcc2 internal prototype to avoid an error.  */
3772   /* We use char because int might match the return type of a gcc2
# Line 3382 | Line 3777 | int main() {
3777   cam_open_btl()
3778   ; return 0; }
3779   EOF
3780 < if { (eval echo configure:3386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3780 > if { (eval echo configure:3781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3781    rm -rf conftest*
3782    eval "ac_cv_lib_$ac_lib_var=yes"
3783   else
# Line 3408 | Line 3803 | fi
3803      else
3804              ac_safe=`echo "/sys/cam/cam.h" | sed 'y%./+-%__p_%'`
3805   echo $ac_n "checking for /sys/cam/cam.h""... $ac_c" 1>&6
3806 < echo "configure:3412: checking for /sys/cam/cam.h" >&5
3806 > echo "configure:3807: checking for /sys/cam/cam.h" >&5
3807   if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3808    echo $ac_n "(cached) $ac_c" 1>&6
3809   else
3810    cat > conftest.$ac_ext <<EOF
3811 < #line 3417 "configure"
3811 > #line 3812 "configure"
3812   #include "confdefs.h"
3813   #include </sys/cam/cam.h>
3814   EOF
3815   ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3816 < { (eval echo configure:3422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3816 > { (eval echo configure:3817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3817   ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3818   if test -z "$ac_err"; then
3819    rm -rf conftest*
# Line 3442 | Line 3837 | fi
3837        if [ "x$ac_cv_header__sys_cam_cam_h" = "xno" ]; then
3838                          { echo "configure: error: Cannot find kernel includes for CAM library." 1>&2; exit 1; }
3839        fi
3840 <      SYSSRCS="../dummy/ether_dummy.cpp FreeBSD/scsi_freebsd.cpp ../dummy/audio_dummy.cpp"
3840 >      SYSSRCS="../dummy/ether_dummy.cpp FreeBSD/scsi_freebsd.cpp audio_oss_esd.cpp"
3841        CXXFLAGS="$CXXFLAGS -I/sys"
3842        CFLAGS="$CFLAGS -I/sys"
3843        LIBS="$LIBS -lcam"
# Line 3451 | Line 3846 | fi
3846      ;;
3847    FreeBSD*)
3848          echo $ac_n "checking for scsi_open in -lscsi""... $ac_c" 1>&6
3849 < echo "configure:3455: checking for scsi_open in -lscsi" >&5
3849 > echo "configure:3850: checking for scsi_open in -lscsi" >&5
3850   ac_lib_var=`echo scsi'_'scsi_open | sed 'y%./+-%__p_%'`
3851   if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3852    echo $ac_n "(cached) $ac_c" 1>&6
# Line 3459 | Line 3854 | else
3854    ac_save_LIBS="$LIBS"
3855   LIBS="-lscsi  $LIBS"
3856   cat > conftest.$ac_ext <<EOF
3857 < #line 3463 "configure"
3857 > #line 3858 "configure"
3858   #include "confdefs.h"
3859   /* Override any gcc2 internal prototype to avoid an error.  */
3860   /* We use char because int might match the return type of a gcc2
# Line 3470 | Line 3865 | int main() {
3865   scsi_open()
3866   ; return 0; }
3867   EOF
3868 < if { (eval echo configure:3474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3868 > if { (eval echo configure:3869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3869    rm -rf conftest*
3870    eval "ac_cv_lib_$ac_lib_var=yes"
3871   else
# Line 3496 | Line 3891 | fi
3891      else
3892              ac_safe=`echo "scsi.h sys/scsiio.h" | sed 'y%./+-%__p_%'`
3893   echo $ac_n "checking for scsi.h sys/scsiio.h""... $ac_c" 1>&6
3894 < echo "configure:3500: checking for scsi.h sys/scsiio.h" >&5
3894 > echo "configure:3895: checking for scsi.h sys/scsiio.h" >&5
3895   if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3896    echo $ac_n "(cached) $ac_c" 1>&6
3897   else
3898    cat > conftest.$ac_ext <<EOF
3899 < #line 3505 "configure"
3899 > #line 3900 "configure"
3900   #include "confdefs.h"
3901   #include <scsi.h sys/scsiio.h>
3902   EOF
3903   ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3904 < { (eval echo configure:3510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3904 > { (eval echo configure:3905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3905   ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3906   if test -z "$ac_err"; then
3907    rm -rf conftest*
# Line 3545 | Line 3940 | fi
3940      LIBS="$LIBS -lm"
3941      ;;
3942    esac
3548  if [ "x$WANT_UI" = "xyes" ]; then
3549    SYSSRCS="$SYSSRCS prefs_editor_gtk.cpp"
3550  else
3551    SYSSRCS="$SYSSRCS ../dummy/prefs_editor_dummy.cpp"
3552  fi
3943   fi
3944 < if [ "x$SEMSRCS" != "x" ]; then
3555 <  SYSSRCS="$SYSSRCS $SEMSRCS"
3556 < fi
3557 <
3558 < CPUINCLUDES="-I../uae_cpu"
3559 < CPUSRCS="../uae_cpu/basilisk_glue.cpp ../uae_cpu/memory.cpp ../uae_cpu/newcpu.cpp ../uae_cpu/readcpu.cpp ../uae_cpu/fpp.cpp cpustbl.cpp cpudefs.cpp"
3944 > SYSSRCS="$SYSSRCS $SEMSRCS $UISRCS $MONSRCS"
3945  
3946   HAVE_I386=no
3947   echo $ac_n "checking for x86 target CPU""... $ac_c" 1>&6
3948 < echo "configure:3564: checking for x86 target CPU" >&5
3948 > echo "configure:3949: checking for x86 target CPU" >&5
3949   cat > conftest.$ac_ext <<EOF
3950 < #line 3566 "configure"
3950 > #line 3951 "configure"
3951   #include "confdefs.h"
3952  
3953   #ifdef __i386__
# Line 3581 | Line 3966 | fi
3966   rm -f conftest*
3967  
3968  
3969 + HAVE_SPARC=no
3970 + echo $ac_n "checking for SPARC target CPU""... $ac_c" 1>&6
3971 + echo "configure:3972: checking for SPARC target CPU" >&5
3972 + cat > conftest.$ac_ext <<EOF
3973 + #line 3974 "configure"
3974 + #include "confdefs.h"
3975 +
3976 + #ifdef __sparc__
3977 +  yes
3978 + #endif
3979 +
3980 + EOF
3981 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3982 +  egrep "yes" >/dev/null 2>&1; then
3983 +  rm -rf conftest*
3984 +  echo "$ac_t""yes" 1>&6; HAVE_SPARC=yes
3985 + else
3986 +  rm -rf conftest*
3987 +  echo "$ac_t""no" 1>&6
3988 + fi
3989 + rm -f conftest*
3990 +
3991 +
3992   HAVE_GAS=no
3993   echo $ac_n "checking for GAS .p2align feature""... $ac_c" 1>&6
3994 < echo "configure:3587: checking for GAS .p2align feature" >&5
3994 > echo "configure:3995: checking for GAS .p2align feature" >&5
3995   cat >conftest.S << EOF
3996          .text
3997          .p2align 5
# Line 3593 | Line 4001 | echo "$ac_t""$HAVE_GAS" 1>&6
4001  
4002   HAVE_GCC27=no
4003   echo $ac_n "checking for GCC 2.7 or higher""... $ac_c" 1>&6
4004 < echo "configure:3597: checking for GCC 2.7 or higher" >&5
4004 > echo "configure:4005: checking for GCC 2.7 or higher" >&5
4005   cat > conftest.$ac_ext <<EOF
4006 < #line 3599 "configure"
4006 > #line 4007 "configure"
4007   #include "confdefs.h"
4008   #if __GNUC__ - 1 > 1 || __GNUC_MINOR__ - 1 > 5
4009    yes
# Line 3618 | Line 4026 | if [ "x$HAVE_GCC27" = "xyes" ]; then
4026    CXXFLAGS="$CXXFLAGS -fomit-frame-pointer"
4027   fi
4028  
4029 + WANT_X86_ASSEMBLY=no
4030 + WANT_SPARC_V8_ASSEMBLY=no
4031 + WANT_SPARC_V9_ASSEMBLY=no
4032 + CPUSRCS="cpuemu1.cpp cpuemu2.cpp cpuemu3.cpp cpuemu4.cpp cpuemu5.cpp cpuemu6.cpp cpuemu7.cpp cpuemu8.cpp"
4033   if [ "x$HAVE_GCC27" = "xyes" -a "x$HAVE_I386" = "xyes" ]; then
4034 <  DEFINES="$DEFINES -DREGPARAM=\"__attribute__((regparm(3)))\""
4034 >    DEFINES="$DEFINES -DREGPARAM=\"__attribute__((regparm(3)))\""
4035    if [ "x$HAVE_GAS" = "xyes" ]; then
4036 +    WANT_X86_ASSEMBLY=yes
4037      DEFINES="$DEFINES -DX86_ASSEMBLY"
4038 <    CPUSRCS="$CPUSRCS cpufast.s"
3626 <  else
3627 <    CPUSRCS="$CPUSRCS cpuemu.cpp"
4038 >    CPUSRCS="cpufast1.s cpufast2.s cpufast3.s cpufast4.s cpufast5.s cpufast6.s cpufast7.s cpufast8.s"
4039    fi
4040 < else
4041 <  CPUSRCS="$CPUSRCS cpuemu.cpp"
4040 > elif [ "x$HAVE_GCC27" = "xyes" -a "x$HAVE_SPARC" = "xyes" -a "x$HAVE_GAS" = "xyes" ]; then
4041 >    case "$MACHINE" in
4042 >  SunOS*)
4043 >    echo $ac_n "checking SPARC CPU architecture""... $ac_c" 1>&6
4044 > echo "configure:4045: checking SPARC CPU architecture" >&5
4045 >    SPARC_TYPE=`Solaris/which_sparc`
4046 >    echo "$ac_t""$SPARC_TYPE" 1>&6
4047 >    case "$SPARC_TYPE" in
4048 >    SPARC_V8)
4049 >      WANT_SPARC_V8_ASSEMBLY=yes
4050 >      DEFINES="$DEFINES -DSPARC_V8_ASSEMBLY"
4051 >      CFLAGS="$CFLAGS -Wa,-Av8"
4052 >      CXXFLAGS="$CXXFLAGS -Wa,-Av8"
4053 >      ;;
4054 >    SPARC_V9)
4055 >      WANT_SPARC_V9_ASSEMBLY=yes
4056 >      DEFINES="$DEFINES -DSPARC_V9_ASSEMBLY"
4057 >      CFLAGS="$CFLAGS -Wa,-Av9"
4058 >      CXXFLAGS="$CXXFLAGS -Wa,-Av9"
4059 >      ;;
4060 >    esac
4061 >    ;;
4062 >  esac
4063   fi
4064  
4065 + CPUINCLUDES="-I../uae_cpu"
4066 + CPUSRCS="../uae_cpu/basilisk_glue.cpp ../uae_cpu/memory.cpp ../uae_cpu/newcpu.cpp ../uae_cpu/readcpu.cpp ../uae_cpu/fpp.cpp cpustbl.cpp cpudefs.cpp $CPUSRCS"
4067  
4068  
4069  
# Line 3769 | Line 4203 | s%@oldincludedir@%$oldincludedir%g
4203   s%@infodir@%$infodir%g
4204   s%@mandir@%$mandir%g
4205   s%@CC@%$CC%g
3772 s%@CXX@%$CXX%g
4206   s%@CPP@%$CPP%g
4207 + s%@CXX@%$CXX%g
4208   s%@SET_MAKE@%$SET_MAKE%g
4209   s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4210   s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
# Line 3782 | Line 4216 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
4216   s%@GTK_CONFIG@%$GTK_CONFIG%g
4217   s%@GTK_CFLAGS@%$GTK_CFLAGS%g
4218   s%@GTK_LIBS@%$GTK_LIBS%g
4219 + s%@ESD_CONFIG@%$ESD_CONFIG%g
4220 + s%@ESD_CFLAGS@%$ESD_CFLAGS%g
4221 + s%@ESD_LIBS@%$ESD_LIBS%g
4222   s%@DEFINES@%$DEFINES%g
3786 s%@STATICLIBS@%$STATICLIBS%g
4223   s%@SYSSRCS@%$SYSSRCS%g
4224   s%@CPUINCLUDES@%$CPUINCLUDES%g
4225   s%@CPUSRCS@%$CPUSRCS%g
# Line 4006 | Line 4442 | chmod +x $CONFIG_STATUS
4442   rm -fr confdefs* $ac_clean_files
4443   test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4444  
4445 +
4446 + echo
4447 + echo Basilisk II configuration summary:
4448 + echo
4449 + echo XFree86 DGA support .............. : $WANT_XF86_DGA
4450 + echo fbdev DGA support ................ : $WANT_FBDEV_DGA
4451 + echo ESD sound support ................ : $WANT_ESD
4452 + echo GTK user interface ............... : $WANT_GTK
4453 + echo mon debugger support ............. : $WANT_MON
4454 + echo i386 assembly optimizations ...... : $WANT_X86_ASSEMBLY
4455 + echo SPARC V8 assembly optimizations .. : $WANT_SPARC_V8_ASSEMBLY
4456 + echo SPARC V9 assembly optimizations .. : $WANT_SPARC_V9_ASSEMBLY
4457 + echo
4458   echo "Configuration done. Now type \"make\"."

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines