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