[BACK]Return to paricfg.h.SH CVS log [TXT][DIR] Up to [local] / OpenXM_contrib / pari / config

Annotation of OpenXM_contrib/pari/config/paricfg.h.SH, Revision 1.1

1.1     ! maekawa     1: file="$objdir/paricfg.h"
        !             2:
        !             3: echo Extracting $file
        !             4: rm -f $file
        !             5:
        !             6: case "$optimization" in
        !             7:   full) ;;
        !             8:   *) debuginfo=" -- $optimization";;
        !             9: esac
        !            10:
        !            11: case "$osname" in
        !            12:   os2) gphelp="perl -S gphelp -detex" ;;
        !            13:   *) gphelp="$bindir/gphelp" ;;
        !            14: esac
        !            15:
        !            16: cat > $file << EOT
        !            17: /*  This file was created by Configure. Any change made to it will be lost
        !            18:  *  next time Configure is run.
        !            19:  */
        !            20: #ifndef __CONFIG_H__
        !            21: #define __CONFIG_H__
        !            22: EOT
        !            23:
        !            24: # case "$osname" in
        !            25: #   cygwin*) echo '#ifdef __CYGWIN32__' >> $file ;
        !            26: #           echo '#include "libpari_dll.h"' >> $file ;
        !            27: #           echo '#endif' >> $file ;;
        !            28: # esac
        !            29:
        !            30: cat >> $file << EOT
        !            31: #define UNIX
        !            32: #define GPHELP "$gphelp"
        !            33: #define GPDATADIR "$datadir"
        !            34: #define SHELL_Q '\\$shell_q'
        !            35:
        !            36: #define PARIVERSION "GP/PARI CALCULATOR Version ${version}.${patch} (${status})"
        !            37: #ifdef __cplusplus
        !            38: # define PARIINFO "C++ ${pretty}${debuginfo}"
        !            39: #else
        !            40: # define PARIINFO "${pretty}${debuginfo}"
        !            41: #endif
        !            42:
        !            43: #define PARI_BYTE_ORDER    ${endian}
        !            44: EOT
        !            45:
        !            46: case $asmarch in
        !            47:   none) echo '#define __HAS_NO_ASM__' >> $file;;
        !            48:   hppa) echo '#define __HPPA__' >> $file;;
        !            49:   m68k) echo '#define __M68K__' >> $file;;
        !            50: esac
        !            51:
        !            52: if test -n "$gzip"; then
        !            53:   cat >> $file << EOT
        !            54:
        !            55: /*  Location of GNU gzip program (enables reading of .Z and .gz files). */
        !            56: #define GNUZCAT
        !            57: #define ZCAT "$gzip -dc"
        !            58:
        !            59: EOT
        !            60: else if test -n "$zcat"; then
        !            61:   cat >> $file << EOT
        !            62:
        !            63: /*  Location of zcat program (enables reading of .Z files). */
        !            64: #define ZCAT "$zcat"
        !            65:
        !            66: EOT
        !            67:   fi
        !            68: fi
        !            69:
        !            70: if test -n "$readline"; then
        !            71:   cat >> $file <<EOT
        !            72: /*  Use GNU readline library
        !            73:  *  This is incompatible with SUN commandtools (not with shelltools).
        !            74:  */
        !            75: #define READLINE "$readline"
        !            76: EOT
        !            77:   if test -n "$rl_appendchar"; then
        !            78:     echo '#define HAS_COMPLETION_APPEND_CHAR' >> $file
        !            79:   fi
        !            80:   if test -n "$rl_refresh_line_oldproto"; then
        !            81:     echo '#define OLD_RL_REFRESH_LINE' >> $file
        !            82:   fi
        !            83:   if test -n "$rl_save_prompt"; then
        !            84:     echo '#define HAS_RL_SAVE_PROMPT' >> $file
        !            85:   else
        !            86:     if test -n "$_rl_save_prompt"; then
        !            87:       echo '#define HAS_UNDERSCORE_RL_SAVE_PROMPT' >> $file
        !            88:     fi
        !            89:   fi
        !            90:   if test -n "$rl_message"; then
        !            91:     echo '#define HAS_RL_MESSAGE' >> $file
        !            92:   fi
        !            93:   echo >> $file
        !            94: fi
        !            95:
        !            96: case "$CPPF_defined" in
        !            97: yes) echo '#define CPPFunction_defined' >> $file;;
        !            98: esac
        !            99:
        !           100: case "$sizeof_long" in
        !           101: 8) echo '#define LONG_IS_64BIT' >> $file;;
        !           102: esac
        !           103:
        !           104: case "$has_exp2" in
        !           105: no) echo '#define NOEXP2' >> $file;;
        !           106: esac
        !           107:
        !           108: case "$has_ulong" in
        !           109: no) echo '#define ULONG_NOT_DEFINED' >> $file;;
        !           110: esac
        !           111:
        !           112: case "$has_getrusage" in
        !           113: yes) echo '#define USE_GETRUSAGE 1' >> $file;;
        !           114:   *) case "$has_times" in
        !           115:      yes) echo '#define USE_TIMES 1' >> $file;;
        !           116:        *) case "$has_ftime" in
        !           117:           yes) echo '#define USE_FTIME 1' >> $file;;
        !           118:           esac;;
        !           119:      esac;;
        !           120: esac
        !           121:
        !           122: case "$has_sigrelse" in
        !           123: yes) echo '#define USE_SIGRELSE 1' >> $file;;
        !           124:   *) case "$has_sigsetmask" in
        !           125:      yes) echo '#define USE_SIGSETMASK 1' >> $file;;
        !           126:      esac;;
        !           127: esac
        !           128:
        !           129: case $has_dlopen in
        !           130: yes) cat >> $file << EOT
        !           131: #define HAS_DLOPEN
        !           132: #define DL_DFLT_NAME "libpari.$sodest"
        !           133: EOT
        !           134: ;;
        !           135: esac
        !           136:
        !           137: case $has_TIOCGWINSZ in
        !           138: yes) echo '#define HAS_TIOCGWINSZ' >> $file;;
        !           139: esac
        !           140:
        !           141: case $has_strftime in
        !           142: yes) echo '#define HAS_STRFTIME' >> $file;;
        !           143: esac
        !           144: echo '#endif' >> $file

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>