[BACK]Return to make-configure CVS log [TXT][DIR] Up to [local] / OpenXM / src / ox_pari

File: [local] / OpenXM / src / ox_pari / make-configure (download)

Revision 1.1, Thu Sep 22 10:20:30 2016 UTC (7 years, 8 months ago) by ohara
Branch: MAIN

Add configure script for ox_pari.

#!/bin/sh
# $OpenXM: OpenXM/src/ox_pari/make-configure,v 1.1 2016/09/22 10:20:30 ohara Exp $

prefix=`cd ../..; pwd`
cache_file=`pwd`/config.cache
case "$1" in
"-f"|"--force")
    automake
    autoconf
    touch ${cache_file}
    ./configure --prefix=${prefix} --cache-file=${cache_file}
    ;;
*)
if [ ! -f ./.configure_done ]; then 
    if [ ! -f ./Makefile.in ]; then 
		automake 
  	fi
    if [ ! -x ./configure ]; then 
		autoconf 
  	fi
    touch ${cache_file}
    ./configure --prefix=${prefix} --cache-file=${cache_file}
fi
    ;;
esac
touch .configure_done