source: titan/acinclude.m4 @ 38961

Last change on this file since 38961 was 31195, checked in by obi, 8 years ago

add

File size: 32.3 KB
Line 
1AC_DEFUN([TUXBOX_APPS],[
2AM_CONFIG_HEADER(config.h)
3AM_MAINTAINER_MODE
4
5AC_GNU_SOURCE
6AC_SYS_LARGEFILE
7
8AC_ARG_WITH(target,
9        [  --with-target=TARGET    target for compilation [[native,cdk]]],
10        [TARGET="$withval"],[TARGET="native"])
11
12AC_ARG_WITH(targetprefix,
13        [  --with-targetprefix=PATH  prefix relative to target root (only applicable in cdk mode)],
14        [targetprefix="$withval"],[targetprefix="NONE"])
15
16AC_ARG_WITH(debug,
17        [  --without-debug         disable debugging code],
18        [DEBUG="$withval"],[DEBUG="yes"])
19
20if test "$DEBUG" = "yes"; then
21        DEBUG_CFLAGS="-g3 -ggdb"
22        AC_DEFINE(DEBUG,1,[Enable debug messages])
23fi
24
25AC_MSG_CHECKING(target)
26
27if test "$TARGET" = "native"; then
28        AC_MSG_RESULT(native)
29
30        if test "$CFLAGS" = "" -a "$CXXFLAGS" = ""; then
31                CFLAGS="-Wall -O2 -pipe $DEBUG_CFLAGS"
32                CXXFLAGS="-Wall -O2 -pipe $DEBUG_CFLAGS"
33        fi
34        if test "$prefix" = "NONE"; then
35                prefix=/usr/local
36        fi
37        targetprefix=$prefix
38elif test "$TARGET" = "cdk"; then
39        AC_MSG_RESULT(cdk)
40
41        if test "$CC" = "" -a "$CXX" = ""; then
42                CC=powerpc-tuxbox-linux-gnu-gcc CXX=powerpc-tuxbox-linux-gnu-g++
43        fi
44        if test "$CFLAGS" = "" -a "$CXXFLAGS" = ""; then
45                CFLAGS="-Wall -Os -mcpu=823 -pipe $DEBUG_CFLAGS"
46                CXXFLAGS="-Wall -Os -mcpu=823 -pipe $DEBUG_CFLAGS"
47        fi
48        if test "$prefix" = "NONE"; then
49                AC_MSG_ERROR(invalid prefix, you need to specify one in cdk mode)
50        fi
51        if test "$targetprefix" = "NONE"; then
52                targetprefix=""
53        fi
54        if test "$host_alias" = ""; then
55                cross_compiling=yes
56                host_alias=powerpc-tuxbox-linux-gnu
57        fi
58else
59        AC_MSG_RESULT(none)
60        AC_MSG_ERROR([invalid target $TARGET, choose on from native,cdk]);
61fi
62
63AC_CANONICAL_BUILD
64AC_CANONICAL_HOST
65
66check_path () {
67        return $(perl -e "if(\"$1\"=~m#^/usr/(local/)?bin#){print \"0\"}else{print \"1\";}")
68}
69])
70
71AC_DEFUN([TUXBOX_APPS_DIRECTORY_ONE],[
72AC_ARG_WITH($1,[  $6$7 [[PREFIX$4$5]]],[
73        _$2=$withval
74        if test "$TARGET" = "cdk"; then
75                $2=`eval echo "${targetprefix}$withval"`
76        else
77                $2=$withval
78        fi
79        TARGET_$2=${$2}
80],[
81        $2="\${$3}$5"
82        if test "$TARGET" = "cdk"; then
83                _$2=`eval echo "${target$3}$5"`
84        else
85                _$2=`eval echo "${$3}$5"`
86        fi
87        TARGET_$2=$_$2
88])
89
90dnl automake <= 1.6 don't support this
91dnl AC_SUBST($2)
92AC_DEFINE_UNQUOTED($2,"$_$2",$7)
93AC_SUBST(TARGET_$2)
94])
95
96AC_DEFUN([TUXBOX_APPS_DIRECTORY],[
97AC_REQUIRE([TUXBOX_APPS])
98
99if test "$TARGET" = "cdk"; then
100        datadir="\${prefix}/share"
101        sysconfdir="\${prefix}/etc"
102        localstatedir="\${prefix}/var"
103        libdir="\${prefix}/lib"
104        targetdatadir="\${targetprefix}/share"
105        targetsysconfdir="\${targetprefix}/etc"
106        targetlocalstatedir="\${targetprefix}/var"
107        targetlibdir="\${targetprefix}/lib"
108fi
109
110TUXBOX_APPS_DIRECTORY_ONE(configdir,CONFIGDIR,localstatedir,/var,/tuxbox/config,
111        [--with-configdir=PATH   ],[where to find the config files])
112
113TUXBOX_APPS_DIRECTORY_ONE(datadir,DATADIR,datadir,/share,/tuxbox,
114        [--with-datadir=PATH     ],[where to find data])
115
116TUXBOX_APPS_DIRECTORY_ONE(fontdir,FONTDIR,datadir,/share,/fonts,
117        [--with-fontdir=PATH     ],[where to find the fonts])
118
119TUXBOX_APPS_DIRECTORY_ONE(gamesdir,GAMESDIR,localstatedir,/var,/tuxbox/games,
120        [--with-gamesdir=PATH    ],[where games data is stored])
121
122TUXBOX_APPS_DIRECTORY_ONE(plugindir,PLUGINDIR,localstatedir,/var,/tuxbox/plugins,
123        [--with-plugindir=PATH   ],[where to find the plugins])
124
125TUXBOX_APPS_DIRECTORY_ONE(themesdir,THEMESDIR,datadir,/share,/tuxbox/neutrino/themes,
126        [--with-themesdir=PATH     ],[where to find the themes (don't change)])
127
128TUXBOX_APPS_DIRECTORY_ONE(isocodesdir,ISOCODESDIR,datadir,/share,/iso-codes,
129        [--with-isocodesdir=PATH     ],[where to find the iso-codes ])
130])
131
132dnl automake <= 1.6 needs this specifications
133AC_SUBST(CONFIGDIR)
134AC_SUBST(DATADIR)
135AC_SUBST(FONTDIR)
136AC_SUBST(GAMESDIR)
137AC_SUBST(PLUGINDIR)
138AC_SUBST(THEMESDIR)
139AC_SUBST(ISOCODESDIR)
140dnl end workaround
141
142AC_DEFUN([TUXBOX_APPS_ENDIAN],[
143AC_CHECK_HEADERS(endian.h)
144AC_C_BIGENDIAN
145])
146
147AC_DEFUN([TUXBOX_APPS_DRIVER],[
148AC_ARG_WITH(driver,
149        [  --with-driver=PATH      path for driver sources [[NONE]]],
150        [DRIVER="$withval"],[DRIVER=""])
151
152if test "$DRIVER"; then
153        AC_SUBST(DRIVER)
154        CPPFLAGS="$CPPFLAGS -I$DRIVER/include"
155fi
156])
157
158AC_DEFUN([TUXBOX_APPS_DVB],[
159AC_ARG_WITH(dvbincludes,
160        [  --with-dvbincludes=PATH  path for dvb includes [[NONE]]],
161        [DVBINCLUDES="$withval"],[DVBINCLUDES=""])
162
163if test "$DVBINCLUDES"; then
164        CPPFLAGS="$CPPFLAGS -I$DVBINCLUDES"
165fi
166
167AC_CHECK_HEADERS(ost/dmx.h,[
168        DVB_API_VERSION=1
169        AC_MSG_NOTICE([found dvb version 1])
170])
171
172if test -z "$DVB_API_VERSION"; then
173AC_CHECK_HEADERS(linux/dvb/version.h,[
174        AC_LANG_PREPROC_REQUIRE()
175        AC_REQUIRE([AC_PROG_EGREP])
176        AC_LANG_CONFTEST([AC_LANG_SOURCE([[
177#include <linux/dvb/version.h>
178version DVB_API_VERSION
179        ]])])
180        DVB_API_VERSION=`(eval "$ac_cpp conftest.$ac_ext") 2>&AS_MESSAGE_LOG_FD | $EGREP "^version" | sed "s,version\ ,,"`
181        rm -f conftest*
182
183        AC_MSG_NOTICE([found dvb version $DVB_API_VERSION])
184])
185fi
186
187if test "$DVB_API_VERSION"; then
188        AC_DEFINE(HAVE_DVB,1,[Define to 1 if you have the dvb includes])
189        AC_DEFINE_UNQUOTED(HAVE_DVB_API_VERSION,$DVB_API_VERSION,[Define to the version of the dvb api])
190else
191        AC_MSG_ERROR([can't find dvb headers])
192fi
193])
194
195AC_DEFUN([_TUXBOX_APPS_LIB_CONFIG],[
196AC_PATH_PROG($1_CONFIG,$2,no)
197if test "$$1_CONFIG" != "no"; then
198        if test "$TARGET" = "cdk" && check_path "$$1_CONFIG"; then
199                AC_MSG_$3([could not find a suitable version of $2]);
200        else
201                $1_CFLAGS=$($$1_CONFIG --cflags)
202                $1_LIBS=$($$1_CONFIG --libs)
203        fi
204fi
205
206AC_SUBST($1_CFLAGS)
207AC_SUBST($1_LIBS)
208])
209
210AC_DEFUN([TUXBOX_APPS_LIB_CONFIG],[
211_TUXBOX_APPS_LIB_CONFIG($1,$2,ERROR)
212if test "$$1_CONFIG" = "no"; then
213        AC_MSG_ERROR([could not find $2]);
214fi
215])
216
217AC_DEFUN([TUXBOX_APPS_LIB_CONFIG_CHECK],[
218_TUXBOX_APPS_LIB_CONFIG($1,$2,WARN)
219])
220
221AC_DEFUN([TUXBOX_APPS_PKGCONFIG],[
222AC_PATH_PROG(PKG_CONFIG, pkg-config,no)
223if test "$PKG_CONFIG" = "no" ; then
224        AC_MSG_ERROR([could not find pkg-config]);
225fi
226])
227
228AC_DEFUN([_TUXBOX_APPS_LIB_PKGCONFIG],[
229AC_REQUIRE([TUXBOX_APPS_PKGCONFIG])
230AC_MSG_CHECKING(for package $2)
231if PKG_CONFIG_PATH="$PKG_CONFIG_PATH" $PKG_CONFIG --exists "$2" ; then
232        AC_MSG_RESULT(yes)
233        $1_CFLAGS=$(PKG_CONFIG_PATH="$PKG_CONFIG_PATH" $PKG_CONFIG --cflags "$2")
234        $1_LIBS=$(PKG_CONFIG_PATH="$PKG_CONFIG_PATH" $PKG_CONFIG --libs "$2")
235else
236        AC_MSG_RESULT(no)
237fi
238
239AC_SUBST($1_CFLAGS)
240AC_SUBST($1_LIBS)
241])
242
243AC_DEFUN([TUXBOX_APPS_LIB_PKGCONFIG],[
244_TUXBOX_APPS_LIB_PKGCONFIG($1,$2)
245if test -z "$$1_CFLAGS" ; then
246        AC_MSG_ERROR([could not find package $2]);
247fi
248])
249
250AC_DEFUN([TUXBOX_APPS_LIB_PKGCONFIG_CHECK],[
251_TUXBOX_APPS_LIB_PKGCONFIG($1,$2)
252])
253
254AC_DEFUN([_TUXBOX_APPS_LIB_SYMBOL],[
255AC_CHECK_LIB($2,$3,HAVE_$1="yes",HAVE_$1="no")
256if test "$HAVE_$1" = "yes"; then
257        $1_LIBS=-l$2
258fi
259
260AC_SUBST($1_LIBS)
261])
262
263AC_DEFUN([TUXBOX_APPS_LIB_SYMBOL],[
264_TUXBOX_APPS_LIB_SYMBOL($1,$2,$3,ERROR)
265if test "$HAVE_$1" = "no"; then
266        AC_MSG_ERROR([could not find $2]);
267fi
268])
269
270AC_DEFUN([TUXBOX_APPS_LIB_CONFIG_SYMBOL],[
271_TUXBOX_APPS_LIB_SYMBOL($1,$2,$3,WARN)
272])
273
274AC_DEFUN([TUXBOX_APPS_GETTEXT],[
275AC_PATH_PROG(MSGFMT, msgfmt, no)
276AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
277AC_PATH_PROG(XGETTEXT, xgettext, no)
278AC_PATH_PROG(MSGMERGE, msgmerge, no)
279
280AC_MSG_CHECKING([whether NLS is requested])
281AC_ARG_ENABLE(nls,
282        [  --disable-nls           do not use Native Language Support],
283        USE_NLS=$enableval, USE_NLS=yes)
284AC_MSG_RESULT($USE_NLS)
285AC_SUBST(USE_NLS)
286
287if test "$USE_NLS" = "yes"; then
288        AC_CACHE_CHECK([for GNU gettext in libc], gt_cv_func_gnugettext_libc,[
289                AC_TRY_LINK([
290                        #include <libintl.h>
291                        #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
292                        #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
293                        #endif
294                        extern int _nl_msg_cat_cntr;
295                        extern int *_nl_domain_bindings;
296                        ],[
297                        bindtextdomain ("", "");
298                        return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings;
299                        ], gt_cv_func_gnugettext_libc=yes, gt_cv_func_gnugettext_libc=no
300                )]
301        )
302
303        if test "$gt_cv_func_gnugettext_libc" = "yes"; then
304                AC_DEFINE(ENABLE_NLS, 1, [Define to 1 if translation of program messages to the user's native language is requested.])
305                gt_use_preinstalled_gnugettext=yes
306        else
307                USE_NLS=no
308        fi
309fi
310
311if test -f "$srcdir/po/LINGUAS"; then
312        ALL_LINGUAS=$(sed -e "/^#/d" "$srcdir/po/LINGUAS")
313fi
314
315POFILES=
316GMOFILES=
317UPDATEPOFILES=
318DUMMYPOFILES=
319for lang in $ALL_LINGUAS; do
320        POFILES="$POFILES $srcdirpre$lang.po"
321        GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
322        UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
323        DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
324done
325INST_LINGUAS=
326if test -n "$ALL_LINGUAS"; then
327        for presentlang in $ALL_LINGUAS; do
328                useit=no
329                if test -n "$LINGUAS"; then
330                        desiredlanguages="$LINGUAS"
331                else
332                        desiredlanguages="$ALL_LINGUAS"
333                fi
334                for desiredlang in $desiredlanguages; do
335                        case "$desiredlang" in
336                                "$presentlang"*) useit=yes;;
337                        esac
338                done
339                if test $useit = yes; then
340                        INST_LINGUAS="$INST_LINGUAS $presentlang"
341                fi
342        done
343fi
344CATALOGS=
345if test -n "$INST_LINGUAS"; then
346        for lang in $INST_LINGUAS; do
347                CATALOGS="$CATALOGS $lang.gmo"
348        done
349fi
350AC_SUBST(POFILES)
351AC_SUBST(GMOFILES)
352AC_SUBST(UPDATEPOFILES)
353AC_SUBST(DUMMYPOFILES)
354AC_SUBST(CATALOGS)
355])
356
357dnl backward compatiblity
358AC_DEFUN([AC_GNU_SOURCE],
359[AH_VERBATIM([_GNU_SOURCE],
360[/* Enable GNU extensions on systems that have them.  */
361#ifndef _GNU_SOURCE
362# undef _GNU_SOURCE
363#endif])dnl
364AC_BEFORE([$0], [AC_COMPILE_IFELSE])dnl
365AC_BEFORE([$0], [AC_RUN_IFELSE])dnl
366AC_DEFINE([_GNU_SOURCE])
367])
368
369AC_DEFUN([AC_PROG_EGREP],
370[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
371   [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
372    then ac_cv_prog_egrep='grep -E'
373    else ac_cv_prog_egrep='egrep'
374    fi])
375 EGREP=$ac_cv_prog_egrep
376 AC_SUBST([EGREP])
377])
378
379AC_DEFUN([TUXBOX_BOXTYPE],[
380
381AC_ARG_WITH(boxtype,
382        [  --with-boxtype          valid values: generic,dgs,gigablue,dreambox,xtrend,fulan,kathrein,ipbox,topfield,fortis_hdbox,octagon,atevio,adb_box,whitebox,vip,homecast,vuplus,azbox,technomate,coolstream,hypercube,venton,xp1000,odin,ixuss,iqonios,e3hd,ebox5000],
383        [case "${withval}" in
384                generic|dgs|gigablue|dreambox|xtrend|fulan|kathrein|ipbox|topfield|fortis_hdbox|octagon|atevio|adb_box|whitebox|vip|homecast|vuplus|azbox|technomate|coolstream|hypercube|venton|xp1000|odin|ixuss|iqonios|e3hd|ebox5000)
385                        BOXTYPE="$withval"
386                        ;;
387                cu*)
388                        BOXTYPE="dgs"
389                        BOXMODEL="$withval"
390                        ;;
391                gb*)
392                        BOXTYPE="gigablue"
393                        BOXMODEL="$withval"
394                        ;;
395                dm*)
396                        BOXTYPE="dreambox"
397                        BOXMODEL="$withval"
398                        ;;
399                et*)
400                        BOXTYPE="xtrend"
401                        BOXMODEL="$withval"
402                        ;;
403                spa*)
404                        BOXTYPE="fulan"
405                        BOXMODEL="$withval"
406                        ;;
407                uf*)
408                        BOXTYPE="kathrein"
409                        BOXMODEL="$withval"
410                        ;;
411                ip*)
412                        BOXTYPE="ipbox"
413                        BOXMODEL="$withval"
414                        ;;
415                at*)
416                        BOXTYPE="atevio"
417                        BOXMODEL="$withval"
418                        ;;
419                oct*)
420                        BOXTYPE="octagon"
421                        BOXMODEL="$withval"
422                        ;;
423                vu*)
424                        BOXTYPE="vuplus"
425                        BOXMODEL="$withval"
426                        ;;
427                az*)
428                        BOXTYPE="azbox"
429                        BOXMODEL="$withval"
430                        ;;
431                tm*)
432                        BOXTYPE="technomate"
433                        BOXMODEL="$withval"
434                        ;;
435
436                ven*)
437                        BOXTYPE="venton"
438                        BOXMODEL="$withval"
439                        ;;
440
441                ixu*)
442                        BOXTYPE="ixuss"
443                        BOXMODEL="$withval"
444                        ;;
445
446                iqo*)
447                        BOXTYPE="iqonios"
448                        BOXMODEL="$withval"
449                        ;;
450               
451                odi*)
452                        BOXTYPE="odin"
453                        BOXMODEL="$withval"
454                        ;;
455
456                *)
457                        AC_MSG_ERROR([unsupported value $withval for --with-boxtype])
458                        ;;
459        esac], [BOXTYPE="generic"])
460
461AC_ARG_WITH(boxmodel,
462        [  --with-boxmodel      valid for dgs: cuberevo,cuberevo_mini,cuberevo_mini2,cuberevo_mini_fta,cuberevo_250hd,cuberevo_2000hd,cuberevo_9500hd
463                                valid for gigablue: gbsolo,gb800se,gb800ue,gb800seplus,gb800ueplus,gbquad
464                                valid for dreambox: dm500, dm500plus, dm600pvr, dm56x0, dm7000, dm7020, dm7025, dm500hd, dm7020hd, dm8000, dm800, dm800se
465                                valid for xtrend: et4x00,et5x00,et6x00,et9x00
466                                valid for fulan: spark, spark7162
467                                valid for kathrein: ufs910, ufs922, ufs912, ufs913, ufc960
468                                valid for ipbox: ipbox55, ipbox99, ipbox9900
469                                valid for atevio: atevio700,atevio7000,atevio7500,atevio7600
470                                valid for octagon: octagon1008
471                                valid for vuplus: vusolo,vuduo,vuuno,vuultimo
472                                valid for azbox: azboxhd,azboxme,azboxminime
473                                valid for technomate: tmtwin,tm2t,tmsingle,tmnano
474                                valid for venton: ventonhde,ventonhdx,inihde,inihdp
475                                valid for ixuss: ixusszero,ixussone
476                                valid for iqonios: iqonios100hd,iqonios300hd,mediabox,optimussos1,optimussos2
477                                valid for odin: odinm6,odinm7,odinm9],
478        [case "${withval}" in
479                cuberevo|cuberevo_mini|cuberevo_mini2|cuberevo_mini_fta|cuberevo_250hd|cuberevo_2000hd|cuberevo_9500hd)
480                        if test "$BOXTYPE" = "dgs"; then
481                                BOXMODEL="$withval"
482                        else
483                                AC_MSG_ERROR([unknown model $withval for boxtype $BOXTYPE])
484                        fi
485                        ;;
486                gb800solo|gb800se|gb800ue|gb800seplus|gb800ueplus|gbquad)
487                        if test "$BOXTYPE" = "gigablue"; then
488                                BOXMODEL="$withval"
489                        else
490                                AC_MSG_ERROR([unknown model $withval for boxtype $BOXTYPE])
491                        fi
492                        ;;
493                dm500|dm500plus|dm600pvr|dm56x0|dm7000|dm7020|dm7025|dm500hd|dm7020hd|dm8000|dm800|dm800se)
494                        if test "$BOXTYPE" = "dreambox"; then
495                                BOXMODEL="$withval"
496                        else
497                                AC_MSG_ERROR([unknown model $withval for boxtype $BOXTYPE])
498                        fi
499                        ;;
500                et4x00|et5x00|et6x00|et9x00)
501                        if test "$BOXTYPE" = "xtrend"; then
502                                BOXMODEL="$withval"
503                        else
504                                AC_MSG_ERROR([unknown model $withval for boxtype $BOXTYPE])
505                        fi
506                        ;;
507                spark|spark7162)
508                        if test "$BOXTYPE" = "fulan"; then
509                                BOXMODEL="$withval"
510                        else
511                                AC_MSG_ERROR([unknown model $withval for boxtype $BOXTYPE])
512                        fi
513                        ;;
514                ufs910|ufs912|ufs913|ufs922|ufc960)
515                        if test "$BOXTYPE" = "kathrein"; then
516                                BOXMODEL="$withval"
517                        else
518                                AC_MSG_ERROR([unknown model $withval for boxtype $BOXTYPE])
519                        fi
520                        ;;
521                ipbox55|ipbox99|ipbox9900)
522                        if test "$BOXTYPE" = "ipbox"; then
523                                BOXMODEL="$withval"
524                        else
525                                AC_MSG_ERROR([unknown model $withval for boxtype $BOXTYPE])
526                        fi
527                        ;;
528                atevio700|atevio7000|atevio7500|atevio7600)
529                        if test "$BOXTYPE" = "atevio"; then
530                                BOXMODEL="$withval"
531                        else
532                                AC_MSG_ERROR([unknown model $withval for boxtype $BOXTYPE])
533                        fi
534                        ;;
535                octagon1008)
536                        if test "$BOXTYPE" = "octagon"; then
537                                BOXMODEL="$withval"
538                        else
539                                AC_MSG_ERROR([unknown model $withval for boxtype $BOXTYPE])
540                        fi
541                        ;;
542                vusolo2|vuduo2|vusolo|vuduo|vuuno|vuultimo)
543                        if test "$BOXTYPE" = "vuplus"; then
544                                BOXMODEL="$withval"
545                        else
546                                AC_MSG_ERROR([unknown model $withval for boxtype $BOXTYPE])
547                        fi
548                        ;;
549                azboxhd|azboxme|azboxminime)
550                        if test "$BOXTYPE" = "azbox"; then
551                                BOXMODEL="$withval"
552                        else
553                                AC_MSG_ERROR([unknown model $withval for boxtype $BOXTYPE])
554                        fi
555                        ;;
556                tmtwin|tm2t|tmsingle|tmnano)
557                        if test "$BOXTYPE" = "technomate"; then
558                                BOXMODEL="$withval"
559                        else
560                                AC_MSG_ERROR([unknown model $withval for boxtype $BOXTYPE])
561                        fi
562                        ;;
563                coolstream)
564                        if test "$BOXTYPE" = "coolstream"; then
565                                BOXMODEL="$withval"
566                        else
567                                AC_MSG_ERROR([unknown model $withval for boxtype $BOXTYPE])
568                        fi
569                        ;;
570                hypercube|su980)
571                        if test "$BOXTYPE" = "hypercube"; then
572                                BOXMODEL="$withval"
573                        else
574                                AC_MSG_ERROR([unknown model $withval for boxtype $BOXTYPE])
575                        fi
576                        ;;
577                ventonhde|ventonhdx|inihde|inihdp)
578                        if test "$BOXTYPE" = "venton"; then
579                                BOXMODEL="$withval"
580                        else
581                                AC_MSG_ERROR([unknown model $withval for boxtype $BOXTYPE])
582                        fi
583                        ;;
584                ixusszero|ixussone)
585                        if test "$BOXTYPE" = "ixuss"; then
586                                BOXMODEL="$withval"
587                        else
588                                AC_MSG_ERROR([unknown model $withval for boxtype $BOXTYPE])
589                        fi
590                        ;;
591                iqonios100hd|iqonios300hd|mediabox|optimussos1|optimussos2)
592                        if test "$BOXTYPE" = "iqonios"; then
593                                BOXMODEL="$withval"
594                        else
595                                AC_MSG_ERROR([unknown model $withval for boxtype $BOXTYPE])
596                        fi
597                        ;;
598                odinm6|odinm7|odinm9)
599                        if test "$BOXTYPE" = "odin"; then
600                                BOXMODEL="$withval"
601                        else
602                                AC_MSG_ERROR([unknown model $withval for boxtype $BOXTYPE])
603                        fi
604                        ;;
605                xp1000)
606                        if test "$BOXTYPE" = "xp1000"; then
607                                BOXMODEL="$withval"
608                        else
609                                AC_MSG_ERROR([unknown model $withval for boxtype $BOXTYPE])
610                        fi
611                        ;;
612                e3hd)
613                        if test "$BOXTYPE" = "e3hd"; then
614                                BOXMODEL="$withval"
615                        else
616                                AC_MSG_ERROR([unknown model $withval for boxtype $BOXTYPE])
617                        fi
618                        ;;
619                ebox5000)
620                        if test "$BOXTYPE" = "ebox5000"; then
621                                BOXMODEL="$withval"
622                        else
623                                AC_MSG_ERROR([unknown model $withval for boxtype $BOXTYPE])
624                        fi
625                        ;;
626                qemu*)
627                        if test "$BOXTYPE" = "generic"; then
628                                BOXMODEL="$withval"
629                        else
630                                AC_MSG_ERROR([unknown model $withval for boxtype $BOXTYPE])
631                        fi
632                        ;;
633                *)
634                        AC_MSG_ERROR([unsupported value $withval for --with-boxmodel])
635                        ;;
636        esac],
637        [if test "$BOXTYPE" = "dgs" -o "$BOXTYPE" = "gigablue" -o "$BOXTYPE" = "dreambox" -o "$BOXTYPE" = "xtrend" -o "$BOXTYPE" = "fulan" -o "$BOXTYPE" = "kathrein" -o "$BOXTYPE" = "ipbox" -o "$BOXTYPE" = "atevio" -o "$BOXTYPE" = "octagon" -o "$BOXTYPE" = "vuplus" -o "$BOXTYPE" = "technomate" -o "$BOXTYPE" = "venton" -o "$BOXTYPE" = "ixuss" -o "$BOXTYPE" = "iqonios" -o "$BOXTYPE" = "odin" && test -z "$BOXMODEL"; then
638                AC_MSG_ERROR([this boxtype $BOXTYPE needs --with-boxmodel])
639        fi])
640
641AC_SUBST(BOXTYPE)
642AC_SUBST(BOXMODEL)
643
644AM_CONDITIONAL(BOXTYPE_GENERIC, test "$BOXTYPE" = "generic")
645AM_CONDITIONAL(BOXTYPE_DGS, test "$BOXTYPE" = "dgs")
646AM_CONDITIONAL(BOXTYPE_GIGABLUE, test "$BOXTYPE" = "gigablue")
647AM_CONDITIONAL(BOXTYPE_DREAMBOX, test "$BOXTYPE" = "dreambox")
648AM_CONDITIONAL(BOXTYPE_XTREND, test "$BOXTYPE" = "xtrend")
649AM_CONDITIONAL(BOXTYPE_FULAN, test "$BOXTYPE" = "fulan")
650AM_CONDITIONAL(BOXTYPE_KATHREIN, test "$BOXTYPE" = "kathrein")
651AM_CONDITIONAL(BOXTYPE_IPBOX, test "$BOXTYPE" = "ipbox")
652AM_CONDITIONAL(BOXTYPE_TOPFIELD, test "$BOXTYPE" = "toptfield")
653AM_CONDITIONAL(BOXTYPE_FORTIS_HDBOX, test "$BOXTYPE" = "fortis_hdbox")
654AM_CONDITIONAL(BOXTYPE_OCTAGON, test "$BOXTYPE" = "octagon")
655AM_CONDITIONAL(BOXTYPE_ATEVIO, test "$BOXTYPE" = "atevio")
656AM_CONDITIONAL(BOXTYPE_ADB_BOX, test "$BOXTYPE" = "adb_box")
657AM_CONDITIONAL(BOXTYPE_WHITEBOX, test "$BOXTYPE" = "whitebox")
658AM_CONDITIONAL(BOXTYPE_VIP, test "$BOXTYPE" = "vip")
659AM_CONDITIONAL(BOXTYPE_HOMECAST, test "$BOXTYPE" = "homecast")
660AM_CONDITIONAL(BOXTYPE_VUPLUS, test "$BOXTYPE" = "vuplus")
661AM_CONDITIONAL(BOXTYPE_AZBOX, test "$BOXTYPE" = "azbox")
662AM_CONDITIONAL(BOXTYPE_TECHNOMATE, test "$BOXTYPE" = "technomate")
663AM_CONDITIONAL(BOXTYPE_IPBOX, test "$BOXTYPE" = "ipbox")
664AM_CONDITIONAL(BOXTYPE_KATHREIN, test "$BOXTYPE" = "kathrein")
665AM_CONDITIONAL(BOXTYPE_COOLSTREAM, test "$BOXTYPE" = "coolstream")
666AM_CONDITIONAL(BOXTYPE_HYPERCUBE, test "$BOXTYPE" = "hypercube")
667AM_CONDITIONAL(BOXTYPE_VENTON, test "$BOXTYPE" = "venton")
668AM_CONDITIONAL(BOXTYPE_IXUSS, test "$BOXTYPE" = "ixuss")
669AM_CONDITIONAL(BOXTYPE_IQONIOS, test "$BOXTYPE" = "iqonios")
670AM_CONDITIONAL(BOXTYPE_ODIN, test "$BOXTYPE" = "odin")
671AM_CONDITIONAL(BOXTYPE_XP1000, test "$BOXTYPE" = "xp1000")
672AM_CONDITIONAL(BOXTYPE_E3HD, test "$BOXTYPE" = "e3hd")
673AM_CONDITIONAL(BOXTYPE_EBOX5000, test "$BOXTYPE" = "ebox5000")
674
675AM_CONDITIONAL(BOXMODEL_CUBEREVO, test "$BOXMODEL" = "cuberevo")
676AM_CONDITIONAL(BOXMODEL_CUBEREVO_MINI, test "$BOXMODEL" = "cuberevo_mini")
677AM_CONDITIONAL(BOXMODEL_CUBEREVO_MINI2, test "$BOXMODEL" = "cuberevo_mini2")
678AM_CONDITIONAL(BOXMODEL_CUBEREVO_MINI_FTA, test "$BOXMODEL" = "cuberevo_mini_fta")
679AM_CONDITIONAL(BOXMODEL_CUBEREVO_250HD, test "$BOXMODEL" = "cuberevo_250hd")
680AM_CONDITIONAL(BOXMODEL_CUBEREVO_2000HD, test "$BOXMODEL" = "cuberevo_2000hd")
681AM_CONDITIONAL(BOXMODEL_CUBEREVO_9500HD, test "$BOXMODEL" = "cuberevo_9500HD")
682
683AM_CONDITIONAL(BOXMODEL_GB800SOLO,test "$BOXMODEL" = "gb800solo")
684AM_CONDITIONAL(BOXMODEL_GB800SE,test "$BOXMODEL" = "gb800se")
685AM_CONDITIONAL(BOXMODEL_GB800UE,test "$BOXMODEL" = "gb800ue")
686AM_CONDITIONAL(BOXMODEL_GB800SEPLUS,test "$BOXMODEL" = "gb800seplus")
687AM_CONDITIONAL(BOXMODEL_GB800UEPLUS,test "$BOXMODEL" = "gb800ueplus")
688AM_CONDITIONAL(BOXMODEL_GBQUAD,test "$BOXMODEL" = "gbquad")
689
690AM_CONDITIONAL(BOXMODEL_DM500,test "$BOXMODEL" = "dm500")
691AM_CONDITIONAL(BOXMODEL_DM500PLUS,test "$BOXMODEL" = "dm500plus")
692AM_CONDITIONAL(BOXMODEL_DM600PVR,test "$BOXMODEL" = "dm600pvr")
693AM_CONDITIONAL(BOXMODEL_DM56x0,test "$BOXMODEL" = "dm56x0")
694AM_CONDITIONAL(BOXMODEL_DM7000,test "$BOXMODEL" = "dm7000" -o "$BOXMODEL" = "dm7020" -o "$BOXMODEL" = "dm7025")
695
696AM_CONDITIONAL(BOXMODEL_DM500HD,test "$BOXMODEL" = "dm500hd")
697AM_CONDITIONAL(BOXMODEL_DM800HD,test "$BOXMODEL" = "dm800")
698AM_CONDITIONAL(BOXMODEL_DM800SE,test "$BOXMODEL" = "dm800se")
699AM_CONDITIONAL(BOXMODEL_DM7000HD,test "$BOXMODEL" = "dm7020hd")
700AM_CONDITIONAL(BOXMODEL_DM8000HD,test "$BOXMODEL" = "dm8000")
701
702AM_CONDITIONAL(BOXMODEL_ET4X00,test "$BOXMODEL" = "et4x00")
703AM_CONDITIONAL(BOXMODEL_ET5X00,test "$BOXMODEL" = "et5x00")
704AM_CONDITIONAL(BOXMODEL_ET6X00,test "$BOXMODEL" = "et6x00")
705AM_CONDITIONAL(BOXMODEL_ET9X00,test "$BOXMODEL" = "et9x00")
706
707AM_CONDITIONAL(BOXMODEL_SPARK,test "$BOXMODEL" = "spark")
708AM_CONDITIONAL(BOXMODEL_SPARK7162,test "$BOXMODEL" = "spark7162")
709
710AM_CONDITIONAL(BOXMODEL_UFS910, test "$BOXMODEL" = "ufs910")
711AM_CONDITIONAL(BOXMODEL_UFS912, test "$BOXMODEL" = "ufs912")
712AM_CONDITIONAL(BOXMODEL_UFS913, test "$BOXMODEL" = "ufs913")
713AM_CONDITIONAL(BOXMODEL_UFS922, test "$BOXMODEL" = "ufs922")
714AM_CONDITIONAL(BOXMODEL_UFC960, test "$BOXMODEL" = "ufc960")
715
716AM_CONDITIONAL(BOXMODEL_IPBOX55, test "$BOXMODEL" = "ipbox55")
717AM_CONDITIONAL(BOXMODEL_IPBOX99, test "$BOXMODEL" = "ipbox99")
718AM_CONDITIONAL(BOXMODEL_IPBOX9900, test "$BOXMODEL" = "ipbox9900")
719
720AM_CONDITIONAL(BOXMODEL_ATEVIO700, test "$BOXMODEL" = "atevio700")
721AM_CONDITIONAL(BOXMODEL_ATEVIO7000, test "$BOXMODEL" = "atevio7000")
722AM_CONDITIONAL(BOXMODEL_ATEVIO7500, test "$BOXMODEL" = "atevio7500")
723AM_CONDITIONAL(BOXMODEL_ATEVIO7600, test "$BOXMODEL" = "atevio7600")
724
725AM_CONDITIONAL(BOXMODEL_OCTAGON_1008, test "$BOXMODEL" = "octagon1008")
726
727AM_CONDITIONAL(BOXMODEL_VUSOLO2, test "$BOXMODEL" = "vusolo2")
728AM_CONDITIONAL(BOXMODEL_VUDUO2, test "$BOXMODEL" = "vuduo2")
729AM_CONDITIONAL(BOXMODEL_VUSOLO, test "$BOXMODEL" = "vusolo")
730AM_CONDITIONAL(BOXMODEL_VUDUO, test "$BOXMODEL" = "vuduo")
731AM_CONDITIONAL(BOXMODEL_VUUNO, test "$BOXMODEL" = "vuuno")
732AM_CONDITIONAL(BOXMODEL_VUULTIMO, test "$BOXMODEL" = "vuultimo")
733
734AM_CONDITIONAL(BOXMODEL_AZBOXHD, test "$BOXMODEL" = "azboxhd")
735AM_CONDITIONAL(BOXMODEL_AZBOXME, test "$BOXMODEL" = "azboxme")
736AM_CONDITIONAL(BOXMODEL_AZBOXMINIME, test "$BOXMODEL" = "azboxminime")
737
738AM_CONDITIONAL(BOXMODEL_TMTWIN, test "$BOXMODEL" = "tmtwin")
739AM_CONDITIONAL(BOXMODEL_TM2T, test "$BOXMODEL" = "tm2t")
740AM_CONDITIONAL(BOXMODEL_TMSINGLE, test "$BOXMODEL" = "tmsingle")
741AM_CONDITIONAL(BOXMODEL_TMNANO, test "$BOXMODEL" = "tmnano")
742
743AM_CONDITIONAL(BOXMODEL_VENTONHDE, test "$BOXMODEL" = "ventonhde")
744AM_CONDITIONAL(BOXMODEL_VENTONHDX, test "$BOXMODEL" = "ventonhdx")
745AM_CONDITIONAL(BOXMODEL_INIHDE, test "$BOXMODEL" = "inihde")
746AM_CONDITIONAL(BOXMODEL_INIHDP, test "$BOXMODEL" = "inihdp")
747
748AM_CONDITIONAL(BOXMODEL_IXUSSZERO, test "$BOXMODEL" = "ixusszero")
749AM_CONDITIONAL(BOXMODEL_IXUSSONE, test "$BOXMODEL" = "ixussone")
750
751AM_CONDITIONAL(BOXMODEL_IQONIOS100HD, test "$BOXMODEL" = "iqonios100hd")
752AM_CONDITIONAL(BOXMODEL_IQONIOS300HD, test "$BOXMODEL" = "iqonios300hd")
753AM_CONDITIONAL(BOXMODEL_MEDIABOX, test "$BOXMODEL" = "mediabox")
754AM_CONDITIONAL(BOXMODEL_OPTIMUSSOS1, test "$BOXMODEL" = "optimussos1")
755AM_CONDITIONAL(BOXMODEL_OPTIMUSSOS2, test "$BOXMODEL" = "optimussos2")
756
757AM_CONDITIONAL(BOXMODEL_ODINM6, test "$BOXMODEL" = "odinm6")
758AM_CONDITIONAL(BOXMODEL_ODINM7, test "$BOXMODEL" = "odinm7")
759AM_CONDITIONAL(BOXMODEL_ODINM9, test "$BOXMODEL" = "odinm9")
760
761AM_CONDITIONAL(BOXMODEL_E3HD,test "$BOXMODEL" = "e3hd")
762
763if test "$BOXTYPE" = "generic"; then
764        AC_DEFINE(PLATFORM_GENERIC, 1, [building for generic])
765elif test "$BOXTYPE" = "dgs"; then
766        AC_DEFINE(PLATFORM_DGS, 1, [building for dgs])
767elif test "$BOXTYPE" = "gigablue"; then
768        AC_DEFINE(PLATFORM_GIGABLUE, 1, [building for gigablue])
769elif test "$BOXTYPE" = "dreambox"; then
770        AC_DEFINE(PLATFORM_DREAMBOX, 1, [building for dreambox])
771elif test "$BOXTYPE" = "xtrend"; then
772        AC_DEFINE(PLATFORM_XTREND, 1, [building for xtrend])
773elif test "$BOXTYPE" = "fulan"; then
774        AC_DEFINE(PLATFORM_FULAN, 1, [building for fulan])
775elif test "$BOXTYPE" = "kathrein"; then
776        AC_DEFINE(PLATFORM_KATHREIN, 1, [building for kathrein])
777elif test "$BOXTYPE" = "ipbox"; then
778        AC_DEFINE(PLATFORM_IPBOX, 1, [building for ipbox])
779elif test "$BOXTYPE" = "topfield"; then
780        AC_DEFINE(PLATFORM_TF7700, 1, [building for topfield])
781elif test "$BOXTYPE" = "fortis_hdbox"; then
782        AC_DEFINE(PLATFORM_FORTIS_HDBOX, 1, [building for fortis_hdbox])
783elif test "$BOXTYPE" = "octagon"; then
784        AC_DEFINE(PLATFORM_OCTAGON, 1, [building for octagon])
785elif test "$BOXTYPE" = "atevio"; then
786        AC_DEFINE(PLATFORM_ATEVIO, 1, [building for atevio])
787elif test "$BOXTYPE" = "adb_box"; then
788        AC_DEFINE(PLATFORM_ADB_BOX, 1, [building for adb_box])
789elif test "$BOXTYPE" = "whitebox"; then
790        AC_DEFINE(PLATFORM_WHITEBOX, 1, [building for whitebox])
791elif test "$BOXTYPE" = "vip"; then
792        AC_DEFINE(PLATFORM_VIP, 1, [building for vip])
793elif test "$BOXTYPE" = "homecast"; then
794        AC_DEFINE(PLATFORM_HOMECAST, 1, [building for homecast])
795elif test "$BOXTYPE" = "vuplus"; then
796        AC_DEFINE(PLATFORM_VUPLUS, 1, [building for vuplus])
797elif test "$BOXTYPE" = "azbox"; then
798        AC_DEFINE(PLATFORM_AZBOX, 1, [building for azbox])
799elif test "$BOXTYPE" = "technomate"; then
800        AC_DEFINE(PLATFORM_TECHNOMATE, 1, [building for technomate])
801elif test "$BOXTYPE" = "coolstream"; then
802        AC_DEFINE(PLATFORM_COOLSTREAM, 1, [building for coolstream])
803elif test "$BOXTYPE" = "hypercube"; then
804        AC_DEFINE(PLATFORM_HYPERCUBE, 1, [building for hypercube])
805elif test "$BOXTYPE" = "venton"; then
806        AC_DEFINE(PLATFORM_VENTON, 1, [building for venton])
807elif test "$BOXTYPE" = "ixuss"; then
808        AC_DEFINE(PLATFORM_IXUSS, 1, [building for ixuss])
809elif test "$BOXTYPE" = "iqonios"; then
810        AC_DEFINE(PLATFORM_IQONIOS, 1, [building for iqonios])
811elif test "$BOXTYPE" = "odin"; then
812        AC_DEFINE(PLATFORM_ODIN, 1, [building for odin])
813elif test "$BOXTYPE" = "xp1000"; then
814        AC_DEFINE(PLATFORM_XP1000, 1, [building for xp1000])
815elif test "$BOXTYPE" = "e3hd"; then
816        AC_DEFINE(PLATFORM_E3HD, 1, [building for e3hd])
817elif test "$BOXTYPE" = "ebox5000"; then
818        AC_DEFINE(PLATFORM_EBOX5000, 1, [building for ebox5000])
819fi
820
821if test "$BOXMODEL" = "cuberevo"; then
822        AC_DEFINE(PLATFORM_CUBEREVO, 1, [building for cuberevo])
823elif test "$BOXMODEL" = "cuberevo_mini"; then
824        AC_DEFINE(PLATFORM_CUBEREVO_MINI, 1, [building for cuberevo_mini])
825elif test "$BOXMODEL" = "cuberevo_mini2"; then
826        AC_DEFINE(PLATFORM_CUBEREVO_MINI2, 1, [building for cuberevo_mini2])
827elif test "$BOXMODEL" = "cuberevo_mini_fta"; then
828        AC_DEFINE(PLATFORM_CUBEREVO_MINI_FTA, 1, [building for cuberevo_mini_fta])
829elif test "$BOXMODEL" = "cuberevo_250hd"; then
830        AC_DEFINE(PLATFORM_CUBEREVO_250HD, 1, [building for cuberevo_250hd])
831elif test "$BOXMODEL" = "cuberevo_2000hd"; then
832        AC_DEFINE(PLATFORM_CUBEREVO_2000HD, 1, [building for cuberevo_2000hd])
833elif test "$BOXMODEL" = "cuberevo_9500hd"; then
834        AC_DEFINE(PLATFORM_CUBEREVO_9500HD, 1, [building for cuberevo_9500hd])
835
836elif test "$BOXMODEL" = "gb800solo"; then
837        AC_DEFINE(BOXMODEL_GB800SOLO, 1, [building for gigablue 800solo])
838elif test "$BOXMODEL" = "gb800se"; then
839        AC_DEFINE(BOXMODEL_GB800SE, 1, [building for gigablue 800se])
840elif test "$BOXMODEL" = "gb800ue"; then
841        AC_DEFINE(BOXMODEL_GB800UE, 1, [building for gigablue 800ue])
842elif test "$BOXMODEL" = "gb800seplus"; then
843        AC_DEFINE(BOXMODEL_GB800SEPLUS, 1, [building for gigablue 800seplus])
844elif test "$BOXMODEL" = "gb800ueplus"; then
845        AC_DEFINE(BOXMODEL_GB800UEPLUS, 1, [building for gigablue 800ueplus])
846elif test "$BOXMODEL" = "gbquad"; then
847        AC_DEFINE(BOXMODEL_GBQUAD, 1, [building for gigablue quad])
848
849elif test "$BOXMODEL" = "dm500"; then
850        AC_DEFINE(BOXMODEL_DM500, 1, [building for dreambox 500])
851elif test "$BOXMODEL" = "dm500plus"; then
852        AC_DEFINE(BOXMODEL_DM500PLUS, 1, [building for dreambox 500plus])
853elif test "$BOXMODEL" = "dm600pvr"; then
854        AC_DEFINE(BOXMODEL_DM600PVR, 1, [building for dreambox 600pvr])
855elif test "$BOXMODEL" = "dm56x0"; then
856        AC_DEFINE(BOXMODEL_DM56x0, 1, [building for dreambox 56x0])
857elif test "$BOXMODEL" = "dm7000" -o "$BOXMODEL" = "dm7020" -o "$BOXMODEL" = "dm7025"; then
858        AC_DEFINE(BOXMODEL_DM7000, 1, [building for dreambox 70xx])
859elif test "$BOXMODEL" = "dm500hd"; then
860        AC_DEFINE(BOXMODEL_DM500HD, 1, [building for dreambox 500hd])
861elif test "$BOXMODEL" = "dm7020hd"; then
862        AC_DEFINE(BOXMODEL_DM7000HD, 1, [building for dreambox 7020hd])
863elif test "$BOXMODEL" = "dm8000"; then
864        AC_DEFINE(BOXMODEL_DM8000HD, 1, [building for dreambox 8000])
865elif test "$BOXMODEL" = "dm800"; then
866        AC_DEFINE(BOXMODEL_DM800HD, 1, [building for dreambox 800])
867elif test "$BOXMODEL" = "dm800se"; then
868        AC_DEFINE(BOXMODEL_DM800SE, 1, [building for dreambox 800se])
869
870elif test "$BOXMODEL" = "et4x00"; then
871        AC_DEFINE(BOXMODEL_ET4X00, 1, [building for xtrend et4x00])
872elif test "$BOXMODEL" = "et5x00"; then
873        AC_DEFINE(BOXMODEL_ET5X00, 1, [building for xtrend et5x00])
874elif test "$BOXMODEL" = "et6x00"; then
875        AC_DEFINE(BOXMODEL_ET6X00, 1, [building for xtrend et6x00])
876elif test "$BOXMODEL" = "et9x00"; then
877        AC_DEFINE(BOXMODEL_ET9X00, 1, [building for xtrend et9x00])
878
879elif test "$BOXMODEL" = "spark"; then
880        AC_DEFINE(PLATFORM_SPARK, 1, [building for spark 7111])
881elif test "$BOXMODEL" = "spark7162"; then
882        AC_DEFINE(PLATFORM_SPARK7162, 1, [building for spark 7162])
883
884elif test "$BOXMODEL" = "ufs910"; then
885        AC_DEFINE(PLATFORM_UFS910, 1, [building for ufs910])
886elif test "$BOXMODEL" = "ufs912"; then
887        AC_DEFINE(PLATFORM_UFS912, 1, [building for ufs912])
888elif test "$BOXMODEL" = "ufs913"; then
889        AC_DEFINE(PLATFORM_UFS913, 1, [building for ufs913])
890elif test "$BOXMODEL" = "ufs922"; then
891        AC_DEFINE(PLATFORM_UFS922, 1, [building for ufs922])
892elif test "$BOXMODEL" = "ufc960"; then
893        AC_DEFINE(PLATFORM_UFC960, 1, [building for ufc960])
894
895elif test "$BOXMODEL" = "ipbox55"; then
896        AC_DEFINE(PLATFORM_IPBOX55, 1, [building for ipbox55])
897elif test "$BOXMODEL" = "ipbox99"; then
898        AC_DEFINE(PLATFORM_IPBOX99, 1, [building for ipbox99])
899elif test "$BOXMODEL" = "ipbox9900"; then
900        AC_DEFINE(PLATFORM_IPBOX9900, 1, [building for ipbox9900])
901
902elif test "$BOXMODEL" = "atevio700"; then
903        AC_DEFINE(BOXMODEL_ATEVIO700, 1, [building for atevio700])
904elif test "$BOXMODEL" = "atevio7000"; then
905        AC_DEFINE(BOXMODEL_ATEVIO7000, 1, [building for atevio7000])
906elif test "$BOXMODEL" = "atevio7500"; then
907        AC_DEFINE(BOXMODEL_ATEVIO7500, 1, [building for atevio7500])
908elif test "$BOXMODEL" = "atevio7600"; then
909        AC_DEFINE(BOXMODEL_ATEVIO7600, 1, [building for atevio7600])
910
911elif test "$BOXMODEL" = "octagon1008"; then
912        AC_DEFINE(BOXMODEL_OCTAGON_1008, 1, [building for octagon1008])
913
914elif test "$BOXMODEL" = "vusolo2"; then
915        AC_DEFINE(BOXMODEL_VUSOLO2, 1, [vuplus solo2])
916elif test "$BOXMODEL" = "vuduo2"; then
917        AC_DEFINE(BOXMODEL_VUDUO2, 1, [vuplus duo2])
918elif test "$BOXMODEL" = "vusolo"; then
919        AC_DEFINE(BOXMODEL_VUSOLO, 1, [building for vuplus solo])
920elif test "$BOXMODEL" = "vuduo"; then
921        AC_DEFINE(BOXMODEL_VUDUO, 1, [building for vuplus duo])
922elif test "$BOXMODEL" = "vuuno"; then
923        AC_DEFINE(BOXMODEL_VUUNO, 1, [building for vuplus uno])
924elif test "$BOXMODEL" = "vuultimo"; then
925        AC_DEFINE(BOXMODEL_VUULTIMO, 1, [building for vuplus ultimo])
926
927elif test "$BOXMODEL" = "azboxhd"; then
928        AC_DEFINE(BOXMODEL_AZBOXHD, 1, [building for azbox hd])
929elif test "$BOXMODEL" = "azboxme"; then
930        AC_DEFINE(BOXMODEL_AZBOXME, 1, [building for azbox me])
931elif test "$BOXMODEL" = "azboxminime"; then
932        AC_DEFINE(BOXMODEL_AZBOXMINIME, 1, [building for azbox minime])
933
934elif test "$BOXMODEL" = "tmtwin"; then
935        AC_DEFINE(BOXMODEL_TMTWIN, 1, [building for technomate twin])
936elif test "$BOXMODEL" = "tm2t"; then
937        AC_DEFINE(BOXMODEL_TM2T, 1, [building for technomate 2t])
938elif test "$BOXMODEL" = "tmsingle"; then
939        AC_DEFINE(BOXMODEL_TMSINGLE, 1, [building for technomate single])
940elif test "$BOXMODEL" = "tmnano"; then
941        AC_DEFINE(BOXMODEL_TMNANO, 1, [building for technomate nano])
942
943elif test "$BOXMODEL" = "ventonhde"; then
944        AC_DEFINE(BOXMODEL_VENTONHDE, 1, [building for ventonhde])
945elif test "$BOXMODEL" = "ventonhdx"; then
946        AC_DEFINE(BOXMODEL_VENTONHDX, 1, [building for ventonhdx])
947elif test "$BOXMODEL" = "inihde"; then
948        AC_DEFINE(BOXMODEL_INIHDE, 1, [building for inihde])
949elif test "$BOXMODEL" = "inihdp"; then
950        AC_DEFINE(BOXMODEL_INIHDP, 1, [building for inihdp])
951
952elif test "$BOXMODEL" = "ixusszero"; then
953        AC_DEFINE(BOXMODEL_IXUSSZERO, 1, [building for ixusszero])
954elif test "$BOXMODEL" = "ixussone"; then
955        AC_DEFINE(BOXMODEL_IXUSSONE, 1, [building for ixussone])
956
957elif test "$BOXMODEL" = "iqonios100hd"; then
958        AC_DEFINE(BOXMODEL_IQONIOS100HD, 1, [building for iqonios100hd])
959elif test "$BOXMODEL" = "iqonios300hd"; then
960        AC_DEFINE(BOXMODEL_IQONIOS300HD, 1, [building for iqonios300hd])
961elif test "$BOXMODEL" = "mediabox"; then
962        AC_DEFINE(BOXMODEL_MEDIABOX, 1, [building for mediabox])
963elif test "$BOXMODEL" = "optimussos1"; then
964        AC_DEFINE(BOXMODEL_OPTIMUSSOS1, 1, [building for optimussos1])
965elif test "$BOXMODEL" = "optimussos2"; then
966        AC_DEFINE(BOXMODEL_OPTIMUSSOS2, 1, [building for optimussos2])
967 
968elif test "$BOXMODEL" = "odinm6"; then
969        AC_DEFINE(BOXMODEL_ODINM6, 1, [building for odin m6])
970elif test "$BOXMODEL" = "odinm7"; then
971        AC_DEFINE(BOXMODEL_ODINM7, 1, [building for odinm7])
972elif test "$BOXMODEL" = "odinm9"; then
973        AC_DEFINE(BOXMODEL_ODINM9, 1, [building for odinm9])
974
975elif test "$BOXMODEL" = "e3hd"; then
976        AC_DEFINE(BOXMODEL_E3HD, 1, [building for e3hd])
977fi
978])
979
980
Note: See TracBrowser for help on using the repository browser.