Lines 100-122
dnl check for getopt in standard library
Link Here
|
100 |
dnl AC_CHECK_FUNCS(getopt_long , , [LIBOBJS="$LIBOBJS getopt.o getopt1.o"] ) |
100 |
dnl AC_CHECK_FUNCS(getopt_long , , [LIBOBJS="$LIBOBJS getopt.o getopt1.o"] ) |
101 |
AC_CHECK_FUNCS(getopt_long, [], []) |
101 |
AC_CHECK_FUNCS(getopt_long, [], []) |
102 |
|
102 |
|
103 |
AC_CHECK_SIZEOF(void*,1) |
|
|
104 |
|
105 |
asm_optimisation=no |
103 |
asm_optimisation=no |
106 |
case "$host_cpu" in |
104 |
case "$host_cpu" in |
107 |
x86_64) |
105 |
x86_64) |
108 |
if test $ac_cv_sizeof_voidp = 4 ; then |
106 |
AC_COMPILE_IFELSE( |
109 |
# This must be a 32 bit user space running on 64 bit kernel so treat |
107 |
AC_LANG_PROGRAM([], [[{ |
110 |
# this as ia32. |
108 |
#if ( defined __ILP32__ and defined __x86_64__ ) or defined __x86_64__ |
111 |
cpu_ia32=true |
109 |
return 0 |
112 |
AC_DEFINE(FLAC__CPU_IA32) |
110 |
#else |
113 |
AH_TEMPLATE(FLAC__CPU_IA32, [define if building for ia32/i386]) |
111 |
#error "neither x32 nor amd64 binary build" |
114 |
else |
112 |
#fi |
115 |
# x86_64 user space and kernel. |
113 |
}]] |
116 |
cpu_x86_64=true |
114 |
), [ |
117 |
AC_DEFINE(FLAC__CPU_X86_64) |
115 |
# This must be a 32 bit user space running on 64 bit kernel so treat |
118 |
AH_TEMPLATE(FLAC__CPU_X86_64, [define if building for x86_64]) |
116 |
# this as ia32. |
119 |
fi |
117 |
cpu_ia32=true |
|
|
118 |
AC_DEFINE(FLAC__CPU_IA32) |
119 |
AH_TEMPLATE(FLAC__CPU_IA32, [define if building for ia32/i386]) |
120 |
], [ |
121 |
# either x86_64 or x32 user space and kernel. |
122 |
cpu_x86_64=true |
123 |
AC_DEFINE(FLAC__CPU_X86_64) |
124 |
AH_TEMPLATE(FLAC__CPU_X86_64, [define if building for x86_64]) |
125 |
] |
126 |
) |
120 |
asm_optimisation=$asm_opt |
127 |
asm_optimisation=$asm_opt |
121 |
;; |
128 |
;; |
122 |
i*86) |
129 |
i*86) |