Date: Thu, 25 Jun 1998 21:58:54 -0500 (CDT) From: n@nectar.com To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: ports/7073: New port, PyGreSQL 2.1 Message-ID: <199806260258.VAA21886@bone.nectar.com>
next in thread | raw e-mail | index | archive | help
>Number: 7073 >Category: ports >Synopsis: New port, PyGreSQL 2.1 >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jun 25 20:00:01 PDT 1998 >Last-Modified: >Originator: Jacques Vidrine >Organization: >Release: FreeBSD 3.0-CURRENT i386 >Environment: 3.0-CURRENT >Description: A Python interface for PostgreSQL database. >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # py-PyGreSQL # py-PyGreSQL/files # py-PyGreSQL/files/md5 # py-PyGreSQL/Makefile # py-PyGreSQL/pkg # py-PyGreSQL/pkg/COMMENT # py-PyGreSQL/pkg/DESCR # py-PyGreSQL/pkg/PLIST # py-PyGreSQL/scripts # py-PyGreSQL/scripts/Makefile # py-PyGreSQL/scripts/Makefile.in # py-PyGreSQL/scripts/configure.in # py-PyGreSQL/scripts/configure.local # py-PyGreSQL/scripts/install-sh # echo c - py-PyGreSQL mkdir -p py-PyGreSQL > /dev/null 2>&1 echo c - py-PyGreSQL/files mkdir -p py-PyGreSQL/files > /dev/null 2>&1 echo x - py-PyGreSQL/files/md5 sed 's/^X//' >py-PyGreSQL/files/md5 << 'END-of-py-PyGreSQL/files/md5' XMD5 (PyGreSQL-2.1.tgz) = 132439355a273423b70f5daf852edb1f END-of-py-PyGreSQL/files/md5 echo x - py-PyGreSQL/Makefile sed 's/^X//' >py-PyGreSQL/Makefile << 'END-of-py-PyGreSQL/Makefile' X# Ports collection Makefile for: PyGreSQL X# Version required: 2.1 X# Date created: 6/25/1998 X# Whom: n@nectar.com X# X# $Id: Makefile,v 1.1 1998/06/26 02:49:50 nectar Exp $ X# X XDISTNAME= PyGreSQL-2.1 XPKGNAME= py-PyGreSQL-2.1 XCATEGORIES= devel XMASTER_SITES= ftp://ftp.druid.net/pub/distrib/ XEXTRACT_SUFX= .tgz X XMAINTAINER= n@nectar.com X XBUILD_DEPENDS= python:${PORTSDIR}/lang/python XRUN_DEPENDS= python:${PORTSDIR}/lang/python XLIB_DEPENDS= pq\\.1\\.:${PORTSDIR}/databases/postgresql X XWRKSRC= ${WRKDIR} XHAS_CONFIGURE= YES XGNU_CONFIGURE= YES X XPY_PREFIX= python -c "import sys; print sys.prefix" XPY_EXEC_PREFIX= python -c "import sys; print sys.exec_prefix" XPY_SITE_PYTHON= python -c "import sys; import string; print (filter(lambda a: string.find(a, 'site-python') >= 0, sys.path) or [''])[0]" X XCONFIGURE_ENV= LDFLAGS="-L${PREFIX}/lib/python1.5/config -L${PREFIX}/pgsql/lib" \ X CPPFLAGS="-I${PREFIX}/include/python1.5 -I${PREFIX}/pgsql/include" X XCHOWN?= chown XCHMOD?= chmod X Xdo-configure: X.if defined(BATCH) X @(if test `${PY_SITE_PYTHON}` == ""; then \ X ${MKDIR} ${PREFIX}/lib/site-python; \ X ${CHOWN} ${BINOWN}.${BINGRP} ${PREFIX}/lib/site-python; \ X ${CHMOD} ${BINMODE} ${PREFIX}/lib/site-python; \ X fi) X.else X @(if test `${PY_SITE_PYTHON}` == ""; then \ X ${ECHO} "You must create a site-python directory in order to"; \ X ${ECHO} "build and install this port. On most systems, creating"; \ X ${ECHO} "a directory called ${PREFIX}/lib/site-python will do."; \ X exit 1; \ X fi) X.endif X.for f in Makefile Makefile.in configure.in install-sh X ${CP} ${SCRIPTDIR}/${f} ${WRKSRC} X.endfor X ${CP} ${SCRIPTDIR}/configure.local ${WRKSRC}/configure X @(cd ${WRKSRC} && CC="${CC}" CXX="${CXX}" ac_cv_path_CC="${CC}" \ X CFLAGS="${CFLAGS}" \ X INSTALL="/usr/bin/install -c -o ${BINOWN} -g ${BINGRP}" \ X INSTALL_DATA="${INSTALL_DATA}" \ X INSTALL_PROGRAM="${INSTALL_PROGRAM}" \ X INSTALL_SCRIPT="${INSTALL_SCRIPT}" \ X PY_EXEC_PREFIX=`${PY_EXEC_PREFIX}` \ X PY_SITE_PYTHON=`${PY_SITE_PYTHON}` \ X ${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}) X X Xpost-install: X ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/README.PyGreSQL X X.include <bsd.port.mk> END-of-py-PyGreSQL/Makefile echo c - py-PyGreSQL/pkg mkdir -p py-PyGreSQL/pkg > /dev/null 2>&1 echo x - py-PyGreSQL/pkg/COMMENT sed 's/^X//' >py-PyGreSQL/pkg/COMMENT << 'END-of-py-PyGreSQL/pkg/COMMENT' XA Python interface for PostgreSQL database. END-of-py-PyGreSQL/pkg/COMMENT echo x - py-PyGreSQL/pkg/DESCR sed 's/^X//' >py-PyGreSQL/pkg/DESCR << 'END-of-py-PyGreSQL/pkg/DESCR' XFrom the README: X XPyGreSQL is a python module that interfaces to a PostgreSQL database. It Xembeds the PostgreSQL query library to allow easy use of the powerful XPostgreSQL features from a Python script. X XJacques Vidrine <n@nectar.com> END-of-py-PyGreSQL/pkg/DESCR echo x - py-PyGreSQL/pkg/PLIST sed 's/^X//' >py-PyGreSQL/pkg/PLIST << 'END-of-py-PyGreSQL/pkg/PLIST' Xlib/site-python/pgmodule.so Xlib/site-python/pgext.py Xlib/site-python/pgext.pyc Xlib/site-python/pgtools.py Xlib/site-python/pgtools.pyc Xshare/doc/README.PyGreSQL END-of-py-PyGreSQL/pkg/PLIST echo c - py-PyGreSQL/scripts mkdir -p py-PyGreSQL/scripts > /dev/null 2>&1 echo x - py-PyGreSQL/scripts/Makefile sed 's/^X//' >py-PyGreSQL/scripts/Makefile << 'END-of-py-PyGreSQL/scripts/Makefile' X# Generated automatically from Makefile.in by configure. X# $Id: Makefile,v 1.1 1998/06/26 02:49:51 nectar Exp $ X.SUFFIXES: .py .pyc X XCC = gcc XINSTALL = /usr/bin/install -c X XCEXT_SRC = pgmodule.c XCEXT_OBJ = ${CEXT_SRC:.c=.o} XCEXT_MOD = pgmodule${SO} X XCFLAGS = -g -O2 XCPPFLAGS = -I/usr/python15/include/python1.5 -I/usr/local/pgsql/include XLDFLAGS = -L/usr/python15/lib/python1.5/config -L/usr/local/pgsql/lib -L/usr/local/lib XLIBS = -lm -lpython1.5 -lpq X XPYTHON = /usr/local/bin/python XPREFIX = /usr/local X XSO = .so XLDSHARED = ld -Bshareable XCCSHARED = -fpic X XPY_MODS = pgext pgtools XPY_PYCS = ${PY_MODS:=.pyc} X XPYGRESQL_DIR = /usr/python15/lib/site-python X X Xall: ${CEXT_MOD} ${PY_PYCS} X Xpgtools.py: tutorial/pgtools.py X ln -fs ${.CURDIR}/tutorial/pgtools.py ${.CURDIR}/pgtools.py X Xinstall: all dirs X for p in ${PY_PYCS}; do \ X ${INSTALL} -c -m 0444 -o bin -g bin $$p ${PYGRESQL_DIR}; done X ${INSTALL} -c -m 0444 -o bin -g bin ${CEXT_MOD} ${PYGRESQL_DIR} X Xdirs: X mkdir -p ${PYGRESQL_DIR} X X${CEXT_MOD}: ${CEXT_OBJ} X ${LDSHARED} ${LDFLAGS} ${CEXT_OBJ} ${LIBS} -o ${CEXT_MOD} X X${CEXT_SRC}: ${CEXT_INT} X ${SWIG} -python ${CEXT_INT} X X${CEXT_OBJ}: ${CEXT_WRAP} X ${CC} -c ${CCSHARED} ${CPPFLAGS} ${CFLAGS} ${.ALLSRC} X X.py.pyc: X PYTHONPATH=${.CURDIR}/.. ${PYTHON} -c 'import ${<:.py=}' X Xclean: X rm -f *_wrap* *.o *.so *.pyc *.core *~ .~* X Xdistclean: clean X rm Makefile config.cache config.status config.log END-of-py-PyGreSQL/scripts/Makefile echo x - py-PyGreSQL/scripts/Makefile.in sed 's/^X//' >py-PyGreSQL/scripts/Makefile.in << 'END-of-py-PyGreSQL/scripts/Makefile.in' X# $Id: Makefile.in,v 1.1 1998/06/26 02:49:51 nectar Exp $ X.SUFFIXES: .py .pyc X XCC = @CC@ XINSTALL = @INSTALL@ X XCEXT_SRC = pgmodule.c XCEXT_OBJ = ${CEXT_SRC:.c=.o} XCEXT_MOD = pgmodule${SO} X XCFLAGS = @CFLAGS@ XCPPFLAGS = @CPPFLAGS@ XLDFLAGS = @LDFLAGS@ XLIBS = @LIBS@ X XPYTHON = @python@ XPREFIX = @prefix@ X XSO = @SO@ XLDSHARED = @LDSHARED@ XCCSHARED = @CCSHARED@ X XPY_MODS = pgext pgtools X XPY_SITE_PYTHON = @PY_SITE_PYTHON@ X X Xall: ${CEXT_MOD} ${PY_MODS:=.pyc} X Xpgtools.py: tutorial/pgtools.py X ln -fs ${.CURDIR}/tutorial/pgtools.py ${.CURDIR}/pgtools.py X Xinstall: all X for p in ${PY_MODS:=.py} ${PY_MODS:=.pyc}; do \ X ${INSTALL} -c -m 0444 -o bin -g bin $$p ${PY_SITE_PYTHON}; done X ${INSTALL} -c -m 0444 -o bin -g bin ${CEXT_MOD} ${PY_SITE_PYTHON} X X${CEXT_MOD}: ${CEXT_OBJ} X ${LDSHARED} ${LDFLAGS} ${CEXT_OBJ} ${LIBS} -o ${CEXT_MOD} X X${CEXT_SRC}: ${CEXT_INT} X ${SWIG} -python ${CEXT_INT} X X${CEXT_OBJ}: ${CEXT_WRAP} X ${CC} -c ${CCSHARED} ${CPPFLAGS} ${CFLAGS} ${.ALLSRC} X X.py.pyc: X PYTHONPATH=${.CURDIR}/.. ${PYTHON} -c 'import ${<:.py=}' X Xclean: X rm -f *_wrap* *.o *.so *.pyc *.core *~ .~* X Xdistclean: clean X rm Makefile config.cache config.status config.log END-of-py-PyGreSQL/scripts/Makefile.in echo x - py-PyGreSQL/scripts/configure.in sed 's/^X//' >py-PyGreSQL/scripts/configure.in << 'END-of-py-PyGreSQL/scripts/configure.in' X# $Id: configure.in,v 1.1 1998/06/26 02:49:51 nectar Exp $ X Xdnl Process this file with autoconf to produce a configure script. XAC_INIT() X Xdnl Checks for programs. XAC_PROG_INSTALL XAC_PROG_CC XAC_PATH_PROG(python, python) Xif test "$python" = ""; then X AC_MSG_ERROR([The python interpreter could not be located. Make sure Xthat it is in your path.]) Xfi X Xdnl Get some information from Python XPYTHON_CONFIG="$PY_EXEC_PREFIX/lib/python1.5/config" XAC_SUBST(PY_SITE_PYTHON) X X Xdnl Checks for libraries. XAC_CHECK_LIB(m, pow) XAC_CHECK_LIB(readline, read_history) XAC_CHECK_LIB(crypt, crypt) XAC_CHECK_LIB(python1.5, PyArg_Parse, [pythonlib=yes;LIBS="$LIBS -lpython1.5"]) Xif test "$pythonlib" != "yes"; then X AC_MSG_ERROR([The Python 1.5 library could not be found.]) Xfi XAC_CHECK_LIB(pq, PQfinish, [pqlib=yes;LIBS="$LIBS -lpq"]) Xif test "$pqlib" != "yes"; then X AC_MSG_ERROR([The PostgreSQL library, libpq.a, could not be found.]) Xfi X Xdnl Checks for header files. XAC_CHECK_HEADER(Python.h, pythonh=yes) Xif test "$pythonh" != "yes"; then X AC_MSG_ERROR([The Python header files could not be found.]) Xfi XAC_CHECK_HEADER(libpq-fe.h, pqh=yes) Xif test "$pqh" != "yes"; then X AC_MSG_ERROR([The PostgreSQL header files could not be found.]) Xfi X X Xdnl Figure out how to build shared libraries by seeing how Xdnl Python did it. XAC_SUBST(SO) XAC_SUBST(LDSHARED) XAC_SUBST(CCSHARED) XAC_MSG_CHECKING(SO) Xif SO=`grep ^SO $PYTHON_CONFIG/Makefile | cut -d '=' -f 2-`; then :; else X AC_MSG_ERROR([I couldn't figure out what SO should be.]) Xfi XAC_MSG_RESULT($SO) XAC_MSG_CHECKING(LDSHARED) Xif LDSHARED=`grep ^LDSHARED $PYTHON_CONFIG/Makefile | cut -d '=' -f 2-`; then :; else X AC_MSG_ERROR([I couldn't figure out what LDSHARED should be.]) Xfi XAC_MSG_RESULT($LDSHARED) XAC_MSG_CHECKING(CCSHARED) Xif CCSHARED=`grep ^CCSHARED $PYTHON_CONFIG/Makefile | cut -d '=' -f 2-`; then :; else X AC_MSG_ERROR([I couldn't figure out what CCSHARED should be.]) Xfi XAC_MSG_RESULT($CCSHARED) X X Xdnl one last thing Xif test "$MAKE" = ""; then X MAKE="make" Xfi XAC_SUBST(MAKE) XAC_OUTPUT(Makefile) END-of-py-PyGreSQL/scripts/configure.in echo x - py-PyGreSQL/scripts/configure.local sed 's/^X//' >py-PyGreSQL/scripts/configure.local << 'END-of-py-PyGreSQL/scripts/configure.local' X#! /bin/sh X X# Guess values for system-dependent variables and create Makefiles. X# Generated automatically using autoconf version 2.12 X# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. X# X# This configure script is free software; the Free Software Foundation X# gives unlimited permission to copy, distribute and modify it. X X# Defaults: Xac_help= Xac_default_prefix=/usr/local X# Any additions from configure.in: X X# Initialize some variables set by options. X# The variables have the same names as the options, with X# dashes changed to underlines. Xbuild=NONE Xcache_file=./config.cache Xexec_prefix=NONE Xhost=NONE Xno_create= Xnonopt=NONE Xno_recursion= Xprefix=NONE Xprogram_prefix=NONE Xprogram_suffix=NONE Xprogram_transform_name=s,x,x, Xsilent= Xsite= Xsrcdir= Xtarget=NONE Xverbose= Xx_includes=NONE Xx_libraries=NONE Xbindir='${exec_prefix}/bin' Xsbindir='${exec_prefix}/sbin' Xlibexecdir='${exec_prefix}/libexec' Xdatadir='${prefix}/share' Xsysconfdir='${prefix}/etc' Xsharedstatedir='${prefix}/com' Xlocalstatedir='${prefix}/var' Xlibdir='${exec_prefix}/lib' Xincludedir='${prefix}/include' Xoldincludedir='/usr/include' Xinfodir='${prefix}/info' Xmandir='${prefix}/man' X X# Initialize some other variables. Xsubdirs= XMFLAGS= MAKEFLAGS= X# Maximum number of lines to put in a shell here document. Xac_max_here_lines=12 X Xac_prev= Xfor ac_option Xdo X X # If the previous option needs an argument, assign it. X if test -n "$ac_prev"; then X eval "$ac_prev=\$ac_option" X ac_prev= X continue X fi X X case "$ac_option" in X -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; X *) ac_optarg= ;; X esac X X # Accept the important Cygnus configure options, so we can diagnose typos. X X case "$ac_option" in X X -bindir | --bindir | --bindi | --bind | --bin | --bi) X ac_prev=bindir ;; X -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) X bindir="$ac_optarg" ;; X X -build | --build | --buil | --bui | --bu) X ac_prev=build ;; X -build=* | --build=* | --buil=* | --bui=* | --bu=*) X build="$ac_optarg" ;; X X -cache-file | --cache-file | --cache-fil | --cache-fi \ X | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) X ac_prev=cache_file ;; X -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ X | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) X cache_file="$ac_optarg" ;; X X -datadir | --datadir | --datadi | --datad | --data | --dat | --da) X ac_prev=datadir ;; X -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ X | --da=*) X datadir="$ac_optarg" ;; X X -disable-* | --disable-*) X ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` X # Reject names that are not valid shell variable names. X if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then X { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } X fi X ac_feature=`echo $ac_feature| sed 's/-/_/g'` X eval "enable_${ac_feature}=no" ;; X X -enable-* | --enable-*) X ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` X # Reject names that are not valid shell variable names. X if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then X { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } X fi X ac_feature=`echo $ac_feature| sed 's/-/_/g'` X case "$ac_option" in X *=*) ;; X *) ac_optarg=yes ;; X esac X eval "enable_${ac_feature}='$ac_optarg'" ;; X X -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ X | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ X | --exec | --exe | --ex) X ac_prev=exec_prefix ;; X -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ X | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ X | --exec=* | --exe=* | --ex=*) X exec_prefix="$ac_optarg" ;; X X -gas | --gas | --ga | --g) X # Obsolete; use --with-gas. X with_gas=yes ;; X X -help | --help | --hel | --he) X # Omit some internal or obsolete options to make the list less imposing. X # This message is too long to be a string in the A/UX 3.1 sh. X cat << EOF XUsage: configure [options] [host] XOptions: [defaults in brackets after descriptions] XConfiguration: X --cache-file=FILE cache test results in FILE X --help print this message X --no-create do not create output files X --quiet, --silent do not print \`checking...' messages X --version print the version of autoconf that created configure XDirectory and file names: X --prefix=PREFIX install architecture-independent files in PREFIX X [$ac_default_prefix] X --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX X [same as prefix] X --bindir=DIR user executables in DIR [EPREFIX/bin] X --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] X --libexecdir=DIR program executables in DIR [EPREFIX/libexec] X --datadir=DIR read-only architecture-independent data in DIR X [PREFIX/share] X --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] X --sharedstatedir=DIR modifiable architecture-independent data in DIR X [PREFIX/com] X --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] X --libdir=DIR object code libraries in DIR [EPREFIX/lib] X --includedir=DIR C header files in DIR [PREFIX/include] X --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] X --infodir=DIR info documentation in DIR [PREFIX/info] X --mandir=DIR man documentation in DIR [PREFIX/man] X --srcdir=DIR find the sources in DIR [configure dir or ..] X --program-prefix=PREFIX prepend PREFIX to installed program names X --program-suffix=SUFFIX append SUFFIX to installed program names X --program-transform-name=PROGRAM X run sed PROGRAM on installed program names XEOF X cat << EOF XHost type: X --build=BUILD configure for building on BUILD [BUILD=HOST] X --host=HOST configure for HOST [guessed] X --target=TARGET configure for TARGET [TARGET=HOST] XFeatures and packages: X --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) X --enable-FEATURE[=ARG] include FEATURE [ARG=yes] X --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] X --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) X --x-includes=DIR X include files are in DIR X --x-libraries=DIR X library files are in DIR XEOF X if test -n "$ac_help"; then X echo "--enable and --with options recognized:$ac_help" X fi X exit 0 ;; X X -host | --host | --hos | --ho) X ac_prev=host ;; X -host=* | --host=* | --hos=* | --ho=*) X host="$ac_optarg" ;; X X -includedir | --includedir | --includedi | --included | --include \ X | --includ | --inclu | --incl | --inc) X ac_prev=includedir ;; X -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ X | --includ=* | --inclu=* | --incl=* | --inc=*) X includedir="$ac_optarg" ;; X X -infodir | --infodir | --infodi | --infod | --info | --inf) X ac_prev=infodir ;; X -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) X infodir="$ac_optarg" ;; X X -libdir | --libdir | --libdi | --libd) X ac_prev=libdir ;; X -libdir=* | --libdir=* | --libdi=* | --libd=*) X libdir="$ac_optarg" ;; X X -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ X | --libexe | --libex | --libe) X ac_prev=libexecdir ;; X -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ X | --libexe=* | --libex=* | --libe=*) X libexecdir="$ac_optarg" ;; X X -localstatedir | --localstatedir | --localstatedi | --localstated \ X | --localstate | --localstat | --localsta | --localst \ X | --locals | --local | --loca | --loc | --lo) X ac_prev=localstatedir ;; X -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ X | --localstate=* | --localstat=* | --localsta=* | --localst=* \ X | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) X localstatedir="$ac_optarg" ;; X X -mandir | --mandir | --mandi | --mand | --man | --ma | --m) X ac_prev=mandir ;; X -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) X mandir="$ac_optarg" ;; X X -nfp | --nfp | --nf) X # Obsolete; use --without-fp. X with_fp=no ;; X X -no-create | --no-create | --no-creat | --no-crea | --no-cre \ X | --no-cr | --no-c) X no_create=yes ;; X X -no-recursion | --no-recursion | --no-recursio | --no-recursi \ X | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) X no_recursion=yes ;; X X -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ X | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ X | --oldin | --oldi | --old | --ol | --o) X ac_prev=oldincludedir ;; X -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ X | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ X | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) X oldincludedir="$ac_optarg" ;; X X -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) X ac_prev=prefix ;; X -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) X prefix="$ac_optarg" ;; X X -program-prefix | --program-prefix | --program-prefi | --program-pref \ X | --program-pre | --program-pr | --program-p) X ac_prev=program_prefix ;; X -program-prefix=* | --program-prefix=* | --program-prefi=* \ X | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) X program_prefix="$ac_optarg" ;; X X -program-suffix | --program-suffix | --program-suffi | --program-suff \ X | --program-suf | --program-su | --program-s) X ac_prev=program_suffix ;; X -program-suffix=* | --program-suffix=* | --program-suffi=* \ X | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) X program_suffix="$ac_optarg" ;; X X -program-transform-name | --program-transform-name \ X | --program-transform-nam | --program-transform-na \ X | --program-transform-n | --program-transform- \ X | --program-transform | --program-transfor \ X | --program-transfo | --program-transf \ X | --program-trans | --program-tran \ X | --progr-tra | --program-tr | --program-t) X ac_prev=program_transform_name ;; X -program-transform-name=* | --program-transform-name=* \ X | --program-transform-nam=* | --program-transform-na=* \ X | --program-transform-n=* | --program-transform-=* \ X | --program-transform=* | --program-transfor=* \ X | --program-transfo=* | --program-transf=* \ X | --program-trans=* | --program-tran=* \ X | --progr-tra=* | --program-tr=* | --program-t=*) X program_transform_name="$ac_optarg" ;; X X -q | -quiet | --quiet | --quie | --qui | --qu | --q \ X | -silent | --silent | --silen | --sile | --sil) X silent=yes ;; X X -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) X ac_prev=sbindir ;; X -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ X | --sbi=* | --sb=*) X sbindir="$ac_optarg" ;; X X -sharedstatedir | --sharedstatedir | --sharedstatedi \ X | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ X | --sharedst | --shareds | --shared | --share | --shar \ X | --sha | --sh) X ac_prev=sharedstatedir ;; X -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ X | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ X | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ X | --sha=* | --sh=*) X sharedstatedir="$ac_optarg" ;; X X -site | --site | --sit) X ac_prev=site ;; X -site=* | --site=* | --sit=*) X site="$ac_optarg" ;; X X -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) X ac_prev=srcdir ;; X -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) X srcdir="$ac_optarg" ;; X X -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ X | --syscon | --sysco | --sysc | --sys | --sy) X ac_prev=sysconfdir ;; X -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ X | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) X sysconfdir="$ac_optarg" ;; X X -target | --target | --targe | --targ | --tar | --ta | --t) X ac_prev=target ;; X -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) X target="$ac_optarg" ;; X X -v | -verbose | --verbose | --verbos | --verbo | --verb) X verbose=yes ;; X X -version | --version | --versio | --versi | --vers) X echo "configure generated by autoconf version 2.12" X exit 0 ;; X X -with-* | --with-*) X ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` X # Reject names that are not valid shell variable names. X if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then X { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } X fi X ac_package=`echo $ac_package| sed 's/-/_/g'` X case "$ac_option" in X *=*) ;; X *) ac_optarg=yes ;; X esac X eval "with_${ac_package}='$ac_optarg'" ;; X X -without-* | --without-*) X ac_package=`echo $ac_option|sed -e 's/-*without-//'` X # Reject names that are not valid shell variable names. X if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then X { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } X fi X ac_package=`echo $ac_package| sed 's/-/_/g'` X eval "with_${ac_package}=no" ;; X X --x) X # Obsolete; use --with-x. X with_x=yes ;; X X -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ X | --x-incl | --x-inc | --x-in | --x-i) X ac_prev=x_includes ;; X -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ X | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) X x_includes="$ac_optarg" ;; X X -x-libraries | --x-libraries | --x-librarie | --x-librari \ X | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) X ac_prev=x_libraries ;; X -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ X | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) X x_libraries="$ac_optarg" ;; X X -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } X ;; X X *) X if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then X echo "configure: warning: $ac_option: invalid host type" 1>&2 X fi X if test "x$nonopt" != xNONE; then X { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } X fi X nonopt="$ac_option" X ;; X X esac Xdone X Xif test -n "$ac_prev"; then X { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } Xfi X Xtrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 X X# File descriptor usage: X# 0 standard input X# 1 file creation X# 2 errors and warnings X# 3 some systems may open it to /dev/tty X# 4 used on the Kubota Titan X# 6 checking for... messages and results X# 5 compiler messages saved in config.log Xif test "$silent" = yes; then X exec 6>/dev/null Xelse X exec 6>&1 Xfi Xexec 5>./config.log X Xecho "\ XThis file contains any messages produced by compilers while Xrunning configure, to aid debugging if configure makes a mistake. X" 1>&5 X X# Strip out --no-create and --no-recursion so they do not pile up. X# Also quote any args containing shell metacharacters. Xac_configure_args= Xfor ac_arg Xdo X case "$ac_arg" in X -no-create | --no-create | --no-creat | --no-crea | --no-cre \ X | --no-cr | --no-c) ;; X -no-recursion | --no-recursion | --no-recursio | --no-recursi \ X | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; X *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) X ac_configure_args="$ac_configure_args '$ac_arg'" ;; X *) ac_configure_args="$ac_configure_args $ac_arg" ;; X esac Xdone X X# NLS nuisances. X# Only set these to C if already set. These must not be set unconditionally X# because not all systems understand e.g. LANG=C (notably SCO). X# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! X# Non-C LC_CTYPE values break the ctype check. Xif test "${LANG+set}" = set; then LANG=C; export LANG; fi Xif test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi Xif test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi Xif test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi X X# confdefs.h avoids OS command line length limits that DEFS can exceed. Xrm -rf conftest* confdefs.h X# AIX cpp loses on an empty file, so make sure it contains at least a newline. Xecho > confdefs.h X X# A filename unique to this package, relative to the directory that X# configure is in, which we can look for to find out if srcdir is correct. Xac_unique_file= X X# Find the source files, if location was not specified. Xif test -z "$srcdir"; then X ac_srcdir_defaulted=yes X # Try the directory containing this script, then its parent. X ac_prog=$0 X ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` X test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. X srcdir=$ac_confdir X if test ! -r $srcdir/$ac_unique_file; then X srcdir=.. X fi Xelse X ac_srcdir_defaulted=no Xfi Xif test ! -r $srcdir/$ac_unique_file; then X if test "$ac_srcdir_defaulted" = yes; then X { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } X else X { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } X fi Xfi Xsrcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` X X# Prefer explicitly selected file to automatically selected ones. Xif test -z "$CONFIG_SITE"; then X if test "x$prefix" != xNONE; then X CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" X else X CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" X fi Xfi Xfor ac_site_file in $CONFIG_SITE; do X if test -r "$ac_site_file"; then X echo "loading site script $ac_site_file" X . "$ac_site_file" X fi Xdone X Xif test -r "$cache_file"; then X echo "loading cache $cache_file" X . $cache_file Xelse X echo "creating cache $cache_file" X > $cache_file Xfi X Xac_ext=c X# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. Xac_cpp='$CPP $CPPFLAGS' Xac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' Xac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' Xcross_compiling=$ac_cv_prog_cc_cross X Xif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then X # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. X if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then X ac_n= ac_c=' X' ac_t=' ' X else X ac_n=-n ac_c= ac_t= X fi Xelse X ac_n= ac_c='\c' ac_t= Xfi X X X Xac_aux_dir= Xfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do X if test -f $ac_dir/install-sh; then X ac_aux_dir=$ac_dir X ac_install_sh="$ac_aux_dir/install-sh -c" X break X elif test -f $ac_dir/install.sh; then X ac_aux_dir=$ac_dir X ac_install_sh="$ac_aux_dir/install.sh -c" X break X fi Xdone Xif test -z "$ac_aux_dir"; then X { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } Xfi Xac_config_guess=$ac_aux_dir/config.guess Xac_config_sub=$ac_aux_dir/config.sub Xac_configure=$ac_aux_dir/configure # This should be Cygnus configure. X X# Find a good install program. We prefer a C program (faster), X# so one script is as good as another. But avoid the broken or X# incompatible versions: X# SysV /etc/install, /usr/sbin/install X# SunOS /usr/etc/install X# IRIX /sbin/install X# AIX /bin/install X# AFS /usr/afsws/bin/install, which mishandles nonexistent args X# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" X# ./install, which can be erroneously created by make from ./install.sh. Xecho $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 Xecho "configure:553: checking for a BSD compatible install" >&5 Xif test -z "$INSTALL"; then Xif eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 Xelse X IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" X for ac_dir in $PATH; do X # Account for people who put trailing slashes in PATH elements. X case "$ac_dir/" in X /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; X *) X # OSF1 and SCO ODT 3.0 have their own names for install. X for ac_prog in ginstall installbsd scoinst install; do X if test -f $ac_dir/$ac_prog; then X if test $ac_prog = install && X grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then X # AIX install. It has an incompatible calling convention. X # OSF/1 installbsd also uses dspmsg, but is usable. X : X else X ac_cv_path_install="$ac_dir/$ac_prog -c" X break 2 X fi X fi X done X ;; X esac X done X IFS="$ac_save_IFS" X Xfi X if test "${ac_cv_path_install+set}" = set; then X INSTALL="$ac_cv_path_install" X else X # As a last resort, use the slow shell script. We don't cache a X # path for INSTALL within a source directory, because that will X # break other packages using the cache if that directory is X # removed, or if the path is relative. X INSTALL="$ac_install_sh" X fi Xfi Xecho "$ac_t""$INSTALL" 1>&6 X X# Use test -z because SunOS4 sh mishandles braces in ${var-val}. X# It thinks the first close brace ends the variable substitution. Xtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' X Xtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' X X# Extract the first word of "gcc", so it can be a program name with args. Xset dummy gcc; ac_word=$2 Xecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 Xecho "configure:605: checking for $ac_word" >&5 Xif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 Xelse X if test -n "$CC"; then X ac_cv_prog_CC="$CC" # Let the user override the test. Xelse X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" X for ac_dir in $PATH; do X test -z "$ac_dir" && ac_dir=. X if test -f $ac_dir/$ac_word; then X ac_cv_prog_CC="gcc" X break X fi X done X IFS="$ac_save_ifs" Xfi Xfi XCC="$ac_cv_prog_CC" Xif test -n "$CC"; then X echo "$ac_t""$CC" 1>&6 Xelse X echo "$ac_t""no" 1>&6 Xfi X Xif test -z "$CC"; then X # Extract the first word of "cc", so it can be a program name with args. Xset dummy cc; ac_word=$2 Xecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 Xecho "configure:634: checking for $ac_word" >&5 Xif eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 Xelse X if test -n "$CC"; then X ac_cv_prog_CC="$CC" # Let the user override the test. Xelse X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" X ac_prog_rejected=no X for ac_dir in $PATH; do X test -z "$ac_dir" && ac_dir=. X if test -f $ac_dir/$ac_word; then X if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then X ac_prog_rejected=yes X continue X fi X ac_cv_prog_CC="cc" X break X fi X done X IFS="$ac_save_ifs" Xif test $ac_prog_rejected = yes; then X # We found a bogon in the path, so make sure we never use it. X set dummy $ac_cv_prog_CC X shift X if test $# -gt 0; then X # We chose a different compiler from the bogus one. X # However, it has the same basename, so the bogon will be chosen X # first if we set CC to just the basename; use the full file name. X shift X set dummy "$ac_dir/$ac_word" "$@" X shift X ac_cv_prog_CC="$@" X fi Xfi Xfi Xfi XCC="$ac_cv_prog_CC" Xif test -n "$CC"; then X echo "$ac_t""$CC" 1>&6 Xelse X echo "$ac_t""no" 1>&6 Xfi X X test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } Xfi X Xecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 Xecho "configure:682: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 X Xac_ext=c X# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. Xac_cpp='$CPP $CPPFLAGS' Xac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' Xac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' Xcross_compiling=$ac_cv_prog_cc_cross X Xcat > conftest.$ac_ext <<EOF X#line 692 "configure" X#include "confdefs.h" Xmain(){return(0);} XEOF Xif { (eval echo configure:696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then X ac_cv_prog_cc_works=yes X # If we can't run a trivial program, we are probably using a cross compiler. X if (./conftest; exit) 2>/dev/null; then X ac_cv_prog_cc_cross=no X else X ac_cv_prog_cc_cross=yes X fi Xelse X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X ac_cv_prog_cc_works=no Xfi Xrm -fr conftest* X Xecho "$ac_t""$ac_cv_prog_cc_works" 1>&6 Xif test $ac_cv_prog_cc_works = no; then X { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } Xfi Xecho $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 Xecho "configure:716: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 Xecho "$ac_t""$ac_cv_prog_cc_cross" 1>&6 Xcross_compiling=$ac_cv_prog_cc_cross X Xecho $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 Xecho "configure:721: checking whether we are using GNU C" >&5 Xif eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 Xelse X cat > conftest.c <<EOF X#ifdef __GNUC__ X yes; X#endif XEOF Xif { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then X ac_cv_prog_gcc=yes Xelse X ac_cv_prog_gcc=no Xfi Xfi X Xecho "$ac_t""$ac_cv_prog_gcc" 1>&6 X Xif test $ac_cv_prog_gcc = yes; then X GCC=yes X ac_test_CFLAGS="${CFLAGS+set}" X ac_save_CFLAGS="$CFLAGS" X CFLAGS= X echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 Xecho "configure:745: checking whether ${CC-cc} accepts -g" >&5 Xif eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 Xelse X echo 'void f(){}' > conftest.c Xif test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then X ac_cv_prog_cc_g=yes Xelse X ac_cv_prog_cc_g=no Xfi Xrm -f conftest* X Xfi X Xecho "$ac_t""$ac_cv_prog_cc_g" 1>&6 X if test "$ac_test_CFLAGS" = set; then X CFLAGS="$ac_save_CFLAGS" X elif test $ac_cv_prog_cc_g = yes; then X CFLAGS="-g -O2" X else X CFLAGS="-O2" X fi Xelse X GCC= X test "${CFLAGS+set}" = set || CFLAGS="-g" Xfi X X# Extract the first word of "python", so it can be a program name with args. Xset dummy python; ac_word=$2 Xecho $ac_n "checking for $ac_word""... $ac_c" 1>&6 Xecho "configure:775: checking for $ac_word" >&5 Xif eval "test \"`echo '$''{'ac_cv_path_python'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 Xelse X case "$python" in X /*) X ac_cv_path_python="$python" # Let the user override the test with a path. X ;; X *) X IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" X for ac_dir in $PATH; do X test -z "$ac_dir" && ac_dir=. X if test -f $ac_dir/$ac_word; then X ac_cv_path_python="$ac_dir/$ac_word" X break X fi X done X IFS="$ac_save_ifs" X ;; Xesac Xfi Xpython="$ac_cv_path_python" Xif test -n "$python"; then X echo "$ac_t""$python" 1>&6 Xelse X echo "$ac_t""no" 1>&6 Xfi X Xif test "$python" = ""; then X { echo "configure: error: The python interpreter could not be located. Make sure Xthat it is in your path." 1>&2; exit 1; } Xfi X XPYTHON_CONFIG="$PY_EXEC_PREFIX/lib/python1.5/config" X X X Xecho $ac_n "checking for pow in -lm""... $ac_c" 1>&6 Xecho "configure:813: checking for pow in -lm" >&5 Xac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'` Xif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 Xelse X ac_save_LIBS="$LIBS" XLIBS="-lm $LIBS" Xcat > conftest.$ac_ext <<EOF X#line 821 "configure" X#include "confdefs.h" X/* Override any gcc2 internal prototype to avoid an error. */ X/* We use char because int might match the return type of a gcc2 X builtin and then its argument prototype would still apply. */ Xchar pow(); X Xint main() { Xpow() X; return 0; } XEOF Xif { (eval echo configure:832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then X rm -rf conftest* X eval "ac_cv_lib_$ac_lib_var=yes" Xelse X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_lib_$ac_lib_var=no" Xfi Xrm -f conftest* XLIBS="$ac_save_LIBS" X Xfi Xif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ X -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` X cat >> confdefs.h <<EOF X#define $ac_tr_lib 1 XEOF X X LIBS="-lm $LIBS" X Xelse X echo "$ac_t""no" 1>&6 Xfi X Xecho $ac_n "checking for read_history in -lreadline""... $ac_c" 1>&6 Xecho "configure:860: checking for read_history in -lreadline" >&5 Xac_lib_var=`echo readline'_'read_history | sed 'y%./+-%__p_%'` Xif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 Xelse X ac_save_LIBS="$LIBS" XLIBS="-lreadline $LIBS" Xcat > conftest.$ac_ext <<EOF X#line 868 "configure" X#include "confdefs.h" X/* Override any gcc2 internal prototype to avoid an error. */ X/* We use char because int might match the return type of a gcc2 X builtin and then its argument prototype would still apply. */ Xchar read_history(); X Xint main() { Xread_history() X; return 0; } XEOF Xif { (eval echo configure:879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then X rm -rf conftest* X eval "ac_cv_lib_$ac_lib_var=yes" Xelse X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_lib_$ac_lib_var=no" Xfi Xrm -f conftest* XLIBS="$ac_save_LIBS" X Xfi Xif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \ X -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` X cat >> confdefs.h <<EOF X#define $ac_tr_lib 1 XEOF X X LIBS="-lreadline $LIBS" X Xelse X echo "$ac_t""no" 1>&6 Xfi X Xecho $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 Xecho "configure:907: checking for crypt in -lcrypt" >&5 Xac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` Xif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 Xelse X ac_save_LIBS="$LIBS" XLIBS="-lcrypt $LIBS" Xcat > conftest.$ac_ext <<EOF X#line 915 "configure" X#include "confdefs.h" X/* Override any gcc2 internal prototype to avoid an error. */ X/* We use char because int might match the return type of a gcc2 X builtin and then its argument prototype would still apply. */ Xchar crypt(); X Xint main() { Xcrypt() X; return 0; } XEOF Xif { (eval echo configure:926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then X rm -rf conftest* X eval "ac_cv_lib_$ac_lib_var=yes" Xelse X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_lib_$ac_lib_var=no" Xfi Xrm -f conftest* XLIBS="$ac_save_LIBS" X Xfi Xif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then X echo "$ac_t""yes" 1>&6 X ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \ X -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` X cat >> confdefs.h <<EOF X#define $ac_tr_lib 1 XEOF X X LIBS="-lcrypt $LIBS" X Xelse X echo "$ac_t""no" 1>&6 Xfi X Xecho $ac_n "checking for PyArg_Parse in -lpython1.5""... $ac_c" 1>&6 Xecho "configure:954: checking for PyArg_Parse in -lpython1.5" >&5 Xac_lib_var=`echo python1.5'_'PyArg_Parse | sed 'y%./+-%__p_%'` Xif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 Xelse X ac_save_LIBS="$LIBS" XLIBS="-lpython1.5 $LIBS" Xcat > conftest.$ac_ext <<EOF X#line 962 "configure" X#include "confdefs.h" X/* Override any gcc2 internal prototype to avoid an error. */ X/* We use char because int might match the return type of a gcc2 X builtin and then its argument prototype would still apply. */ Xchar PyArg_Parse(); X Xint main() { XPyArg_Parse() X; return 0; } XEOF Xif { (eval echo configure:973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then X rm -rf conftest* X eval "ac_cv_lib_$ac_lib_var=yes" Xelse X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_lib_$ac_lib_var=no" Xfi Xrm -f conftest* XLIBS="$ac_save_LIBS" X Xfi Xif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then X echo "$ac_t""yes" 1>&6 X pythonlib=yes;LIBS="$LIBS -lpython1.5" Xelse X echo "$ac_t""no" 1>&6 Xfi X Xif test "$pythonlib" != "yes"; then X { echo "configure: error: The Python 1.5 library could not be found." 1>&2; exit 1; } Xfi Xecho $ac_n "checking for PQfinish in -lpq""... $ac_c" 1>&6 Xecho "configure:997: checking for PQfinish in -lpq" >&5 Xac_lib_var=`echo pq'_'PQfinish | sed 'y%./+-%__p_%'` Xif eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 Xelse X ac_save_LIBS="$LIBS" XLIBS="-lpq $LIBS" Xcat > conftest.$ac_ext <<EOF X#line 1005 "configure" X#include "confdefs.h" X/* Override any gcc2 internal prototype to avoid an error. */ X/* We use char because int might match the return type of a gcc2 X builtin and then its argument prototype would still apply. */ Xchar PQfinish(); X Xint main() { XPQfinish() X; return 0; } XEOF Xif { (eval echo configure:1016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then X rm -rf conftest* X eval "ac_cv_lib_$ac_lib_var=yes" Xelse X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_lib_$ac_lib_var=no" Xfi Xrm -f conftest* XLIBS="$ac_save_LIBS" X Xfi Xif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then X echo "$ac_t""yes" 1>&6 X pqlib=yes;LIBS="$LIBS -lpq" Xelse X echo "$ac_t""no" 1>&6 Xfi X Xif test "$pqlib" != "yes"; then X { echo "configure: error: The PostgreSQL library, libpq.a, could not be found." 1>&2; exit 1; } Xfi X Xecho $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 Xecho "configure:1041: checking how to run the C preprocessor" >&5 X# On Suns, sometimes $CPP names a directory. Xif test -n "$CPP" && test -d "$CPP"; then X CPP= Xfi Xif test -z "$CPP"; then Xif eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 Xelse X # This must be in double quotes, not single quotes, because CPP may get X # substituted into the Makefile and "${CC-cc}" will confuse make. X CPP="${CC-cc} -E" X # On the NeXT, cc -E runs the code through the compiler's parser, X # not just through cpp. X cat > conftest.$ac_ext <<EOF X#line 1056 "configure" X#include "confdefs.h" X#include <assert.h> XSyntax Error XEOF Xac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" X{ (eval echo configure:1062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } Xac_err=`grep -v '^ *+' conftest.out` Xif test -z "$ac_err"; then X : Xelse X echo "$ac_err" >&5 X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X CPP="${CC-cc} -E -traditional-cpp" X cat > conftest.$ac_ext <<EOF X#line 1073 "configure" X#include "confdefs.h" X#include <assert.h> XSyntax Error XEOF Xac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" X{ (eval echo configure:1079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } Xac_err=`grep -v '^ *+' conftest.out` Xif test -z "$ac_err"; then X : Xelse X echo "$ac_err" >&5 X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X CPP=/lib/cpp Xfi Xrm -f conftest* Xfi Xrm -f conftest* X ac_cv_prog_CPP="$CPP" Xfi X CPP="$ac_cv_prog_CPP" Xelse X ac_cv_prog_CPP="$CPP" Xfi Xecho "$ac_t""$CPP" 1>&6 X Xac_safe=`echo "Python.h" | sed 'y%./+-%__p_%'` Xecho $ac_n "checking for Python.h""... $ac_c" 1>&6 Xecho "configure:1103: checking for Python.h" >&5 Xif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 Xelse X cat > conftest.$ac_ext <<EOF X#line 1108 "configure" X#include "confdefs.h" X#include <Python.h> XEOF Xac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" X{ (eval echo configure:1113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } Xac_err=`grep -v '^ *+' conftest.out` Xif test -z "$ac_err"; then X rm -rf conftest* X eval "ac_cv_header_$ac_safe=yes" Xelse X echo "$ac_err" >&5 X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_header_$ac_safe=no" Xfi Xrm -f conftest* Xfi Xif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then X echo "$ac_t""yes" 1>&6 X pythonh=yes Xelse X echo "$ac_t""no" 1>&6 Xfi X Xif test "$pythonh" != "yes"; then X { echo "configure: error: The Python header files could not be found." 1>&2; exit 1; } Xfi Xac_safe=`echo "libpq-fe.h" | sed 'y%./+-%__p_%'` Xecho $ac_n "checking for libpq-fe.h""... $ac_c" 1>&6 Xecho "configure:1139: checking for libpq-fe.h" >&5 Xif eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then X echo $ac_n "(cached) $ac_c" 1>&6 Xelse X cat > conftest.$ac_ext <<EOF X#line 1144 "configure" X#include "confdefs.h" X#include <libpq-fe.h> XEOF Xac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" X{ (eval echo configure:1149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } Xac_err=`grep -v '^ *+' conftest.out` Xif test -z "$ac_err"; then X rm -rf conftest* X eval "ac_cv_header_$ac_safe=yes" Xelse X echo "$ac_err" >&5 X echo "configure: failed program was:" >&5 X cat conftest.$ac_ext >&5 X rm -rf conftest* X eval "ac_cv_header_$ac_safe=no" Xfi Xrm -f conftest* Xfi Xif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then X echo "$ac_t""yes" 1>&6 X pqh=yes Xelse X echo "$ac_t""no" 1>&6 Xfi X Xif test "$pqh" != "yes"; then X { echo "configure: error: The PostgreSQL header files could not be found." 1>&2; exit 1; } Xfi X X X X X Xecho $ac_n "checking SO""... $ac_c" 1>&6 Xecho "configure:1179: checking SO" >&5 Xif SO=`grep ^SO $PYTHON_CONFIG/Makefile | cut -d '=' -f 2-`; then :; else X { echo "configure: error: I couldn't figure out what SO should be." 1>&2; exit 1; } Xfi Xecho "$ac_t""$SO" 1>&6 Xecho $ac_n "checking LDSHARED""... $ac_c" 1>&6 Xecho "configure:1185: checking LDSHARED" >&5 Xif LDSHARED=`grep ^LDSHARED $PYTHON_CONFIG/Makefile | cut -d '=' -f 2-`; then :; else X { echo "configure: error: I couldn't figure out what LDSHARED should be." 1>&2; exit 1; } Xfi Xecho "$ac_t""$LDSHARED" 1>&6 Xecho $ac_n "checking CCSHARED""... $ac_c" 1>&6 Xecho "configure:1191: checking CCSHARED" >&5 Xif CCSHARED=`grep ^CCSHARED $PYTHON_CONFIG/Makefile | cut -d '=' -f 2-`; then :; else X { echo "configure: error: I couldn't figure out what CCSHARED should be." 1>&2; exit 1; } Xfi Xecho "$ac_t""$CCSHARED" 1>&6 X X Xif test "$MAKE" = ""; then X MAKE="make" Xfi X Xtrap '' 1 2 15 Xcat > confcache <<\EOF X# This file is a shell script that caches the results of configure X# tests run on this system so they can be shared between configure X# scripts and configure runs. It is not useful on other systems. X# If it contains results you don't want to keep, you may remove or edit it. X# X# By default, configure uses ./config.cache as the cache file, X# creating it if it does not exist already. You can give configure X# the --cache-file=FILE option to use a different cache file; that is X# what configure does when it calls configure scripts in X# subdirectories, so they share the cache. X# Giving --cache-file=/dev/null disables caching, for debugging configure. X# config.status only pays attention to the cache file if you give it the X# --recheck option to rerun configure. X# XEOF X# The following way of writing the cache mishandles newlines in values, X# but we know of no workaround that is simple, portable, and efficient. X# So, don't put newlines in cache variables' values. X# Ultrix sh set writes to stderr and can't be redirected directly, X# and sets the high bit in the cache file unless we assign to the vars. X(set) 2>&1 | X case `(ac_space=' '; set) 2>&1` in X *ac_space=\ *) X # `set' does not quote correctly, so add quotes (double-quote substitution X # turns \\\\ into \\, and sed turns \\ into \). X sed -n \ X -e "s/'/'\\\\''/g" \ X -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" X ;; X *) X # `set' quotes correctly as required by POSIX, so do not add quotes. X sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' X ;; X esac >> confcache Xif cmp -s $cache_file confcache; then X : Xelse X if test -w $cache_file; then X echo "updating cache $cache_file" X cat confcache > $cache_file X else X echo "not updating unwritable cache $cache_file" X fi Xfi Xrm -f confcache X Xtrap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 X Xtest "x$prefix" = xNONE && prefix=$ac_default_prefix X# Let make expand exec_prefix. Xtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' X X# Any assignment to VPATH causes Sun make to only execute X# the first set of double-colon rules, so remove it if not needed. X# If there is a colon in the path, we need to keep it. Xif test "x$srcdir" = x.; then X ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' Xfi X Xtrap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 X X# Transform confdefs.h into DEFS. X# Protect against shell expansion while executing Makefile rules. X# Protect against Makefile macro expansion. Xcat > conftest.defs <<\EOF Xs%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g Xs%[ `~#$^&*(){}\\|;'"<>?]%\\&%g Xs%\[%\\&%g Xs%\]%\\&%g Xs%\$%$$%g XEOF XDEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` Xrm -f conftest.defs X X X# Without the "./", some shells look in PATH for config.status. X: ${CONFIG_STATUS=./config.status} X Xecho creating $CONFIG_STATUS Xrm -f $CONFIG_STATUS Xcat > $CONFIG_STATUS <<EOF X#! /bin/sh X# Generated automatically by configure. X# Run this file to recreate the current configuration. X# This directory was configured as follows, X# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: X# X# $0 $ac_configure_args X# X# Compiler output produced by configure, useful for debugging X# configure, is in ./config.log if it exists. X Xac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" Xfor ac_option Xdo X case "\$ac_option" in X -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) X echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" X exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; X -version | --version | --versio | --versi | --vers | --ver | --ve | --v) X echo "$CONFIG_STATUS generated by autoconf version 2.12" X exit 0 ;; X -help | --help | --hel | --he | --h) X echo "\$ac_cs_usage"; exit 0 ;; X *) echo "\$ac_cs_usage"; exit 1 ;; X esac Xdone X Xac_given_srcdir=$srcdir Xac_given_INSTALL="$INSTALL" X Xtrap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 XEOF Xcat >> $CONFIG_STATUS <<EOF X X# Protect against being on the right side of a sed subst in config.status. Xsed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; X s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF X$ac_vpsub X$extrasub Xs%@CFLAGS@%$CFLAGS%g Xs%@CPPFLAGS@%$CPPFLAGS%g Xs%@CXXFLAGS@%$CXXFLAGS%g Xs%@DEFS@%$DEFS%g Xs%@LDFLAGS@%$LDFLAGS%g Xs%@LIBS@%$LIBS%g Xs%@exec_prefix@%$exec_prefix%g Xs%@prefix@%$prefix%g Xs%@program_transform_name@%$program_transform_name%g Xs%@bindir@%$bindir%g Xs%@sbindir@%$sbindir%g Xs%@libexecdir@%$libexecdir%g Xs%@datadir@%$datadir%g Xs%@sysconfdir@%$sysconfdir%g Xs%@sharedstatedir@%$sharedstatedir%g Xs%@localstatedir@%$localstatedir%g Xs%@libdir@%$libdir%g Xs%@includedir@%$includedir%g Xs%@oldincludedir@%$oldincludedir%g Xs%@infodir@%$infodir%g Xs%@mandir@%$mandir%g Xs%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g Xs%@INSTALL_DATA@%$INSTALL_DATA%g Xs%@CC@%$CC%g Xs%@python@%$python%g Xs%@PY_SITE_PYTHON@%$PY_SITE_PYTHON%g Xs%@CPP@%$CPP%g Xs%@SO@%$SO%g Xs%@LDSHARED@%$LDSHARED%g Xs%@CCSHARED@%$CCSHARED%g Xs%@MAKE@%$MAKE%g X XCEOF XEOF X Xcat >> $CONFIG_STATUS <<\EOF X X# Split the substitutions into bite-sized pieces for seds with X# small command number limits, like on Digital OSF/1 and HP-UX. Xac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. Xac_file=1 # Number of current file. Xac_beg=1 # First line for current file. Xac_end=$ac_max_sed_cmds # Line after last line for current file. Xac_more_lines=: Xac_sed_cmds="" Xwhile $ac_more_lines; do X if test $ac_beg -gt 1; then X sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file X else X sed "${ac_end}q" conftest.subs > conftest.s$ac_file X fi X if test ! -s conftest.s$ac_file; then X ac_more_lines=false X rm -f conftest.s$ac_file X else X if test -z "$ac_sed_cmds"; then X ac_sed_cmds="sed -f conftest.s$ac_file" X else X ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" X fi X ac_file=`expr $ac_file + 1` X ac_beg=$ac_end X ac_end=`expr $ac_end + $ac_max_sed_cmds` X fi Xdone Xif test -z "$ac_sed_cmds"; then X ac_sed_cmds=cat Xfi XEOF X Xcat >> $CONFIG_STATUS <<EOF X XCONFIG_FILES=\${CONFIG_FILES-"Makefile"} XEOF Xcat >> $CONFIG_STATUS <<\EOF Xfor ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then X # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". X case "$ac_file" in X *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` X ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; X *) ac_file_in="${ac_file}.in" ;; X esac X X # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. X X # Remove last slash and all that follows it. Not all systems have dirname. X ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` X if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then X # The file is in a subdirectory. X test ! -d "$ac_dir" && mkdir "$ac_dir" X ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" X # A "../" for each directory in $ac_dir_suffix. X ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` X else X ac_dir_suffix= ac_dots= X fi X X case "$ac_given_srcdir" in X .) srcdir=. X if test -z "$ac_dots"; then top_srcdir=. X else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; X /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; X *) # Relative path. X srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" X top_srcdir="$ac_dots$ac_given_srcdir" ;; X esac X X case "$ac_given_INSTALL" in X [/$]*) INSTALL="$ac_given_INSTALL" ;; X *) INSTALL="$ac_dots$ac_given_INSTALL" ;; X esac X X echo creating "$ac_file" X rm -f "$ac_file" X configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." X case "$ac_file" in X *Makefile*) ac_comsub="1i\\ X# $configure_input" ;; X *) ac_comsub= ;; X esac X X ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` X sed -e "$ac_comsub Xs%@configure_input@%$configure_input%g Xs%@srcdir@%$srcdir%g Xs%@top_srcdir@%$top_srcdir%g Xs%@INSTALL@%$INSTALL%g X" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file Xfi; done Xrm -f conftest.s* X XEOF Xcat >> $CONFIG_STATUS <<EOF X XEOF Xcat >> $CONFIG_STATUS <<\EOF X Xexit 0 XEOF Xchmod +x $CONFIG_STATUS Xrm -fr confdefs* $ac_clean_files Xtest "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 X END-of-py-PyGreSQL/scripts/configure.local echo x - py-PyGreSQL/scripts/install-sh sed 's/^X//' >py-PyGreSQL/scripts/install-sh << 'END-of-py-PyGreSQL/scripts/install-sh' X#! /bin/sh X# X# install - install a program, script, or datafile X# This comes from X11R5 (mit/util/scripts/install.sh). X# X# Copyright 1991 by the Massachusetts Institute of Technology X# X# Permission to use, copy, modify, distribute, and sell this software and its X# documentation for any purpose is hereby granted without fee, provided that X# the above copyright notice appear in all copies and that both that X# copyright notice and this permission notice appear in supporting X# documentation, and that the name of M.I.T. not be used in advertising or X# publicity pertaining to distribution of the software without specific, X# written prior permission. M.I.T. makes no representations about the X# suitability of this software for any purpose. It is provided "as is" X# without express or implied warranty. X# X# Calling this script install-sh is preferred over install.sh, to prevent X# `make' implicit rules from creating a file called install from it X# when there is no Makefile. X# X# This script is compatible with the BSD install script, but was written X# from scratch. It can only install one file at a time, a restriction X# shared with many OS's install programs. X X X# set DOITPROG to echo to test this script X X# Don't use :- since 4.3BSD and earlier shells don't like it. Xdoit="${DOITPROG-}" X X X# put in absolute paths if you don't have them in your path; or use env. vars. X Xmvprog="${MVPROG-mv}" Xcpprog="${CPPROG-cp}" Xchmodprog="${CHMODPROG-chmod}" Xchownprog="${CHOWNPROG-chown}" Xchgrpprog="${CHGRPPROG-chgrp}" Xstripprog="${STRIPPROG-strip}" Xrmprog="${RMPROG-rm}" Xmkdirprog="${MKDIRPROG-mkdir}" X Xtransformbasename="" Xtransform_arg="" Xinstcmd="$mvprog" Xchmodcmd="$chmodprog 0755" Xchowncmd="" Xchgrpcmd="" Xstripcmd="" Xrmcmd="$rmprog -f" Xmvcmd="$mvprog" Xsrc="" Xdst="" Xdir_arg="" X Xwhile [ x"$1" != x ]; do X case $1 in X -c) instcmd="$cpprog" X shift X continue;; X X -d) dir_arg=true X shift X continue;; X X -m) chmodcmd="$chmodprog $2" X shift X shift X continue;; X X -o) chowncmd="$chownprog $2" X shift X shift X continue;; X X -g) chgrpcmd="$chgrpprog $2" X shift X shift X continue;; X X -s) stripcmd="$stripprog" X shift X continue;; X X -t=*) transformarg=`echo $1 | sed 's/-t=//'` X shift X continue;; X X -b=*) transformbasename=`echo $1 | sed 's/-b=//'` X shift X continue;; X X *) if [ x"$src" = x ] X then X src=$1 X else X # this colon is to work around a 386BSD /bin/sh bug X : X dst=$1 X fi X shift X continue;; X esac Xdone X Xif [ x"$src" = x ] Xthen X echo "install: no input file specified" X exit 1 Xelse X true Xfi X Xif [ x"$dir_arg" != x ]; then X dst=$src X src="" X X if [ -d $dst ]; then X instcmd=: X else X instcmd=mkdir X fi Xelse X X# Waiting for this to be detected by the "$instcmd $src $dsttmp" command X# might cause directories to be created, which would be especially bad X# if $src (and thus $dsttmp) contains '*'. X X if [ -f $src -o -d $src ] X then X true X else X echo "install: $src does not exist" X exit 1 X fi X X if [ x"$dst" = x ] X then X echo "install: no destination specified" X exit 1 X else X true X fi X X# If destination is a directory, append the input filename; if your system X# does not like double slashes in filenames, you may need to add some logic X X if [ -d $dst ] X then X dst="$dst"/`basename $src` X else X true X fi Xfi X X## this sed command emulates the dirname command Xdstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` X X# Make sure that the destination directory exists. X# this part is taken from Noah Friedman's mkinstalldirs script X X# Skip lots of stat calls in the usual case. Xif [ ! -d "$dstdir" ]; then XdefaultIFS=' X' XIFS="${IFS-${defaultIFS}}" X XoIFS="${IFS}" X# Some sh's can't handle IFS=/ for some reason. XIFS='%' Xset - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'` XIFS="${oIFS}" X Xpathcomp='' X Xwhile [ $# -ne 0 ] ; do X pathcomp="${pathcomp}${1}" X shift X X if [ ! -d "${pathcomp}" ] ; X then X $mkdirprog "${pathcomp}" X else X true X fi X X pathcomp="${pathcomp}/" Xdone Xfi X Xif [ x"$dir_arg" != x ] Xthen X $doit $instcmd $dst && X X if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi && X if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi && X if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi && X if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi Xelse X X# If we're going to rename the final executable, determine the name now. X X if [ x"$transformarg" = x ] X then X dstfile=`basename $dst` X else X dstfile=`basename $dst $transformbasename | X sed $transformarg`$transformbasename X fi X X# don't allow the sed command to completely eliminate the filename X X if [ x"$dstfile" = x ] X then X dstfile=`basename $dst` X else X true X fi X X# Make a temp file name in the proper directory. X X dsttmp=$dstdir/#inst.$$# X X# Move or copy the file name to the temp name X X $doit $instcmd $src $dsttmp && X X trap "rm -f ${dsttmp}" 0 && X X# and set any options; do chmod last to preserve setuid bits X X# If any of these fail, we abort the whole thing. If we want to X# ignore errors from any of these, just make sure not to ignore X# errors from the above "$doit $instcmd $src $dsttmp" command. X X if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi && X if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi && X if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi && X if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi && X X# Now rename the file to the real destination. X X $doit $rmcmd -f $dstdir/$dstfile && X $doit $mvcmd $dsttmp $dstdir/$dstfile X Xfi && X X Xexit 0 END-of-py-PyGreSQL/scripts/install-sh exit >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806260258.VAA21886>