(initrx): try random port if the default is busy
[arla.git] / cf / elf-object-format.m4
blobdad171c85e873eceefa7f45b46b3bac7f0807249
1 dnl
2 dnl $Id$
3 dnl
4 dnl test for ELF
6 AC_DEFUN([AC_ELF_OBJECT_FORMAT],[
7 AC_CACHE_CHECK([for ELF object format], ac_cv_sys_elf_object_format,[
8 ac_cv_sys_elf_object_format=no
9 echo 'int foo;' > conftest.$ac_ext
10 if AC_TRY_EVAL(ac_compile); then
11         case `file conftest.o 2> /dev/null` in
12         *ELF*)  ac_cv_sys_elf_object_format=yes ;;
13         esac
15 rm -f conftest*])])