4.104.114.84.95
Line | |
---|
1 | dnl |
---|
2 | dnl $Id$ |
---|
3 | dnl |
---|
4 | |
---|
5 | AC_DEFUN(RTEMS_AR_FOR_TARGET_S, |
---|
6 | [ |
---|
7 | AC_CACHE_CHECK(whether $AR_FOR_TARGET -s works, |
---|
8 | rtems_cv_AR_FOR_TARGET_S, |
---|
9 | [ |
---|
10 | cat > conftest.$ac_ext <<EOF |
---|
11 | int foo( int b ) |
---|
12 | { return b; } |
---|
13 | EOF |
---|
14 | if AC_TRY_COMMAND($CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext) \ |
---|
15 | && AC_TRY_COMMAND($AR_FOR_TARGET -sr conftest.a conftest.o) \ |
---|
16 | && test -s conftest.a ; \ |
---|
17 | then |
---|
18 | rtems_cv_AR_FOR_TARGET_S="yes" |
---|
19 | else |
---|
20 | rtems_cv_AR_FOR_TARGET_S="no" |
---|
21 | fi |
---|
22 | rm -f conftest* |
---|
23 | ]) |
---|
24 | ]) |
---|
25 | |
---|
Note: See
TracBrowser
for help on using the repository browser.