1
dnl -*- mode: m4; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
dnl vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
4
dnl pandora-build: A pedantic build system
5
dnl Copyright (C) 2009 Sun Microsystems, Inc.
6
dnl This file is free software; Sun Microsystem
7
dnl gives unlimited permission to copy and/or distribute it,
8
dnl with or without modifications, as long as this notice is preserved.
12
dnl Test if we can Use -pipe to avoid making temp files during the compile.
13
dnl Should speed up compile on slower disks
15
AC_DEFUN([PANDORA_USE_PIPE],[
17
AS_IF([test "$GCC" = "yes"],[
18
AC_CACHE_CHECK([for working -pipe], [pandora_cv_use_pipe], [
19
AC_RUN_IFELSE([AC_LANG_SOURCE([[
22
int main(int argc, char** argv)
24
(void) argc; (void) argv;
28
[pandora_cv_use_pipe=yes],
29
[pandora_cv_use_pipe=no])
31
AS_IF([test "$pandora_cv_use_pipe" = "yes"],[
32
AM_CFLAGS="-pipe ${AM_CFLAGS}"
33
AM_CXXFLAGS="-pipe ${AM_CXXFLAGS}"