]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/common/configure.ac
Bump to autoconf 2.69 and automake 1.15.1
[thirdparty/binutils-gdb.git] / sim / common / configure.ac
CommitLineData
c906108c 1dnl Process this file with autoconf to produce a configure script.
c906108c
SS
2AC_INIT(Makefile.in)
3
936df756 4AC_PROG_CC
c906108c
SS
5
6# Put a useful copy of CPP_FOR_TARGET in Makefile.
7# This is only used to build the target values header files. These files are
8# shipped with distributions so CPP_FOR_TARGET only needs to work in
9# developer's trees. This value is borrowed from ../../Makefile.in.
10CPP_FOR_TARGET="\` \
11 if test -f \$\${rootme}/../../gcc/Makefile ; then \
12 if test -f \$\${rootme}/../../\$(TARGET_SUBDIR)/newlib/Makefile ; then \
13 echo \$\${rootme}/../../gcc/xgcc -B\$\${rootme}/../../gcc/ -idirafter \$\${rootme}/../../\$(TARGET_SUBDIR)/newlib/targ-include -idirafter \$(srcroot)/newlib/libc/include -nostdinc; \
14 else \
15 echo \$\${rootme}/../../gcc/xgcc -B\$\${rootme}/../../gcc/; \
16 fi; \
17 else \
18 if test '\$(host_canonical)' = '\$(target_canonical)' ; then \
19 echo \$(CC); \
20 else \
21 t='\$(program_transform_name)'; echo gcc | sed -e 's/x/x/' \$\$t; \
22 fi; \
23 fi\` -E"
24AC_SUBST(CPP_FOR_TARGET)
25
26# Set TARGET_SUBDIR, needed by CPP_FOR_TARGET.
27if test x"${host}" = x"${target}" ; then
28 TARGET_SUBDIR="."
29else
30 TARGET_SUBDIR=${target_alias}
31fi
32AC_SUBST(TARGET_SUBDIR)
33
936df756 34AC_OUTPUT(Makefile)