(linenum→info "unix/slp.c:2238")

gauche/0.8.12/ext/template.configure.ac

    1: dnl
    2: dnl Configuring @@package@@
    3: dnl  process this file with autoconf to generate 'configure'.
    4: dnl $Id: template.configure.ac,v 1.3 2005/11/05 00:54:52 shirok Exp $
    5: dnl
    6: 
    7: AC_PREREQ(2.54)
    8: AC_INIT(@@package@@, 1.0, shiro@acm.org)
    9: dnl If you want to use the system name (OS, architecture, etc) in the
   10: dnl configure, uncomment the following line.  In such a case, you need
   11: dnl to copy config.guess and config.sub from automake distribution.
   12: dnl AC_CANONICAL_SYSTEM
   13: 
   14: dnl Set up gauche related commands.  The commands are set by scanning
   15: dnl PATH.  You can override them by "GOSH=/my/gosh ./configure" etc.
   16: AC_PATH_PROG([GOSH], gosh)
   17: AC_PATH_PROG([GAUCHE_CONFIG], gauche-config)
   18: AC_PATH_PROG([GAUCHE_PACKAGE], gauche-package)
   19: AC_PATH_PROG([GAUCHE_INSTALL], gauche-install)
   20: AC_PATH_PROG([GAUCHE_CESCONV], gauche-cesconv)
   21: 
   22: dnl Usually these parameters are set by AC_PROG_CC, but we'd rather use
   23: dnl the same one as Gauche has been compiled with.
   24: SOEXT=`$GAUCHE_CONFIG --so-suffix`
   25: OBJEXT=`$GAUCHE_CONFIG --object-suffix`
   26: EXEEXT=`$GAUCHE_CONFIG --executable-suffix`
   27: AC_SUBST(SOEXT)
   28: AC_SUBST(OBJEXT)
   29: AC_SUBST(EXEEXT)
   30: 
   31: ac_default_prefix=`$GAUCHE_CONFIG --prefix`
   32: 
   33: GAUCHE_PKGINCDIR=`$GAUCHE_CONFIG --pkgincdir`
   34: GAUCHE_PKGLIBDIR=`$GAUCHE_CONFIG --pkglibdir`
   35: GAUCHE_PKGARCHDIR=`$GAUCHE_CONFIG --pkgarchdir`
   36: AC_SUBST(GAUCHE_PKGINCDIR)
   37: AC_SUBST(GAUCHE_PKGLIBDIR)
   38: AC_SUBST(GAUCHE_PKGARCHDIR)
   39: 
   40: dnl Check for headers.
   41: dnl Add your macro calls to check required headers, if you have any.
   42: 
   43: dnl Check for other programs.
   44: dnl Add your macro calls to check existence of programs, if you have any.
   45: 
   46: dnl Check for libraries
   47: dnl Add your macro calls to check required libraries, if you have any.
   48: 
   49: dnl Creating gpd (gauche package description) file
   50: GAUCHE_PACKAGE_CONFIGURE_ARGS="`echo ""$ac_configure_args"" | sed 's/[\\""\`\$]/\\\&/g'`"
   51: AC_MSG_NOTICE([creating ${PACKAGE_NAME}.gpd])
   52: $GAUCHE_PACKAGE make-gpd "$PACKAGE_NAME" \
   53:   -version "$PACKAGE_VERSION" \
   54:   -configure "./configure $GAUCHE_PACKAGE_CONFIGURE_ARGS"
   55: 
   56: dnl Output
   57: echo $PACKAGE_VERSION > VERSION
   58: AC_OUTPUT(Makefile
Syntax (Markdown)