source: trunk/essentials/sys-devel/automake-1.9/m4/minuso.m4

Last change on this file was 3086, checked in by bird, 18 years ago

automake 1.9.6

File size: 1.1 KB
Line 
1## -*- Autoconf -*-
2# Copyright (C) 1999, 2000, 2001, 2003, 2005 Free Software Foundation, Inc.
3#
4# This file is free software; the Free Software Foundation
5# gives unlimited permission to copy and/or distribute it,
6# with or without modifications, as long as this notice is preserved.
7
8# serial 3
9
10# AM_PROG_CC_C_O
11# --------------
12# Like AC_PROG_CC_C_O, but changed for automake.
13AC_DEFUN([AM_PROG_CC_C_O],
14[AC_REQUIRE([AC_PROG_CC_C_O])dnl
15AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
16# FIXME: we rely on the cache variable name because
17# there is no other way.
18set dummy $CC
19ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
20if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
21 # Losing compiler, so override with the script.
22 # FIXME: It is wrong to rewrite CC.
23 # But if we don't then we get into trouble of one sort or another.
24 # A longer-term fix would be to have automake use am__CC in this case,
25 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
26 CC="$am_aux_dir/compile $CC"
27fi
28])
Note: See TracBrowser for help on using the repository browser.