~ubuntu-branches/ubuntu/wily/grub2/wily-proposed

« back to all changes in this revision

Viewing changes to acinclude.m4

  • Committer: Bazaar Package Importer
  • Author(s): Felix Zielcke, Robert Millan, Felix Zielcke
  • Date: 2010-01-26 19:26:25 UTC
  • mfrom: (1.13.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20100126192625-coq6czap2ofjollf
Tags: 1.98~20100126-1
* New Bazaar snapshot.
  - Includes mipsel-yeeloong port.

[ Robert Millan ]
* config.in: Lower priority of grub2/linux_cmdline_default.

[ Felix Zielcke ]
* Drop `CFLAGS=-O0' workaround on powerpc. Should be fixed correctly now.
* Ship grub-bin2h and grub-script-check in grub-common.
* Terminate NEWS.Debian with a blank line like lintian would suggest
  if that check would be working correctly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
 
15
15
 
16
16
dnl Check whether target compiler is working
17
 
AC_DEFUN(grub_PROG_TARGET_CC,
 
17
AC_DEFUN([grub_PROG_TARGET_CC],
18
18
[AC_MSG_CHECKING([whether target compiler is working])
19
19
AC_CACHE_VAL(grub_cv_prog_target_cc,
20
20
[AC_LINK_IFELSE([AC_LANG_PROGRAM([[
21
 
asm (".globl start; start: nop");
 
21
asm (".globl start; start:");
22
22
int main (void);
23
23
]], [[]])],
24
24
                [grub_cv_prog_target_cc=yes],
36
36
dnl compiling to assembler.
37
37
dnl Written by Pavel Roskin. Based on grub_ASM_EXT_C written by
38
38
dnl Erich Boleyn and modified by Yoshinori K. Okuji.
39
 
AC_DEFUN(grub_ASM_USCORE,
 
39
AC_DEFUN([grub_ASM_USCORE],
40
40
[AC_REQUIRE([AC_PROG_CC])
41
41
AC_MSG_CHECKING([if C symbols get an underscore after compilation])
42
42
AC_CACHE_VAL(grub_cv_asm_uscore,
75
75
 
76
76
dnl Some versions of `objcopy -O binary' vary their output depending
77
77
dnl on the link address.
78
 
AC_DEFUN(grub_PROG_OBJCOPY_ABSOLUTE,
 
78
AC_DEFUN([grub_PROG_OBJCOPY_ABSOLUTE],
79
79
[AC_MSG_CHECKING([whether ${OBJCOPY} works for absolute addresses])
80
80
AC_CACHE_VAL(grub_cv_prog_objcopy_absolute,
81
81
[cat > conftest.c <<\EOF
119
119
 
120
120
dnl Supply --build-id=none to ld if building modules.
121
121
dnl This suppresses warnings from ld on some systems
122
 
AC_DEFUN(grub_PROG_LD_BUILD_ID_NONE,
 
122
AC_DEFUN([grub_PROG_LD_BUILD_ID_NONE],
123
123
[AC_MSG_CHECKING([whether linker accepts --build-id=none])
124
124
AC_CACHE_VAL(grub_cv_prog_ld_build_id_none,
125
125
[save_LDFLAGS="$LDFLAGS"
150
150
dnl We only support the newer versions, because the old versions cause
151
151
dnl major pain, by requiring manual assembly to get 16-bit instructions into
152
152
dnl asm files.
153
 
AC_DEFUN(grub_I386_ASM_ADDR32,
 
153
AC_DEFUN([grub_I386_ASM_ADDR32],
154
154
[AC_REQUIRE([AC_PROG_CC])
155
155
AC_REQUIRE([grub_I386_ASM_PREFIX_REQUIREMENT])
156
156
AC_MSG_CHECKING([for .code16 addr32 assembler support])
178
178
 
179
179
dnl check if our compiler is apple cc
180
180
dnl because it requires numerous workarounds
181
 
AC_DEFUN(grub_apple_cc,
 
181
AC_DEFUN([grub_apple_cc],
182
182
[AC_REQUIRE([AC_PROG_CC])
183
183
AC_MSG_CHECKING([whether our compiler is apple cc])
184
184
AC_CACHE_VAL(grub_cv_apple_cc,
193
193
 
194
194
dnl check if our target compiler is apple cc
195
195
dnl because it requires numerous workarounds
196
 
AC_DEFUN(grub_apple_target_cc,
 
196
AC_DEFUN([grub_apple_target_cc],
197
197
[AC_REQUIRE([AC_PROG_CC])
198
198
AC_MSG_CHECKING([whether our target compiler is apple cc])
199
199
AC_CACHE_VAL(grub_cv_apple_target_cc,
210
210
dnl Later versions of GAS requires that addr32 and data32 prefixes
211
211
dnl appear in the same lines as the instructions they modify, while
212
212
dnl earlier versions requires that they appear in separate lines.
213
 
AC_DEFUN(grub_I386_ASM_PREFIX_REQUIREMENT,
 
213
AC_DEFUN([grub_I386_ASM_PREFIX_REQUIREMENT],
214
214
[AC_REQUIRE([AC_PROG_CC])
215
215
AC_MSG_CHECKING(dnl
216
216
[whether addr32 must be in the same line as the instruction])
246
246
 
247
247
dnl Older versions of GAS require that absolute indirect calls/jumps are
248
248
dnl not prefixed with `*', while later versions warn if not prefixed.
249
 
AC_DEFUN(grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK,
 
249
AC_DEFUN([grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK],
250
250
[AC_REQUIRE([AC_PROG_CC])
251
251
AC_MSG_CHECKING(dnl
252
252
[whether an absolute indirect call/jump must not be prefixed with an asterisk])
276
276
 
277
277
dnl Check what symbol is defined as a bss start symbol.
278
278
dnl Written by Michael Hohmoth and Yoshinori K. Okuji.
279
 
AC_DEFUN(grub_CHECK_BSS_START_SYMBOL,
 
279
AC_DEFUN([grub_CHECK_BSS_START_SYMBOL],
280
280
[AC_REQUIRE([AC_PROG_CC])
281
281
AC_MSG_CHECKING([if __bss_start is defined by the compiler])
282
282
AC_CACHE_VAL(grub_cv_check_uscore_uscore_bss_start_symbol,
320
320
 
321
321
dnl Check what symbol is defined as an end symbol.
322
322
dnl Written by Yoshinori K. Okuji.
323
 
AC_DEFUN(grub_CHECK_END_SYMBOL,
 
323
AC_DEFUN([grub_CHECK_END_SYMBOL],
324
324
[AC_REQUIRE([AC_PROG_CC])
325
325
AC_MSG_CHECKING([if end is defined by the compiler])
326
326
AC_CACHE_VAL(grub_cv_check_end_symbol,
352
352
])
353
353
 
354
354
dnl Check if the C compiler generates calls to `__enable_execute_stack()'.
355
 
AC_DEFUN(grub_CHECK_ENABLE_EXECUTE_STACK,[
 
355
AC_DEFUN([grub_CHECK_ENABLE_EXECUTE_STACK],[
356
356
AC_MSG_CHECKING([whether `$CC' generates calls to `__enable_execute_stack()'])
357
357
AC_LANG_CONFTEST([[
358
358
void f (int (*p) (void));
379
379
 
380
380
 
381
381
dnl Check if the C compiler supports `-fstack-protector'.
382
 
AC_DEFUN(grub_CHECK_STACK_PROTECTOR,[
 
382
AC_DEFUN([grub_CHECK_STACK_PROTECTOR],[
383
383
[# Smashing stack protector.
384
384
ssp_possible=yes]
385
385
AC_MSG_CHECKING([whether `$CC' accepts `-fstack-protector'])
398
398
])
399
399
 
400
400
dnl Check if the C compiler supports `-mstack-arg-probe' (Cygwin).
401
 
AC_DEFUN(grub_CHECK_STACK_ARG_PROBE,[
 
401
AC_DEFUN([grub_CHECK_STACK_ARG_PROBE],[
402
402
[# Smashing stack arg probe.
403
403
sap_possible=yes]
404
404
AC_MSG_CHECKING([whether `$CC' accepts `-mstack-arg-probe'])
414
414
])
415
415
 
416
416
dnl Check if ln can handle directories properly (mingw).
417
 
AC_DEFUN(grub_CHECK_LINK_DIR,[
 
417
AC_DEFUN([grub_CHECK_LINK_DIR],[
418
418
AC_MSG_CHECKING([whether ln can handle directories properly])
419
419
[mkdir testdir 2>/dev/null
420
420
case $srcdir in
432
432
])
433
433
 
434
434
dnl Check if the C compiler supports `-fPIE'.
435
 
AC_DEFUN(grub_CHECK_PIE,[
 
435
AC_DEFUN([grub_CHECK_PIE],[
436
436
[# Position independent executable.
437
437
pie_possible=yes]
438
438
AC_MSG_CHECKING([whether `$CC' has `-fPIE' as default])