Annotation of OpenXM_contrib/pari-2.2/config/paricfg.h.SH, Revision 1.1.1.1
1.1 noro 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 GPMISCDIR "$miscdir"
35: #define SHELL_Q '\\$shell_q'
36:
37: #define PARIVERSION "GP/PARI CALCULATOR Version ${version}.${patch} (${status})"
38: #ifdef __cplusplus
39: # define PARIINFO "C++ ${pretty}${debuginfo}"
40: #else
41: # define PARIINFO "${pretty}${debuginfo}"
42: #endif
43:
44: #define PARI_BYTE_ORDER ${endian}
45: EOT
46:
47: case $asmarch in
48: none) echo '#define __HAS_NO_ASM__' >> $file;;
49: hppa) echo '#define __HPPA__' >> $file;;
50: m68k) echo '#define __M68K__' >> $file;;
51: esac
52:
53: if test -n "$gzip"; then
54: cat >> $file << EOT
55:
56: /* Location of GNU gzip program (enables reading of .Z and .gz files). */
57: #define GNUZCAT
58: #define ZCAT "$gzip -dc"
59:
60: EOT
61: else if test -n "$zcat"; then
62: cat >> $file << EOT
63:
64: /* Location of zcat program (enables reading of .Z files). */
65: #define ZCAT "$zcat"
66:
67: EOT
68: fi
69: fi
70:
71: if test -n "$readline"; then
72: cat >> $file <<EOT
73: /* Use GNU readline library
74: * This is incompatible with SUN commandtools (not with shelltools).
75: */
76: #define READLINE "$readline"
77: EOT
78: if test -n "$rl_appendchar"; then
79: echo '#define HAS_COMPLETION_APPEND_CHAR' >> $file
80: fi
81: if test -n "$rl_genericbind"; then
82: echo '#define HAS_RL_GENERIC_BIND' >> $file
83: fi
84: if test -n "$rl_refresh_line_oldproto"; then
85: echo '#define OLD_RL_REFRESH_LINE' >> $file
86: fi
87: if test -n "$rl_save_prompt"; then
88: echo '#define HAS_RL_SAVE_PROMPT' >> $file
89: else
90: if test -n "$_rl_save_prompt"; then
91: echo '#define HAS_UNDERSCORE_RL_SAVE_PROMPT' >> $file
92: fi
93: fi
94: if test -n "$rl_message"; then
95: echo '#define HAS_RL_MESSAGE' >> $file
96: fi
97: if test -n "$rl_completion_matches"; then
98: echo '#define HAS_RL_COMPLETION_MATCHES' >> $file
99: fi
100: if test -n "$rl_completion_func_t"; then
101: echo '#define HAS_RL_COMPLETION_FUNC_T' >> $file
102: fi
103: echo >> $file
104: fi
105:
106: case "$CPPF_defined" in
107: yes) echo '#define CPPFunction_defined' >> $file;;
108: esac
109:
110: case "$sizeof_long" in
111: 8) echo '#define LONG_IS_64BIT' >> $file;;
112: esac
113:
114: case "$has_exp2" in
115: no) echo '#define NOEXP2' >> $file;;
116: esac
117:
118: case "$has_ulong" in
119: no) echo '#define ULONG_NOT_DEFINED' >> $file;;
120: esac
121:
122: case "$has_getrusage" in
123: yes) echo '#define USE_GETRUSAGE 1' >> $file;;
124: *) case "$has_times" in
125: yes) echo '#define USE_TIMES 1' >> $file;;
126: *) case "$has_ftime" in
127: yes) echo '#define USE_FTIME 1' >> $file;;
128: esac;;
129: esac;;
130: esac
131:
132: case "$has_sigrelse" in
133: yes) echo '#define USE_SIGRELSE 1' >> $file;;
134: *) case "$has_sigsetmask" in
135: yes) echo '#define USE_SIGSETMASK 1' >> $file;;
136: esac;;
137: esac
138:
139: case $has_dlopen in
140: yes) cat >> $file << EOT
141: #define HAS_DLOPEN
142: #define DL_DFLT_NAME "libpari.$sodest"
143: EOT
144: ;;
145: esac
146:
147: case $has_getrlimit in
148: yes) echo '#define STACK_CHECK' >> $file;;
149: esac
150:
151: case $has_TIOCGWINSZ in
152: yes) echo '#define HAS_TIOCGWINSZ' >> $file;;
153: esac
154:
155: case $has_strftime in
156: yes) echo '#define HAS_STRFTIME' >> $file;;
157: esac
158:
159: case $has_opendir in
160: yes) echo '#define HAS_OPENDIR' >> $file;;
161: esac
162:
163: echo '#endif' >> $file
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>