comparison configure @ 19034:9b3a8b48e5b3

Use only one global config.mak file.
author diego
date Wed, 12 Jul 2006 17:28:14 +0000
parents 55990b84e83c
children 6866e768aef8
comparison
equal deleted inserted replaced
19033:9fd34039e6df 19034:9b3a8b48e5b3
15 # autodetection. Yes, this means that compilation may fail and yes, this is not 15 # autodetection. Yes, this means that compilation may fail and yes, this is not
16 # how autoconf-based configure scripts behave. 16 # how autoconf-based configure scripts behave.
17 # 17 #
18 # configure generates a series of configuration files: 18 # configure generates a series of configuration files:
19 # - config.h contains #defines that are used in the C code. 19 # - config.h contains #defines that are used in the C code.
20 # - config.mak libvo/config.mak libao2/config.mak Gui/config.mak 20 # - config.mak is included from the Makefiles.
21 # and libaf/config.mak are included from the Makefiles.
22 # 21 #
23 # If you want to add a new check for $feature, here is a simple skeleton: 22 # If you want to add a new check for $feature, here is a simple skeleton:
24 # 23 #
25 # echocheck "$feature" 24 # echocheck "$feature"
26 # if "$_feature" = auto; then 25 # if "$_feature" = auto; then
7126 _def_gui='#define HAVE_NEW_GUI 1' 7125 _def_gui='#define HAVE_NEW_GUI 1'
7127 _def_gtk2_gui='#undef HAVE_GTK2_GUI' 7126 _def_gtk2_gui='#undef HAVE_GTK2_GUI'
7128 _ld_gui='$(GTKLIB) $(GLIBLIB)' 7127 _ld_gui='$(GTKLIB) $(GLIBLIB)'
7129 fi 7128 fi
7130 7129
7131 echo "Creating Gui/config.mak"
7132 cat > Gui/config.mak << EOF
7133 # -------- Generated by configure -----------
7134
7135 GTKINC = $_inc_gtk
7136 GTKLIBS = $_ld_gtk
7137 GLIBINC = $_inc_glib
7138 GLIBLIBS = $_ld_glib
7139
7140 EOF
7141
7142 else 7130 else
7143 _def_gui='#undef HAVE_NEW_GUI' 7131 _def_gui='#undef HAVE_NEW_GUI'
7144 _def_gtk2_gui='#undef HAVE_GTK2_GUI' 7132 _def_gtk2_gui='#undef HAVE_GTK2_GUI'
7145 fi 7133 fi
7146 # --------------- GUI specific tests end ------------------- 7134 # --------------- GUI specific tests end -------------------
7645 TARGET_BUILTIN_3DNOW = $_mm3dnow 7633 TARGET_BUILTIN_3DNOW = $_mm3dnow
7646 7634
7647 # --- GUI stuff --- 7635 # --- GUI stuff ---
7648 GTKINC = $_inc_gtk 7636 GTKINC = $_inc_gtk
7649 GTKLIB = $_ld_static $_ld_gtk 7637 GTKLIB = $_ld_static $_ld_gtk
7638 GTKLIBS = $_ld_gtk
7650 GLIBLIB = $_ld_static $_ld_glib 7639 GLIBLIB = $_ld_static $_ld_glib
7640 GLIBLIBS = $_ld_glib
7641 GLIBINC = $_inc_glib
7651 GTK_LIBS = $_ld_static $_ld_gui 7642 GTK_LIBS = $_ld_static $_ld_gui
7652 GUI = $_gui 7643 GUI = $_gui
7653 DEBUG = -DDEBUG 7644 DEBUG = -DDEBUG
7645
7646 # --- libvo stuff ---
7647 VO_SRCS = $_vosrc
7648
7649 # --- libao2 stuff ---
7650 AO_SRCS = $_aosrc
7651
7652 # --- libaf stuff ---
7653 AF_SRCS = $_afsrc
7654 7654
7655 EOF 7655 EOF
7656 7656
7657 ############################################################################# 7657 #############################################################################
7658 echo "Creating config.h" 7658 echo "Creating config.h"
8356 #endif /* MPLAYER_CONFIG_H */ 8356 #endif /* MPLAYER_CONFIG_H */
8357 EOF 8357 EOF
8358 8358
8359 ############################################################################# 8359 #############################################################################
8360 8360
8361 echo "Creating libvo/config.mak"
8362 _voobj=`echo $_vosrc | sed -e 's/\.c/\.o/g;s/\.m/\.o/g'`
8363 cat > libvo/config.mak << EOF
8364 include ../config.mak
8365 OPTIONAL_SRCS = $_vosrc
8366 OPTIONAL_OBJS = $_voobj
8367 EOF
8368
8369 #############################################################################
8370
8371 echo "Creating libao2/config.mak"
8372 _aoobj=`echo $_aosrc | sed -e 's/\.c/\.o/g'`
8373 cat > libao2/config.mak << EOF
8374 include ../config.mak
8375 OPTIONAL_SRCS = $_aosrc
8376 OPTIONAL_OBJS = $_aoobj
8377 EOF
8378
8379 #############################################################################
8380
8381 echo "Creating libaf/config.mak"
8382 _afobj=`echo $_afsrc | sed -e 's/\.c/\.o/g'`
8383 cat > libaf/config.mak << EOF
8384 include ../config.mak
8385 OPTIONAL_SRCS = $_afsrc
8386 OPTIONAL_OBJS = $_afobj
8387 EOF
8388
8389 #############################################################################
8390
8391 cat << EOF 8361 cat << EOF
8392 8362
8393 Config files successfully generated by ./configure ! 8363 Config files successfully generated by ./configure !
8394 8364
8395 Install prefix: $_prefix 8365 Install prefix: $_prefix