[BACK]Return to configure.ac CVS log [TXT][DIR] Up to [local] / src / usr.bin / pcc

Annotation of src/usr.bin/pcc/configure.ac, Revision 1.1.1.1

1.1       otto        1: #                                               -*- Autoconf -*-
                      2: # Process this file with autoconf to produce a configure script.
                      3:
                      4: AC_PREREQ(2.59)
                      5: AC_INIT([pcc], [0.9.8], BUG-REPORT-ADDRESS)
                      6: AC_CONFIG_HEADER([config.h])
                      7:
                      8: AC_PROG_MAKE_SET
                      9: AC_PROG_INSTALL
                     10: AC_CANONICAL_TARGET
                     11:
                     12:
                     13: case "$target_os" in
                     14:     netbsd*)
                     15:        targos=netbsd
                     16:        case "$target_cpu" in
                     17:            i?86) targmach=x86 ;;
                     18:        esac
                     19:        ;;
                     20:     openbsd*)
                     21:        targos=openbsd
                     22:        case "$target_cpu" in
                     23:            i?86) targmach=x86 ;;
                     24:        esac
                     25:        ;;
                     26:     dragonfly*)
                     27:        targos=dragonfly
                     28:        case "$target_cpu" in
                     29:            i?86) targmach=x86 ;;
                     30:        esac
                     31:        ;;
                     32:     linux*)
                     33:        targos=linux
                     34:        case "$target_cpu" in
                     35:            i?86) targmach=x86 ;;
                     36:        esac
                     37:        ;;
                     38:     *)
                     39:         targos="$target_os"
                     40:        case "$target_cpu" in
                     41:            m16c) targmach=m16c ;;
                     42:            nova) targmach=nova ;;
                     43:        esac
                     44:        ;;
                     45: esac
                     46:
                     47: if test "X$targos" = X -o "X$targmach" = X ; then
                     48:        AC_MSG_ERROR(['$target' is not (yet) supported by pcc.])
                     49: fi
                     50:
                     51: # Checks for programs.
                     52: AC_PROG_CC
                     53: AC_PROG_LEX
                     54: AC_PROG_YACC
                     55:
                     56: AC_CHECK_PROG(strip,strip,yes,no)
                     57:
                     58: # Checks for libraries.
                     59:
                     60: # Checks for header files.
                     61: # AC_CHECK_HEADERS([fcntl.h stdlib.h string.h unistd.h])
                     62: AC_CHECK_HEADERS([string.h alloca.h])
                     63:
                     64: # Checks for library functions.
                     65: AC_FUNC_ALLOCA
                     66: ##  AC_FUNC_STRTOD
                     67: # AC_FUNC_VPRINTF
                     68: # AC_CHECK_FUNCS([memset strchr strdup strrchr strtol])
                     69: AC_CHECK_FUNCS(mkstemp)
                     70:
                     71: AC_SUBST(targos)
                     72: AC_SUBST(targmach)
                     73: AC_SUBST(prefix)
                     74: AC_SUBST(exec_prefix)
                     75: AC_SUBST(libexecdir)
                     76: AC_SUBST(includedir)
                     77: AC_SUBST(strip)
                     78:
                     79: pcc_major=`echo $PACKAGE_VERSION | awk -F. '{print $1}'`
                     80: pcc_minor=`echo $PACKAGE_VERSION | awk -F. '{print $2}'`
                     81: pcc_minorminor=`echo $PACKAGE_VERSION | awk -F. '{print $3}'`
                     82: versstr="\"$PACKAGE_STRING for $target, $USER@`hostname` `date`\""
                     83:
                     84: AC_DEFINE_UNQUOTED(TARGOS, $targos)
                     85: AC_DEFINE_UNQUOTED(PCC_MAJOR, $pcc_major)
                     86: AC_DEFINE_UNQUOTED(PCC_MINOR, $pcc_minor)
                     87: AC_DEFINE_UNQUOTED(PCC_MINORMINOR, $pcc_minorminor)
                     88: AC_DEFINE_UNQUOTED(VERSSTR, $versstr)
                     89: if test "$LEX" = flex ; then
                     90:        AC_DEFINE_UNQUOTED(ISFLEX, 1)
                     91: fi
                     92:
                     93: AC_CONFIG_FILES([Makefile
                     94:                cc/Makefile
                     95:                cc/cc/Makefile
                     96:                cc/cpp/Makefile
                     97:                cc/ccom/Makefile
                     98:                f77/Makefile
                     99:                f77/f77/Makefile
                    100:                f77/fcom/Makefile
                    101: ])
                    102: AC_OUTPUT