~louis/ubuntu/trusty/clamav/lp799623_fix_logrotate

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/autoconf/m4/build_exeext.m4

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-03-12 11:30:04 UTC
  • mfrom: (0.41.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100312113004-b0fop4bkycszdd0z
Tags: 0.96~rc1+dfsg-0ubuntu1
* New upstream RC - FFE (LP: #537636):
  - Add OfficialDatabaseOnly option to clamav-base.postinst.in
  - Add LocalSocketGroup option to clamav-base.postinst.in
  - Add LocalSocketMode option to clamav-base.postinst.in
  - Add CrossFilesystems option to clamav-base.postinst.in
  - Add ClamukoScannerCount option to clamav-base.postinst.in
  - Add BytecodeSecurity opiton to clamav-base.postinst.in
  - Add DetectionStatsHostID option to clamav-freshclam.postinst.in
  - Add Bytecode option to clamav-freshclam.postinst.in
  - Add MilterSocketGroup option to clamav-milter.postinst.in
  - Add MilterSocketMode option to clamav-milter.postinst.in
  - Add ReportHostname option to clamav-milter.postinst.in
  - Bump libclamav SO version to 6.1.0 in libclamav6.install
  - Drop clamdmon from clamav.examples (no longer shipped by upstream)
  - Drop libclamav.a from libclamav-dev.install (not built by upstream)
  - Update SO version for lintian override for libclamav6
  - Add new Bytecode Testing Tool, usr/bin/clambc, to clamav.install
  - Add build-depends on python and python-setuptools for new test suite
  - Update debian/copyright for the embedded copy of llvm (using the system
    llvm is not currently feasible)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Check for the extension used for executables on build platform.
 
2
# This is necessary for cross-compiling where the build platform
 
3
# may differ from the host platform.
 
4
AC_DEFUN([AC_BUILD_EXEEXT],
 
5
[
 
6
AC_MSG_CHECKING([for executable suffix on build platform])
 
7
AC_CACHE_VAL(ac_cv_build_exeext,
 
8
[if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
 
9
  ac_cv_build_exeext=.exe
 
10
else
 
11
  ac_build_prefix=${build_alias}-
 
12
 
 
13
  AC_CHECK_PROG(BUILD_CC, ${ac_build_prefix}gcc, ${ac_build_prefix}gcc)
 
14
  if test -z "$BUILD_CC"; then
 
15
     AC_CHECK_PROG(BUILD_CC, gcc, gcc)
 
16
     if test -z "$BUILD_CC"; then
 
17
       AC_CHECK_PROG(BUILD_CC, cc, cc, , , /usr/ucb/cc)
 
18
     fi
 
19
  fi
 
20
  test -z "$BUILD_CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH])
 
21
  ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&AS_MESSAGE_LOG_FD'
 
22
  rm -f conftest*
 
23
  echo 'int main () { return 0; }' > conftest.$ac_ext
 
24
  ac_cv_build_exeext=
 
25
  if AC_TRY_EVAL(ac_build_link); then
 
26
    for file in conftest.*; do
 
27
      case $file in
 
28
      *.c | *.o | *.obj | *.dSYM) ;;
 
29
      *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
 
30
      esac
 
31
    done
 
32
  else
 
33
    AC_MSG_ERROR([installation or configuration problem: compiler cannot create executables.])
 
34
  fi
 
35
  rm -f conftest*
 
36
  test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
 
37
fi])
 
38
BUILD_EXEEXT=""
 
39
test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
 
40
AC_MSG_RESULT(${ac_cv_build_exeext})
 
41
ac_build_exeext=$BUILD_EXEEXT
 
42
AC_SUBST(BUILD_EXEEXT)])