File: aclocal.m4

package info (click to toggle)
netboot 0.8.1-4
  • links: PTS
  • area: main
  • in suites: potato
  • size: 2,728 kB
  • ctags: 4,740
  • sloc: ansic: 15,152; asm: 11,623; yacc: 2,248; makefile: 1,110; pascal: 1,108; lex: 748; sh: 233
file content (41 lines) | stat: -rw-r--r-- 853 bytes parent folder | download | duplicates (3)
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
dnl aclocal.m4  -  macros used to create configuration script
dnl
dnl (C) Copyright G. Kuhlmann 1996-1998
dnl
dnl
dnl define a macro which can be used to run an assembler or compiler and
dnl act on its return code
dnl
define(AC_CHECK_COMP,
[AC_PROVIDE([$0])dnl
cat > conftest.test <<EOF
[$2]
EOF
if eval [$1] conftest.test >&5 2>&5; then
  ifelse([$3], , :, [rm -rf conftest*
  $3
])
ifelse([$4], , , [else
  rm -rf conftest*
  $4
])dnl
fi
rm -f conftest*]
)dnl

dnl
dnl Check if the C compiler understands a specific command line option
dnl
define(AC_CHECK_CC_ARG,
[AC_PROVIDE([$0])dnl
  AC_CACHE_CHECK(whether ${CC-cc} accepts -[$1], ac_cv_prog_cc_[$1], [
    echo 'void f(){}' > conftest.c
    if test -z "`${CC-cc} -[$1] -c conftest.c 2>&1`"; then
      ac_cv_prog_cc_[$1]=yes
    else
      ac_cv_prog_cc_[$1]=no
    fi
  ])
rm -f conftest*]
)dnl