1 Index: libcdio-0.80/configure.ac
2 ===================================================================
3 --- libcdio-0.80.orig/configure.ac 2008-03-15 17:45:17.000000000 +0000
4 +++ libcdio-0.80/configure.ac 2008-07-16 09:21:06.000000000 +0000
8 AC_MSG_CHECKING(bitfield ordering in structs)
12 - struct { char bit_0:1, bit_12:2, bit_345:3, bit_67:2; }
13 -#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)
14 - __attribute__((packed))
17 - if (sizeof (bf) != 1) return 1;
18 - return *((unsigned char*) &bf) != 0x4b; }
19 -], bf_lsbf=1, AC_TRY_RUN([
22 - struct { char bit_0:1, bit_12:2, bit_345:3, bit_67:2; }
23 -#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)
24 - __attribute__((packed))
27 - if (sizeof (bf) != 1) return 1;
28 - return *((unsigned char*) &bf) != 0xa5; }
29 -], bf_lsbf=0, AC_MSG_ERROR([unsupported bitfield ordering])))
30 -if test "x$bf_lsbf" = "x1"; then
32 - AC_DEFINE(BITFIELD_LSBF, [], [compiler does least-significant bit first in struct bitfields])
38 +AC_DEFINE(BITFIELD_LSBF, [], [compiler does least-significant bit first in struct bitfields])
41 dnl AM_PROG_LIBTOOL tests whether we have GNU ld
46 -AC_MSG_CHECKING(extern long timezone variable)
48 -#ifdef NEED_TIMEZONEVAR
49 -#define timezonevar 1
53 -extern long timezone;
54 -int main(int argc, char **argv) {
55 - long test_timezone = timezone;
58 -], [AC_MSG_RESULT(yes);
59 - AC_DEFINE([HAVE_TIMEZONE_VAR], 1,
60 - [Define if you have an extern long timenzone variable.])],
61 - [AC_MSG_RESULT(no)])
64 AC_SUBST(LINUX_CDROM_TIMEOUT)
65 AC_SUBST(DARWIN_PKG_LIB_HACK)
66 AC_SUBST(HAVE_BSDI_CDROM)
71 -if test $ac_cv_member_struct_tm_tm_gmtoff = yes ; then
72 - AC_MSG_CHECKING([whether time.h defines daylight and timezone variables])
77 - extern char *tzname[2];
78 - extern long timezone;
79 - extern int daylight;
83 - return (timezone != 0) + daylight;
85 - ],[AC_DEFINE(HAVE_DAYLIGHT, 1,
86 - [Define if time.h defines extern long timezone and int daylight vars.])
88 - ],[has_daylight=no])
89 - AC_MSG_RESULT($has_daylight)
90 - AC_MSG_CHECKING([whether time.h defines tzname variable])
95 - extern char *tzname[2];
99 - return (tzname != NULL);
101 - ],[AC_DEFINE(HAVE_TZNAME, 1,
102 - [Define if time.h defines extern extern char *tzname[2] variable])
105 - AC_MSG_RESULT($has_tzname)
108 AC_ARG_ENABLE(joliet,
109 AS_HELP_STRING([--disable-joliet], [don't include Joliet extension support (default enabled)]),
110 [enable_joliet=$enableval],