Changeset 00cc023 for configure.ac


Ignore:
Timestamp:
May 31, 2015, 1:54:23 PM (7 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
Children:
5cb5f842
Parents:
86bd7c1f
Message:

redo automake first attempt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r86bd7c1f r00cc023  
    44AC_PREREQ([2.68])
    55AC_INIT([cfa-cc],[1.0.0],[cforall@plg.uwaterloo.ca])
     6AC_CONFIG_AUX_DIR([automake])
     7AC_CONFIG_SRCDIR([src/main.cc])
     8AC_CONFIG_HEADERS([config.h])
     9
    610AM_INIT_AUTOMAKE
    711AM_MAINTAINER_MODE(disable)
    8 AC_CONFIG_SRCDIR([src/main.cc])
    9 AC_CONFIG_HEADERS([config.h])
    1012
    1113# Installation paths
     
    1517            backcompiler=$withval, backcompiler="")
    1618  if test x$backcompiler != x; then
    17      AC_DEFINE_UNQUOTED(GCC_PATH, "${backcompiler}")
    18      BACKEND_CC=${backcompiler}
     19        AC_DEFINE_UNQUOTED(GCC_PATH, "${backcompiler}")
     20        BACKEND_CC=${backcompiler}
    1921  else
    20      AC_PATH_PROG(GCC_PATH, gcc, N/A)
    21      if test "$GCC_PATH" = "N/A"; then
    22         AC_MSG_ERROR(some version of gcc is needed. Get it at ftp://ftp.gnu.org)
    23         exit 1
    24      fi
    25      AC_DEFINE_UNQUOTED(GCC_PATH, "${GCC_PATH}", [Path/name of C compiler.])
    26      BACKEND_CC=${GCC_PATH}
     22        AC_PATH_PROG(GCC_PATH, gcc, N/A)
     23        if test "$GCC_PATH" = "N/A"; then
     24                AC_MSG_ERROR(some version of gcc is needed. Get it at ftp://ftp.gnu.org)
     25                exit 1
     26        fi
     27        AC_DEFINE_UNQUOTED(GCC_PATH, "${GCC_PATH}", [Path/name of C compiler.])
     28        BACKEND_CC=${GCC_PATH}
    2729  fi
    2830AC_SUBST(BACKEND_CC)
    2931
    30 CFA_PREFIX=
    3132if test "x$prefix" = "xNONE"; then
    32         cfa_prefix=${ac_default_prefix}
     33        cfa_prefix=${ac_default_prefix}
    3334else
    34         cfa_prefix=${prefix}
     35        cfa_prefix=${prefix}
    3536fi
    3637AC_DEFINE_UNQUOTED(CFA_PREFIX, "${cfa_prefix}", [Location of cfa files.])
    37 CFA_PREFIX=${cfa_prefix}
    38 AC_SUBST(CFA_PREFIX)
     38AC_SUBST(CFA_PREFIX, ${cfa_prefix})
    3939
    40 CFA_INCDIR=
    4140if test "$includedir" = '${prefix}/include'; then
    4241        cfa_incdir="${cfa_prefix}/include"
     
    4544fi
    4645AC_DEFINE_UNQUOTED(CFA_INCDIR, "${cfa_incdir}", [Location of include files.])
    47 CFA_INCDIR=${cfa_incdir}
    48 AC_SUBST(CFA_INCDIR)
     46AC_SUBST(CFA_INCDIR, ${cfa_incdir})
    4947
    50 CFA_BINDIR=
    5148if test "$bindir" = '${exec_prefix}/bin'; then
    5249        cfa_bindir="${cfa_prefix}/bin"
     
    5552fi
    5653AC_DEFINE_UNQUOTED(CFA_BINDIR, "${cfa_bindir}", [Location of cfa command.])
    57 CFA_BINDIR=${cfa_bindir}
    58 AC_SUBST(CFA_BINDIR)
     54AC_SUBST(CFA_BINDIR, ${cfa_bindir})
    5955
    60 CFA_LIBDIR=
    6156if test "$libdir" = '${exec_prefix}/lib'; then
    6257        cfa_libdir=${cfa_prefix}/lib
     
    6560fi
    6661AC_DEFINE_UNQUOTED(CFA_LIBDIR, "${cfa_libdir}", [Location of cc1 and cfa-cpp commands.])
    67 CFA_LIBDIR=${cfa_libdir}
    68 AC_SUBST(CFA_LIBDIR)
     62AC_SUBST(CFA_LIBDIR, ${cfa_libdir})
    6963
    7064# Checks for programs.
     
    7266AC_PROG_AWK
    7367AC_PROG_CC
     68AM_PROG_CC_C_O  # deprecated
    7469AC_PROG_INSTALL
    7570AC_PROG_MAKE_SET
     71AC_PROG_RANLIB
    7672
    7773# Checks for libraries.
     
    9692AC_CHECK_FUNCS([memset putenv strchr strtol])
    9793
    98 AC_CONFIG_FILES([Makefile
    99                  src/Makefile
    100                  driver/Makefile
    101                  libcfa/Makefile
    102                  src/examples/Makefile])
     94AC_CONFIG_FILES([
     95        Makefile
     96        driver/Makefile
     97        src/Makefile
     98        src/examples/Makefile
     99        libcfa/Makefile
     100        ])
    103101
    104102AC_OUTPUT
Note: See TracChangeset for help on using the changeset viewer.