File: configure.ac

package info (click to toggle)
gmerlin-avdecoder 2.0.0~svn6298~dfsg0-5
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 6,240 kB
  • sloc: ansic: 94,582; makefile: 709; sh: 705; awk: 43; sed: 16
file content (712 lines) | stat: -rw-r--r-- 14,259 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
AC_INIT(gmerlin-avdecoder, 2.0.0)
AC_CONFIG_SRCDIR([include/avdec.h])
AM_CONFIG_HEADER(include/config.h)
AM_INIT_AUTOMAKE(1.8.5)


BGAV_VERSION=$VERSION

BGAV_VERSION_MAJOR=`echo $VERSION | cut -d . -f 1`
BGAV_VERSION_MINOR=`echo $VERSION | cut -d . -f 2`
BGAV_VERSION_MICRO=`echo $VERSION | cut -d . -f 3 | cut -d p -f 1`

LTVERSION_CURRENT="2"
LTVERSION_REVISION="0"
LTVERSION_AGE="0"

AC_SUBST(BGAV_VERSION)
AC_SUBST(BGAV_VERSION_MAJOR)
AC_SUBST(BGAV_VERSION_MINOR)
AC_SUBST(BGAV_VERSION_MICRO)

AC_SUBST(LTVERSION_CURRENT)
AC_SUBST(LTVERSION_REVISION)
AC_SUBST(LTVERSION_AGE)

OLD_CFLAGS=$CFLAGS
XTRA_LDFLAGS=$LDFLAGS
AC_SUBST([XTRA_LDFLAGS])

AC_LANG(C)

AC_GNU_SOURCE

AC_DISABLE_STATIC
AM_PROG_AS
AC_PROG_LIBTOOL

CFLAGS=$OLD_CFLAGS

dnl
dnl General stuff
dnl

AC_CHECK_HEADERS(byteswap.h)

AC_C_BIGENDIAN(,,AC_MSG_ERROR("Cannot detect endianess"))

AC_SYS_LARGEFILE
AC_FUNC_FSEEKO
AC_CHECK_FUNCS(ftello vasprintf isatty)

AC_CHECK_DECLS([MSG_NOSIGNAL, SO_NOSIGPIPE],,,
               [#include <sys/types.h>
	       #include <sys/socket.h>])

dnl
dnl Semaphores
dnl

GMERLIN_CHECK_SEMAPHORES

dnl
dnl Gettext
dnl

AM_GNU_GETTEXT(external)

dnl Check for mingw

case "$build" in
	*cygwin*)
	CYGWIN_LDFLAGS="-no-undefined -mwindows"
	AC_MSG_WARN([build is $build])
	;;
	*)
	CYGWIN_LDFLAGS=
	;;
esac

case "$host" in
	*-*-mingw*|*cygwin*)
	os_win32=yes		
	AC_MSG_WARN([host is $host])
	;;
	*)
	os_win32=no
	;;
esac
AM_CONDITIONAL(OS_WIN32, [test "$os_win32" = "yes"])

if test "$os_win32" = "yes"; then
	dnl LIBS="-lws2_32   -lwsnmp32  -lwsock32  -lwst -lwinstrm -lnetapi32 -lws2_32 -lwsock32 -lwinmm -lwinstrm -lpthreadGC2 -lltdl -lregex -lz -lkernel32 -luser32 -lgdi32 $LIBS"
	LIBS=" -lpthreadGC2  -lregex -lz -lws2_32 -lintl $LIBS"
	dnl it appears that -no-undefined is necessary in mingw in order to build dll
	dnl maybe we should check here if the user only wants static libs
        LDFLAGS="$CYGWIN_LDFLAGS -mms-bitfields $LDFLAGS"
	AC_CHECK_LIB(pthreadGC2, pthread_mutex_lock, , AC_MSG_ERROR([libpthread not found get it from ftp://sourceware.org/pub/pthreads-win32/]))
else
	AC_CHECK_LIB(pthread, pthread_mutex_lock, , AC_MSG_ERROR([libpthread not found but you are not using windows.  You should really have this.]))
fi



dnl
dnl Doxygen
dnl

test_doxygen="true"
have_doxygen="false"

AC_ARG_WITH(doxygen,
    AC_HELP_STRING([--without-doxygen],
    [disable documentation generation]),
    test_doxygen="false")

if test "x$test_doxygen" = "xtrue"; then
  AC_CHECK_PROG(DOXYGEN, doxygen, "doxygen")
  if test "x$DOXYGEN" != "x"; then
    have_doxygen="true"
  fi
fi

AM_CONDITIONAL(HAVE_DOXYGEN, test "x$have_doxygen" = "xtrue")

dnl
dnl Linker flags
dnl 

GMERLIN_CHECK_LDFLAGS

dnl
dnl Check for Libraries
dnl

GAVL_REQUIRED="2.0.0"

PKG_CHECK_MODULES(GAVL, gavl >= $GAVL_REQUIRED, , AC_MSG_ERROR("gavl not found"))
AC_SUBST(GAVL_REQUIRED)

ICONV_LIBS=
AC_CHECK_LIB(iconv, libiconv_close, ICONV_LIBS="-liconv")
AC_SUBST(ICONV_LIBS)

if test "x$os_win32" = "xyes"; then
AC_CHECK_LIB(regex, regcomp, , AC_MSG_ERROR([libregex not found.]))
AC_CHECK_LIB(gettextlib, rpl_open, , AC_MSG_ERROR([libgettextlib not found get it from http://www.gnu.org/software/gettext/]))
AC_CHECK_LIB(intl, libintl_sprintf, , AC_MSG_ERROR([libintl not found get it from http://www.gnu.org/software/gettext/]))
fi

AC_CHECK_HEADER(dlfcn.h, , AC_MSG_ERROR([dlfcn.h not found]))
AC_CHECK_LIB(z, uncompress, , AC_MSG_ERROR([libz not found get it from http://zlib.net]))


dnl
dnl Library functions
dnl

AC_CHECK_FUNCS([poll getaddrinfo inet_aton closesocket])

dnl
dnl Optional Libraries
dnl

dnl
dnl gmerlin
dnl 

have_gmerlin="false"

GMERLIN_REQUIRED="2.0.0"

AC_ARG_ENABLE(gmerlin,
[AC_HELP_STRING([--disable-gmerlin],[Disable gmerlin plugins (default: autodetect)])],
[case "${enableval}" in
   yes) test_gmerlin=true ;;
   no)  test_gmerlin=false ;;
esac],[test_gmerlin=true])

if test x$test_gmerlin = xtrue; then

PKG_CHECK_MODULES(GMERLIN, gmerlin >= $GMERLIN_REQUIRED, have_gmerlin="true",
have_gmerlin="false")

gmerlin_plugindir='$(libdir)/gmerlin/plugins'

dnl LDFLAGS for plugins
GMERLIN_PLUGIN_LDFLAGS="-export-symbols "`$PKG_CONFIG --variable=prefix gmerlin`"/share/gmerlin/plugin.sym ${XTRA_LDFLAGS}"


fi

AC_SUBST(gmerlin_plugindir)
AC_SUBST(GMERLIN_REQUIRED)
AC_SUBST(GMERLIN_PLUGIN_LDFLAGS)

AM_CONDITIONAL(HAVE_GMERLIN, test x$have_gmerlin = xtrue)

dnl
dnl AVCodec
dnl

GMERLIN_CHECK_AVCODEC

dnl
dnl AVFormat
dnl

GMERLIN_CHECK_AVFORMAT

dnl
dnl OpenGL
dnl

GMERLIN_CHECK_OPENGL

dnl
dnl V4L2
dnl

GMERLIN_CHECK_V4L2



dnl
dnl X11 (need to check before vdpau)
dnl

have_x="false"

X_CFLAGS=""
X_LIBS=""


AC_PATH_X

if test x$no_x != xyes; then
  if test "x$x_includes" != "x"; then
    X_CFLAGS="-I$x_includes"
  elif test -d /usr/X11R6/include; then 
    X_CFLAGS="-I/usr/X11R6/include"
  else
    X_CFLAGS=""
  fi

  if test "x$x_libraries" != "x"; then
    X_LIBS="-L$x_libraries -lX11"
  else
    X_LIBS="-lX11"
  fi
  have_x="true"
else
  PKG_CHECK_MODULES(X, x11 >= 1.0.0, have_x=true, have_x=false)
fi

if test x$have_x = xtrue; then
  X_LIBS="$X_LIBS -lXext"
fi


dnl
dnl X11
dnl

GMERLIN_CHECK_X11

dnl
dnl libva
dnl

GMERLIN_CHECK_LIBVA

dnl
dnl Check for theora
dnl

GMERLIN_CHECK_THEORADEC

dnl
dnl Check for schroedinger
dnl

GMERLIN_CHECK_SCHROEDINGER

dnl
dnl Check for speex
dnl

GMERLIN_CHECK_SPEEX

dnl
dnl Ogg
dnl 

GMERLIN_CHECK_OGG

dnl
dnl Vorbis
dnl 

GMERLIN_CHECK_VORBIS

dnl
dnl Opus
dnl

GMERLIN_CHECK_OPUS


dnl
dnl libtiff
dnl

GMERLIN_CHECK_LIBTIFF

dnl
dnl openjpeg
dnl

GMERLIN_CHECK_OPENJPEG

dnl
dnl libsmbclient
dnl

GMERLIN_CHECK_SAMBA

dnl
dnl PNG
dnl 

GMERLIN_CHECK_LIBPNG


dnl
dnl DVDREAD
dnl

GMERLIN_CHECK_DVDREAD

dnl
dnl FLAC
dnl

GMERLIN_CHECK_FLAC

dnl
dnl Musepack
dnl

GMERLIN_CHECK_MUSEPACK

dnl
dnl MAD
dnl

GMERLIN_CHECK_MAD

dnl
dnl liba52
dnl

GMERLIN_CHECK_LIBA52

dnl
dnl libdca
dnl

GMERLIN_CHECK_DCA

dnl
dnl CDrom support
dnl

GMERLIN_CHECK_CDIO

dnl
dnl libudf support
dnl

GMERLIN_CHECK_LIBUDF

dnl
dnl Linux DVB support
dnl 

GMERLIN_CHECK_LINUXDVB

dnl
dnl Option for disabling libgsm
dnl

AH_TEMPLATE([HAVE_LIBGSM], [ libgsm enabled ])
have_libgsm="true"

AC_ARG_WITH(GSM610,
    AC_HELP_STRING([--without-GSM610],
    [disable libgsm]),
    have_libgsm="false", have_libgsm="true")

AC_SUBST(GSM_LIBS)
if test "x$have_libgsm" = "xtrue"; then
 have_sysgsm="false"
 AC_CHECK_HEADER(gsm/gsm.h,
   [AC_CHECK_LIB(gsm, gsm_create, have_sysgsm="true")]
 )
 if test "x$have_sysgsm" = "xtrue"; then
    GSM_LIBS="-lgsm"
    AC_DEFINE([HAVE_GSM_GSM_H], [1], [define if you have 'gsm/gsm.h'])
 fi
fi

if test "x$have_libgsm" = "xtrue"; then
AC_DEFINE([HAVE_LIBGSM])
fi

AM_CONDITIONAL(HAVE_LIBGSM, test "x$have_libgsm" = "xtrue")

dnl
dnl Build optimization flags
dnl

LQT_OPT_CFLAGS(["-O3 -ffast-math"])
AC_SUBST(OPT_CFLAGS)

dnl
dnl Common CFLAGS
dnl
LIBBGAV_CFLAGS=""

CFLAGS="$CFLAGS -D_REENTRANT -D_FILE_OFFSET_BITS=64 $GAVL_CFLAGS"

LQT_TRY_CFLAGS(-Wall, CFLAGS="$CFLAGS -Wall", )
LQT_TRY_CFLAGS(-Wmissing-declarations, CFLAGS="$CFLAGS -Wmissing-declarations", )
LQT_TRY_CFLAGS(-Wdeclaration-after-statement, CFLAGS="$CFLAGS -Wdeclaration-after-statement")
LQT_TRY_CFLAGS(-fvisibility=hidden,
               LIBBGAV_CFLAGS="$LIBBGAV_CFLAGS -fvisibility=hidden", )


dnl The following is necessary so the win32 dll loader also gets compiled
dnl with -g

if test x$LQT_DEBUG = xtrue; then
  CFLAGS="-g $CFLAGS"
fi

LIBBGAV_CFLAGS="-D__BGAV__ $LIBBGAV_CFLAGS"
AC_SUBST(LIBBGAV_CFLAGS)

dnl
dnl Common libs
dnl 

LIBS="$LIBS $GAVL_LIBS"

if test "x$LQT_PROFILE" = "xtrue"; then
LIBS="$LIBS $GAVL_LIBS -pg"
fi

dnl Absolute src path for doxygen

TOP_SRCDIR=`cd ${srcdir} && pwd` 
AC_SUBST(TOP_SRCDIR)

dnl
dnl Output
dnl 

AC_CONFIG_FILES([Makefile 
doc/Makefile \
doc/Doxyfile \
po/Makefile.in \
utils/Makefile \
gmerlin_avdec.spec \
gmerlin_avdec.pc \
include/Makefile \
include/bgav_version.h \
lib/Makefile \
m4/Makefile \
plugins/Makefile \
tests/Makefile ])

AC_OUTPUT

echo ""
echo "=== Libraries: ================================="

echo -n "gmerlin:                "
if test "x$have_gmerlin" = "xtrue"; then
echo "Found (CFLAGS=$GMERLIN_CFLAGS LIBS=$GMERLIN_LIBS)"
elif test "x$test_gmerlin" = "xfalse"; then
echo "Disabled"
elif test "x$gmerlin_wrong_prefix" = "xtrue"; then
echo "Wrong installation prefix"
else
echo "Missing (Go to http://gmerlin.sourceforge.net)"
fi

echo -n "libavcodec (ffmpeg):    "
if test "x$have_avcodec" = "xtrue"; then
echo "Found (CFLAGS=$AVCODEC_CFLAGS LIBS=$AVCODEC_LIBS)"
elif test "x$test_avcodec" = "xfalse"; then
echo "Disabled"
elif test "x$avcodec_swscale_missing" = "xtrue"; then
echo "Needs libswscale (Go to http://www.ffmpeg.org/)"
else
echo "Missing (Go to http://www.ffmpeg.org/)"
fi

echo -n "libavformat (ffmpeg):   "
if test "x$have_avformat" = "xtrue"; then
echo "Found (CFLAGS=$AVFORMAT_CFLAGS LIBS=$AVFORMAT_LIBS)"
elif test "x$test_avformat" = "xfalse"; then
echo "Disabled"
else
echo "Missing (Go to http://www.ffmpeg.org/)"
fi

echo -n "flac:                   "
if test "x$have_flac" = "xtrue"; then
echo "Found (CFLAGS=$FLAC_CFLAGS LIBS=$FLAC_LIBS)"
elif test "x$test_flac" = "xfalse"; then
echo "Disabled"
else
echo "Missing (Go to http://flac.sourceforge.net/)"
fi

echo -n "vorbis:                 "
if test "x$have_vorbis" = "xtrue"; then
echo "Found (CFLAGS=$VORBIS_CFLAGS LIBS=$VORBIS_LIBS)"
elif test "x$test_vorbis" = "xfalse"; then
echo "Disabled"
else
echo "Missing (Go to http://www.vorbis.com/)"
fi

echo -n "theoradec:              "
if test "x$have_theoradec" = "xtrue"; then
echo "Found (CFLAGS=$THEORADEC_CFLAGS LIBS=$THEORADEC_LIBS)"
elif test "x$test_theoradec" = "xfalse"; then
echo "Disabled"
else
echo "Missing (Go to http://www.theora.org/)"
fi

echo -n "schroedinger:           "
if test "x$have_schroedinger" = "xtrue"; then
echo "Found (CFLAGS=$SCHROEDINGER_CFLAGS LIBS=$SCHROEDINGER_LIBS)"
elif test "x$test_schroedinger" = "xfalse"; then
echo "Disabled"
else
echo "Missing (Go to http://www.diracvideo.org/)"
fi

echo -n "speex:                  "
if test "x$have_speex" = "xtrue"; then
echo "Found (CFLAGS=$SPEEX_CFLAGS LIBS=$SPEEX_LIBS)"
elif test "x$test_speex" = "xfalse"; then
echo "Disabled"
else
echo "Missing (Go to http://www.speex.org/)"
fi

echo -n "libpng:                 "
if test "x$have_libpng" = "xtrue"; then
echo "Found (CFLAGS=$PNG_CFLAGS LIBS=$PNG_LIBS)"
elif test "x$test_libpng" = "xfalse"; then
echo "Disabled"
else
echo "Missing (Go to http://www.libpng.org/pub/png/libpng.html)"
fi

echo -n "libtiff:                "
if test "x$have_libtiff" = "xtrue"; then
echo "Found (CFLAGS=$TIFF_CFLAGS LIBS=$TIFF_LIBS)"
elif test "x$test_libtiff" = "xfalse"; then
echo "Disabled"
else
echo "Missing (Go to http://www.remotesensing.org/libtiff/)"
fi

echo -n "libopenjpeg:            "
if test "x$have_openjpeg" = "xtrue"; then
echo "Found (CFLAGS=$OPENJPEG_CFLAGS LIBS=$OPENJPEG_LIBS)"
elif test "x$test_openjpeg" = "xfalse"; then
echo "Disabled"
else
echo "Missing (Go to http://www.openjpeg.org)"
fi

echo -n "libmad 0.15.x:          "
if test "x$have_mad" = "xtrue"; then
echo "Found (CFLAGS=$MAD_CFLAGS LIBS=$MAD_LIBS)"
elif test "x$test_mad" = "xfalse"; then
echo "Disabled"
else
echo "Missing (Go to http://mad.sourceforge.net/)"
fi

echo -n "liba52 (a52dec):        "
if test "x$have_liba52" = "xtrue"; then
echo "Found (CFLAGS=$LIBA52_CFLAGS LIBS=$LIBA52_LIBS)"
elif test "x$test_liba52" = "xfalse"; then
echo "Disabled"
else
echo "Missing (Go to http://liba52.sourceforge.net/)"
fi

echo -n "libdca:                 "
if test "x$have_dca" = "xtrue"; then
echo "Found (CFLAGS=$DCA_CFLAGS LIBS=$DCA_LIBS)"
elif test "x$test_cda" = "xfalse"; then
echo "Disabled"
else
echo "Missing (Go to http://www.videolan.org/developers/libdca.html)"
fi

echo -n "libmpcdec:              "
if test "x$have_musepack" = "xtrue"; then
echo "Found (CFLAGS=$MUSEPACK_CFLAGS LIBS=$MUSEPACK_LIBS)"
elif test "x$test_musepack" = "xfalse"; then
echo "Disabled"
else
echo "Missing (Go to http://www.musepack.net/)"
fi

echo -n "libcdio:                "
if test "x$have_cdio" = "xtrue"; then
echo "Found (CFLAGS=$CDIO_CFLAGS LIBS=$CDIO_LIBS)"
elif test "x$test_cdio" = "xfalse"; then
echo "Disabled"
else
echo "Missing (Go to http://www.gnu.org/software/libcdio/)"
fi

echo -n "libudf:                 "
if test "x$have_libudf" = "xtrue"; then
echo "Found (CFLAGS=$CDIO_CFLAGS LIBS=$LIBUDF_LIBS)"
elif test "x$test_cdio" = "xfalse"; then
echo "Disabled"
else
echo "Missing (Go to http://www.gnu.org/software/libcdio/)"
fi


echo -n "samba:                  "
if test "x$have_libsmbclient" = "xtrue"; then
echo "Found (CFLAGS=$SAMBA_CFLAGS LIBS=$SAMBA_LIBS)"
elif test "x$test_libsmbclient" = "xfalse"; then
echo "Disabled"
else
echo "Missing (Go to http://www.samba.org)"
fi

echo -n "libdvdread:             "
if test "x$have_dvdread" = "xtrue"; then
echo "Found (CFLAGS=$DVDREAD_CFLAGS LIBS=$DVDREAD_LIBS)"
elif test "x$test_dvdread" = "xfalse"; then
echo "Disabled"
else
echo "Missing (Go to http://www.dtek.chalmers.se/groups/dvd/downloads.shtml)"
fi

echo -n "libopus:                "
if test "x$have_opus" = "xtrue"; then
echo "Found (CFLAGS=$OPUS_CFLAGS LIBS=$OPUS_LIBS)"
elif test "x$test_opus" = "xfalse"; then
echo "Disabled"
else
echo "Missing (Go to http://www.opus-codec.org)"
fi


echo ""
echo "=== Other features: ============================"

echo -n "win32 DLL Support:      "
if test "x$enable_w32dll" = "xtrue"; then
echo "Enabled"
elif test "x$test_w32dll" = "xfalse"; then
echo "Disabled by user"
else
echo "Disabled (Unsupported Architecture)"
fi

echo -n "RealPLayer DLL Support: "
if test "x$enable_realdll" = "xtrue"; then
echo "Enabled"
else
echo "Disabled (Unsupported Architecture)"
fi

echo -n "Xanim DLL Support:      "
if test "x$enable_xadll" = "xtrue"; then
echo "Enabled"
else
echo "Disabled (Unsupported Architecture)"
fi

echo -n "Linux DVB Support:      "
if test "x$have_linuxdvb" = "xtrue"; then
echo "Enabled"
else
echo "Disabled (Unsupported Architecture or kernel headers missing)"
fi

echo
echo "If you installed a library but it was not detected, check the file INSTALL"
echo "for troubleshooting tips. Also note that if the configure script reaches"
echo "this point, all missing packages are optional so compilation should succeed"
echo "anyway."