changeset 1133:4d7e3d711f44

Added GGI autodetect, fixed --enable-debug=* for solaris n stuff.
author atmosfear
date Fri, 15 Jun 2001 16:32:21 +0000
parents 80a0f8aa2360
children 3d8e39fd7d2d
files configure
diffstat 1 files changed, 28 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Fri Jun 15 16:31:19 2001 +0000
+++ b/configure	Fri Jun 15 16:32:21 2001 +0000
@@ -110,6 +110,7 @@
         --enable-dga            build with DGA support [autodetect]
         --enable-svga           build with SVGAlib support [autodetect]
         --enable-sdl            build with SDL render support [autodetect]
+        --enable-ggi            build with GGI render support [autodetect]
         --enable-mga            build with mga_vid support [autodetect, if /dev/mga_vid
                                 is available]
 	--enable-xmga           build with mga_vid X Window support [autodetect,
@@ -291,6 +292,7 @@
 _mga=no
 _gl=no
 _sdl=no
+_ggi=no
 _xv=no
 _vm=no
 _xdpms=no
@@ -316,6 +318,7 @@
 _gllib=
 _sdllib=
 _sdlcflags=
+_ggilib=
 _xvlib=
 _x11lib=
 
@@ -568,6 +571,9 @@
 _png=no
 $_cc $TMPC -o $TMPO -lpng -lz -lm > /dev/null 2>&1 && _png=yes
 
+_ggi=no
+$_cc $TMPC -o $TMPO -lggi > /dev/null 2>&1 && _ggi=yes
+
 _binutils=no
 $_as libac3/downmix/downmix_i386.S -o $TMPO > /dev/null 2>&1 && _binutils=yes
 
@@ -711,7 +717,7 @@
   	_debug='-g'
 	;;
   --enable-debug=*)
-        _debug=`echo -n '-g'; echo $ac_option | cut -d '=' -f 2`
+        _debug=`echo $_echo_n '-g'$_echo_c; echo $ac_option | cut -d '=' -f 2`
 	;;
   --enable-css)
 	_css=yes
@@ -744,6 +750,9 @@
   --enable-sdl)
         _sdl=yes
         ;;
+  --enable-ggi)
+        _ggi=yes
+        ;;
   --enable-mga)
         _mga=yes
         ;;
@@ -833,6 +842,9 @@
   --disable-sdl)
         _sdl=no
         ;;
+  --disable-ggi)
+        _ggi=no
+        ;;
   --disable-mga)
         _mga=no
         ;;
@@ -1029,6 +1041,7 @@
 echo "Checking mga_vid device ... $_mga"
 echo "Checking for xmga ... $_xmga" 
 echo "Checking for SDL ... $_sdl"
+echo "Checking for GGI ... $_ggi"
 echo "Checking for OpenGL ... $_gl"
 echo "Checking for Xv ... $_xv"
 echo "Checking for X11 ... $_x11"
@@ -1108,6 +1121,10 @@
   _sdlcflags=`$_sdlconfig --cflags` 
 fi
 
+if [ $_ggi = yes ]; then
+  _ggilib='-lggi'
+fi
+
 if [ $_dga = yes ]; then
   _dgalib='-lXxf86dga'
 fi
@@ -1203,8 +1220,8 @@
 X11DIR=$_x11libdir
 # OPTFLAGS=-O4 $_profile $_debug -march=$proc -mcpu=$proc -pipe -fomit-frame-pointer -ffast-math
 OPTFLAGS=$CFLAGS
-# LIBS=-L/usr/lib -L/usr/local/lib $_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib
-X_LIBS=$_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib $_vmlib $_svgalib $_libpng $_socklib
+# LIBS=-L/usr/lib -L/usr/local/lib $_x11libdir $_gllib $_sdllib $_ggilib $_dgalib $_x11lib $_xvlib
+X_LIBS=$_x11libdir $_gllib $_sdllib $_ggilib $_dgalib $_x11lib $_xvlib $_vmlib $_svgalib $_libpng $_socklib
 TERMCAP_LIB=$_libtermcap
 XMM_LIBS = $_xmmplibs
 LIRC_LIBS = $_lirclibs
@@ -1293,6 +1310,13 @@
  _sdldef='#undef HAVE_SDL'
 fi
 
+if [ $_ggi = yes ]; then
+ _ggi='#define HAVE_GGI'
+ _vosrc=$_vosrc' vo_ggi.c'
+else
+ _ggi='#undef HAVE_GGI'
+fi
+
 if [ $_x11 = yes ]; then
  _x11='#define HAVE_X11'
  _vosrc=$_vosrc' vo_x11.c'
@@ -1508,6 +1532,7 @@
 $_sdldef
 /* defined for SDLlib with keyrepeat bugs (before 1.2.1) */
 $_sdlbuggy
+$_ggi
 $_3dfx
 $_mga
 $_syncfb