| @@ -1,282 +1,283 @@ | | | @@ -1,282 +1,283 @@ |
1 | #! /bin/sh | | 1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | | 2 | # Guess values for system-dependent variables and create Makefiles. |
3 | # Generated by GNU Autoconf 2.69 for libnbcompat 20190708. | | 3 | # Generated by GNU Autoconf 2.71 for libnbcompat 20190708. |
4 | # | | 4 | # |
5 | # Report bugs to <joerg@NetBSD.org>. | | 5 | # Report bugs to <joerg@NetBSD.org>. |
6 | # | | 6 | # |
7 | # | | 7 | # |
8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | | 8 | # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, |
| | | 9 | # Inc. |
9 | # | | 10 | # |
10 | # | | 11 | # |
11 | # This configure script is free software; the Free Software Foundation | | 12 | # This configure script is free software; the Free Software Foundation |
12 | # gives unlimited permission to copy, distribute and modify it. | | 13 | # gives unlimited permission to copy, distribute and modify it. |
13 | ## -------------------- ## | | 14 | ## -------------------- ## |
14 | ## M4sh Initialization. ## | | 15 | ## M4sh Initialization. ## |
15 | ## -------------------- ## | | 16 | ## -------------------- ## |
16 | | | 17 | |
17 | # Be more Bourne compatible | | 18 | # Be more Bourne compatible |
18 | DUALCASE=1; export DUALCASE # for MKS sh | | 19 | DUALCASE=1; export DUALCASE # for MKS sh |
19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | | 20 | as_nop=: |
| | | 21 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| | | 22 | then : |
20 | emulate sh | | 23 | emulate sh |
21 | NULLCMD=: | | 24 | NULLCMD=: |
22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | | 25 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
23 | # is contrary to our usage. Disable this feature. | | 26 | # is contrary to our usage. Disable this feature. |
24 | alias -g '${1+"$@"}'='"$@"' | | 27 | alias -g '${1+"$@"}'='"$@"' |
25 | setopt NO_GLOB_SUBST | | 28 | setopt NO_GLOB_SUBST |
26 | else | | 29 | else $as_nop |
27 | case `(set -o) 2>/dev/null` in #( | | 30 | case `(set -o) 2>/dev/null` in #( |
28 | *posix*) : | | 31 | *posix*) : |
29 | set -o posix ;; #( | | 32 | set -o posix ;; #( |
30 | *) : | | 33 | *) : |
31 | ;; | | 34 | ;; |
32 | esac | | 35 | esac |
33 | fi | | 36 | fi |
34 | | | 37 | |
35 | | | 38 | |
| | | 39 | |
| | | 40 | # Reset variables that may have inherited troublesome values from |
| | | 41 | # the environment. |
| | | 42 | |
| | | 43 | # IFS needs to be set, to space, tab, and newline, in precisely that order. |
| | | 44 | # (If _AS_PATH_WALK were called with IFS unset, it would have the |
| | | 45 | # side effect of setting IFS to empty, thus disabling word splitting.) |
| | | 46 | # Quoting is to prevent editors from complaining about space-tab. |
36 | as_nl=' | | 47 | as_nl=' |
37 | ' | | 48 | ' |
38 | export as_nl | | 49 | export as_nl |
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | | 50 | IFS=" "" $as_nl" |
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | | 51 | |
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | | 52 | PS1='$ ' |
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | | 53 | PS2='> ' |
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, | | 54 | PS4='+ ' |
44 | # but without wasting forks for bash or zsh. | | 55 | |
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | | 56 | # Ensure predictable behavior from utilities with locale-dependent output. |
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | | 57 | LC_ALL=C |
47 | as_echo='print -r --' | | 58 | export LC_ALL |
48 | as_echo_n='print -rn --' | | 59 | LANGUAGE=C |
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | | 60 | export LANGUAGE |
50 | as_echo='printf %s\n' | | 61 | |
51 | as_echo_n='printf %s' | | 62 | # We cannot yet rely on "unset" to work, but we need these variables |
52 | else | | 63 | # to be unset--not just set to an empty or harmless value--now, to |
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | | 64 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | | 65 | # also avoids known problems related to "unset" and subshell syntax |
55 | as_echo_n='/usr/ucb/echo -n' | | 66 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
56 | else | | 67 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | | 68 | do eval test \${$as_var+y} \ |
58 | as_echo_n_body='eval | | 69 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
59 | arg=$1; | | 70 | done |
60 | case $arg in #( | | 71 | |
61 | *"$as_nl"*) | | 72 | # Ensure that fds 0, 1, and 2 are open. |
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | | 73 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | | 74 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
64 | esac; | | 75 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | | | |
66 | ' | | | |
67 | export as_echo_n_body | | | |
68 | as_echo_n='sh -c $as_echo_n_body as_echo' | | | |
69 | fi | | | |
70 | export as_echo_body | | | |
71 | as_echo='sh -c $as_echo_body as_echo' | | | |
72 | fi | | | |
73 | | | 76 | |
74 | # The user is always right. | | 77 | # The user is always right. |
75 | if test "${PATH_SEPARATOR+set}" != set; then | | 78 | if ${PATH_SEPARATOR+false} :; then |
76 | PATH_SEPARATOR=: | | 79 | PATH_SEPARATOR=: |
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | | 80 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | | 81 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
79 | PATH_SEPARATOR=';' | | 82 | PATH_SEPARATOR=';' |
80 | } | | 83 | } |
81 | fi | | 84 | fi |
82 | | | 85 | |
83 | | | 86 | |
84 | # IFS | | | |
85 | # We need space, tab and new line, in precisely that order. Quoting is | | | |
86 | # there to prevent editors from complaining about space-tab. | | | |
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | | | |
88 | # splitting by setting IFS to empty value.) | | | |
89 | IFS=" "" $as_nl" | | | |
90 | | | | |
91 | # Find who we are. Look in the path if we contain no directory separator. | | 87 | # Find who we are. Look in the path if we contain no directory separator. |
92 | as_myself= | | 88 | as_myself= |
93 | case $0 in #(( | | 89 | case $0 in #(( |
94 | *[\\/]* ) as_myself=$0 ;; | | 90 | *[\\/]* ) as_myself=$0 ;; |
95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | | 91 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
96 | for as_dir in $PATH | | 92 | for as_dir in $PATH |
97 | do | | 93 | do |
98 | IFS=$as_save_IFS | | 94 | IFS=$as_save_IFS |
99 | test -z "$as_dir" && as_dir=. | | 95 | case $as_dir in #((( |
100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | | 96 | '') as_dir=./ ;; |
| | | 97 | */) ;; |
| | | 98 | *) as_dir=$as_dir/ ;; |
| | | 99 | esac |
| | | 100 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
101 | done | | 101 | done |
102 | IFS=$as_save_IFS | | 102 | IFS=$as_save_IFS |
103 | | | 103 | |
104 | ;; | | 104 | ;; |
105 | esac | | 105 | esac |
106 | # We did not find ourselves, most probably we were run as `sh COMMAND' | | 106 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
107 | # in which case we are not to be found in the path. | | 107 | # in which case we are not to be found in the path. |
108 | if test "x$as_myself" = x; then | | 108 | if test "x$as_myself" = x; then |
109 | as_myself=$0 | | 109 | as_myself=$0 |
110 | fi | | 110 | fi |
111 | if test ! -f "$as_myself"; then | | 111 | if test ! -f "$as_myself"; then |
112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | | 112 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
113 | exit 1 | | 113 | exit 1 |
114 | fi | | 114 | fi |
115 | | | 115 | |
116 | # Unset variables that we do not need and which cause bugs (e.g. in | | | |
117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | | | |
118 | # suppresses any "Segmentation fault" message there. '((' could | | | |
119 | # trigger a bug in pdksh 5.2.14. | | | |
120 | for as_var in BASH_ENV ENV MAIL MAILPATH | | | |
121 | do eval test x\${$as_var+set} = xset \ | | | |
122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | | | |
123 | done | | | |
124 | PS1='$ ' | | | |
125 | PS2='> ' | | | |
126 | PS4='+ ' | | | |
127 | | | | |
128 | # NLS nuisances. | | | |
129 | LC_ALL=C | | | |
130 | export LC_ALL | | | |
131 | LANGUAGE=C | | | |
132 | export LANGUAGE | | | |
133 | | | | |
134 | # CDPATH. | | | |
135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | | | |
136 | | | 116 | |
137 | # Use a proper internal environment variable to ensure we don't fall | | 117 | # Use a proper internal environment variable to ensure we don't fall |
138 | # into an infinite loop, continuously re-executing ourselves. | | 118 | # into an infinite loop, continuously re-executing ourselves. |
139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | | 119 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
140 | _as_can_reexec=no; export _as_can_reexec; | | 120 | _as_can_reexec=no; export _as_can_reexec; |
141 | # We cannot yet assume a decent shell, so we have to provide a | | 121 | # We cannot yet assume a decent shell, so we have to provide a |
142 | # neutralization value for shells without unset; and this also | | 122 | # neutralization value for shells without unset; and this also |
143 | # works around shells that cannot unset nonexistent variables. | | 123 | # works around shells that cannot unset nonexistent variables. |
144 | # Preserve -v and -x to the replacement shell. | | 124 | # Preserve -v and -x to the replacement shell. |
145 | BASH_ENV=/dev/null | | 125 | BASH_ENV=/dev/null |
146 | ENV=/dev/null | | 126 | ENV=/dev/null |
147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | | 127 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
148 | case $- in # (((( | | 128 | case $- in # (((( |
149 | *v*x* | *x*v* ) as_opts=-vx ;; | | 129 | *v*x* | *x*v* ) as_opts=-vx ;; |
150 | *v* ) as_opts=-v ;; | | 130 | *v* ) as_opts=-v ;; |
151 | *x* ) as_opts=-x ;; | | 131 | *x* ) as_opts=-x ;; |
152 | * ) as_opts= ;; | | 132 | * ) as_opts= ;; |
153 | esac | | 133 | esac |
154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | | 134 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
155 | # Admittedly, this is quite paranoid, since all the known shells bail | | 135 | # Admittedly, this is quite paranoid, since all the known shells bail |
156 | # out after a failed `exec'. | | 136 | # out after a failed `exec'. |
157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | | 137 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
158 | as_fn_exit 255 | | 138 | exit 255 |
159 | fi | | 139 | fi |
160 | # We don't want this to propagate to other subprocesses. | | 140 | # We don't want this to propagate to other subprocesses. |
161 | { _as_can_reexec=; unset _as_can_reexec;} | | 141 | { _as_can_reexec=; unset _as_can_reexec;} |
162 | if test "x$CONFIG_SHELL" = x; then | | 142 | if test "x$CONFIG_SHELL" = x; then |
163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | | 143 | as_bourne_compatible="as_nop=: |
| | | 144 | if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| | | 145 | then : |
164 | emulate sh | | 146 | emulate sh |
165 | NULLCMD=: | | 147 | NULLCMD=: |
166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | | 148 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
167 | # is contrary to our usage. Disable this feature. | | 149 | # is contrary to our usage. Disable this feature. |
168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | | 150 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
169 | setopt NO_GLOB_SUBST | | 151 | setopt NO_GLOB_SUBST |
170 | else | | 152 | else \$as_nop |
171 | case \`(set -o) 2>/dev/null\` in #( | | 153 | case \`(set -o) 2>/dev/null\` in #( |
172 | *posix*) : | | 154 | *posix*) : |
173 | set -o posix ;; #( | | 155 | set -o posix ;; #( |
174 | *) : | | 156 | *) : |
175 | ;; | | 157 | ;; |
176 | esac | | 158 | esac |
177 | fi | | 159 | fi |
178 | " | | 160 | " |
179 | as_required="as_fn_return () { (exit \$1); } | | 161 | as_required="as_fn_return () { (exit \$1); } |
180 | as_fn_success () { as_fn_return 0; } | | 162 | as_fn_success () { as_fn_return 0; } |
181 | as_fn_failure () { as_fn_return 1; } | | 163 | as_fn_failure () { as_fn_return 1; } |
182 | as_fn_ret_success () { return 0; } | | 164 | as_fn_ret_success () { return 0; } |
183 | as_fn_ret_failure () { return 1; } | | 165 | as_fn_ret_failure () { return 1; } |
184 | | | 166 | |
185 | exitcode=0 | | 167 | exitcode=0 |
186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | | 168 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | | 169 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | | 170 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | | 171 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | | 172 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ) |
| | | 173 | then : |
191 | | | 174 | |
192 | else | | 175 | else \$as_nop |
193 | exitcode=1; echo positional parameters were not saved. | | 176 | exitcode=1; echo positional parameters were not saved. |
194 | fi | | 177 | fi |
195 | test x\$exitcode = x0 || exit 1 | | 178 | test x\$exitcode = x0 || exit 1 |
| | | 179 | blah=\$(echo \$(echo blah)) |
| | | 180 | test x\"\$blah\" = xblah || exit 1 |
196 | test -x / || exit 1" | | 181 | test -x / || exit 1" |
197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | | 182 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | | 183 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | | 184 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | | 185 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
201 | test \$(( 1 + 1 )) = 2 || exit 1" | | 186 | test \$(( 1 + 1 )) = 2 || exit 1" |
202 | if (eval "$as_required") 2>/dev/null; then : | | 187 | if (eval "$as_required") 2>/dev/null |
| | | 188 | then : |
203 | as_have_required=yes | | 189 | as_have_required=yes |
204 | else | | 190 | else $as_nop |
205 | as_have_required=no | | 191 | as_have_required=no |
206 | fi | | 192 | fi |
207 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | | 193 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null |
| | | 194 | then : |
208 | | | 195 | |
209 | else | | 196 | else $as_nop |
210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | | 197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
211 | as_found=false | | 198 | as_found=false |
212 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | | 199 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
213 | do | | 200 | do |
214 | IFS=$as_save_IFS | | 201 | IFS=$as_save_IFS |
215 | test -z "$as_dir" && as_dir=. | | 202 | case $as_dir in #((( |
| | | 203 | '') as_dir=./ ;; |
| | | 204 | */) ;; |
| | | 205 | *) as_dir=$as_dir/ ;; |
| | | 206 | esac |
216 | as_found=: | | 207 | as_found=: |
217 | case $as_dir in #( | | 208 | case $as_dir in #( |
218 | /*) | | 209 | /*) |
219 | for as_base in sh bash ksh sh5; do | | 210 | for as_base in sh bash ksh sh5; do |
220 | # Try only shells that exist, to save several forks. | | 211 | # Try only shells that exist, to save several forks. |
221 | as_shell=$as_dir/$as_base | | 212 | as_shell=$as_dir$as_base |
222 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | | 213 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
223 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | | 214 | as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
| | | 215 | then : |
224 | CONFIG_SHELL=$as_shell as_have_required=yes | | 216 | CONFIG_SHELL=$as_shell as_have_required=yes |
225 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | | 217 | if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null |
| | | 218 | then : |
226 | break 2 | | 219 | break 2 |
227 | fi | | 220 | fi |
228 | fi | | 221 | fi |
229 | done;; | | 222 | done;; |
230 | esac | | 223 | esac |
231 | as_found=false | | 224 | as_found=false |
232 | done | | 225 | done |
233 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | | | |
234 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | | | |
235 | CONFIG_SHELL=$SHELL as_have_required=yes | | | |
236 | fi; } | | | |
237 | IFS=$as_save_IFS | | 226 | IFS=$as_save_IFS |
| | | 227 | if $as_found |
| | | 228 | then : |
| | | 229 | |
| | | 230 | else $as_nop |
| | | 231 | if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| | | 232 | as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
| | | 233 | then : |
| | | 234 | CONFIG_SHELL=$SHELL as_have_required=yes |
| | | 235 | fi |
| | | 236 | fi |
238 | | | 237 | |
239 | | | 238 | |
240 | if test "x$CONFIG_SHELL" != x; then : | | 239 | if test "x$CONFIG_SHELL" != x |
| | | 240 | then : |
241 | export CONFIG_SHELL | | 241 | export CONFIG_SHELL |
242 | # We cannot yet assume a decent shell, so we have to provide a | | 242 | # We cannot yet assume a decent shell, so we have to provide a |
243 | # neutralization value for shells without unset; and this also | | 243 | # neutralization value for shells without unset; and this also |
244 | # works around shells that cannot unset nonexistent variables. | | 244 | # works around shells that cannot unset nonexistent variables. |
245 | # Preserve -v and -x to the replacement shell. | | 245 | # Preserve -v and -x to the replacement shell. |
246 | BASH_ENV=/dev/null | | 246 | BASH_ENV=/dev/null |
247 | ENV=/dev/null | | 247 | ENV=/dev/null |
248 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | | 248 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
249 | case $- in # (((( | | 249 | case $- in # (((( |
250 | *v*x* | *x*v* ) as_opts=-vx ;; | | 250 | *v*x* | *x*v* ) as_opts=-vx ;; |
251 | *v* ) as_opts=-v ;; | | 251 | *v* ) as_opts=-v ;; |
252 | *x* ) as_opts=-x ;; | | 252 | *x* ) as_opts=-x ;; |
253 | * ) as_opts= ;; | | 253 | * ) as_opts= ;; |
254 | esac | | 254 | esac |
255 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | | 255 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
256 | # Admittedly, this is quite paranoid, since all the known shells bail | | 256 | # Admittedly, this is quite paranoid, since all the known shells bail |
257 | # out after a failed `exec'. | | 257 | # out after a failed `exec'. |
258 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | | 258 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
259 | exit 255 | | 259 | exit 255 |
260 | fi | | 260 | fi |
261 | | | 261 | |
262 | if test x$as_have_required = xno; then : | | 262 | if test x$as_have_required = xno |
263 | $as_echo "$0: This script requires a shell more modern than all" | | 263 | then : |
264 | $as_echo "$0: the shells that I found on your system." | | 264 | printf "%s\n" "$0: This script requires a shell more modern than all" |
265 | if test x${ZSH_VERSION+set} = xset ; then | | 265 | printf "%s\n" "$0: the shells that I found on your system." |
266 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | | 266 | if test ${ZSH_VERSION+y} ; then |
267 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | | 267 | printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| | | 268 | printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." |
268 | else | | 269 | else |
269 | $as_echo "$0: Please tell bug-autoconf@gnu.org and joerg@NetBSD.org | | 270 | printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and joerg@NetBSD.org |
270 | $0: about your system, including any error possibly output | | 271 | $0: about your system, including any error possibly output |
271 | $0: before this message. Then install a modern shell, or | | 272 | $0: before this message. Then install a modern shell, or |
272 | $0: manually run the script under such a shell if you do | | 273 | $0: manually run the script under such a shell if you do |
273 | $0: have one." | | 274 | $0: have one." |
274 | fi | | 275 | fi |
275 | exit 1 | | 276 | exit 1 |
276 | fi | | 277 | fi |
277 | fi | | 278 | fi |
278 | fi | | 279 | fi |
279 | SHELL=${CONFIG_SHELL-/bin/sh} | | 280 | SHELL=${CONFIG_SHELL-/bin/sh} |
280 | export SHELL | | 281 | export SHELL |
281 | # Unset more variables known to interfere with behavior of common tools. | | 282 | # Unset more variables known to interfere with behavior of common tools. |
282 | CLICOLOR_FORCE= GREP_OPTIONS= | | 283 | CLICOLOR_FORCE= GREP_OPTIONS= |
| @@ -284,67 +285,76 @@ unset CLICOLOR_FORCE GREP_OPTIONS | | | @@ -284,67 +285,76 @@ unset CLICOLOR_FORCE GREP_OPTIONS |
284 | | | 285 | |
285 | ## --------------------- ## | | 286 | ## --------------------- ## |
286 | ## M4sh Shell Functions. ## | | 287 | ## M4sh Shell Functions. ## |
287 | ## --------------------- ## | | 288 | ## --------------------- ## |
288 | # as_fn_unset VAR | | 289 | # as_fn_unset VAR |
289 | # --------------- | | 290 | # --------------- |
290 | # Portably unset VAR. | | 291 | # Portably unset VAR. |
291 | as_fn_unset () | | 292 | as_fn_unset () |
292 | { | | 293 | { |
293 | { eval $1=; unset $1;} | | 294 | { eval $1=; unset $1;} |
294 | } | | 295 | } |
295 | as_unset=as_fn_unset | | 296 | as_unset=as_fn_unset |
296 | | | 297 | |
| | | 298 | |
297 | # as_fn_set_status STATUS | | 299 | # as_fn_set_status STATUS |
298 | # ----------------------- | | 300 | # ----------------------- |
299 | # Set $? to STATUS, without forking. | | 301 | # Set $? to STATUS, without forking. |
300 | as_fn_set_status () | | 302 | as_fn_set_status () |
301 | { | | 303 | { |
302 | return $1 | | 304 | return $1 |
303 | } # as_fn_set_status | | 305 | } # as_fn_set_status |
304 | | | 306 | |
305 | # as_fn_exit STATUS | | 307 | # as_fn_exit STATUS |
306 | # ----------------- | | 308 | # ----------------- |
307 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | | 309 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
308 | as_fn_exit () | | 310 | as_fn_exit () |
309 | { | | 311 | { |
310 | set +e | | 312 | set +e |
311 | as_fn_set_status $1 | | 313 | as_fn_set_status $1 |
312 | exit $1 | | 314 | exit $1 |
313 | } # as_fn_exit | | 315 | } # as_fn_exit |
| | | 316 | # as_fn_nop |
| | | 317 | # --------- |
| | | 318 | # Do nothing but, unlike ":", preserve the value of $?. |
| | | 319 | as_fn_nop () |
| | | 320 | { |
| | | 321 | return $? |
| | | 322 | } |
| | | 323 | as_nop=as_fn_nop |
314 | | | 324 | |
315 | # as_fn_mkdir_p | | 325 | # as_fn_mkdir_p |
316 | # ------------- | | 326 | # ------------- |
317 | # Create "$as_dir" as a directory, including parents if necessary. | | 327 | # Create "$as_dir" as a directory, including parents if necessary. |
318 | as_fn_mkdir_p () | | 328 | as_fn_mkdir_p () |
319 | { | | 329 | { |
320 | | | 330 | |
321 | case $as_dir in #( | | 331 | case $as_dir in #( |
322 | -*) as_dir=./$as_dir;; | | 332 | -*) as_dir=./$as_dir;; |
323 | esac | | 333 | esac |
324 | test -d "$as_dir" || eval $as_mkdir_p || { | | 334 | test -d "$as_dir" || eval $as_mkdir_p || { |
325 | as_dirs= | | 335 | as_dirs= |
326 | while :; do | | 336 | while :; do |
327 | case $as_dir in #( | | 337 | case $as_dir in #( |
328 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | | 338 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
329 | *) as_qdir=$as_dir;; | | 339 | *) as_qdir=$as_dir;; |
330 | esac | | 340 | esac |
331 | as_dirs="'$as_qdir' $as_dirs" | | 341 | as_dirs="'$as_qdir' $as_dirs" |
332 | as_dir=`$as_dirname -- "$as_dir" || | | 342 | as_dir=`$as_dirname -- "$as_dir" || |
333 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | | 343 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
334 | X"$as_dir" : 'X\(//\)[^/]' \| \ | | 344 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
335 | X"$as_dir" : 'X\(//\)$' \| \ | | 345 | X"$as_dir" : 'X\(//\)$' \| \ |
336 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | | 346 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
337 | $as_echo X"$as_dir" | | | 347 | printf "%s\n" X"$as_dir" | |
338 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | | 348 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
339 | s//\1/ | | 349 | s//\1/ |
340 | q | | 350 | q |
341 | } | | 351 | } |
342 | /^X\(\/\/\)[^/].*/{ | | 352 | /^X\(\/\/\)[^/].*/{ |
343 | s//\1/ | | 353 | s//\1/ |
344 | q | | 354 | q |
345 | } | | 355 | } |
346 | /^X\(\/\/\)$/{ | | 356 | /^X\(\/\/\)$/{ |
347 | s//\1/ | | 357 | s//\1/ |
348 | q | | 358 | q |
349 | } | | 359 | } |
350 | /^X\(\/\).*/{ | | 360 | /^X\(\/\).*/{ |
| @@ -363,96 +373,106 @@ $as_echo X"$as_dir" | | | | @@ -363,96 +373,106 @@ $as_echo X"$as_dir" | |
363 | # as_fn_executable_p FILE | | 373 | # as_fn_executable_p FILE |
364 | # ----------------------- | | 374 | # ----------------------- |
365 | # Test if FILE is an executable regular file. | | 375 | # Test if FILE is an executable regular file. |
366 | as_fn_executable_p () | | 376 | as_fn_executable_p () |
367 | { | | 377 | { |
368 | test -f "$1" && test -x "$1" | | 378 | test -f "$1" && test -x "$1" |
369 | } # as_fn_executable_p | | 379 | } # as_fn_executable_p |
370 | # as_fn_append VAR VALUE | | 380 | # as_fn_append VAR VALUE |
371 | # ---------------------- | | 381 | # ---------------------- |
372 | # Append the text in VALUE to the end of the definition contained in VAR. Take | | 382 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
373 | # advantage of any shell optimizations that allow amortized linear growth over | | 383 | # advantage of any shell optimizations that allow amortized linear growth over |
374 | # repeated appends, instead of the typical quadratic growth present in naive | | 384 | # repeated appends, instead of the typical quadratic growth present in naive |
375 | # implementations. | | 385 | # implementations. |
376 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | | 386 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
| | | 387 | then : |
377 | eval 'as_fn_append () | | 388 | eval 'as_fn_append () |
378 | { | | 389 | { |
379 | eval $1+=\$2 | | 390 | eval $1+=\$2 |
380 | }' | | 391 | }' |
381 | else | | 392 | else $as_nop |
382 | as_fn_append () | | 393 | as_fn_append () |
383 | { | | 394 | { |
384 | eval $1=\$$1\$2 | | 395 | eval $1=\$$1\$2 |
385 | } | | 396 | } |
386 | fi # as_fn_append | | 397 | fi # as_fn_append |
387 | | | 398 | |
388 | # as_fn_arith ARG... | | 399 | # as_fn_arith ARG... |
389 | # ------------------ | | 400 | # ------------------ |
390 | # Perform arithmetic evaluation on the ARGs, and store the result in the | | 401 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
391 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | | 402 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
392 | # must be portable across $(()) and expr. | | 403 | # must be portable across $(()) and expr. |
393 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | | 404 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
| | | 405 | then : |
394 | eval 'as_fn_arith () | | 406 | eval 'as_fn_arith () |
395 | { | | 407 | { |
396 | as_val=$(( $* )) | | 408 | as_val=$(( $* )) |
397 | }' | | 409 | }' |
398 | else | | 410 | else $as_nop |
399 | as_fn_arith () | | 411 | as_fn_arith () |
400 | { | | 412 | { |
401 | as_val=`expr "$@" || test $? -eq 1` | | 413 | as_val=`expr "$@" || test $? -eq 1` |
402 | } | | 414 | } |
403 | fi # as_fn_arith | | 415 | fi # as_fn_arith |
404 | | | 416 | |
| | | 417 | # as_fn_nop |
| | | 418 | # --------- |
| | | 419 | # Do nothing but, unlike ":", preserve the value of $?. |
| | | 420 | as_fn_nop () |
| | | 421 | { |
| | | 422 | return $? |
| | | 423 | } |
| | | 424 | as_nop=as_fn_nop |
405 | | | 425 | |
406 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | | 426 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
407 | # ---------------------------------------- | | 427 | # ---------------------------------------- |
408 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | | 428 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
409 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | | 429 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
410 | # script with STATUS, using 1 if that was 0. | | 430 | # script with STATUS, using 1 if that was 0. |
411 | as_fn_error () | | 431 | as_fn_error () |
412 | { | | 432 | { |
413 | as_status=$1; test $as_status -eq 0 && as_status=1 | | 433 | as_status=$1; test $as_status -eq 0 && as_status=1 |
414 | if test "$4"; then | | 434 | if test "$4"; then |
415 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | | 435 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
416 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | | 436 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
417 | fi | | 437 | fi |
418 | $as_echo "$as_me: error: $2" >&2 | | 438 | printf "%s\n" "$as_me: error: $2" >&2 |
419 | as_fn_exit $as_status | | 439 | as_fn_exit $as_status |
420 | } # as_fn_error | | 440 | } # as_fn_error |
421 | | | 441 | |
422 | if expr a : '\(a\)' >/dev/null 2>&1 && | | 442 | if expr a : '\(a\)' >/dev/null 2>&1 && |
423 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | | 443 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
424 | as_expr=expr | | 444 | as_expr=expr |
425 | else | | 445 | else |
426 | as_expr=false | | 446 | as_expr=false |
427 | fi | | 447 | fi |
428 | | | 448 | |
429 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | | 449 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
430 | as_basename=basename | | 450 | as_basename=basename |
431 | else | | 451 | else |
432 | as_basename=false | | 452 | as_basename=false |
433 | fi | | 453 | fi |
434 | | | 454 | |
435 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | | 455 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
436 | as_dirname=dirname | | 456 | as_dirname=dirname |
437 | else | | 457 | else |
438 | as_dirname=false | | 458 | as_dirname=false |
439 | fi | | 459 | fi |
440 | | | 460 | |
441 | as_me=`$as_basename -- "$0" || | | 461 | as_me=`$as_basename -- "$0" || |
442 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | | 462 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
443 | X"$0" : 'X\(//\)$' \| \ | | 463 | X"$0" : 'X\(//\)$' \| \ |
444 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | | 464 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
445 | $as_echo X/"$0" | | | 465 | printf "%s\n" X/"$0" | |
446 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | | 466 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
447 | s//\1/ | | 467 | s//\1/ |
448 | q | | 468 | q |
449 | } | | 469 | } |
450 | /^X\/\(\/\/\)$/{ | | 470 | /^X\/\(\/\/\)$/{ |
451 | s//\1/ | | 471 | s//\1/ |
452 | q | | 472 | q |
453 | } | | 473 | } |
454 | /^X\/\(\/\).*/{ | | 474 | /^X\/\(\/\).*/{ |
455 | s//\1/ | | 475 | s//\1/ |
456 | q | | 476 | q |
457 | } | | 477 | } |
458 | s/.*/./; q'` | | 478 | s/.*/./; q'` |
| @@ -476,53 +496,64 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits | | | @@ -476,53 +496,64 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits |
476 | ' <$as_myself | | | 496 | ' <$as_myself | |
477 | sed ' | | 497 | sed ' |
478 | s/[$]LINENO.*/&-/ | | 498 | s/[$]LINENO.*/&-/ |
479 | t lineno | | 499 | t lineno |
480 | b | | 500 | b |
481 | :lineno | | 501 | :lineno |
482 | N | | 502 | N |
483 | :loop | | 503 | :loop |
484 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | | 504 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
485 | t loop | | 505 | t loop |
486 | s/-\n.*// | | 506 | s/-\n.*// |
487 | ' >$as_me.lineno && | | 507 | ' >$as_me.lineno && |
488 | chmod +x "$as_me.lineno" || | | 508 | chmod +x "$as_me.lineno" || |
489 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | | 509 | { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
490 | | | 510 | |
491 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have | | 511 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
492 | # already done that, so ensure we don't try to do so again and fall | | 512 | # already done that, so ensure we don't try to do so again and fall |
493 | # in an infinite loop. This has already happened in practice. | | 513 | # in an infinite loop. This has already happened in practice. |
494 | _as_can_reexec=no; export _as_can_reexec | | 514 | _as_can_reexec=no; export _as_can_reexec |
495 | # Don't try to exec as it changes $[0], causing all sort of problems | | 515 | # Don't try to exec as it changes $[0], causing all sort of problems |
496 | # (the dirname of $[0] is not the place where we might find the | | 516 | # (the dirname of $[0] is not the place where we might find the |
497 | # original and so on. Autoconf is especially sensitive to this). | | 517 | # original and so on. Autoconf is especially sensitive to this). |
498 | . "./$as_me.lineno" | | 518 | . "./$as_me.lineno" |
499 | # Exit status is that of the last command. | | 519 | # Exit status is that of the last command. |
500 | exit | | 520 | exit |
501 | } | | 521 | } |
502 | | | 522 | |
| | | 523 | |
| | | 524 | # Determine whether it's possible to make 'echo' print without a newline. |
| | | 525 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
| | | 526 | # for compatibility with existing Makefiles. |
503 | ECHO_C= ECHO_N= ECHO_T= | | 527 | ECHO_C= ECHO_N= ECHO_T= |
504 | case `echo -n x` in #((((( | | 528 | case `echo -n x` in #((((( |
505 | -n*) | | 529 | -n*) |
506 | case `echo 'xy\c'` in | | 530 | case `echo 'xy\c'` in |
507 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | | 531 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
508 | xy) ECHO_C='\c';; | | 532 | xy) ECHO_C='\c';; |
509 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | | 533 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
510 | ECHO_T=' ';; | | 534 | ECHO_T=' ';; |
511 | esac;; | | 535 | esac;; |
512 | *) | | 536 | *) |
513 | ECHO_N='-n';; | | 537 | ECHO_N='-n';; |
514 | esac | | 538 | esac |
515 | | | 539 | |
| | | 540 | # For backward compatibility with old third-party macros, we provide |
| | | 541 | # the shell variables $as_echo and $as_echo_n. New code should use |
| | | 542 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
| | | 543 | as_echo='printf %s\n' |
| | | 544 | as_echo_n='printf %s' |
| | | 545 | |
| | | 546 | |
516 | rm -f conf$$ conf$$.exe conf$$.file | | 547 | rm -f conf$$ conf$$.exe conf$$.file |
517 | if test -d conf$$.dir; then | | 548 | if test -d conf$$.dir; then |
518 | rm -f conf$$.dir/conf$$.file | | 549 | rm -f conf$$.dir/conf$$.file |
519 | else | | 550 | else |
520 | rm -f conf$$.dir | | 551 | rm -f conf$$.dir |
521 | mkdir conf$$.dir 2>/dev/null | | 552 | mkdir conf$$.dir 2>/dev/null |
522 | fi | | 553 | fi |
523 | if (echo >conf$$.file) 2>/dev/null; then | | 554 | if (echo >conf$$.file) 2>/dev/null; then |
524 | if ln -s conf$$.file conf$$ 2>/dev/null; then | | 555 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
525 | as_ln_s='ln -s' | | 556 | as_ln_s='ln -s' |
526 | # ... but there are two gotchas: | | 557 | # ... but there are two gotchas: |
527 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | | 558 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
528 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | | 559 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| @@ -577,78 +608,74 @@ subdirs= | | | @@ -577,78 +608,74 @@ subdirs= |
577 | MFLAGS= | | 608 | MFLAGS= |
578 | MAKEFLAGS= | | 609 | MAKEFLAGS= |
579 | | | 610 | |
580 | # Identity of this package. | | 611 | # Identity of this package. |
581 | PACKAGE_NAME='libnbcompat' | | 612 | PACKAGE_NAME='libnbcompat' |
582 | PACKAGE_TARNAME='libnbcompat' | | 613 | PACKAGE_TARNAME='libnbcompat' |
583 | PACKAGE_VERSION='20190708' | | 614 | PACKAGE_VERSION='20190708' |
584 | PACKAGE_STRING='libnbcompat 20190708' | | 615 | PACKAGE_STRING='libnbcompat 20190708' |
585 | PACKAGE_BUGREPORT='joerg@NetBSD.org' | | 616 | PACKAGE_BUGREPORT='joerg@NetBSD.org' |
586 | PACKAGE_URL='' | | 617 | PACKAGE_URL='' |
587 | | | 618 | |
588 | # Factoring default headers for most tests. | | 619 | # Factoring default headers for most tests. |
589 | ac_includes_default="\ | | 620 | ac_includes_default="\ |
590 | #include <stdio.h> | | 621 | #include <stddef.h> |
591 | #ifdef HAVE_SYS_TYPES_H | | 622 | #ifdef HAVE_STDIO_H |
592 | # include <sys/types.h> | | 623 | # include <stdio.h> |
593 | #endif | | | |
594 | #ifdef HAVE_SYS_STAT_H | | | |
595 | # include <sys/stat.h> | | | |
596 | #endif | | 624 | #endif |
597 | #ifdef STDC_HEADERS | | 625 | #ifdef HAVE_STDLIB_H |
598 | # include <stdlib.h> | | 626 | # include <stdlib.h> |
599 | # include <stddef.h> | | | |
600 | #else | | | |
601 | # ifdef HAVE_STDLIB_H | | | |
602 | # include <stdlib.h> | | | |
603 | # endif | | | |
604 | #endif | | 627 | #endif |
605 | #ifdef HAVE_STRING_H | | 628 | #ifdef HAVE_STRING_H |
606 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | | | |
607 | # include <memory.h> | | | |
608 | # endif | | | |
609 | # include <string.h> | | 629 | # include <string.h> |
610 | #endif | | 630 | #endif |
611 | #ifdef HAVE_STRINGS_H | | | |
612 | # include <strings.h> | | | |
613 | #endif | | | |
614 | #ifdef HAVE_INTTYPES_H | | 631 | #ifdef HAVE_INTTYPES_H |
615 | # include <inttypes.h> | | 632 | # include <inttypes.h> |
616 | #endif | | 633 | #endif |
617 | #ifdef HAVE_STDINT_H | | 634 | #ifdef HAVE_STDINT_H |
618 | # include <stdint.h> | | 635 | # include <stdint.h> |
619 | #endif | | 636 | #endif |
| | | 637 | #ifdef HAVE_STRINGS_H |
| | | 638 | # include <strings.h> |
| | | 639 | #endif |
| | | 640 | #ifdef HAVE_SYS_TYPES_H |
| | | 641 | # include <sys/types.h> |
| | | 642 | #endif |
| | | 643 | #ifdef HAVE_SYS_STAT_H |
| | | 644 | # include <sys/stat.h> |
| | | 645 | #endif |
620 | #ifdef HAVE_UNISTD_H | | 646 | #ifdef HAVE_UNISTD_H |
621 | # include <unistd.h> | | 647 | # include <unistd.h> |
622 | #endif" | | 648 | #endif" |
623 | | | 649 | |
| | | 650 | ac_header_c_list= |
| | | 651 | ac_func_c_list= |
624 | ac_subst_vars='LTLIBOBJS | | 652 | ac_subst_vars='LTLIBOBJS |
625 | WITH_DB | | 653 | WITH_DB |
626 | LIBOBJS | | 654 | LIBOBJS |
| | | 655 | EGREP |
| | | 656 | GREP |
627 | AUTOHEADER | | 657 | AUTOHEADER |
628 | AUTOCONF | | 658 | AUTOCONF |
629 | AR | | 659 | AR |
630 | AWK | | 660 | AWK |
631 | RANLIB | | 661 | RANLIB |
632 | LN_S | | 662 | LN_S |
633 | INSTALL_DATA | | 663 | INSTALL_DATA |
634 | INSTALL_SCRIPT | | 664 | INSTALL_SCRIPT |
635 | INSTALL_PROGRAM | | 665 | INSTALL_PROGRAM |
636 | SET_MAKE | | 666 | SET_MAKE |
637 | INCLUDES | | 667 | INCLUDES |
638 | CANONICAL_HOST | | 668 | CANONICAL_HOST |
639 | EGREP | | | |
640 | GREP | | | |
641 | CPP | | | |
642 | OBJEXT | | 669 | OBJEXT |
643 | EXEEXT | | 670 | EXEEXT |
644 | ac_ct_CC | | 671 | ac_ct_CC |
645 | CPPFLAGS | | 672 | CPPFLAGS |
646 | LDFLAGS | | 673 | LDFLAGS |
647 | CFLAGS | | 674 | CFLAGS |
648 | CC | | 675 | CC |
649 | host_os | | 676 | host_os |
650 | host_vendor | | 677 | host_vendor |
651 | host_cpu | | 678 | host_cpu |
652 | host | | 679 | host |
653 | build_os | | 680 | build_os |
654 | build_vendor | | 681 | build_vendor |
| @@ -663,26 +690,27 @@ ECHO_N | | | @@ -663,26 +690,27 @@ ECHO_N |
663 | ECHO_C | | 690 | ECHO_C |
664 | DEFS | | 691 | DEFS |
665 | mandir | | 692 | mandir |
666 | localedir | | 693 | localedir |
667 | libdir | | 694 | libdir |
668 | psdir | | 695 | psdir |
669 | pdfdir | | 696 | pdfdir |
670 | dvidir | | 697 | dvidir |
671 | htmldir | | 698 | htmldir |
672 | infodir | | 699 | infodir |
673 | docdir | | 700 | docdir |
674 | oldincludedir | | 701 | oldincludedir |
675 | includedir | | 702 | includedir |
| | | 703 | runstatedir |
676 | localstatedir | | 704 | localstatedir |
677 | sharedstatedir | | 705 | sharedstatedir |
678 | sysconfdir | | 706 | sysconfdir |
679 | datadir | | 707 | datadir |
680 | datarootdir | | 708 | datarootdir |
681 | libexecdir | | 709 | libexecdir |
682 | sbindir | | 710 | sbindir |
683 | bindir | | 711 | bindir |
684 | program_transform_name | | 712 | program_transform_name |
685 | prefix | | 713 | prefix |
686 | exec_prefix | | 714 | exec_prefix |
687 | PACKAGE_URL | | 715 | PACKAGE_URL |
688 | PACKAGE_BUGREPORT | | 716 | PACKAGE_BUGREPORT |
| @@ -695,28 +723,27 @@ SHELL' | | | @@ -695,28 +723,27 @@ SHELL' |
695 | ac_subst_files='' | | 723 | ac_subst_files='' |
696 | ac_user_opts=' | | 724 | ac_user_opts=' |
697 | enable_option_checking | | 725 | enable_option_checking |
698 | enable_db | | 726 | enable_db |
699 | enable_bsd_getopt | | 727 | enable_bsd_getopt |
700 | ' | | 728 | ' |
701 | ac_precious_vars='build_alias | | 729 | ac_precious_vars='build_alias |
702 | host_alias | | 730 | host_alias |
703 | target_alias | | 731 | target_alias |
704 | CC | | 732 | CC |
705 | CFLAGS | | 733 | CFLAGS |
706 | LDFLAGS | | 734 | LDFLAGS |
707 | LIBS | | 735 | LIBS |
708 | CPPFLAGS | | 736 | CPPFLAGS' |
709 | CPP' | | | |
710 | | | 737 | |
711 | | | 738 | |
712 | # Initialize some variables set by options. | | 739 | # Initialize some variables set by options. |
713 | ac_init_help= | | 740 | ac_init_help= |
714 | ac_init_version=false | | 741 | ac_init_version=false |
715 | ac_unrecognized_opts= | | 742 | ac_unrecognized_opts= |
716 | ac_unrecognized_sep= | | 743 | ac_unrecognized_sep= |
717 | # The variables have the same names as the options, with | | 744 | # The variables have the same names as the options, with |
718 | # dashes changed to underlines. | | 745 | # dashes changed to underlines. |
719 | cache_file=/dev/null | | 746 | cache_file=/dev/null |
720 | exec_prefix=NONE | | 747 | exec_prefix=NONE |
721 | no_create= | | 748 | no_create= |
722 | no_recursion= | | 749 | no_recursion= |
| @@ -735,26 +762,27 @@ x_libraries=NONE | | | @@ -735,26 +762,27 @@ x_libraries=NONE |
735 | # These are left unexpanded so users can "make install exec_prefix=/foo" | | 762 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
736 | # and all the variables that are supposed to be based on exec_prefix | | 763 | # and all the variables that are supposed to be based on exec_prefix |
737 | # by default will actually change. | | 764 | # by default will actually change. |
738 | # Use braces instead of parens because sh, perl, etc. also accept them. | | 765 | # Use braces instead of parens because sh, perl, etc. also accept them. |
739 | # (The list follows the same order as the GNU Coding Standards.) | | 766 | # (The list follows the same order as the GNU Coding Standards.) |
740 | bindir='${exec_prefix}/bin' | | 767 | bindir='${exec_prefix}/bin' |
741 | sbindir='${exec_prefix}/sbin' | | 768 | sbindir='${exec_prefix}/sbin' |
742 | libexecdir='${exec_prefix}/libexec' | | 769 | libexecdir='${exec_prefix}/libexec' |
743 | datarootdir='${prefix}/share' | | 770 | datarootdir='${prefix}/share' |
744 | datadir='${datarootdir}' | | 771 | datadir='${datarootdir}' |
745 | sysconfdir='${prefix}/etc' | | 772 | sysconfdir='${prefix}/etc' |
746 | sharedstatedir='${prefix}/com' | | 773 | sharedstatedir='${prefix}/com' |
747 | localstatedir='${prefix}/var' | | 774 | localstatedir='${prefix}/var' |
| | | 775 | runstatedir='${localstatedir}/run' |
748 | includedir='${prefix}/include' | | 776 | includedir='${prefix}/include' |
749 | oldincludedir='/usr/include' | | 777 | oldincludedir='/usr/include' |
750 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | | 778 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
751 | infodir='${datarootdir}/info' | | 779 | infodir='${datarootdir}/info' |
752 | htmldir='${docdir}' | | 780 | htmldir='${docdir}' |
753 | dvidir='${docdir}' | | 781 | dvidir='${docdir}' |
754 | pdfdir='${docdir}' | | 782 | pdfdir='${docdir}' |
755 | psdir='${docdir}' | | 783 | psdir='${docdir}' |
756 | libdir='${exec_prefix}/lib' | | 784 | libdir='${exec_prefix}/lib' |
757 | localedir='${datarootdir}/locale' | | 785 | localedir='${datarootdir}/locale' |
758 | mandir='${datarootdir}/man' | | 786 | mandir='${datarootdir}/man' |
759 | | | 787 | |
760 | ac_prev= | | 788 | ac_prev= |
| @@ -764,28 +792,26 @@ do | | | @@ -764,28 +792,26 @@ do |
764 | # If the previous option needs an argument, assign it. | | 792 | # If the previous option needs an argument, assign it. |
765 | if test -n "$ac_prev"; then | | 793 | if test -n "$ac_prev"; then |
766 | eval $ac_prev=\$ac_option | | 794 | eval $ac_prev=\$ac_option |
767 | ac_prev= | | 795 | ac_prev= |
768 | continue | | 796 | continue |
769 | fi | | 797 | fi |
770 | | | 798 | |
771 | case $ac_option in | | 799 | case $ac_option in |
772 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | | 800 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
773 | *=) ac_optarg= ;; | | 801 | *=) ac_optarg= ;; |
774 | *) ac_optarg=yes ;; | | 802 | *) ac_optarg=yes ;; |
775 | esac | | 803 | esac |
776 | | | 804 | |
777 | # Accept the important Cygnus configure options, so we can diagnose typos. | | | |
778 | | | | |
779 | case $ac_dashdash$ac_option in | | 805 | case $ac_dashdash$ac_option in |
780 | --) | | 806 | --) |
781 | ac_dashdash=yes ;; | | 807 | ac_dashdash=yes ;; |
782 | | | 808 | |
783 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | | 809 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
784 | ac_prev=bindir ;; | | 810 | ac_prev=bindir ;; |
785 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | | 811 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
786 | bindir=$ac_optarg ;; | | 812 | bindir=$ac_optarg ;; |
787 | | | 813 | |
788 | -build | --build | --buil | --bui | --bu) | | 814 | -build | --build | --buil | --bui | --bu) |
789 | ac_prev=build_alias ;; | | 815 | ac_prev=build_alias ;; |
790 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | | 816 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
791 | build_alias=$ac_optarg ;; | | 817 | build_alias=$ac_optarg ;; |
| @@ -806,55 +832,55 @@ do | | | @@ -806,55 +832,55 @@ do |
806 | datadir=$ac_optarg ;; | | 832 | datadir=$ac_optarg ;; |
807 | | | 833 | |
808 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | | 834 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
809 | | --dataroo | --dataro | --datar) | | 835 | | --dataroo | --dataro | --datar) |
810 | ac_prev=datarootdir ;; | | 836 | ac_prev=datarootdir ;; |
811 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | | 837 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
812 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | | 838 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
813 | datarootdir=$ac_optarg ;; | | 839 | datarootdir=$ac_optarg ;; |
814 | | | 840 | |
815 | -disable-* | --disable-*) | | 841 | -disable-* | --disable-*) |
816 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | | 842 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
817 | # Reject names that are not valid shell variable names. | | 843 | # Reject names that are not valid shell variable names. |
818 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | | 844 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
819 | as_fn_error $? "invalid feature name: $ac_useropt" | | 845 | as_fn_error $? "invalid feature name: \`$ac_useropt'" |
820 | ac_useropt_orig=$ac_useropt | | 846 | ac_useropt_orig=$ac_useropt |
821 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | | 847 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
822 | case $ac_user_opts in | | 848 | case $ac_user_opts in |
823 | *" | | 849 | *" |
824 | "enable_$ac_useropt" | | 850 | "enable_$ac_useropt" |
825 | "*) ;; | | 851 | "*) ;; |
826 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | | 852 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
827 | ac_unrecognized_sep=', ';; | | 853 | ac_unrecognized_sep=', ';; |
828 | esac | | 854 | esac |
829 | eval enable_$ac_useropt=no ;; | | 855 | eval enable_$ac_useropt=no ;; |
830 | | | 856 | |
831 | -docdir | --docdir | --docdi | --doc | --do) | | 857 | -docdir | --docdir | --docdi | --doc | --do) |
832 | ac_prev=docdir ;; | | 858 | ac_prev=docdir ;; |
833 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | | 859 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
834 | docdir=$ac_optarg ;; | | 860 | docdir=$ac_optarg ;; |
835 | | | 861 | |
836 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | | 862 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
837 | ac_prev=dvidir ;; | | 863 | ac_prev=dvidir ;; |
838 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | | 864 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
839 | dvidir=$ac_optarg ;; | | 865 | dvidir=$ac_optarg ;; |
840 | | | 866 | |
841 | -enable-* | --enable-*) | | 867 | -enable-* | --enable-*) |
842 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | | 868 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
843 | # Reject names that are not valid shell variable names. | | 869 | # Reject names that are not valid shell variable names. |
844 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | | 870 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
845 | as_fn_error $? "invalid feature name: $ac_useropt" | | 871 | as_fn_error $? "invalid feature name: \`$ac_useropt'" |
846 | ac_useropt_orig=$ac_useropt | | 872 | ac_useropt_orig=$ac_useropt |
847 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | | 873 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
848 | case $ac_user_opts in | | 874 | case $ac_user_opts in |
849 | *" | | 875 | *" |
850 | "enable_$ac_useropt" | | 876 | "enable_$ac_useropt" |
851 | "*) ;; | | 877 | "*) ;; |
852 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | | 878 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
853 | ac_unrecognized_sep=', ';; | | 879 | ac_unrecognized_sep=', ';; |
854 | esac | | 880 | esac |
855 | eval enable_$ac_useropt=\$ac_optarg ;; | | 881 | eval enable_$ac_useropt=\$ac_optarg ;; |
856 | | | 882 | |
857 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | | 883 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
858 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | | 884 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
859 | | --exec | --exe | --ex) | | 885 | | --exec | --exe | --ex) |
860 | ac_prev=exec_prefix ;; | | 886 | ac_prev=exec_prefix ;; |
| @@ -987,26 +1013,35 @@ do | | | @@ -987,26 +1013,35 @@ do |
987 | ac_prev=pdfdir ;; | | 1013 | ac_prev=pdfdir ;; |
988 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | | 1014 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
989 | pdfdir=$ac_optarg ;; | | 1015 | pdfdir=$ac_optarg ;; |
990 | | | 1016 | |
991 | -psdir | --psdir | --psdi | --psd | --ps) | | 1017 | -psdir | --psdir | --psdi | --psd | --ps) |
992 | ac_prev=psdir ;; | | 1018 | ac_prev=psdir ;; |
993 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | | 1019 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
994 | psdir=$ac_optarg ;; | | 1020 | psdir=$ac_optarg ;; |
995 | | | 1021 | |
996 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | | 1022 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
997 | | -silent | --silent | --silen | --sile | --sil) | | 1023 | | -silent | --silent | --silen | --sile | --sil) |
998 | silent=yes ;; | | 1024 | silent=yes ;; |
999 | | | 1025 | |
| | | 1026 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
| | | 1027 | | --runstate | --runstat | --runsta | --runst | --runs \ |
| | | 1028 | | --run | --ru | --r) |
| | | 1029 | ac_prev=runstatedir ;; |
| | | 1030 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
| | | 1031 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
| | | 1032 | | --run=* | --ru=* | --r=*) |
| | | 1033 | runstatedir=$ac_optarg ;; |
| | | 1034 | |
1000 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | | 1035 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1001 | ac_prev=sbindir ;; | | 1036 | ac_prev=sbindir ;; |
1002 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | | 1037 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
1003 | | --sbi=* | --sb=*) | | 1038 | | --sbi=* | --sb=*) |
1004 | sbindir=$ac_optarg ;; | | 1039 | sbindir=$ac_optarg ;; |
1005 | | | 1040 | |
1006 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | | 1041 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
1007 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | | 1042 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
1008 | | --sharedst | --shareds | --shared | --share | --shar \ | | 1043 | | --sharedst | --shareds | --shared | --share | --shar \ |
1009 | | --sha | --sh) | | 1044 | | --sha | --sh) |
1010 | ac_prev=sharedstatedir ;; | | 1045 | ac_prev=sharedstatedir ;; |
1011 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | | 1046 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
1012 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | | 1047 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| @@ -1036,45 +1071,45 @@ do | | | @@ -1036,45 +1071,45 @@ do |
1036 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | | 1071 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1037 | target_alias=$ac_optarg ;; | | 1072 | target_alias=$ac_optarg ;; |
1038 | | | 1073 | |
1039 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | | 1074 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
1040 | verbose=yes ;; | | 1075 | verbose=yes ;; |
1041 | | | 1076 | |
1042 | -version | --version | --versio | --versi | --vers | -V) | | 1077 | -version | --version | --versio | --versi | --vers | -V) |
1043 | ac_init_version=: ;; | | 1078 | ac_init_version=: ;; |
1044 | | | 1079 | |
1045 | -with-* | --with-*) | | 1080 | -with-* | --with-*) |
1046 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | | 1081 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1047 | # Reject names that are not valid shell variable names. | | 1082 | # Reject names that are not valid shell variable names. |
1048 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | | 1083 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1049 | as_fn_error $? "invalid package name: $ac_useropt" | | 1084 | as_fn_error $? "invalid package name: \`$ac_useropt'" |
1050 | ac_useropt_orig=$ac_useropt | | 1085 | ac_useropt_orig=$ac_useropt |
1051 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | | 1086 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
1052 | case $ac_user_opts in | | 1087 | case $ac_user_opts in |
1053 | *" | | 1088 | *" |
1054 | "with_$ac_useropt" | | 1089 | "with_$ac_useropt" |
1055 | "*) ;; | | 1090 | "*) ;; |
1056 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | | 1091 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
1057 | ac_unrecognized_sep=', ';; | | 1092 | ac_unrecognized_sep=', ';; |
1058 | esac | | 1093 | esac |
1059 | eval with_$ac_useropt=\$ac_optarg ;; | | 1094 | eval with_$ac_useropt=\$ac_optarg ;; |
1060 | | | 1095 | |
1061 | -without-* | --without-*) | | 1096 | -without-* | --without-*) |
1062 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | | 1097 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1063 | # Reject names that are not valid shell variable names. | | 1098 | # Reject names that are not valid shell variable names. |
1064 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | | 1099 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1065 | as_fn_error $? "invalid package name: $ac_useropt" | | 1100 | as_fn_error $? "invalid package name: \`$ac_useropt'" |
1066 | ac_useropt_orig=$ac_useropt | | 1101 | ac_useropt_orig=$ac_useropt |
1067 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | | 1102 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
1068 | case $ac_user_opts in | | 1103 | case $ac_user_opts in |
1069 | *" | | 1104 | *" |
1070 | "with_$ac_useropt" | | 1105 | "with_$ac_useropt" |
1071 | "*) ;; | | 1106 | "*) ;; |
1072 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | | 1107 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
1073 | ac_unrecognized_sep=', ';; | | 1108 | ac_unrecognized_sep=', ';; |
1074 | esac | | 1109 | esac |
1075 | eval with_$ac_useropt=no ;; | | 1110 | eval with_$ac_useropt=no ;; |
1076 | | | 1111 | |
1077 | --x) | | 1112 | --x) |
1078 | # Obsolete; use --with-x. | | 1113 | # Obsolete; use --with-x. |
1079 | with_x=yes ;; | | 1114 | with_x=yes ;; |
1080 | | | 1115 | |
| @@ -1098,53 +1133,53 @@ Try \`$0 --help' for more information" | | | @@ -1098,53 +1133,53 @@ Try \`$0 --help' for more information" |
1098 | | | 1133 | |
1099 | *=*) | | 1134 | *=*) |
1100 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | | 1135 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1101 | # Reject names that are not valid shell variable names. | | 1136 | # Reject names that are not valid shell variable names. |
1102 | case $ac_envvar in #( | | 1137 | case $ac_envvar in #( |
1103 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | | 1138 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
1104 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | | 1139 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
1105 | esac | | 1140 | esac |
1106 | eval $ac_envvar=\$ac_optarg | | 1141 | eval $ac_envvar=\$ac_optarg |
1107 | export $ac_envvar ;; | | 1142 | export $ac_envvar ;; |
1108 | | | 1143 | |
1109 | *) | | 1144 | *) |
1110 | # FIXME: should be removed in autoconf 3.0. | | 1145 | # FIXME: should be removed in autoconf 3.0. |
1111 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | | 1146 | printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1112 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | | 1147 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1113 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | | 1148 | printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1114 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | | 1149 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
1115 | ;; | | 1150 | ;; |
1116 | | | 1151 | |
1117 | esac | | 1152 | esac |
1118 | done | | 1153 | done |
1119 | | | 1154 | |
1120 | if test -n "$ac_prev"; then | | 1155 | if test -n "$ac_prev"; then |
1121 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | | 1156 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1122 | as_fn_error $? "missing argument to $ac_option" | | 1157 | as_fn_error $? "missing argument to $ac_option" |
1123 | fi | | 1158 | fi |
1124 | | | 1159 | |
1125 | if test -n "$ac_unrecognized_opts"; then | | 1160 | if test -n "$ac_unrecognized_opts"; then |
1126 | case $enable_option_checking in | | 1161 | case $enable_option_checking in |
1127 | no) ;; | | 1162 | no) ;; |
1128 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | | 1163 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
1129 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | | 1164 | *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1130 | esac | | 1165 | esac |
1131 | fi | | 1166 | fi |
1132 | | | 1167 | |
1133 | # Check all directory arguments for consistency. | | 1168 | # Check all directory arguments for consistency. |
1134 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | | 1169 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1135 | datadir sysconfdir sharedstatedir localstatedir includedir \ | | 1170 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
1136 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | | 1171 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1137 | libdir localedir mandir | | 1172 | libdir localedir mandir runstatedir |
1138 | do | | 1173 | do |
1139 | eval ac_val=\$$ac_var | | 1174 | eval ac_val=\$$ac_var |
1140 | # Remove trailing slashes. | | 1175 | # Remove trailing slashes. |
1141 | case $ac_val in | | 1176 | case $ac_val in |
1142 | */ ) | | 1177 | */ ) |
1143 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | | 1178 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
1144 | eval $ac_var=\$ac_val;; | | 1179 | eval $ac_var=\$ac_val;; |
1145 | esac | | 1180 | esac |
1146 | # Be sure to have absolute directory names. | | 1181 | # Be sure to have absolute directory names. |
1147 | case $ac_val in | | 1182 | case $ac_val in |
1148 | [\\/$]* | ?:[\\/]* ) continue;; | | 1183 | [\\/$]* | ?:[\\/]* ) continue;; |
1149 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | | 1184 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
1150 | esac | | 1185 | esac |
| @@ -1180,27 +1215,27 @@ ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` | | | @@ -1180,27 +1215,27 @@ ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` |
1180 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | | 1215 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1181 | as_fn_error $? "pwd does not report name of working directory" | | 1216 | as_fn_error $? "pwd does not report name of working directory" |
1182 | | | 1217 | |
1183 | | | 1218 | |
1184 | # Find the source files, if location was not specified. | | 1219 | # Find the source files, if location was not specified. |
1185 | if test -z "$srcdir"; then | | 1220 | if test -z "$srcdir"; then |
1186 | ac_srcdir_defaulted=yes | | 1221 | ac_srcdir_defaulted=yes |
1187 | # Try the directory containing this script, then the parent directory. | | 1222 | # Try the directory containing this script, then the parent directory. |
1188 | ac_confdir=`$as_dirname -- "$as_myself" || | | 1223 | ac_confdir=`$as_dirname -- "$as_myself" || |
1189 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | | 1224 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1190 | X"$as_myself" : 'X\(//\)[^/]' \| \ | | 1225 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
1191 | X"$as_myself" : 'X\(//\)$' \| \ | | 1226 | X"$as_myself" : 'X\(//\)$' \| \ |
1192 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | | 1227 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
1193 | $as_echo X"$as_myself" | | | 1228 | printf "%s\n" X"$as_myself" | |
1194 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | | 1229 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1195 | s//\1/ | | 1230 | s//\1/ |
1196 | q | | 1231 | q |
1197 | } | | 1232 | } |
1198 | /^X\(\/\/\)[^/].*/{ | | 1233 | /^X\(\/\/\)[^/].*/{ |
1199 | s//\1/ | | 1234 | s//\1/ |
1200 | q | | 1235 | q |
1201 | } | | 1236 | } |
1202 | /^X\(\/\/\)$/{ | | 1237 | /^X\(\/\/\)$/{ |
1203 | s//\1/ | | 1238 | s//\1/ |
1204 | q | | 1239 | q |
1205 | } | | 1240 | } |
1206 | /^X\(\/\).*/{ | | 1241 | /^X\(\/\).*/{ |
| @@ -1277,26 +1312,27 @@ By default, \`make install' will install | | | @@ -1277,26 +1312,27 @@ By default, \`make install' will install |
1277 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | | 1312 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
1278 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | | 1313 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
1279 | for instance \`--prefix=\$HOME'. | | 1314 | for instance \`--prefix=\$HOME'. |
1280 | | | 1315 | |
1281 | For better control, use the options below. | | 1316 | For better control, use the options below. |
1282 | | | 1317 | |
1283 | Fine tuning of the installation directories: | | 1318 | Fine tuning of the installation directories: |
1284 | --bindir=DIR user executables [EPREFIX/bin] | | 1319 | --bindir=DIR user executables [EPREFIX/bin] |
1285 | --sbindir=DIR system admin executables [EPREFIX/sbin] | | 1320 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
1286 | --libexecdir=DIR program executables [EPREFIX/libexec] | | 1321 | --libexecdir=DIR program executables [EPREFIX/libexec] |
1287 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | | 1322 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1288 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | | 1323 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1289 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | | 1324 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| | | 1325 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
1290 | --libdir=DIR object code libraries [EPREFIX/lib] | | 1326 | --libdir=DIR object code libraries [EPREFIX/lib] |
1291 | --includedir=DIR C header files [PREFIX/include] | | 1327 | --includedir=DIR C header files [PREFIX/include] |
1292 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | | 1328 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
1293 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | | 1329 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1294 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | | 1330 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1295 | --infodir=DIR info documentation [DATAROOTDIR/info] | | 1331 | --infodir=DIR info documentation [DATAROOTDIR/info] |
1296 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | | 1332 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1297 | --mandir=DIR man documentation [DATAROOTDIR/man] | | 1333 | --mandir=DIR man documentation [DATAROOTDIR/man] |
1298 | --docdir=DIR documentation root [DATAROOTDIR/doc/libnbcompat] | | 1334 | --docdir=DIR documentation root [DATAROOTDIR/doc/libnbcompat] |
1299 | --htmldir=DIR html documentation [DOCDIR] | | 1335 | --htmldir=DIR html documentation [DOCDIR] |
1300 | --dvidir=DIR dvi documentation [DOCDIR] | | 1336 | --dvidir=DIR dvi documentation [DOCDIR] |
1301 | --pdfdir=DIR pdf documentation [DOCDIR] | | 1337 | --pdfdir=DIR pdf documentation [DOCDIR] |
1302 | --psdir=DIR ps documentation [DOCDIR] | | 1338 | --psdir=DIR ps documentation [DOCDIR] |
| @@ -1326,50 +1362,49 @@ Optional Features: | | | @@ -1326,50 +1362,49 @@ Optional Features: |
1326 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | | 1362 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1327 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | | 1363 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1328 | --enable-db include DB implementation | | 1364 | --enable-db include DB implementation |
1329 | --enable-bsd-getopt force use of BSDish getopt implementation | | 1365 | --enable-bsd-getopt force use of BSDish getopt implementation |
1330 | | | 1366 | |
1331 | Some influential environment variables: | | 1367 | Some influential environment variables: |
1332 | CC C compiler command | | 1368 | CC C compiler command |
1333 | CFLAGS C compiler flags | | 1369 | CFLAGS C compiler flags |
1334 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | | 1370 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1335 | nonstandard directory <lib dir> | | 1371 | nonstandard directory <lib dir> |
1336 | LIBS libraries to pass to the linker, e.g. -l<library> | | 1372 | LIBS libraries to pass to the linker, e.g. -l<library> |
1337 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | | 1373 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
1338 | you have headers in a nonstandard directory <include dir> | | 1374 | you have headers in a nonstandard directory <include dir> |
1339 | CPP C preprocessor | | | |
1340 | | | 1375 | |
1341 | Use these variables to override the choices made by `configure' or to help | | 1376 | Use these variables to override the choices made by `configure' or to help |
1342 | it to find libraries and programs with nonstandard names/locations. | | 1377 | it to find libraries and programs with nonstandard names/locations. |
1343 | | | 1378 | |
1344 | Report bugs to <joerg@NetBSD.org>. | | 1379 | Report bugs to <joerg@NetBSD.org>. |
1345 | _ACEOF | | 1380 | _ACEOF |
1346 | ac_status=$? | | 1381 | ac_status=$? |
1347 | fi | | 1382 | fi |
1348 | | | 1383 | |
1349 | if test "$ac_init_help" = "recursive"; then | | 1384 | if test "$ac_init_help" = "recursive"; then |
1350 | # If there are subdirs, report their specific --help. | | 1385 | # If there are subdirs, report their specific --help. |
1351 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | | 1386 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
1352 | test -d "$ac_dir" || | | 1387 | test -d "$ac_dir" || |
1353 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | | 1388 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
1354 | continue | | 1389 | continue |
1355 | ac_builddir=. | | 1390 | ac_builddir=. |
1356 | | | 1391 | |
1357 | case "$ac_dir" in | | 1392 | case "$ac_dir" in |
1358 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | | 1393 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1359 | *) | | 1394 | *) |
1360 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | | 1395 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
1361 | # A ".." for each directory in $ac_dir_suffix. | | 1396 | # A ".." for each directory in $ac_dir_suffix. |
1362 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | | 1397 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
1363 | case $ac_top_builddir_sub in | | 1398 | case $ac_top_builddir_sub in |
1364 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | | 1399 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1365 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | | 1400 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1366 | esac ;; | | 1401 | esac ;; |
1367 | esac | | 1402 | esac |
1368 | ac_abs_top_builddir=$ac_pwd | | 1403 | ac_abs_top_builddir=$ac_pwd |
1369 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | | 1404 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
1370 | # for backward compatibility: | | 1405 | # for backward compatibility: |
1371 | ac_top_builddir=$ac_top_build_prefix | | 1406 | ac_top_builddir=$ac_top_build_prefix |
1372 | | | 1407 | |
1373 | case $srcdir in | | 1408 | case $srcdir in |
1374 | .) # We are building in place. | | 1409 | .) # We are building in place. |
1375 | ac_srcdir=. | | 1410 | ac_srcdir=. |
| @@ -1377,780 +1412,674 @@ case $srcdir in | | | @@ -1377,780 +1412,674 @@ case $srcdir in |
1377 | ac_abs_top_srcdir=$ac_pwd ;; | | 1412 | ac_abs_top_srcdir=$ac_pwd ;; |
1378 | [\\/]* | ?:[\\/]* ) # Absolute name. | | 1413 | [\\/]* | ?:[\\/]* ) # Absolute name. |
1379 | ac_srcdir=$srcdir$ac_dir_suffix; | | 1414 | ac_srcdir=$srcdir$ac_dir_suffix; |
1380 | ac_top_srcdir=$srcdir | | 1415 | ac_top_srcdir=$srcdir |
1381 | ac_abs_top_srcdir=$srcdir ;; | | 1416 | ac_abs_top_srcdir=$srcdir ;; |
1382 | *) # Relative name. | | 1417 | *) # Relative name. |
1383 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | | 1418 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
1384 | ac_top_srcdir=$ac_top_build_prefix$srcdir | | 1419 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
1385 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | | 1420 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
1386 | esac | | 1421 | esac |
1387 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | | 1422 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1388 | | | 1423 | |
1389 | cd "$ac_dir" || { ac_status=$?; continue; } | | 1424 | cd "$ac_dir" || { ac_status=$?; continue; } |
1390 | # Check for guested configure. | | 1425 | # Check for configure.gnu first; this name is used for a wrapper for |
| | | 1426 | # Metaconfig's "Configure" on case-insensitive file systems. |
1391 | if test -f "$ac_srcdir/configure.gnu"; then | | 1427 | if test -f "$ac_srcdir/configure.gnu"; then |
1392 | echo && | | 1428 | echo && |
1393 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | | 1429 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1394 | elif test -f "$ac_srcdir/configure"; then | | 1430 | elif test -f "$ac_srcdir/configure"; then |
1395 | echo && | | 1431 | echo && |
1396 | $SHELL "$ac_srcdir/configure" --help=recursive | | 1432 | $SHELL "$ac_srcdir/configure" --help=recursive |
1397 | else | | 1433 | else |
1398 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | | 1434 | printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1399 | fi || ac_status=$? | | 1435 | fi || ac_status=$? |
1400 | cd "$ac_pwd" || { ac_status=$?; break; } | | 1436 | cd "$ac_pwd" || { ac_status=$?; break; } |
1401 | done | | 1437 | done |
1402 | fi | | 1438 | fi |
1403 | | | 1439 | |
1404 | test -n "$ac_init_help" && exit $ac_status | | 1440 | test -n "$ac_init_help" && exit $ac_status |
1405 | if $ac_init_version; then | | 1441 | if $ac_init_version; then |
1406 | cat <<\_ACEOF | | 1442 | cat <<\_ACEOF |
1407 | libnbcompat configure 20190708 | | 1443 | libnbcompat configure 20190708 |
1408 | generated by GNU Autoconf 2.69 | | 1444 | generated by GNU Autoconf 2.71 |
1409 | | | 1445 | |
1410 | Copyright (C) 2012 Free Software Foundation, Inc. | | 1446 | Copyright (C) 2021 Free Software Foundation, Inc. |
1411 | This configure script is free software; the Free Software Foundation | | 1447 | This configure script is free software; the Free Software Foundation |
1412 | gives unlimited permission to copy, distribute and modify it. | | 1448 | gives unlimited permission to copy, distribute and modify it. |
1413 | _ACEOF | | 1449 | _ACEOF |
1414 | exit | | 1450 | exit |
1415 | fi | | 1451 | fi |
1416 | | | 1452 | |
1417 | ## ------------------------ ## | | 1453 | ## ------------------------ ## |
1418 | ## Autoconf initialization. ## | | 1454 | ## Autoconf initialization. ## |
1419 | ## ------------------------ ## | | 1455 | ## ------------------------ ## |
1420 | | | 1456 | |
1421 | # ac_fn_c_try_compile LINENO | | 1457 | # ac_fn_c_try_compile LINENO |
1422 | # -------------------------- | | 1458 | # -------------------------- |
1423 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | | 1459 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
1424 | ac_fn_c_try_compile () | | 1460 | ac_fn_c_try_compile () |
1425 | { | | 1461 | { |
1426 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | | 1462 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1427 | rm -f conftest.$ac_objext | | 1463 | rm -f conftest.$ac_objext conftest.beam |
1428 | if { { ac_try="$ac_compile" | | 1464 | if { { ac_try="$ac_compile" |
1429 | case "(($ac_try" in | | 1465 | case "(($ac_try" in |
1430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | | 1466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1431 | *) ac_try_echo=$ac_try;; | | 1467 | *) ac_try_echo=$ac_try;; |
1432 | esac | | 1468 | esac |
1433 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | | 1469 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1434 | $as_echo "$ac_try_echo"; } >&5 | | 1470 | printf "%s\n" "$ac_try_echo"; } >&5 |
1435 | (eval "$ac_compile") 2>conftest.err | | 1471 | (eval "$ac_compile") 2>conftest.err |
1436 | ac_status=$? | | 1472 | ac_status=$? |
1437 | if test -s conftest.err; then | | 1473 | if test -s conftest.err; then |
1438 | grep -v '^ *+' conftest.err >conftest.er1 | | 1474 | grep -v '^ *+' conftest.err >conftest.er1 |
1439 | cat conftest.er1 >&5 | | 1475 | cat conftest.er1 >&5 |
1440 | mv -f conftest.er1 conftest.err | | 1476 | mv -f conftest.er1 conftest.err |
1441 | fi | | 1477 | fi |
1442 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | | 1478 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1443 | test $ac_status = 0; } && { | | 1479 | test $ac_status = 0; } && { |
1444 | test -z "$ac_c_werror_flag" || | | 1480 | test -z "$ac_c_werror_flag" || |
1445 | test ! -s conftest.err | | 1481 | test ! -s conftest.err |
1446 | } && test -s conftest.$ac_objext; then : | | 1482 | } && test -s conftest.$ac_objext |
| | | 1483 | then : |
1447 | ac_retval=0 | | 1484 | ac_retval=0 |
1448 | else | | 1485 | else $as_nop |
1449 | $as_echo "$as_me: failed program was:" >&5 | | 1486 | printf "%s\n" "$as_me: failed program was:" >&5 |
1450 | sed 's/^/| /' conftest.$ac_ext >&5 | | 1487 | sed 's/^/| /' conftest.$ac_ext >&5 |
1451 | | | 1488 | |
1452 | ac_retval=1 | | 1489 | ac_retval=1 |
1453 | fi | | 1490 | fi |
1454 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | | 1491 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1455 | as_fn_set_status $ac_retval | | 1492 | as_fn_set_status $ac_retval |
1456 | | | 1493 | |
1457 | } # ac_fn_c_try_compile | | 1494 | } # ac_fn_c_try_compile |
1458 | | | 1495 | |
1459 | # ac_fn_c_try_cpp LINENO | | | |
1460 | # ---------------------- | | | |
1461 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | | | |
1462 | ac_fn_c_try_cpp () | | | |
1463 | { | | | |
1464 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | | | |
1465 | if { { ac_try="$ac_cpp conftest.$ac_ext" | | | |
1466 | case "(($ac_try" in | | | |
1467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | | | |
1468 | *) ac_try_echo=$ac_try;; | | | |
1469 | esac | | | |
1470 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | | | |
1471 | $as_echo "$ac_try_echo"; } >&5 | | | |
1472 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | | | |
1473 | ac_status=$? | | | |
1474 | if test -s conftest.err; then | | | |
1475 | grep -v '^ *+' conftest.err >conftest.er1 | | | |
1476 | cat conftest.er1 >&5 | | | |
1477 | mv -f conftest.er1 conftest.err | | | |
1478 | fi | | | |
1479 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | | | |
1480 | test $ac_status = 0; } > conftest.i && { | | | |
1481 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | | | |
1482 | test ! -s conftest.err | | | |
1483 | }; then : | | | |
1484 | ac_retval=0 | | | |
1485 | else | | | |
1486 | $as_echo "$as_me: failed program was:" >&5 | | | |
1487 | sed 's/^/| /' conftest.$ac_ext >&5 | | | |
1488 | | | | |
1489 | ac_retval=1 | | | |
1490 | fi | | | |
1491 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | | | |
1492 | as_fn_set_status $ac_retval | | | |
1493 | | | | |
1494 | } # ac_fn_c_try_cpp | | | |
1495 | | | | |
1496 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | | | |
1497 | # ------------------------------------------------------- | | | |
1498 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | | | |
1499 | # the include files in INCLUDES and setting the cache variable VAR | | | |
1500 | # accordingly. | | | |
1501 | ac_fn_c_check_header_mongrel () | | | |
1502 | { | | | |
1503 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | | | |
1504 | if eval \${$3+:} false; then : | | | |
1505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | | | |
1506 | $as_echo_n "checking for $2... " >&6; } | | | |
1507 | if eval \${$3+:} false; then : | | | |
1508 | $as_echo_n "(cached) " >&6 | | | |
1509 | fi | | | |
1510 | eval ac_res=\$$3 | | | |
1511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | | | |
1512 | $as_echo "$ac_res" >&6; } | | | |
1513 | else | | | |
1514 | # Is the header compilable? | | | |
1515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | | | |
1516 | $as_echo_n "checking $2 usability... " >&6; } | | | |
1517 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | | |
1518 | /* end confdefs.h. */ | | | |
1519 | $4 | | | |
1520 | #include <$2> | | | |
1521 | _ACEOF | | | |
1522 | if ac_fn_c_try_compile "$LINENO"; then : | | | |
1523 | ac_header_compiler=yes | | | |
1524 | else | | | |
1525 | ac_header_compiler=no | | | |
1526 | fi | | | |
1527 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | | |
1528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | | | |
1529 | $as_echo "$ac_header_compiler" >&6; } | | | |
1530 | | | | |
1531 | # Is the header present? | | | |
1532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | | | |
1533 | $as_echo_n "checking $2 presence... " >&6; } | | | |
1534 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | | |
1535 | /* end confdefs.h. */ | | | |
1536 | #include <$2> | | | |
1537 | _ACEOF | | | |
1538 | if ac_fn_c_try_cpp "$LINENO"; then : | | | |
1539 | ac_header_preproc=yes | | | |
1540 | else | | | |
1541 | ac_header_preproc=no | | | |
1542 | fi | | | |
1543 | rm -f conftest.err conftest.i conftest.$ac_ext | | | |
1544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | | | |
1545 | $as_echo "$ac_header_preproc" >&6; } | | | |
1546 | | | | |
1547 | # So? What about this header? | | | |
1548 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | | | |
1549 | yes:no: ) | | | |
1550 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | | | |
1551 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | | | |
1552 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | | | |
1553 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | | | |
1554 | ;; | | | |
1555 | no:yes:* ) | | | |
1556 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | | | |
1557 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | | | |
1558 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | | | |
1559 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | | | |
1560 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | | | |
1561 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | | | |
1562 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | | | |
1563 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | | | |
1564 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | | | |
1565 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | | | |
1566 | ( $as_echo "## ------------------------------- ## | | | |
1567 | ## Report this to joerg@NetBSD.org ## | | | |
1568 | ## ------------------------------- ##" | | | |
1569 | ) | sed "s/^/$as_me: WARNING: /" >&2 | | | |
1570 | ;; | | | |
1571 | esac | | | |
1572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | | | |
1573 | $as_echo_n "checking for $2... " >&6; } | | | |
1574 | if eval \${$3+:} false; then : | | | |
1575 | $as_echo_n "(cached) " >&6 | | | |
1576 | else | | | |
1577 | eval "$3=\$ac_header_compiler" | | | |
1578 | fi | | | |
1579 | eval ac_res=\$$3 | | | |
1580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | | | |
1581 | $as_echo "$ac_res" >&6; } | | | |
1582 | fi | | | |
1583 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | | | |
1584 | | | | |
1585 | } # ac_fn_c_check_header_mongrel | | | |
1586 | | | | |
1587 | # ac_fn_c_try_run LINENO | | | |
1588 | # ---------------------- | | | |
1589 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | | | |
1590 | # that executables *can* be run. | | | |
1591 | ac_fn_c_try_run () | | | |
1592 | { | | | |
1593 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | | | |
1594 | if { { ac_try="$ac_link" | | | |
1595 | case "(($ac_try" in | | | |
1596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | | | |
1597 | *) ac_try_echo=$ac_try;; | | | |
1598 | esac | | | |
1599 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | | | |
1600 | $as_echo "$ac_try_echo"; } >&5 | | | |
1601 | (eval "$ac_link") 2>&5 | | | |
1602 | ac_status=$? | | | |
1603 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | | | |
1604 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | | | |
1605 | { { case "(($ac_try" in | | | |
1606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | | | |
1607 | *) ac_try_echo=$ac_try;; | | | |
1608 | esac | | | |
1609 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | | | |
1610 | $as_echo "$ac_try_echo"; } >&5 | | | |
1611 | (eval "$ac_try") 2>&5 | | | |
1612 | ac_status=$? | | | |
1613 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | | | |
1614 | test $ac_status = 0; }; }; then : | | | |
1615 | ac_retval=0 | | | |
1616 | else | | | |
1617 | $as_echo "$as_me: program exited with status $ac_status" >&5 | | | |
1618 | $as_echo "$as_me: failed program was:" >&5 | | | |
1619 | sed 's/^/| /' conftest.$ac_ext >&5 | | | |
1620 | | | | |
1621 | ac_retval=$ac_status | | | |
1622 | fi | | | |
1623 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | | | |
1624 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | | | |
1625 | as_fn_set_status $ac_retval | | | |
1626 | | | | |
1627 | } # ac_fn_c_try_run | | | |
1628 | | | | |
1629 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | | 1496 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1630 | # ------------------------------------------------------- | | 1497 | # ------------------------------------------------------- |
1631 | # Tests whether HEADER exists and can be compiled using the include files in | | 1498 | # Tests whether HEADER exists and can be compiled using the include files in |
1632 | # INCLUDES, setting the cache variable VAR accordingly. | | 1499 | # INCLUDES, setting the cache variable VAR accordingly. |
1633 | ac_fn_c_check_header_compile () | | 1500 | ac_fn_c_check_header_compile () |
1634 | { | | 1501 | { |
1635 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | | 1502 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | | 1503 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1637 | $as_echo_n "checking for $2... " >&6; } | | 1504 | printf %s "checking for $2... " >&6; } |
1638 | if eval \${$3+:} false; then : | | 1505 | if eval test \${$3+y} |
1639 | $as_echo_n "(cached) " >&6 | | 1506 | then : |
1640 | else | | 1507 | printf %s "(cached) " >&6 |
| | | 1508 | else $as_nop |
1641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 1509 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1642 | /* end confdefs.h. */ | | 1510 | /* end confdefs.h. */ |
1643 | $4 | | 1511 | $4 |
1644 | #include <$2> | | 1512 | #include <$2> |
1645 | _ACEOF | | 1513 | _ACEOF |
1646 | if ac_fn_c_try_compile "$LINENO"; then : | | 1514 | if ac_fn_c_try_compile "$LINENO" |
| | | 1515 | then : |
1647 | eval "$3=yes" | | 1516 | eval "$3=yes" |
1648 | else | | 1517 | else $as_nop |
1649 | eval "$3=no" | | 1518 | eval "$3=no" |
1650 | fi | | 1519 | fi |
1651 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 1520 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
1652 | fi | | 1521 | fi |
1653 | eval ac_res=\$$3 | | 1522 | eval ac_res=\$$3 |
1654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | | 1523 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1655 | $as_echo "$ac_res" >&6; } | | 1524 | printf "%s\n" "$ac_res" >&6; } |
1656 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | | 1525 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1657 | | | 1526 | |
1658 | } # ac_fn_c_check_header_compile | | 1527 | } # ac_fn_c_check_header_compile |
1659 | | | 1528 | |
1660 | # ac_fn_c_try_link LINENO | | 1529 | # ac_fn_c_try_link LINENO |
1661 | # ----------------------- | | 1530 | # ----------------------- |
1662 | # Try to link conftest.$ac_ext, and return whether this succeeded. | | 1531 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
1663 | ac_fn_c_try_link () | | 1532 | ac_fn_c_try_link () |
1664 | { | | 1533 | { |
1665 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | | 1534 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1666 | rm -f conftest.$ac_objext conftest$ac_exeext | | 1535 | rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
1667 | if { { ac_try="$ac_link" | | 1536 | if { { ac_try="$ac_link" |
1668 | case "(($ac_try" in | | 1537 | case "(($ac_try" in |
1669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | | 1538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1670 | *) ac_try_echo=$ac_try;; | | 1539 | *) ac_try_echo=$ac_try;; |
1671 | esac | | 1540 | esac |
1672 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | | 1541 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1673 | $as_echo "$ac_try_echo"; } >&5 | | 1542 | printf "%s\n" "$ac_try_echo"; } >&5 |
1674 | (eval "$ac_link") 2>conftest.err | | 1543 | (eval "$ac_link") 2>conftest.err |
1675 | ac_status=$? | | 1544 | ac_status=$? |
1676 | if test -s conftest.err; then | | 1545 | if test -s conftest.err; then |
1677 | grep -v '^ *+' conftest.err >conftest.er1 | | 1546 | grep -v '^ *+' conftest.err >conftest.er1 |
1678 | cat conftest.er1 >&5 | | 1547 | cat conftest.er1 >&5 |
1679 | mv -f conftest.er1 conftest.err | | 1548 | mv -f conftest.er1 conftest.err |
1680 | fi | | 1549 | fi |
1681 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | | 1550 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1682 | test $ac_status = 0; } && { | | 1551 | test $ac_status = 0; } && { |
1683 | test -z "$ac_c_werror_flag" || | | 1552 | test -z "$ac_c_werror_flag" || |
1684 | test ! -s conftest.err | | 1553 | test ! -s conftest.err |
1685 | } && test -s conftest$ac_exeext && { | | 1554 | } && test -s conftest$ac_exeext && { |
1686 | test "$cross_compiling" = yes || | | 1555 | test "$cross_compiling" = yes || |
1687 | test -x conftest$ac_exeext | | 1556 | test -x conftest$ac_exeext |
1688 | }; then : | | 1557 | } |
| | | 1558 | then : |
1689 | ac_retval=0 | | 1559 | ac_retval=0 |
1690 | else | | 1560 | else $as_nop |
1691 | $as_echo "$as_me: failed program was:" >&5 | | 1561 | printf "%s\n" "$as_me: failed program was:" >&5 |
1692 | sed 's/^/| /' conftest.$ac_ext >&5 | | 1562 | sed 's/^/| /' conftest.$ac_ext >&5 |
1693 | | | 1563 | |
1694 | ac_retval=1 | | 1564 | ac_retval=1 |
1695 | fi | | 1565 | fi |
1696 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | | 1566 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
1697 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | | 1567 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
1698 | # interfere with the next link command; also delete a directory that is | | 1568 | # interfere with the next link command; also delete a directory that is |
1699 | # left behind by Apple's compiler. We do this before executing the actions. | | 1569 | # left behind by Apple's compiler. We do this before executing the actions. |
1700 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | | 1570 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1701 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | | 1571 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1702 | as_fn_set_status $ac_retval | | 1572 | as_fn_set_status $ac_retval |
1703 | | | 1573 | |
1704 | } # ac_fn_c_try_link | | 1574 | } # ac_fn_c_try_link |
1705 | | | 1575 | |
1706 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | | 1576 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
1707 | # ------------------------------------------- | | 1577 | # ------------------------------------------- |
1708 | # Tests whether TYPE exists after having included INCLUDES, setting cache | | 1578 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
1709 | # variable VAR accordingly. | | 1579 | # variable VAR accordingly. |
1710 | ac_fn_c_check_type () | | 1580 | ac_fn_c_check_type () |
1711 | { | | 1581 | { |
1712 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | | 1582 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | | 1583 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1714 | $as_echo_n "checking for $2... " >&6; } | | 1584 | printf %s "checking for $2... " >&6; } |
1715 | if eval \${$3+:} false; then : | | 1585 | if eval test \${$3+y} |
1716 | $as_echo_n "(cached) " >&6 | | 1586 | then : |
1717 | else | | 1587 | printf %s "(cached) " >&6 |
| | | 1588 | else $as_nop |
1718 | eval "$3=no" | | 1589 | eval "$3=no" |
1719 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 1590 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1720 | /* end confdefs.h. */ | | 1591 | /* end confdefs.h. */ |
1721 | $4 | | 1592 | $4 |
1722 | int | | 1593 | int |
1723 | main () | | 1594 | main (void) |
1724 | { | | 1595 | { |
1725 | if (sizeof ($2)) | | 1596 | if (sizeof ($2)) |
1726 | return 0; | | 1597 | return 0; |
1727 | ; | | 1598 | ; |
1728 | return 0; | | 1599 | return 0; |
1729 | } | | 1600 | } |
1730 | _ACEOF | | 1601 | _ACEOF |
1731 | if ac_fn_c_try_compile "$LINENO"; then : | | 1602 | if ac_fn_c_try_compile "$LINENO" |
| | | 1603 | then : |
1732 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 1604 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1733 | /* end confdefs.h. */ | | 1605 | /* end confdefs.h. */ |
1734 | $4 | | 1606 | $4 |
1735 | int | | 1607 | int |
1736 | main () | | 1608 | main (void) |
1737 | { | | 1609 | { |
1738 | if (sizeof (($2))) | | 1610 | if (sizeof (($2))) |
1739 | return 0; | | 1611 | return 0; |
1740 | ; | | 1612 | ; |
1741 | return 0; | | 1613 | return 0; |
1742 | } | | 1614 | } |
1743 | _ACEOF | | 1615 | _ACEOF |
1744 | if ac_fn_c_try_compile "$LINENO"; then : | | 1616 | if ac_fn_c_try_compile "$LINENO" |
| | | 1617 | then : |
1745 | | | 1618 | |
1746 | else | | 1619 | else $as_nop |
1747 | eval "$3=yes" | | 1620 | eval "$3=yes" |
1748 | fi | | 1621 | fi |
1749 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 1622 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
1750 | fi | | 1623 | fi |
1751 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 1624 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
1752 | fi | | 1625 | fi |
1753 | eval ac_res=\$$3 | | 1626 | eval ac_res=\$$3 |
1754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | | 1627 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1755 | $as_echo "$ac_res" >&6; } | | 1628 | printf "%s\n" "$ac_res" >&6; } |
1756 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | | 1629 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1757 | | | 1630 | |
1758 | } # ac_fn_c_check_type | | 1631 | } # ac_fn_c_check_type |
1759 | | | 1632 | |
1760 | # ac_fn_c_check_func LINENO FUNC VAR | | 1633 | # ac_fn_c_check_func LINENO FUNC VAR |
1761 | # ---------------------------------- | | 1634 | # ---------------------------------- |
1762 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | | 1635 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
1763 | ac_fn_c_check_func () | | 1636 | ac_fn_c_check_func () |
1764 | { | | 1637 | { |
1765 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | | 1638 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | | 1639 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1767 | $as_echo_n "checking for $2... " >&6; } | | 1640 | printf %s "checking for $2... " >&6; } |
1768 | if eval \${$3+:} false; then : | | 1641 | if eval test \${$3+y} |
1769 | $as_echo_n "(cached) " >&6 | | 1642 | then : |
1770 | else | | 1643 | printf %s "(cached) " >&6 |
| | | 1644 | else $as_nop |
1771 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 1645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1772 | /* end confdefs.h. */ | | 1646 | /* end confdefs.h. */ |
1773 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | | 1647 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
1774 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | | 1648 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
1775 | #define $2 innocuous_$2 | | 1649 | #define $2 innocuous_$2 |
1776 | | | 1650 | |
1777 | /* System header to define __stub macros and hopefully few prototypes, | | 1651 | /* System header to define __stub macros and hopefully few prototypes, |
1778 | which can conflict with char $2 (); below. | | 1652 | which can conflict with char $2 (); below. */ |
1779 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | | | |
1780 | <limits.h> exists even on freestanding compilers. */ | | | |
1781 | | | | |
1782 | #ifdef __STDC__ | | | |
1783 | # include <limits.h> | | | |
1784 | #else | | | |
1785 | # include <assert.h> | | | |
1786 | #endif | | | |
1787 | | | 1653 | |
| | | 1654 | #include <limits.h> |
1788 | #undef $2 | | 1655 | #undef $2 |
1789 | | | 1656 | |
1790 | /* Override any GCC internal prototype to avoid an error. | | 1657 | /* Override any GCC internal prototype to avoid an error. |
1791 | Use char because int might match the return type of a GCC | | 1658 | Use char because int might match the return type of a GCC |
1792 | builtin and then its argument prototype would still apply. */ | | 1659 | builtin and then its argument prototype would still apply. */ |
1793 | #ifdef __cplusplus | | 1660 | #ifdef __cplusplus |
1794 | extern "C" | | 1661 | extern "C" |
1795 | #endif | | 1662 | #endif |
1796 | char $2 (); | | 1663 | char $2 (); |
1797 | /* The GNU C library defines this for functions which it implements | | 1664 | /* The GNU C library defines this for functions which it implements |
1798 | to always fail with ENOSYS. Some functions are actually named | | 1665 | to always fail with ENOSYS. Some functions are actually named |
1799 | something starting with __ and the normal name is an alias. */ | | 1666 | something starting with __ and the normal name is an alias. */ |
1800 | #if defined __stub_$2 || defined __stub___$2 | | 1667 | #if defined __stub_$2 || defined __stub___$2 |
1801 | choke me | | 1668 | choke me |
1802 | #endif | | 1669 | #endif |
1803 | | | 1670 | |
1804 | int | | 1671 | int |
1805 | main () | | 1672 | main (void) |
1806 | { | | 1673 | { |
1807 | return $2 (); | | 1674 | return $2 (); |
1808 | ; | | 1675 | ; |
1809 | return 0; | | 1676 | return 0; |
1810 | } | | 1677 | } |
1811 | _ACEOF | | 1678 | _ACEOF |
1812 | if ac_fn_c_try_link "$LINENO"; then : | | 1679 | if ac_fn_c_try_link "$LINENO" |
| | | 1680 | then : |
1813 | eval "$3=yes" | | 1681 | eval "$3=yes" |
1814 | else | | 1682 | else $as_nop |
1815 | eval "$3=no" | | 1683 | eval "$3=no" |
1816 | fi | | 1684 | fi |
1817 | rm -f core conftest.err conftest.$ac_objext \ | | 1685 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
1818 | conftest$ac_exeext conftest.$ac_ext | | 1686 | conftest$ac_exeext conftest.$ac_ext |
1819 | fi | | 1687 | fi |
1820 | eval ac_res=\$$3 | | 1688 | eval ac_res=\$$3 |
1821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | | 1689 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1822 | $as_echo "$ac_res" >&6; } | | 1690 | printf "%s\n" "$ac_res" >&6; } |
1823 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | | 1691 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1824 | | | 1692 | |
1825 | } # ac_fn_c_check_func | | 1693 | } # ac_fn_c_check_func |
1826 | | | 1694 | |
1827 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | | 1695 | # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR |
1828 | # --------------------------------------------- | | 1696 | # ------------------------------------------------------------------ |
1829 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | | 1697 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
1830 | # accordingly. | | 1698 | # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. |
1831 | ac_fn_c_check_decl () | | 1699 | ac_fn_check_decl () |
1832 | { | | 1700 | { |
1833 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | | 1701 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1834 | as_decl_name=`echo $2|sed 's/ *(.*//'` | | 1702 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
| | | 1703 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| | | 1704 | printf %s "checking whether $as_decl_name is declared... " >&6; } |
| | | 1705 | if eval test \${$3+y} |
| | | 1706 | then : |
| | | 1707 | printf %s "(cached) " >&6 |
| | | 1708 | else $as_nop |
1835 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | | 1709 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
1836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | | 1710 | eval ac_save_FLAGS=\$$6 |
1837 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | | 1711 | as_fn_append $6 " $5" |
1838 | if eval \${$3+:} false; then : | | | |
1839 | $as_echo_n "(cached) " >&6 | | | |
1840 | else | | | |
1841 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 1712 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1842 | /* end confdefs.h. */ | | 1713 | /* end confdefs.h. */ |
1843 | $4 | | 1714 | $4 |
1844 | int | | 1715 | int |
1845 | main () | | 1716 | main (void) |
1846 | { | | 1717 | { |
1847 | #ifndef $as_decl_name | | 1718 | #ifndef $as_decl_name |
1848 | #ifdef __cplusplus | | 1719 | #ifdef __cplusplus |
1849 | (void) $as_decl_use; | | 1720 | (void) $as_decl_use; |
1850 | #else | | 1721 | #else |
1851 | (void) $as_decl_name; | | 1722 | (void) $as_decl_name; |
1852 | #endif | | 1723 | #endif |
1853 | #endif | | 1724 | #endif |
1854 | | | 1725 | |
1855 | ; | | 1726 | ; |
1856 | return 0; | | 1727 | return 0; |
1857 | } | | 1728 | } |
1858 | _ACEOF | | 1729 | _ACEOF |
1859 | if ac_fn_c_try_compile "$LINENO"; then : | | 1730 | if ac_fn_c_try_compile "$LINENO" |
| | | 1731 | then : |
1860 | eval "$3=yes" | | 1732 | eval "$3=yes" |
1861 | else | | 1733 | else $as_nop |
1862 | eval "$3=no" | | 1734 | eval "$3=no" |
1863 | fi | | 1735 | fi |
1864 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 1736 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| | | 1737 | eval $6=\$ac_save_FLAGS |
| | | 1738 | |
1865 | fi | | 1739 | fi |
1866 | eval ac_res=\$$3 | | 1740 | eval ac_res=\$$3 |
1867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | | 1741 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1868 | $as_echo "$ac_res" >&6; } | | 1742 | printf "%s\n" "$ac_res" >&6; } |
1869 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | | 1743 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1870 | | | 1744 | |
1871 | } # ac_fn_c_check_decl | | 1745 | } # ac_fn_check_decl |
1872 | | | 1746 | |
1873 | # ac_fn_c_find_intX_t LINENO BITS VAR | | 1747 | # ac_fn_c_find_intX_t LINENO BITS VAR |
1874 | # ----------------------------------- | | 1748 | # ----------------------------------- |
1875 | # Finds a signed integer type with width BITS, setting cache variable VAR | | 1749 | # Finds a signed integer type with width BITS, setting cache variable VAR |
1876 | # accordingly. | | 1750 | # accordingly. |
1877 | ac_fn_c_find_intX_t () | | 1751 | ac_fn_c_find_intX_t () |
1878 | { | | 1752 | { |
1879 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | | 1753 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 | | 1754 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 |
1881 | $as_echo_n "checking for int$2_t... " >&6; } | | 1755 | printf %s "checking for int$2_t... " >&6; } |
1882 | if eval \${$3+:} false; then : | | 1756 | if eval test \${$3+y} |
1883 | $as_echo_n "(cached) " >&6 | | 1757 | then : |
1884 | else | | 1758 | printf %s "(cached) " >&6 |
| | | 1759 | else $as_nop |
1885 | eval "$3=no" | | 1760 | eval "$3=no" |
1886 | # Order is important - never check a type that is potentially smaller | | 1761 | # Order is important - never check a type that is potentially smaller |
1887 | # than half of the expected target width. | | 1762 | # than half of the expected target width. |
1888 | for ac_type in int$2_t 'int' 'long int' \ | | 1763 | for ac_type in int$2_t 'int' 'long int' \ |
1889 | 'long long int' 'short int' 'signed char'; do | | 1764 | 'long long int' 'short int' 'signed char'; do |
1890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 1765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1891 | /* end confdefs.h. */ | | 1766 | /* end confdefs.h. */ |
1892 | $ac_includes_default | | 1767 | $ac_includes_default |
1893 | enum { N = $2 / 2 - 1 }; | | 1768 | enum { N = $2 / 2 - 1 }; |
1894 | int | | 1769 | int |
1895 | main () | | 1770 | main (void) |
1896 | { | | 1771 | { |
1897 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; | | 1772 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; |
1898 | test_array [0] = 0; | | 1773 | test_array [0] = 0; |
1899 | return test_array [0]; | | 1774 | return test_array [0]; |
1900 | | | 1775 | |
1901 | ; | | 1776 | ; |
1902 | return 0; | | 1777 | return 0; |
1903 | } | | 1778 | } |
1904 | _ACEOF | | 1779 | _ACEOF |
1905 | if ac_fn_c_try_compile "$LINENO"; then : | | 1780 | if ac_fn_c_try_compile "$LINENO" |
| | | 1781 | then : |
1906 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 1782 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1907 | /* end confdefs.h. */ | | 1783 | /* end confdefs.h. */ |
1908 | $ac_includes_default | | 1784 | $ac_includes_default |
1909 | enum { N = $2 / 2 - 1 }; | | 1785 | enum { N = $2 / 2 - 1 }; |
1910 | int | | 1786 | int |
1911 | main () | | 1787 | main (void) |
1912 | { | | 1788 | { |
1913 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) | | 1789 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) |
1914 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; | | 1790 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; |
1915 | test_array [0] = 0; | | 1791 | test_array [0] = 0; |
1916 | return test_array [0]; | | 1792 | return test_array [0]; |
1917 | | | 1793 | |
1918 | ; | | 1794 | ; |
1919 | return 0; | | 1795 | return 0; |
1920 | } | | 1796 | } |
1921 | _ACEOF | | 1797 | _ACEOF |
1922 | if ac_fn_c_try_compile "$LINENO"; then : | | 1798 | if ac_fn_c_try_compile "$LINENO" |
| | | 1799 | then : |
1923 | | | 1800 | |
1924 | else | | 1801 | else $as_nop |
1925 | case $ac_type in #( | | 1802 | case $ac_type in #( |
1926 | int$2_t) : | | 1803 | int$2_t) : |
1927 | eval "$3=yes" ;; #( | | 1804 | eval "$3=yes" ;; #( |
1928 | *) : | | 1805 | *) : |
1929 | eval "$3=\$ac_type" ;; | | 1806 | eval "$3=\$ac_type" ;; |
1930 | esac | | 1807 | esac |
1931 | fi | | 1808 | fi |
1932 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 1809 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
1933 | fi | | 1810 | fi |
1934 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 1811 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
1935 | if eval test \"x\$"$3"\" = x"no"; then : | | 1812 | if eval test \"x\$"$3"\" = x"no" |
| | | 1813 | then : |
1936 | | | 1814 | |
1937 | else | | 1815 | else $as_nop |
1938 | break | | 1816 | break |
1939 | fi | | 1817 | fi |
1940 | done | | 1818 | done |
1941 | fi | | 1819 | fi |
1942 | eval ac_res=\$$3 | | 1820 | eval ac_res=\$$3 |
1943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | | 1821 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1944 | $as_echo "$ac_res" >&6; } | | 1822 | printf "%s\n" "$ac_res" >&6; } |
1945 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | | 1823 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1946 | | | 1824 | |
1947 | } # ac_fn_c_find_intX_t | | 1825 | } # ac_fn_c_find_intX_t |
1948 | | | 1826 | |
1949 | # ac_fn_c_find_uintX_t LINENO BITS VAR | | 1827 | # ac_fn_c_find_uintX_t LINENO BITS VAR |
1950 | # ------------------------------------ | | 1828 | # ------------------------------------ |
1951 | # Finds an unsigned integer type with width BITS, setting cache variable VAR | | 1829 | # Finds an unsigned integer type with width BITS, setting cache variable VAR |
1952 | # accordingly. | | 1830 | # accordingly. |
1953 | ac_fn_c_find_uintX_t () | | 1831 | ac_fn_c_find_uintX_t () |
1954 | { | | 1832 | { |
1955 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | | 1833 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 | | 1834 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 |
1957 | $as_echo_n "checking for uint$2_t... " >&6; } | | 1835 | printf %s "checking for uint$2_t... " >&6; } |
1958 | if eval \${$3+:} false; then : | | 1836 | if eval test \${$3+y} |
1959 | $as_echo_n "(cached) " >&6 | | 1837 | then : |
1960 | else | | 1838 | printf %s "(cached) " >&6 |
| | | 1839 | else $as_nop |
1961 | eval "$3=no" | | 1840 | eval "$3=no" |
1962 | # Order is important - never check a type that is potentially smaller | | 1841 | # Order is important - never check a type that is potentially smaller |
1963 | # than half of the expected target width. | | 1842 | # than half of the expected target width. |
1964 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ | | 1843 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ |
1965 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | | 1844 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
1966 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 1845 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1967 | /* end confdefs.h. */ | | 1846 | /* end confdefs.h. */ |
1968 | $ac_includes_default | | 1847 | $ac_includes_default |
1969 | int | | 1848 | int |
1970 | main () | | 1849 | main (void) |
1971 | { | | 1850 | { |
1972 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; | | 1851 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
1973 | test_array [0] = 0; | | 1852 | test_array [0] = 0; |
1974 | return test_array [0]; | | 1853 | return test_array [0]; |
1975 | | | 1854 | |
1976 | ; | | 1855 | ; |
1977 | return 0; | | 1856 | return 0; |
1978 | } | | 1857 | } |
1979 | _ACEOF | | 1858 | _ACEOF |
1980 | if ac_fn_c_try_compile "$LINENO"; then : | | 1859 | if ac_fn_c_try_compile "$LINENO" |
| | | 1860 | then : |
1981 | case $ac_type in #( | | 1861 | case $ac_type in #( |
1982 | uint$2_t) : | | 1862 | uint$2_t) : |
1983 | eval "$3=yes" ;; #( | | 1863 | eval "$3=yes" ;; #( |
1984 | *) : | | 1864 | *) : |
1985 | eval "$3=\$ac_type" ;; | | 1865 | eval "$3=\$ac_type" ;; |
1986 | esac | | 1866 | esac |
1987 | fi | | 1867 | fi |
1988 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 1868 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
1989 | if eval test \"x\$"$3"\" = x"no"; then : | | 1869 | if eval test \"x\$"$3"\" = x"no" |
| | | 1870 | then : |
1990 | | | 1871 | |
1991 | else | | 1872 | else $as_nop |
1992 | break | | 1873 | break |
1993 | fi | | 1874 | fi |
1994 | done | | 1875 | done |
1995 | fi | | 1876 | fi |
1996 | eval ac_res=\$$3 | | 1877 | eval ac_res=\$$3 |
1997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | | 1878 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1998 | $as_echo "$ac_res" >&6; } | | 1879 | printf "%s\n" "$ac_res" >&6; } |
1999 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | | 1880 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2000 | | | 1881 | |
2001 | } # ac_fn_c_find_uintX_t | | 1882 | } # ac_fn_c_find_uintX_t |
2002 | | | 1883 | |
| | | 1884 | # ac_fn_c_try_run LINENO |
| | | 1885 | # ---------------------- |
| | | 1886 | # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that |
| | | 1887 | # executables *can* be run. |
| | | 1888 | ac_fn_c_try_run () |
| | | 1889 | { |
| | | 1890 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| | | 1891 | if { { ac_try="$ac_link" |
| | | 1892 | case "(($ac_try" in |
| | | 1893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| | | 1894 | *) ac_try_echo=$ac_try;; |
| | | 1895 | esac |
| | | 1896 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| | | 1897 | printf "%s\n" "$ac_try_echo"; } >&5 |
| | | 1898 | (eval "$ac_link") 2>&5 |
| | | 1899 | ac_status=$? |
| | | 1900 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| | | 1901 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| | | 1902 | { { case "(($ac_try" in |
| | | 1903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| | | 1904 | *) ac_try_echo=$ac_try;; |
| | | 1905 | esac |
| | | 1906 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| | | 1907 | printf "%s\n" "$ac_try_echo"; } >&5 |
| | | 1908 | (eval "$ac_try") 2>&5 |
| | | 1909 | ac_status=$? |
| | | 1910 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| | | 1911 | test $ac_status = 0; }; } |
| | | 1912 | then : |
| | | 1913 | ac_retval=0 |
| | | 1914 | else $as_nop |
| | | 1915 | printf "%s\n" "$as_me: program exited with status $ac_status" >&5 |
| | | 1916 | printf "%s\n" "$as_me: failed program was:" >&5 |
| | | 1917 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | | 1918 | |
| | | 1919 | ac_retval=$ac_status |
| | | 1920 | fi |
| | | 1921 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| | | 1922 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| | | 1923 | as_fn_set_status $ac_retval |
| | | 1924 | |
| | | 1925 | } # ac_fn_c_try_run |
| | | 1926 | |
2003 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | | 1927 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
2004 | # -------------------------------------------- | | 1928 | # -------------------------------------------- |
2005 | # Tries to find the compile-time value of EXPR in a program that includes | | 1929 | # Tries to find the compile-time value of EXPR in a program that includes |
2006 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | | 1930 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
2007 | # computed | | 1931 | # computed |
2008 | ac_fn_c_compute_int () | | 1932 | ac_fn_c_compute_int () |
2009 | { | | 1933 | { |
2010 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | | 1934 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
2011 | if test "$cross_compiling" = yes; then | | 1935 | if test "$cross_compiling" = yes; then |
2012 | # Depending upon the size, compute the lo and hi bounds. | | 1936 | # Depending upon the size, compute the lo and hi bounds. |
2013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 1937 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2014 | /* end confdefs.h. */ | | 1938 | /* end confdefs.h. */ |
2015 | $4 | | 1939 | $4 |
2016 | int | | 1940 | int |
2017 | main () | | 1941 | main (void) |
2018 | { | | 1942 | { |
2019 | static int test_array [1 - 2 * !(($2) >= 0)]; | | 1943 | static int test_array [1 - 2 * !(($2) >= 0)]; |
2020 | test_array [0] = 0; | | 1944 | test_array [0] = 0; |
2021 | return test_array [0]; | | 1945 | return test_array [0]; |
2022 | | | 1946 | |
2023 | ; | | 1947 | ; |
2024 | return 0; | | 1948 | return 0; |
2025 | } | | 1949 | } |
2026 | _ACEOF | | 1950 | _ACEOF |
2027 | if ac_fn_c_try_compile "$LINENO"; then : | | 1951 | if ac_fn_c_try_compile "$LINENO" |
| | | 1952 | then : |
2028 | ac_lo=0 ac_mid=0 | | 1953 | ac_lo=0 ac_mid=0 |
2029 | while :; do | | 1954 | while :; do |
2030 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 1955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2031 | /* end confdefs.h. */ | | 1956 | /* end confdefs.h. */ |
2032 | $4 | | 1957 | $4 |
2033 | int | | 1958 | int |
2034 | main () | | 1959 | main (void) |
2035 | { | | 1960 | { |
2036 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | | 1961 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
2037 | test_array [0] = 0; | | 1962 | test_array [0] = 0; |
2038 | return test_array [0]; | | 1963 | return test_array [0]; |
2039 | | | 1964 | |
2040 | ; | | 1965 | ; |
2041 | return 0; | | 1966 | return 0; |
2042 | } | | 1967 | } |
2043 | _ACEOF | | 1968 | _ACEOF |
2044 | if ac_fn_c_try_compile "$LINENO"; then : | | 1969 | if ac_fn_c_try_compile "$LINENO" |
| | | 1970 | then : |
2045 | ac_hi=$ac_mid; break | | 1971 | ac_hi=$ac_mid; break |
2046 | else | | 1972 | else $as_nop |
2047 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | | 1973 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
2048 | if test $ac_lo -le $ac_mid; then | | 1974 | if test $ac_lo -le $ac_mid; then |
2049 | ac_lo= ac_hi= | | 1975 | ac_lo= ac_hi= |
2050 | break | | 1976 | break |
2051 | fi | | 1977 | fi |
2052 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | | 1978 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
2053 | fi | | 1979 | fi |
2054 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 1980 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
2055 | done | | 1981 | done |
2056 | else | | 1982 | else $as_nop |
2057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 1983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2058 | /* end confdefs.h. */ | | 1984 | /* end confdefs.h. */ |
2059 | $4 | | 1985 | $4 |
2060 | int | | 1986 | int |
2061 | main () | | 1987 | main (void) |
2062 | { | | 1988 | { |
2063 | static int test_array [1 - 2 * !(($2) < 0)]; | | 1989 | static int test_array [1 - 2 * !(($2) < 0)]; |
2064 | test_array [0] = 0; | | 1990 | test_array [0] = 0; |
2065 | return test_array [0]; | | 1991 | return test_array [0]; |
2066 | | | 1992 | |
2067 | ; | | 1993 | ; |
2068 | return 0; | | 1994 | return 0; |
2069 | } | | 1995 | } |
2070 | _ACEOF | | 1996 | _ACEOF |
2071 | if ac_fn_c_try_compile "$LINENO"; then : | | 1997 | if ac_fn_c_try_compile "$LINENO" |
| | | 1998 | then : |
2072 | ac_hi=-1 ac_mid=-1 | | 1999 | ac_hi=-1 ac_mid=-1 |
2073 | while :; do | | 2000 | while :; do |
2074 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 2001 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2075 | /* end confdefs.h. */ | | 2002 | /* end confdefs.h. */ |
2076 | $4 | | 2003 | $4 |
2077 | int | | 2004 | int |
2078 | main () | | 2005 | main (void) |
2079 | { | | 2006 | { |
2080 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | | 2007 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
2081 | test_array [0] = 0; | | 2008 | test_array [0] = 0; |
2082 | return test_array [0]; | | 2009 | return test_array [0]; |
2083 | | | 2010 | |
2084 | ; | | 2011 | ; |
2085 | return 0; | | 2012 | return 0; |
2086 | } | | 2013 | } |
2087 | _ACEOF | | 2014 | _ACEOF |
2088 | if ac_fn_c_try_compile "$LINENO"; then : | | 2015 | if ac_fn_c_try_compile "$LINENO" |
| | | 2016 | then : |
2089 | ac_lo=$ac_mid; break | | 2017 | ac_lo=$ac_mid; break |
2090 | else | | 2018 | else $as_nop |
2091 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | | 2019 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
2092 | if test $ac_mid -le $ac_hi; then | | 2020 | if test $ac_mid -le $ac_hi; then |
2093 | ac_lo= ac_hi= | | 2021 | ac_lo= ac_hi= |
2094 | break | | 2022 | break |
2095 | fi | | 2023 | fi |
2096 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | | 2024 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
2097 | fi | | 2025 | fi |
2098 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 2026 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
2099 | done | | 2027 | done |
2100 | else | | 2028 | else $as_nop |
2101 | ac_lo= ac_hi= | | 2029 | ac_lo= ac_hi= |
2102 | fi | | 2030 | fi |
2103 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 2031 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
2104 | fi | | 2032 | fi |
2105 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 2033 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
2106 | # Binary search between lo and hi bounds. | | 2034 | # Binary search between lo and hi bounds. |
2107 | while test "x$ac_lo" != "x$ac_hi"; do | | 2035 | while test "x$ac_lo" != "x$ac_hi"; do |
2108 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | | 2036 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
2109 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 2037 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2110 | /* end confdefs.h. */ | | 2038 | /* end confdefs.h. */ |
2111 | $4 | | 2039 | $4 |
2112 | int | | 2040 | int |
2113 | main () | | 2041 | main (void) |
2114 | { | | 2042 | { |
2115 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | | 2043 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
2116 | test_array [0] = 0; | | 2044 | test_array [0] = 0; |
2117 | return test_array [0]; | | 2045 | return test_array [0]; |
2118 | | | 2046 | |
2119 | ; | | 2047 | ; |
2120 | return 0; | | 2048 | return 0; |
2121 | } | | 2049 | } |
2122 | _ACEOF | | 2050 | _ACEOF |
2123 | if ac_fn_c_try_compile "$LINENO"; then : | | 2051 | if ac_fn_c_try_compile "$LINENO" |
| | | 2052 | then : |
2124 | ac_hi=$ac_mid | | 2053 | ac_hi=$ac_mid |
2125 | else | | 2054 | else $as_nop |
2126 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | | 2055 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
2127 | fi | | 2056 | fi |
2128 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 2057 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
2129 | done | | 2058 | done |
2130 | case $ac_lo in #(( | | 2059 | case $ac_lo in #(( |
2131 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | | 2060 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
2132 | '') ac_retval=1 ;; | | 2061 | '') ac_retval=1 ;; |
2133 | esac | | 2062 | esac |
2134 | else | | 2063 | else |
2135 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 2064 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2136 | /* end confdefs.h. */ | | 2065 | /* end confdefs.h. */ |
2137 | $4 | | 2066 | $4 |
2138 | static long int longval () { return $2; } | | 2067 | static long int longval (void) { return $2; } |
2139 | static unsigned long int ulongval () { return $2; } | | 2068 | static unsigned long int ulongval (void) { return $2; } |
2140 | #include <stdio.h> | | 2069 | #include <stdio.h> |
2141 | #include <stdlib.h> | | 2070 | #include <stdlib.h> |
2142 | int | | 2071 | int |
2143 | main () | | 2072 | main (void) |
2144 | { | | 2073 | { |
2145 | | | 2074 | |
2146 | FILE *f = fopen ("conftest.val", "w"); | | 2075 | FILE *f = fopen ("conftest.val", "w"); |
2147 | if (! f) | | 2076 | if (! f) |
2148 | return 1; | | 2077 | return 1; |
2149 | if (($2) < 0) | | 2078 | if (($2) < 0) |
2150 | { | | 2079 | { |
2151 | long int i = longval (); | | 2080 | long int i = longval (); |
2152 | if (i != ($2)) | | 2081 | if (i != ($2)) |
2153 | return 1; | | 2082 | return 1; |
2154 | fprintf (f, "%ld", i); | | 2083 | fprintf (f, "%ld", i); |
2155 | } | | 2084 | } |
2156 | else | | 2085 | else |
| @@ -2158,105 +2087,129 @@ main () | | | @@ -2158,105 +2087,129 @@ main () |
2158 | unsigned long int i = ulongval (); | | 2087 | unsigned long int i = ulongval (); |
2159 | if (i != ($2)) | | 2088 | if (i != ($2)) |
2160 | return 1; | | 2089 | return 1; |
2161 | fprintf (f, "%lu", i); | | 2090 | fprintf (f, "%lu", i); |
2162 | } | | 2091 | } |
2163 | /* Do not output a trailing newline, as this causes \r\n confusion | | 2092 | /* Do not output a trailing newline, as this causes \r\n confusion |
2164 | on some platforms. */ | | 2093 | on some platforms. */ |
2165 | return ferror (f) || fclose (f) != 0; | | 2094 | return ferror (f) || fclose (f) != 0; |
2166 | | | 2095 | |
2167 | ; | | 2096 | ; |
2168 | return 0; | | 2097 | return 0; |
2169 | } | | 2098 | } |
2170 | _ACEOF | | 2099 | _ACEOF |
2171 | if ac_fn_c_try_run "$LINENO"; then : | | 2100 | if ac_fn_c_try_run "$LINENO" |
| | | 2101 | then : |
2172 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | | 2102 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
2173 | else | | 2103 | else $as_nop |
2174 | ac_retval=1 | | 2104 | ac_retval=1 |
2175 | fi | | 2105 | fi |
2176 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | | 2106 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
2177 | conftest.$ac_objext conftest.beam conftest.$ac_ext | | 2107 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
2178 | rm -f conftest.val | | 2108 | rm -f conftest.val |
2179 | | | 2109 | |
2180 | fi | | 2110 | fi |
2181 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | | 2111 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2182 | as_fn_set_status $ac_retval | | 2112 | as_fn_set_status $ac_retval |
2183 | | | 2113 | |
2184 | } # ac_fn_c_compute_int | | 2114 | } # ac_fn_c_compute_int |
2185 | | | 2115 | |
2186 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | | 2116 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
2187 | # ---------------------------------------------------- | | 2117 | # ---------------------------------------------------- |
2188 | # Tries to find if the field MEMBER exists in type AGGR, after including | | 2118 | # Tries to find if the field MEMBER exists in type AGGR, after including |
2189 | # INCLUDES, setting cache variable VAR accordingly. | | 2119 | # INCLUDES, setting cache variable VAR accordingly. |
2190 | ac_fn_c_check_member () | | 2120 | ac_fn_c_check_member () |
2191 | { | | 2121 | { |
2192 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | | 2122 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
2193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | | 2123 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
2194 | $as_echo_n "checking for $2.$3... " >&6; } | | 2124 | printf %s "checking for $2.$3... " >&6; } |
2195 | if eval \${$4+:} false; then : | | 2125 | if eval test \${$4+y} |
2196 | $as_echo_n "(cached) " >&6 | | 2126 | then : |
2197 | else | | 2127 | printf %s "(cached) " >&6 |
| | | 2128 | else $as_nop |
2198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 2129 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2199 | /* end confdefs.h. */ | | 2130 | /* end confdefs.h. */ |
2200 | $5 | | 2131 | $5 |
2201 | int | | 2132 | int |
2202 | main () | | 2133 | main (void) |
2203 | { | | 2134 | { |
2204 | static $2 ac_aggr; | | 2135 | static $2 ac_aggr; |
2205 | if (ac_aggr.$3) | | 2136 | if (ac_aggr.$3) |
2206 | return 0; | | 2137 | return 0; |
2207 | ; | | 2138 | ; |
2208 | return 0; | | 2139 | return 0; |
2209 | } | | 2140 | } |
2210 | _ACEOF | | 2141 | _ACEOF |
2211 | if ac_fn_c_try_compile "$LINENO"; then : | | 2142 | if ac_fn_c_try_compile "$LINENO" |
| | | 2143 | then : |
2212 | eval "$4=yes" | | 2144 | eval "$4=yes" |
2213 | else | | 2145 | else $as_nop |
2214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 2146 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2215 | /* end confdefs.h. */ | | 2147 | /* end confdefs.h. */ |
2216 | $5 | | 2148 | $5 |
2217 | int | | 2149 | int |
2218 | main () | | 2150 | main (void) |
2219 | { | | 2151 | { |
2220 | static $2 ac_aggr; | | 2152 | static $2 ac_aggr; |
2221 | if (sizeof ac_aggr.$3) | | 2153 | if (sizeof ac_aggr.$3) |
2222 | return 0; | | 2154 | return 0; |
2223 | ; | | 2155 | ; |
2224 | return 0; | | 2156 | return 0; |
2225 | } | | 2157 | } |
2226 | _ACEOF | | 2158 | _ACEOF |
2227 | if ac_fn_c_try_compile "$LINENO"; then : | | 2159 | if ac_fn_c_try_compile "$LINENO" |
| | | 2160 | then : |
2228 | eval "$4=yes" | | 2161 | eval "$4=yes" |
2229 | else | | 2162 | else $as_nop |
2230 | eval "$4=no" | | 2163 | eval "$4=no" |
2231 | fi | | 2164 | fi |
2232 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 2165 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
2233 | fi | | 2166 | fi |
2234 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 2167 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
2235 | fi | | 2168 | fi |
2236 | eval ac_res=\$$4 | | 2169 | eval ac_res=\$$4 |
2237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | | 2170 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
2238 | $as_echo "$ac_res" >&6; } | | 2171 | printf "%s\n" "$ac_res" >&6; } |
2239 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | | 2172 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2240 | | | 2173 | |
2241 | } # ac_fn_c_check_member | | 2174 | } # ac_fn_c_check_member |
| | | 2175 | ac_configure_args_raw= |
| | | 2176 | for ac_arg |
| | | 2177 | do |
| | | 2178 | case $ac_arg in |
| | | 2179 | *\'*) |
| | | 2180 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| | | 2181 | esac |
| | | 2182 | as_fn_append ac_configure_args_raw " '$ac_arg'" |
| | | 2183 | done |
| | | 2184 | |
| | | 2185 | case $ac_configure_args_raw in |
| | | 2186 | *$as_nl*) |
| | | 2187 | ac_safe_unquote= ;; |
| | | 2188 | *) |
| | | 2189 | ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. |
| | | 2190 | ac_unsafe_a="$ac_unsafe_z#~" |
| | | 2191 | ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" |
| | | 2192 | ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; |
| | | 2193 | esac |
| | | 2194 | |
2242 | cat >config.log <<_ACEOF | | 2195 | cat >config.log <<_ACEOF |
2243 | This file contains any messages produced by compilers while | | 2196 | This file contains any messages produced by compilers while |
2244 | running configure, to aid debugging if configure makes a mistake. | | 2197 | running configure, to aid debugging if configure makes a mistake. |
2245 | | | 2198 | |
2246 | It was created by libnbcompat $as_me 20190708, which was | | 2199 | It was created by libnbcompat $as_me 20190708, which was |
2247 | generated by GNU Autoconf 2.69. Invocation command line was | | 2200 | generated by GNU Autoconf 2.71. Invocation command line was |
2248 | | | 2201 | |
2249 | $ $0 $@ | | 2202 | $ $0$ac_configure_args_raw |
2250 | | | 2203 | |
2251 | _ACEOF | | 2204 | _ACEOF |
2252 | exec 5>>config.log | | 2205 | exec 5>>config.log |
2253 | { | | 2206 | { |
2254 | cat <<_ASUNAME | | 2207 | cat <<_ASUNAME |
2255 | ## --------- ## | | 2208 | ## --------- ## |
2256 | ## Platform. ## | | 2209 | ## Platform. ## |
2257 | ## --------- ## | | 2210 | ## --------- ## |
2258 | | | 2211 | |
2259 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | | 2212 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2260 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | | 2213 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
2261 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | | 2214 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
2262 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | | 2215 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| @@ -2269,28 +2222,32 @@ uname -v = `(uname -v) 2>/dev/null || ec | | | @@ -2269,28 +2222,32 @@ uname -v = `(uname -v) 2>/dev/null || ec |
2269 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | | 2222 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
2270 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | | 2223 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
2271 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | | 2224 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
2272 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | | 2225 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2273 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | | 2226 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
2274 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | | 2227 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
2275 | | | 2228 | |
2276 | _ASUNAME | | 2229 | _ASUNAME |
2277 | | | 2230 | |
2278 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | | 2231 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2279 | for as_dir in $PATH | | 2232 | for as_dir in $PATH |
2280 | do | | 2233 | do |
2281 | IFS=$as_save_IFS | | 2234 | IFS=$as_save_IFS |
2282 | test -z "$as_dir" && as_dir=. | | 2235 | case $as_dir in #((( |
2283 | $as_echo "PATH: $as_dir" | | 2236 | '') as_dir=./ ;; |
| | | 2237 | */) ;; |
| | | 2238 | *) as_dir=$as_dir/ ;; |
| | | 2239 | esac |
| | | 2240 | printf "%s\n" "PATH: $as_dir" |
2284 | done | | 2241 | done |
2285 | IFS=$as_save_IFS | | 2242 | IFS=$as_save_IFS |
2286 | | | 2243 | |
2287 | } >&5 | | 2244 | } >&5 |
2288 | | | 2245 | |
2289 | cat >&5 <<_ACEOF | | 2246 | cat >&5 <<_ACEOF |
2290 | | | 2247 | |
2291 | | | 2248 | |
2292 | ## ----------- ## | | 2249 | ## ----------- ## |
2293 | ## Core tests. ## | | 2250 | ## Core tests. ## |
2294 | ## ----------- ## | | 2251 | ## ----------- ## |
2295 | | | 2252 | |
2296 | _ACEOF | | 2253 | _ACEOF |
| @@ -2305,27 +2262,27 @@ ac_configure_args= | | | @@ -2305,27 +2262,27 @@ ac_configure_args= |
2305 | ac_configure_args0= | | 2262 | ac_configure_args0= |
2306 | ac_configure_args1= | | 2263 | ac_configure_args1= |
2307 | ac_must_keep_next=false | | 2264 | ac_must_keep_next=false |
2308 | for ac_pass in 1 2 | | 2265 | for ac_pass in 1 2 |
2309 | do | | 2266 | do |
2310 | for ac_arg | | 2267 | for ac_arg |
2311 | do | | 2268 | do |
2312 | case $ac_arg in | | 2269 | case $ac_arg in |
2313 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | | 2270 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
2314 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | | 2271 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
2315 | | -silent | --silent | --silen | --sile | --sil) | | 2272 | | -silent | --silent | --silen | --sile | --sil) |
2316 | continue ;; | | 2273 | continue ;; |
2317 | *\'*) | | 2274 | *\'*) |
2318 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | | 2275 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
2319 | esac | | 2276 | esac |
2320 | case $ac_pass in | | 2277 | case $ac_pass in |
2321 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | | 2278 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
2322 | 2) | | 2279 | 2) |
2323 | as_fn_append ac_configure_args1 " '$ac_arg'" | | 2280 | as_fn_append ac_configure_args1 " '$ac_arg'" |
2324 | if test $ac_must_keep_next = true; then | | 2281 | if test $ac_must_keep_next = true; then |
2325 | ac_must_keep_next=false # Got value, back to normal. | | 2282 | ac_must_keep_next=false # Got value, back to normal. |
2326 | else | | 2283 | else |
2327 | case $ac_arg in | | 2284 | case $ac_arg in |
2328 | *=* | --config-cache | -C | -disable-* | --disable-* \ | | 2285 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
2329 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | | 2286 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
2330 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | | 2287 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
2331 | | -with-* | --with-* | -without-* | --without-* | --x) | | 2288 | | -with-* | --with-* | -without-* | --without-* | --x) |
| @@ -2340,2509 +2297,2994 @@ do | | | @@ -2340,2509 +2297,2994 @@ do |
2340 | ;; | | 2297 | ;; |
2341 | esac | | 2298 | esac |
2342 | done | | 2299 | done |
2343 | done | | 2300 | done |
2344 | { ac_configure_args0=; unset ac_configure_args0;} | | 2301 | { ac_configure_args0=; unset ac_configure_args0;} |
2345 | { ac_configure_args1=; unset ac_configure_args1;} | | 2302 | { ac_configure_args1=; unset ac_configure_args1;} |
2346 | | | 2303 | |
2347 | # When interrupted or exit'd, cleanup temporary files, and complete | | 2304 | # When interrupted or exit'd, cleanup temporary files, and complete |
2348 | # config.log. We remove comments because anyway the quotes in there | | 2305 | # config.log. We remove comments because anyway the quotes in there |
2349 | # would cause problems or look ugly. | | 2306 | # would cause problems or look ugly. |
2350 | # WARNING: Use '\'' to represent an apostrophe within the trap. | | 2307 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2351 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | | 2308 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
2352 | trap 'exit_status=$? | | 2309 | trap 'exit_status=$? |
| | | 2310 | # Sanitize IFS. |
| | | 2311 | IFS=" "" $as_nl" |
2353 | # Save into config.log some information that might help in debugging. | | 2312 | # Save into config.log some information that might help in debugging. |
2354 | { | | 2313 | { |
2355 | echo | | 2314 | echo |
2356 | | | 2315 | |
2357 | $as_echo "## ---------------- ## | | 2316 | printf "%s\n" "## ---------------- ## |
2358 | ## Cache variables. ## | | 2317 | ## Cache variables. ## |
2359 | ## ---------------- ##" | | 2318 | ## ---------------- ##" |
2360 | echo | | 2319 | echo |
2361 | # The following way of writing the cache mishandles newlines in values, | | 2320 | # The following way of writing the cache mishandles newlines in values, |
2362 | ( | | 2321 | ( |
2363 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | | 2322 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
2364 | eval ac_val=\$$ac_var | | 2323 | eval ac_val=\$$ac_var |
2365 | case $ac_val in #( | | 2324 | case $ac_val in #( |
2366 | *${as_nl}*) | | 2325 | *${as_nl}*) |
2367 | case $ac_var in #( | | 2326 | case $ac_var in #( |
2368 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | | 2327 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
2369 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | | 2328 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
2370 | esac | | 2329 | esac |
2371 | case $ac_var in #( | | 2330 | case $ac_var in #( |
2372 | _ | IFS | as_nl) ;; #( | | 2331 | _ | IFS | as_nl) ;; #( |
2373 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | | 2332 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
2374 | *) { eval $ac_var=; unset $ac_var;} ;; | | 2333 | *) { eval $ac_var=; unset $ac_var;} ;; |
2375 | esac ;; | | 2334 | esac ;; |
2376 | esac | | 2335 | esac |
2377 | done | | 2336 | done |
2378 | (set) 2>&1 | | | 2337 | (set) 2>&1 | |
2379 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | | 2338 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2380 | *${as_nl}ac_space=\ *) | | 2339 | *${as_nl}ac_space=\ *) |
2381 | sed -n \ | | 2340 | sed -n \ |
2382 | "s/'\''/'\''\\\\'\'''\''/g; | | 2341 | "s/'\''/'\''\\\\'\'''\''/g; |
2383 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | | 2342 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
2384 | ;; #( | | 2343 | ;; #( |
2385 | *) | | 2344 | *) |
2386 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | | 2345 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
2387 | ;; | | 2346 | ;; |
2388 | esac | | | 2347 | esac | |
2389 | sort | | 2348 | sort |
2390 | ) | | 2349 | ) |
2391 | echo | | 2350 | echo |
2392 | | | 2351 | |
2393 | $as_echo "## ----------------- ## | | 2352 | printf "%s\n" "## ----------------- ## |
2394 | ## Output variables. ## | | 2353 | ## Output variables. ## |
2395 | ## ----------------- ##" | | 2354 | ## ----------------- ##" |
2396 | echo | | 2355 | echo |
2397 | for ac_var in $ac_subst_vars | | 2356 | for ac_var in $ac_subst_vars |
2398 | do | | 2357 | do |
2399 | eval ac_val=\$$ac_var | | 2358 | eval ac_val=\$$ac_var |
2400 | case $ac_val in | | 2359 | case $ac_val in |
2401 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | | 2360 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
2402 | esac | | 2361 | esac |
2403 | $as_echo "$ac_var='\''$ac_val'\''" | | 2362 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
2404 | done | sort | | 2363 | done | sort |
2405 | echo | | 2364 | echo |
2406 | | | 2365 | |
2407 | if test -n "$ac_subst_files"; then | | 2366 | if test -n "$ac_subst_files"; then |
2408 | $as_echo "## ------------------- ## | | 2367 | printf "%s\n" "## ------------------- ## |
2409 | ## File substitutions. ## | | 2368 | ## File substitutions. ## |
2410 | ## ------------------- ##" | | 2369 | ## ------------------- ##" |
2411 | echo | | 2370 | echo |
2412 | for ac_var in $ac_subst_files | | 2371 | for ac_var in $ac_subst_files |
2413 | do | | 2372 | do |
2414 | eval ac_val=\$$ac_var | | 2373 | eval ac_val=\$$ac_var |
2415 | case $ac_val in | | 2374 | case $ac_val in |
2416 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | | 2375 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
2417 | esac | | 2376 | esac |
2418 | $as_echo "$ac_var='\''$ac_val'\''" | | 2377 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
2419 | done | sort | | 2378 | done | sort |
2420 | echo | | 2379 | echo |
2421 | fi | | 2380 | fi |
2422 | | | 2381 | |
2423 | if test -s confdefs.h; then | | 2382 | if test -s confdefs.h; then |
2424 | $as_echo "## ----------- ## | | 2383 | printf "%s\n" "## ----------- ## |
2425 | ## confdefs.h. ## | | 2384 | ## confdefs.h. ## |
2426 | ## ----------- ##" | | 2385 | ## ----------- ##" |
2427 | echo | | 2386 | echo |
2428 | cat confdefs.h | | 2387 | cat confdefs.h |
2429 | echo | | 2388 | echo |
2430 | fi | | 2389 | fi |
2431 | test "$ac_signal" != 0 && | | 2390 | test "$ac_signal" != 0 && |
2432 | $as_echo "$as_me: caught signal $ac_signal" | | 2391 | printf "%s\n" "$as_me: caught signal $ac_signal" |
2433 | $as_echo "$as_me: exit $exit_status" | | 2392 | printf "%s\n" "$as_me: exit $exit_status" |
2434 | } >&5 | | 2393 | } >&5 |
2435 | rm -f core *.core core.conftest.* && | | 2394 | rm -f core *.core core.conftest.* && |
2436 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | | 2395 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
2437 | exit $exit_status | | 2396 | exit $exit_status |
2438 | ' 0 | | 2397 | ' 0 |
2439 | for ac_signal in 1 2 13 15; do | | 2398 | for ac_signal in 1 2 13 15; do |
2440 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | | 2399 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
2441 | done | | 2400 | done |
2442 | ac_signal=0 | | 2401 | ac_signal=0 |
2443 | | | 2402 | |
2444 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | | 2403 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
2445 | rm -f -r conftest* confdefs.h | | 2404 | rm -f -r conftest* confdefs.h |
2446 | | | 2405 | |
2447 | $as_echo "/* confdefs.h */" > confdefs.h | | 2406 | printf "%s\n" "/* confdefs.h */" > confdefs.h |
2448 | | | 2407 | |
2449 | # Predefined preprocessor variables. | | 2408 | # Predefined preprocessor variables. |
2450 | | | 2409 | |
2451 | cat >>confdefs.h <<_ACEOF | | 2410 | printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h |
2452 | #define PACKAGE_NAME "$PACKAGE_NAME" | | | |
2453 | _ACEOF | | | |
2454 | | | 2411 | |
2455 | cat >>confdefs.h <<_ACEOF | | 2412 | printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h |
2456 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | | | |
2457 | _ACEOF | | | |
2458 | | | 2413 | |
2459 | cat >>confdefs.h <<_ACEOF | | 2414 | printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h |
2460 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | | | |
2461 | _ACEOF | | | |
2462 | | | 2415 | |
2463 | cat >>confdefs.h <<_ACEOF | | 2416 | printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h |
2464 | #define PACKAGE_STRING "$PACKAGE_STRING" | | | |
2465 | _ACEOF | | | |
2466 | | | 2417 | |
2467 | cat >>confdefs.h <<_ACEOF | | 2418 | printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h |
2468 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | | | |
2469 | _ACEOF | | | |
2470 | | | 2419 | |
2471 | cat >>confdefs.h <<_ACEOF | | 2420 | printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h |
2472 | #define PACKAGE_URL "$PACKAGE_URL" | | | |
2473 | _ACEOF | | | |
2474 | | | 2421 | |
2475 | | | 2422 | |
2476 | # Let the site file select an alternate cache file if it wants to. | | 2423 | # Let the site file select an alternate cache file if it wants to. |
2477 | # Prefer an explicitly selected file to automatically selected ones. | | 2424 | # Prefer an explicitly selected file to automatically selected ones. |
2478 | ac_site_file1=NONE | | | |
2479 | ac_site_file2=NONE | | | |
2480 | if test -n "$CONFIG_SITE"; then | | 2425 | if test -n "$CONFIG_SITE"; then |
2481 | # We do not want a PATH search for config.site. | | 2426 | ac_site_files="$CONFIG_SITE" |
2482 | case $CONFIG_SITE in #(( | | | |
2483 | -*) ac_site_file1=./$CONFIG_SITE;; | | | |
2484 | */*) ac_site_file1=$CONFIG_SITE;; | | | |
2485 | *) ac_site_file1=./$CONFIG_SITE;; | | | |
2486 | esac | | | |
2487 | elif test "x$prefix" != xNONE; then | | 2427 | elif test "x$prefix" != xNONE; then |
2488 | ac_site_file1=$prefix/share/config.site | | 2428 | ac_site_files="$prefix/share/config.site $prefix/etc/config.site" |
2489 | ac_site_file2=$prefix/etc/config.site | | | |
2490 | else | | 2429 | else |
2491 | ac_site_file1=$ac_default_prefix/share/config.site | | 2430 | ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
2492 | ac_site_file2=$ac_default_prefix/etc/config.site | | | |
2493 | fi | | 2431 | fi |
2494 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | | 2432 | |
| | | 2433 | for ac_site_file in $ac_site_files |
2495 | do | | 2434 | do |
2496 | test "x$ac_site_file" = xNONE && continue | | 2435 | case $ac_site_file in #( |
2497 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | | 2436 | */*) : |
2498 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | | 2437 | ;; #( |
2499 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | | 2438 | *) : |
| | | 2439 | ac_site_file=./$ac_site_file ;; |
| | | 2440 | esac |
| | | 2441 | if test -f "$ac_site_file" && test -r "$ac_site_file"; then |
| | | 2442 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| | | 2443 | printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} |
2500 | sed 's/^/| /' "$ac_site_file" >&5 | | 2444 | sed 's/^/| /' "$ac_site_file" >&5 |
2501 | . "$ac_site_file" \ | | 2445 | . "$ac_site_file" \ |
2502 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | | 2446 | || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2503 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | | 2447 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
2504 | as_fn_error $? "failed to load site script $ac_site_file | | 2448 | as_fn_error $? "failed to load site script $ac_site_file |
2505 | See \`config.log' for more details" "$LINENO" 5; } | | 2449 | See \`config.log' for more details" "$LINENO" 5; } |
2506 | fi | | 2450 | fi |
2507 | done | | 2451 | done |
2508 | | | 2452 | |
2509 | if test -r "$cache_file"; then | | 2453 | if test -r "$cache_file"; then |
2510 | # Some versions of bash will fail to source /dev/null (special files | | 2454 | # Some versions of bash will fail to source /dev/null (special files |
2511 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | | 2455 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
2512 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | | 2456 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
2513 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | | 2457 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2514 | $as_echo "$as_me: loading cache $cache_file" >&6;} | | 2458 | printf "%s\n" "$as_me: loading cache $cache_file" >&6;} |
2515 | case $cache_file in | | 2459 | case $cache_file in |
2516 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | | 2460 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2517 | *) . "./$cache_file";; | | 2461 | *) . "./$cache_file";; |
2518 | esac | | 2462 | esac |
2519 | fi | | 2463 | fi |
2520 | else | | 2464 | else |
2521 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | | 2465 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2522 | $as_echo "$as_me: creating cache $cache_file" >&6;} | | 2466 | printf "%s\n" "$as_me: creating cache $cache_file" >&6;} |
2523 | >$cache_file | | 2467 | >$cache_file |
2524 | fi | | 2468 | fi |
2525 | | | 2469 | |
2526 | # Check that the precious variables saved in the cache have kept the same | | 2470 | as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" |
2527 | # value. | | 2471 | # Test code for whether the C compiler supports C89 (global declarations) |
2528 | ac_cache_corrupted=false | | 2472 | ac_c_conftest_c89_globals=' |
2529 | for ac_var in $ac_precious_vars; do | | 2473 | /* Does the compiler advertise C89 conformance? |
2530 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | | 2474 | Do not test the value of __STDC__, because some compilers set it to 0 |
| | | 2475 | while being otherwise adequately conformant. */ |
| | | 2476 | #if !defined __STDC__ |
| | | 2477 | # error "Compiler does not advertise C89 conformance" |
| | | 2478 | #endif |
| | | 2479 | |
| | | 2480 | #include <stddef.h> |
| | | 2481 | #include <stdarg.h> |
| | | 2482 | struct stat; |
| | | 2483 | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ |
| | | 2484 | struct buf { int x; }; |
| | | 2485 | struct buf * (*rcsopen) (struct buf *, struct stat *, int); |
| | | 2486 | static char *e (p, i) |
| | | 2487 | char **p; |
| | | 2488 | int i; |
| | | 2489 | { |
| | | 2490 | return p[i]; |
| | | 2491 | } |
| | | 2492 | static char *f (char * (*g) (char **, int), char **p, ...) |
| | | 2493 | { |
| | | 2494 | char *s; |
| | | 2495 | va_list v; |
| | | 2496 | va_start (v,p); |
| | | 2497 | s = g (p, va_arg (v,int)); |
| | | 2498 | va_end (v); |
| | | 2499 | return s; |
| | | 2500 | } |
| | | 2501 | |
| | | 2502 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| | | 2503 | function prototypes and stuff, but not \xHH hex character constants. |
| | | 2504 | These do not provoke an error unfortunately, instead are silently treated |
| | | 2505 | as an "x". The following induces an error, until -std is added to get |
| | | 2506 | proper ANSI mode. Curiously \x00 != x always comes out true, for an |
| | | 2507 | array size at least. It is necessary to write \x00 == 0 to get something |
| | | 2508 | that is true only with -std. */ |
| | | 2509 | int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; |
| | | 2510 | |
| | | 2511 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| | | 2512 | inside strings and character constants. */ |
| | | 2513 | #define FOO(x) '\''x'\'' |
| | | 2514 | int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; |
| | | 2515 | |
| | | 2516 | int test (int i, double x); |
| | | 2517 | struct s1 {int (*f) (int a);}; |
| | | 2518 | struct s2 {int (*f) (double a);}; |
| | | 2519 | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), |
| | | 2520 | int, int);' |
| | | 2521 | |
| | | 2522 | # Test code for whether the C compiler supports C89 (body of main). |
| | | 2523 | ac_c_conftest_c89_main=' |
| | | 2524 | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); |
| | | 2525 | ' |
| | | 2526 | |
| | | 2527 | # Test code for whether the C compiler supports C99 (global declarations) |
| | | 2528 | ac_c_conftest_c99_globals=' |
| | | 2529 | // Does the compiler advertise C99 conformance? |
| | | 2530 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L |
| | | 2531 | # error "Compiler does not advertise C99 conformance" |
| | | 2532 | #endif |
| | | 2533 | |
| | | 2534 | #include <stdbool.h> |
| | | 2535 | extern int puts (const char *); |
| | | 2536 | extern int printf (const char *, ...); |
| | | 2537 | extern int dprintf (int, const char *, ...); |
| | | 2538 | extern void *malloc (size_t); |
| | | 2539 | |
| | | 2540 | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
| | | 2541 | // dprintf is used instead of fprintf to avoid needing to declare |
| | | 2542 | // FILE and stderr. |
| | | 2543 | #define debug(...) dprintf (2, __VA_ARGS__) |
| | | 2544 | #define showlist(...) puts (#__VA_ARGS__) |
| | | 2545 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
| | | 2546 | static void |
| | | 2547 | test_varargs_macros (void) |
| | | 2548 | { |
| | | 2549 | int x = 1234; |
| | | 2550 | int y = 5678; |
| | | 2551 | debug ("Flag"); |
| | | 2552 | debug ("X = %d\n", x); |
| | | 2553 | showlist (The first, second, and third items.); |
| | | 2554 | report (x>y, "x is %d but y is %d", x, y); |
| | | 2555 | } |
| | | 2556 | |
| | | 2557 | // Check long long types. |
| | | 2558 | #define BIG64 18446744073709551615ull |
| | | 2559 | #define BIG32 4294967295ul |
| | | 2560 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
| | | 2561 | #if !BIG_OK |
| | | 2562 | #error "your preprocessor is broken" |
| | | 2563 | #endif |
| | | 2564 | #if BIG_OK |
| | | 2565 | #else |
| | | 2566 | #error "your preprocessor is broken" |
| | | 2567 | #endif |
| | | 2568 | static long long int bignum = -9223372036854775807LL; |
| | | 2569 | static unsigned long long int ubignum = BIG64; |
| | | 2570 | |
| | | 2571 | struct incomplete_array |
| | | 2572 | { |
| | | 2573 | int datasize; |
| | | 2574 | double data[]; |
| | | 2575 | }; |
| | | 2576 | |
| | | 2577 | struct named_init { |
| | | 2578 | int number; |
| | | 2579 | const wchar_t *name; |
| | | 2580 | double average; |
| | | 2581 | }; |
| | | 2582 | |
| | | 2583 | typedef const char *ccp; |
| | | 2584 | |
| | | 2585 | static inline int |
| | | 2586 | test_restrict (ccp restrict text) |
| | | 2587 | { |
| | | 2588 | // See if C++-style comments work. |
| | | 2589 | // Iterate through items via the restricted pointer. |
| | | 2590 | // Also check for declarations in for loops. |
| | | 2591 | for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) |
| | | 2592 | continue; |
| | | 2593 | return 0; |
| | | 2594 | } |
| | | 2595 | |
| | | 2596 | // Check varargs and va_copy. |
| | | 2597 | static bool |
| | | 2598 | test_varargs (const char *format, ...) |
| | | 2599 | { |
| | | 2600 | va_list args; |
| | | 2601 | va_start (args, format); |
| | | 2602 | va_list args_copy; |
| | | 2603 | va_copy (args_copy, args); |
| | | 2604 | |
| | | 2605 | const char *str = ""; |
| | | 2606 | int number = 0; |
| | | 2607 | float fnumber = 0; |
| | | 2608 | |
| | | 2609 | while (*format) |
| | | 2610 | { |
| | | 2611 | switch (*format++) |
| | | 2612 | { |
| | | 2613 | case '\''s'\'': // string |
| | | 2614 | str = va_arg (args_copy, const char *); |
| | | 2615 | break; |
| | | 2616 | case '\''d'\'': // int |
| | | 2617 | number = va_arg (args_copy, int); |
| | | 2618 | break; |
| | | 2619 | case '\''f'\'': // float |
| | | 2620 | fnumber = va_arg (args_copy, double); |
| | | 2621 | break; |
| | | 2622 | default: |
| | | 2623 | break; |
| | | 2624 | } |
| | | 2625 | } |
| | | 2626 | va_end (args_copy); |
| | | 2627 | va_end (args); |
| | | 2628 | |
| | | 2629 | return *str && number && fnumber; |
| | | 2630 | } |
| | | 2631 | ' |
| | | 2632 | |
| | | 2633 | # Test code for whether the C compiler supports C99 (body of main). |
| | | 2634 | ac_c_conftest_c99_main=' |
| | | 2635 | // Check bool. |
| | | 2636 | _Bool success = false; |
| | | 2637 | success |= (argc != 0); |
| | | 2638 | |
| | | 2639 | // Check restrict. |
| | | 2640 | if (test_restrict ("String literal") == 0) |
| | | 2641 | success = true; |
| | | 2642 | char *restrict newvar = "Another string"; |
| | | 2643 | |
| | | 2644 | // Check varargs. |
| | | 2645 | success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); |
| | | 2646 | test_varargs_macros (); |
| | | 2647 | |
| | | 2648 | // Check flexible array members. |
| | | 2649 | struct incomplete_array *ia = |
| | | 2650 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
| | | 2651 | ia->datasize = 10; |
| | | 2652 | for (int i = 0; i < ia->datasize; ++i) |
| | | 2653 | ia->data[i] = i * 1.234; |
| | | 2654 | |
| | | 2655 | // Check named initializers. |
| | | 2656 | struct named_init ni = { |
| | | 2657 | .number = 34, |
| | | 2658 | .name = L"Test wide string", |
| | | 2659 | .average = 543.34343, |
| | | 2660 | }; |
| | | 2661 | |
| | | 2662 | ni.number = 58; |
| | | 2663 | |
| | | 2664 | int dynamic_array[ni.number]; |
| | | 2665 | dynamic_array[0] = argv[0][0]; |
| | | 2666 | dynamic_array[ni.number - 1] = 543; |
| | | 2667 | |
| | | 2668 | // work around unused variable warnings |
| | | 2669 | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' |
| | | 2670 | || dynamic_array[ni.number - 1] != 543); |
| | | 2671 | ' |
| | | 2672 | |
| | | 2673 | # Test code for whether the C compiler supports C11 (global declarations) |
| | | 2674 | ac_c_conftest_c11_globals=' |
| | | 2675 | // Does the compiler advertise C11 conformance? |
| | | 2676 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L |
| | | 2677 | # error "Compiler does not advertise C11 conformance" |
| | | 2678 | #endif |
| | | 2679 | |
| | | 2680 | // Check _Alignas. |
| | | 2681 | char _Alignas (double) aligned_as_double; |
| | | 2682 | char _Alignas (0) no_special_alignment; |
| | | 2683 | extern char aligned_as_int; |
| | | 2684 | char _Alignas (0) _Alignas (int) aligned_as_int; |
| | | 2685 | |
| | | 2686 | // Check _Alignof. |
| | | 2687 | enum |
| | | 2688 | { |
| | | 2689 | int_alignment = _Alignof (int), |
| | | 2690 | int_array_alignment = _Alignof (int[100]), |
| | | 2691 | char_alignment = _Alignof (char) |
| | | 2692 | }; |
| | | 2693 | _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); |
| | | 2694 | |
| | | 2695 | // Check _Noreturn. |
| | | 2696 | int _Noreturn does_not_return (void) { for (;;) continue; } |
| | | 2697 | |
| | | 2698 | // Check _Static_assert. |
| | | 2699 | struct test_static_assert |
| | | 2700 | { |
| | | 2701 | int x; |
| | | 2702 | _Static_assert (sizeof (int) <= sizeof (long int), |
| | | 2703 | "_Static_assert does not work in struct"); |
| | | 2704 | long int y; |
| | | 2705 | }; |
| | | 2706 | |
| | | 2707 | // Check UTF-8 literals. |
| | | 2708 | #define u8 syntax error! |
| | | 2709 | char const utf8_literal[] = u8"happens to be ASCII" "another string"; |
| | | 2710 | |
| | | 2711 | // Check duplicate typedefs. |
| | | 2712 | typedef long *long_ptr; |
| | | 2713 | typedef long int *long_ptr; |
| | | 2714 | typedef long_ptr long_ptr; |
| | | 2715 | |
| | | 2716 | // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. |
| | | 2717 | struct anonymous |
| | | 2718 | { |
| | | 2719 | union { |
| | | 2720 | struct { int i; int j; }; |
| | | 2721 | struct { int k; long int l; } w; |
| | | 2722 | }; |
| | | 2723 | int m; |
| | | 2724 | } v1; |
| | | 2725 | ' |
| | | 2726 | |
| | | 2727 | # Test code for whether the C compiler supports C11 (body of main). |
| | | 2728 | ac_c_conftest_c11_main=' |
| | | 2729 | _Static_assert ((offsetof (struct anonymous, i) |
| | | 2730 | == offsetof (struct anonymous, w.k)), |
| | | 2731 | "Anonymous union alignment botch"); |
| | | 2732 | v1.i = 2; |
| | | 2733 | v1.w.k = 5; |
| | | 2734 | ok |= v1.i != 5; |
| | | 2735 | ' |
| | | 2736 | |
| | | 2737 | # Test code for whether the C compiler supports C11 (complete). |
| | | 2738 | ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} |
| | | 2739 | ${ac_c_conftest_c99_globals} |
| | | 2740 | ${ac_c_conftest_c11_globals} |
| | | 2741 | |
| | | 2742 | int |
| | | 2743 | main (int argc, char **argv) |
| | | 2744 | { |
| | | 2745 | int ok = 0; |
| | | 2746 | ${ac_c_conftest_c89_main} |
| | | 2747 | ${ac_c_conftest_c99_main} |
| | | 2748 | ${ac_c_conftest_c11_main} |
| | | 2749 | return ok; |
| | | 2750 | } |
| | | 2751 | " |
| | | 2752 | |
| | | 2753 | # Test code for whether the C compiler supports C99 (complete). |
| | | 2754 | ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} |
| | | 2755 | ${ac_c_conftest_c99_globals} |
| | | 2756 | |
| | | 2757 | int |
| | | 2758 | main (int argc, char **argv) |
| | | 2759 | { |
| | | 2760 | int ok = 0; |
| | | 2761 | ${ac_c_conftest_c89_main} |
| | | 2762 | ${ac_c_conftest_c99_main} |
| | | 2763 | return ok; |
| | | 2764 | } |
| | | 2765 | " |
| | | 2766 | |
| | | 2767 | # Test code for whether the C compiler supports C89 (complete). |
| | | 2768 | ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} |
| | | 2769 | |
| | | 2770 | int |
| | | 2771 | main (int argc, char **argv) |
| | | 2772 | { |
| | | 2773 | int ok = 0; |
| | | 2774 | ${ac_c_conftest_c89_main} |
| | | 2775 | return ok; |
| | | 2776 | } |
| | | 2777 | " |
| | | 2778 | |
| | | 2779 | as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" |
| | | 2780 | as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" |
| | | 2781 | as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" |
| | | 2782 | as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" |
| | | 2783 | as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" |
| | | 2784 | as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" |
| | | 2785 | as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" |
| | | 2786 | as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" |
| | | 2787 | as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" |
| | | 2788 | as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" |
| | | 2789 | as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H" |
| | | 2790 | as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H" |
| | | 2791 | as_fn_append ac_func_c_list " fork HAVE_FORK" |
| | | 2792 | as_fn_append ac_func_c_list " vfork HAVE_VFORK" |
| | | 2793 | |
| | | 2794 | # Auxiliary files required by this configure script. |
| | | 2795 | ac_aux_files="install-sh config.guess config.sub" |
| | | 2796 | |
| | | 2797 | # Locations in which to look for auxiliary files. |
| | | 2798 | ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." |
| | | 2799 | |
| | | 2800 | # Search for a directory containing all of the required auxiliary files, |
| | | 2801 | # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. |
| | | 2802 | # If we don't find one directory that contains all the files we need, |
| | | 2803 | # we report the set of missing files from the *first* directory in |
| | | 2804 | # $ac_aux_dir_candidates and give up. |
| | | 2805 | ac_missing_aux_files="" |
| | | 2806 | ac_first_candidate=: |
| | | 2807 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 |
| | | 2808 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| | | 2809 | as_found=false |
| | | 2810 | for as_dir in $ac_aux_dir_candidates |
| | | 2811 | do |
| | | 2812 | IFS=$as_save_IFS |
| | | 2813 | case $as_dir in #((( |
| | | 2814 | '') as_dir=./ ;; |
| | | 2815 | */) ;; |
| | | 2816 | *) as_dir=$as_dir/ ;; |
| | | 2817 | esac |
| | | 2818 | as_found=: |
| | | 2819 | |
| | | 2820 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 |
| | | 2821 | ac_aux_dir_found=yes |
| | | 2822 | ac_install_sh= |
| | | 2823 | for ac_aux in $ac_aux_files |
| | | 2824 | do |
| | | 2825 | # As a special case, if "install-sh" is required, that requirement |
| | | 2826 | # can be satisfied by any of "install-sh", "install.sh", or "shtool", |
| | | 2827 | # and $ac_install_sh is set appropriately for whichever one is found. |
| | | 2828 | if test x"$ac_aux" = x"install-sh" |
| | | 2829 | then |
| | | 2830 | if test -f "${as_dir}install-sh"; then |
| | | 2831 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 |
| | | 2832 | ac_install_sh="${as_dir}install-sh -c" |
| | | 2833 | elif test -f "${as_dir}install.sh"; then |
| | | 2834 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 |
| | | 2835 | ac_install_sh="${as_dir}install.sh -c" |
| | | 2836 | elif test -f "${as_dir}shtool"; then |
| | | 2837 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 |
| | | 2838 | ac_install_sh="${as_dir}shtool install -c" |
| | | 2839 | else |
| | | 2840 | ac_aux_dir_found=no |
| | | 2841 | if $ac_first_candidate; then |
| | | 2842 | ac_missing_aux_files="${ac_missing_aux_files} install-sh" |
| | | 2843 | else |
| | | 2844 | break |
| | | 2845 | fi |
| | | 2846 | fi |
| | | 2847 | else |
| | | 2848 | if test -f "${as_dir}${ac_aux}"; then |
| | | 2849 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 |
| | | 2850 | else |
| | | 2851 | ac_aux_dir_found=no |
| | | 2852 | if $ac_first_candidate; then |
| | | 2853 | ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" |
| | | 2854 | else |
| | | 2855 | break |
| | | 2856 | fi |
| | | 2857 | fi |
| | | 2858 | fi |
| | | 2859 | done |
| | | 2860 | if test "$ac_aux_dir_found" = yes; then |
| | | 2861 | ac_aux_dir="$as_dir" |
| | | 2862 | break |
| | | 2863 | fi |
| | | 2864 | ac_first_candidate=false |
| | | 2865 | |
| | | 2866 | as_found=false |
| | | 2867 | done |
| | | 2868 | IFS=$as_save_IFS |
| | | 2869 | if $as_found |
| | | 2870 | then : |
| | | 2871 | |
| | | 2872 | else $as_nop |
| | | 2873 | as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 |
| | | 2874 | fi |
| | | 2875 | |
| | | 2876 | |
| | | 2877 | # These three variables are undocumented and unsupported, |
| | | 2878 | # and are intended to be withdrawn in a future Autoconf release. |
| | | 2879 | # They can cause serious problems if a builder's source tree is in a directory |
| | | 2880 | # whose full name contains unusual characters. |
| | | 2881 | if test -f "${ac_aux_dir}config.guess"; then |
| | | 2882 | ac_config_guess="$SHELL ${ac_aux_dir}config.guess" |
| | | 2883 | fi |
| | | 2884 | if test -f "${ac_aux_dir}config.sub"; then |
| | | 2885 | ac_config_sub="$SHELL ${ac_aux_dir}config.sub" |
| | | 2886 | fi |
| | | 2887 | if test -f "$ac_aux_dir/configure"; then |
| | | 2888 | ac_configure="$SHELL ${ac_aux_dir}configure" |
| | | 2889 | fi |
| | | 2890 | |
| | | 2891 | # Check that the precious variables saved in the cache have kept the same |
| | | 2892 | # value. |
| | | 2893 | ac_cache_corrupted=false |
| | | 2894 | for ac_var in $ac_precious_vars; do |
| | | 2895 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2531 | eval ac_new_set=\$ac_env_${ac_var}_set | | 2896 | eval ac_new_set=\$ac_env_${ac_var}_set |
2532 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | | 2897 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2533 | eval ac_new_val=\$ac_env_${ac_var}_value | | 2898 | eval ac_new_val=\$ac_env_${ac_var}_value |
2534 | case $ac_old_set,$ac_new_set in | | 2899 | case $ac_old_set,$ac_new_set in |
2535 | set,) | | 2900 | set,) |
2536 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | | 2901 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2537 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | | 2902 | printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
2538 | ac_cache_corrupted=: ;; | | 2903 | ac_cache_corrupted=: ;; |
2539 | ,set) | | 2904 | ,set) |
2540 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | | 2905 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2541 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | | 2906 | printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
2542 | ac_cache_corrupted=: ;; | | 2907 | ac_cache_corrupted=: ;; |
2543 | ,);; | | 2908 | ,);; |
2544 | *) | | 2909 | *) |
2545 | if test "x$ac_old_val" != "x$ac_new_val"; then | | 2910 | if test "x$ac_old_val" != "x$ac_new_val"; then |
2546 | # differences in whitespace do not lead to failure. | | 2911 | # differences in whitespace do not lead to failure. |
2547 | ac_old_val_w=`echo x $ac_old_val` | | 2912 | ac_old_val_w=`echo x $ac_old_val` |
2548 | ac_new_val_w=`echo x $ac_new_val` | | 2913 | ac_new_val_w=`echo x $ac_new_val` |
2549 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | | 2914 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
2550 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | | 2915 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
2551 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | | 2916 | printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
2552 | ac_cache_corrupted=: | | 2917 | ac_cache_corrupted=: |
2553 | else | | 2918 | else |
2554 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | | 2919 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
2555 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | | 2920 | printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
2556 | eval $ac_var=\$ac_old_val | | 2921 | eval $ac_var=\$ac_old_val |
2557 | fi | | 2922 | fi |
2558 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | | 2923 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
2559 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | | 2924 | printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} |
2560 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | | 2925 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
2561 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | | 2926 | printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} |
2562 | fi;; | | 2927 | fi;; |
2563 | esac | | 2928 | esac |
2564 | # Pass precious variables to config.status. | | 2929 | # Pass precious variables to config.status. |
2565 | if test "$ac_new_set" = set; then | | 2930 | if test "$ac_new_set" = set; then |
2566 | case $ac_new_val in | | 2931 | case $ac_new_val in |
2567 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | | 2932 | *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
2568 | *) ac_arg=$ac_var=$ac_new_val ;; | | 2933 | *) ac_arg=$ac_var=$ac_new_val ;; |
2569 | esac | | 2934 | esac |
2570 | case " $ac_configure_args " in | | 2935 | case " $ac_configure_args " in |
2571 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | | 2936 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
2572 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | | 2937 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
2573 | esac | | 2938 | esac |
2574 | fi | | 2939 | fi |
2575 | done | | 2940 | done |
2576 | if $ac_cache_corrupted; then | | 2941 | if $ac_cache_corrupted; then |
2577 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | | 2942 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2578 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | | 2943 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
2579 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | | 2944 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
2580 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | | 2945 | printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} |
2581 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | | 2946 | as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' |
| | | 2947 | and start over" "$LINENO" 5 |
2582 | fi | | 2948 | fi |
2583 | ## -------------------- ## | | 2949 | ## -------------------- ## |
2584 | ## Main body of script. ## | | 2950 | ## Main body of script. ## |
2585 | ## -------------------- ## | | 2951 | ## -------------------- ## |
2586 | | | 2952 | |
2587 | ac_ext=c | | 2953 | ac_ext=c |
2588 | ac_cpp='$CPP $CPPFLAGS' | | 2954 | ac_cpp='$CPP $CPPFLAGS' |
2589 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | | 2955 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2590 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | | 2956 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2591 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | | 2957 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2592 | | | 2958 | |
2593 | | | 2959 | |
2594 | ac_config_headers="$ac_config_headers nbcompat/config.h" | | 2960 | ac_config_headers="$ac_config_headers nbcompat/config.h" |
2595 | | | 2961 | |
2596 | test "$program_prefix" != NONE && | | 2962 | test "$program_prefix" != NONE && |
2597 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | | 2963 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
2598 | # Use a double $ so make ignores it. | | 2964 | # Use a double $ so make ignores it. |
2599 | test "$program_suffix" != NONE && | | 2965 | test "$program_suffix" != NONE && |
2600 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | | 2966 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2601 | # Double any \ or $. | | 2967 | # Double any \ or $. |
2602 | # By default was `s,x,x', remove it if useless. | | 2968 | # By default was `s,x,x', remove it if useless. |
2603 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | | 2969 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2604 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | | 2970 | program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` |
2605 | | | 2971 | |
2606 | | | 2972 | |
2607 | ac_aux_dir= | | | |
2608 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | | | |
2609 | if test -f "$ac_dir/install-sh"; then | | | |
2610 | ac_aux_dir=$ac_dir | | | |
2611 | ac_install_sh="$ac_aux_dir/install-sh -c" | | | |
2612 | break | | | |
2613 | elif test -f "$ac_dir/install.sh"; then | | | |
2614 | ac_aux_dir=$ac_dir | | | |
2615 | ac_install_sh="$ac_aux_dir/install.sh -c" | | | |
2616 | break | | | |
2617 | elif test -f "$ac_dir/shtool"; then | | | |
2618 | ac_aux_dir=$ac_dir | | | |
2619 | ac_install_sh="$ac_aux_dir/shtool install -c" | | | |
2620 | break | | | |
2621 | fi | | | |
2622 | done | | | |
2623 | if test -z "$ac_aux_dir"; then | | | |
2624 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | | | |
2625 | fi | | | |
2626 | | | 2973 | |
2627 | # These three variables are undocumented and unsupported, | | | |
2628 | # and are intended to be withdrawn in a future Autoconf release. | | | |
2629 | # They can cause serious problems if a builder's source tree is in a directory | | | |
2630 | # whose full name contains unusual characters. | | | |
2631 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | | | |
2632 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | | | |
2633 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | | | |
2634 | | | 2974 | |
2635 | | | 2975 | |
2636 | # Make sure we can run config.sub. | | 2976 | # Make sure we can run config.sub. |
2637 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | | 2977 | $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || |
2638 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | | 2978 | as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 |
2639 | | | 2979 | |
2640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | | 2980 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
2641 | $as_echo_n "checking build system type... " >&6; } | | 2981 | printf %s "checking build system type... " >&6; } |
2642 | if ${ac_cv_build+:} false; then : | | 2982 | if test ${ac_cv_build+y} |
2643 | $as_echo_n "(cached) " >&6 | | 2983 | then : |
2644 | else | | 2984 | printf %s "(cached) " >&6 |
| | | 2985 | else $as_nop |
2645 | ac_build_alias=$build_alias | | 2986 | ac_build_alias=$build_alias |
2646 | test "x$ac_build_alias" = x && | | 2987 | test "x$ac_build_alias" = x && |
2647 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | | 2988 | ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` |
2648 | test "x$ac_build_alias" = x && | | 2989 | test "x$ac_build_alias" = x && |
2649 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | | 2990 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
2650 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | | 2991 | ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || |
2651 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | | 2992 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 |
2652 | | | 2993 | |
2653 | fi | | 2994 | fi |
2654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | | 2995 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
2655 | $as_echo "$ac_cv_build" >&6; } | | 2996 | printf "%s\n" "$ac_cv_build" >&6; } |
2656 | case $ac_cv_build in | | 2997 | case $ac_cv_build in |
2657 | *-*-*) ;; | | 2998 | *-*-*) ;; |
2658 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | | 2999 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
2659 | esac | | 3000 | esac |
2660 | build=$ac_cv_build | | 3001 | build=$ac_cv_build |
2661 | ac_save_IFS=$IFS; IFS='-' | | 3002 | ac_save_IFS=$IFS; IFS='-' |
2662 | set x $ac_cv_build | | 3003 | set x $ac_cv_build |
2663 | shift | | 3004 | shift |
2664 | build_cpu=$1 | | 3005 | build_cpu=$1 |
2665 | build_vendor=$2 | | 3006 | build_vendor=$2 |
2666 | shift; shift | | 3007 | shift; shift |
2667 | # Remember, the first character of IFS is used to create $*, | | 3008 | # Remember, the first character of IFS is used to create $*, |
2668 | # except with old shells: | | 3009 | # except with old shells: |
2669 | build_os=$* | | 3010 | build_os=$* |
2670 | IFS=$ac_save_IFS | | 3011 | IFS=$ac_save_IFS |
2671 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | | 3012 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
2672 | | | 3013 | |
2673 | | | 3014 | |
2674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | | 3015 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2675 | $as_echo_n "checking host system type... " >&6; } | | 3016 | printf %s "checking host system type... " >&6; } |
2676 | if ${ac_cv_host+:} false; then : | | 3017 | if test ${ac_cv_host+y} |
2677 | $as_echo_n "(cached) " >&6 | | 3018 | then : |
2678 | else | | 3019 | printf %s "(cached) " >&6 |
| | | 3020 | else $as_nop |
2679 | if test "x$host_alias" = x; then | | 3021 | if test "x$host_alias" = x; then |
2680 | ac_cv_host=$ac_cv_build | | 3022 | ac_cv_host=$ac_cv_build |
2681 | else | | 3023 | else |
2682 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | | 3024 | ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || |
2683 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | | 3025 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 |
2684 | fi | | 3026 | fi |
2685 | | | 3027 | |
2686 | fi | | 3028 | fi |
2687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | | 3029 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2688 | $as_echo "$ac_cv_host" >&6; } | | 3030 | printf "%s\n" "$ac_cv_host" >&6; } |
2689 | case $ac_cv_host in | | 3031 | case $ac_cv_host in |
2690 | *-*-*) ;; | | 3032 | *-*-*) ;; |
2691 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | | 3033 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
2692 | esac | | 3034 | esac |
2693 | host=$ac_cv_host | | 3035 | host=$ac_cv_host |
2694 | ac_save_IFS=$IFS; IFS='-' | | 3036 | ac_save_IFS=$IFS; IFS='-' |
2695 | set x $ac_cv_host | | 3037 | set x $ac_cv_host |
2696 | shift | | 3038 | shift |
2697 | host_cpu=$1 | | 3039 | host_cpu=$1 |
2698 | host_vendor=$2 | | 3040 | host_vendor=$2 |
2699 | shift; shift | | 3041 | shift; shift |
2700 | # Remember, the first character of IFS is used to create $*, | | 3042 | # Remember, the first character of IFS is used to create $*, |
2701 | # except with old shells: | | 3043 | # except with old shells: |
2702 | host_os=$* | | 3044 | host_os=$* |
2703 | IFS=$ac_save_IFS | | 3045 | IFS=$ac_save_IFS |
2704 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | | 3046 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
2705 | | | 3047 | |
2706 | | | 3048 | |
| | | 3049 | |
| | | 3050 | |
| | | 3051 | |
| | | 3052 | |
| | | 3053 | |
| | | 3054 | |
| | | 3055 | |
| | | 3056 | |
| | | 3057 | |
2707 | ac_ext=c | | 3058 | ac_ext=c |
2708 | ac_cpp='$CPP $CPPFLAGS' | | 3059 | ac_cpp='$CPP $CPPFLAGS' |
2709 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | | 3060 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2710 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | | 3061 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2711 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | | 3062 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2712 | if test -n "$ac_tool_prefix"; then | | 3063 | if test -n "$ac_tool_prefix"; then |
2713 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | | 3064 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
2714 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | | 3065 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
2715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | | 3066 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2716 | $as_echo_n "checking for $ac_word... " >&6; } | | 3067 | printf %s "checking for $ac_word... " >&6; } |
2717 | if ${ac_cv_prog_CC+:} false; then : | | 3068 | if test ${ac_cv_prog_CC+y} |
2718 | $as_echo_n "(cached) " >&6 | | 3069 | then : |
2719 | else | | 3070 | printf %s "(cached) " >&6 |
| | | 3071 | else $as_nop |
2720 | if test -n "$CC"; then | | 3072 | if test -n "$CC"; then |
2721 | ac_cv_prog_CC="$CC" # Let the user override the test. | | 3073 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2722 | else | | 3074 | else |
2723 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | | 3075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2724 | for as_dir in $PATH | | 3076 | for as_dir in $PATH |
2725 | do | | 3077 | do |
2726 | IFS=$as_save_IFS | | 3078 | IFS=$as_save_IFS |
2727 | test -z "$as_dir" && as_dir=. | | 3079 | case $as_dir in #((( |
| | | 3080 | '') as_dir=./ ;; |
| | | 3081 | */) ;; |
| | | 3082 | *) as_dir=$as_dir/ ;; |
| | | 3083 | esac |
2728 | for ac_exec_ext in '' $ac_executable_extensions; do | | 3084 | for ac_exec_ext in '' $ac_executable_extensions; do |
2729 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | | 3085 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
2730 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | | 3086 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2731 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | | 3087 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
2732 | break 2 | | 3088 | break 2 |
2733 | fi | | 3089 | fi |
2734 | done | | 3090 | done |
2735 | done | | 3091 | done |
2736 | IFS=$as_save_IFS | | 3092 | IFS=$as_save_IFS |
2737 | | | 3093 | |
2738 | fi | | 3094 | fi |
2739 | fi | | 3095 | fi |
2740 | CC=$ac_cv_prog_CC | | 3096 | CC=$ac_cv_prog_CC |
2741 | if test -n "$CC"; then | | 3097 | if test -n "$CC"; then |
2742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | | 3098 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2743 | $as_echo "$CC" >&6; } | | 3099 | printf "%s\n" "$CC" >&6; } |
2744 | else | | 3100 | else |
2745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | | 3101 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2746 | $as_echo "no" >&6; } | | 3102 | printf "%s\n" "no" >&6; } |
2747 | fi | | 3103 | fi |
2748 | | | 3104 | |
2749 | | | 3105 | |
2750 | fi | | 3106 | fi |
2751 | if test -z "$ac_cv_prog_CC"; then | | 3107 | if test -z "$ac_cv_prog_CC"; then |
2752 | ac_ct_CC=$CC | | 3108 | ac_ct_CC=$CC |
2753 | # Extract the first word of "gcc", so it can be a program name with args. | | 3109 | # Extract the first word of "gcc", so it can be a program name with args. |
2754 | set dummy gcc; ac_word=$2 | | 3110 | set dummy gcc; ac_word=$2 |
2755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | | 3111 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2756 | $as_echo_n "checking for $ac_word... " >&6; } | | 3112 | printf %s "checking for $ac_word... " >&6; } |
2757 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | | 3113 | if test ${ac_cv_prog_ac_ct_CC+y} |
2758 | $as_echo_n "(cached) " >&6 | | 3114 | then : |
2759 | else | | 3115 | printf %s "(cached) " >&6 |
| | | 3116 | else $as_nop |
2760 | if test -n "$ac_ct_CC"; then | | 3117 | if test -n "$ac_ct_CC"; then |
2761 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | | 3118 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2762 | else | | 3119 | else |
2763 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | | 3120 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2764 | for as_dir in $PATH | | 3121 | for as_dir in $PATH |
2765 | do | | 3122 | do |
2766 | IFS=$as_save_IFS | | 3123 | IFS=$as_save_IFS |
2767 | test -z "$as_dir" && as_dir=. | | 3124 | case $as_dir in #((( |
| | | 3125 | '') as_dir=./ ;; |
| | | 3126 | */) ;; |
| | | 3127 | *) as_dir=$as_dir/ ;; |
| | | 3128 | esac |
2768 | for ac_exec_ext in '' $ac_executable_extensions; do | | 3129 | for ac_exec_ext in '' $ac_executable_extensions; do |
2769 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | | 3130 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
2770 | ac_cv_prog_ac_ct_CC="gcc" | | 3131 | ac_cv_prog_ac_ct_CC="gcc" |
2771 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | | 3132 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
2772 | break 2 | | 3133 | break 2 |
2773 | fi | | 3134 | fi |
2774 | done | | 3135 | done |
2775 | done | | 3136 | done |
2776 | IFS=$as_save_IFS | | 3137 | IFS=$as_save_IFS |
2777 | | | 3138 | |
2778 | fi | | 3139 | fi |
2779 | fi | | 3140 | fi |
2780 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | | 3141 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2781 | if test -n "$ac_ct_CC"; then | | 3142 | if test -n "$ac_ct_CC"; then |
2782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | | 3143 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2783 | $as_echo "$ac_ct_CC" >&6; } | | 3144 | printf "%s\n" "$ac_ct_CC" >&6; } |
2784 | else | | 3145 | else |
2785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | | 3146 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2786 | $as_echo "no" >&6; } | | 3147 | printf "%s\n" "no" >&6; } |
2787 | fi | | 3148 | fi |
2788 | | | 3149 | |
2789 | if test "x$ac_ct_CC" = x; then | | 3150 | if test "x$ac_ct_CC" = x; then |
2790 | CC="" | | 3151 | CC="" |
2791 | else | | 3152 | else |
2792 | case $cross_compiling:$ac_tool_warned in | | 3153 | case $cross_compiling:$ac_tool_warned in |
2793 | yes:) | | 3154 | yes:) |
2794 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | | 3155 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
2795 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | | 3156 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2796 | ac_tool_warned=yes ;; | | 3157 | ac_tool_warned=yes ;; |
2797 | esac | | 3158 | esac |
2798 | CC=$ac_ct_CC | | 3159 | CC=$ac_ct_CC |
2799 | fi | | 3160 | fi |
2800 | else | | 3161 | else |
2801 | CC="$ac_cv_prog_CC" | | 3162 | CC="$ac_cv_prog_CC" |
2802 | fi | | 3163 | fi |
2803 | | | 3164 | |
2804 | if test -z "$CC"; then | | 3165 | if test -z "$CC"; then |
2805 | if test -n "$ac_tool_prefix"; then | | 3166 | if test -n "$ac_tool_prefix"; then |
2806 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | | 3167 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
2807 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | | 3168 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
2808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | | 3169 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2809 | $as_echo_n "checking for $ac_word... " >&6; } | | 3170 | printf %s "checking for $ac_word... " >&6; } |
2810 | if ${ac_cv_prog_CC+:} false; then : | | 3171 | if test ${ac_cv_prog_CC+y} |
2811 | $as_echo_n "(cached) " >&6 | | 3172 | then : |
2812 | else | | 3173 | printf %s "(cached) " >&6 |
| | | 3174 | else $as_nop |
2813 | if test -n "$CC"; then | | 3175 | if test -n "$CC"; then |
2814 | ac_cv_prog_CC="$CC" # Let the user override the test. | | 3176 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2815 | else | | 3177 | else |
2816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | | 3178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2817 | for as_dir in $PATH | | 3179 | for as_dir in $PATH |
2818 | do | | 3180 | do |
2819 | IFS=$as_save_IFS | | 3181 | IFS=$as_save_IFS |
2820 | test -z "$as_dir" && as_dir=. | | 3182 | case $as_dir in #((( |
| | | 3183 | '') as_dir=./ ;; |
| | | 3184 | */) ;; |
| | | 3185 | *) as_dir=$as_dir/ ;; |
| | | 3186 | esac |
2821 | for ac_exec_ext in '' $ac_executable_extensions; do | | 3187 | for ac_exec_ext in '' $ac_executable_extensions; do |
2822 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | | 3188 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
2823 | ac_cv_prog_CC="${ac_tool_prefix}cc" | | 3189 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2824 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | | 3190 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
2825 | break 2 | | 3191 | break 2 |
2826 | fi | | 3192 | fi |
2827 | done | | 3193 | done |
2828 | done | | 3194 | done |
2829 | IFS=$as_save_IFS | | 3195 | IFS=$as_save_IFS |
2830 | | | 3196 | |
2831 | fi | | 3197 | fi |
2832 | fi | | 3198 | fi |
2833 | CC=$ac_cv_prog_CC | | 3199 | CC=$ac_cv_prog_CC |
2834 | if test -n "$CC"; then | | 3200 | if test -n "$CC"; then |
2835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | | 3201 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2836 | $as_echo "$CC" >&6; } | | 3202 | printf "%s\n" "$CC" >&6; } |
2837 | else | | 3203 | else |
2838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | | 3204 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2839 | $as_echo "no" >&6; } | | 3205 | printf "%s\n" "no" >&6; } |
2840 | fi | | 3206 | fi |
2841 | | | 3207 | |
2842 | | | 3208 | |
2843 | fi | | 3209 | fi |
2844 | fi | | 3210 | fi |
2845 | if test -z "$CC"; then | | 3211 | if test -z "$CC"; then |
2846 | # Extract the first word of "cc", so it can be a program name with args. | | 3212 | # Extract the first word of "cc", so it can be a program name with args. |
2847 | set dummy cc; ac_word=$2 | | 3213 | set dummy cc; ac_word=$2 |
2848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | | 3214 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2849 | $as_echo_n "checking for $ac_word... " >&6; } | | 3215 | printf %s "checking for $ac_word... " >&6; } |
2850 | if ${ac_cv_prog_CC+:} false; then : | | 3216 | if test ${ac_cv_prog_CC+y} |
2851 | $as_echo_n "(cached) " >&6 | | 3217 | then : |
2852 | else | | 3218 | printf %s "(cached) " >&6 |
| | | 3219 | else $as_nop |
2853 | if test -n "$CC"; then | | 3220 | if test -n "$CC"; then |
2854 | ac_cv_prog_CC="$CC" # Let the user override the test. | | 3221 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2855 | else | | 3222 | else |
2856 | ac_prog_rejected=no | | 3223 | ac_prog_rejected=no |
2857 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | | 3224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2858 | for as_dir in $PATH | | 3225 | for as_dir in $PATH |
2859 | do | | 3226 | do |
2860 | IFS=$as_save_IFS | | 3227 | IFS=$as_save_IFS |
2861 | test -z "$as_dir" && as_dir=. | | 3228 | case $as_dir in #((( |
| | | 3229 | '') as_dir=./ ;; |
| | | 3230 | */) ;; |
| | | 3231 | *) as_dir=$as_dir/ ;; |
| | | 3232 | esac |
2862 | for ac_exec_ext in '' $ac_executable_extensions; do | | 3233 | for ac_exec_ext in '' $ac_executable_extensions; do |
2863 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | | 3234 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
2864 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | | 3235 | if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2865 | ac_prog_rejected=yes | | 3236 | ac_prog_rejected=yes |
2866 | continue | | 3237 | continue |
2867 | fi | | 3238 | fi |
2868 | ac_cv_prog_CC="cc" | | 3239 | ac_cv_prog_CC="cc" |
2869 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | | 3240 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
2870 | break 2 | | 3241 | break 2 |
2871 | fi | | 3242 | fi |
2872 | done | | 3243 | done |
2873 | done | | 3244 | done |
2874 | IFS=$as_save_IFS | | 3245 | IFS=$as_save_IFS |
2875 | | | 3246 | |
2876 | if test $ac_prog_rejected = yes; then | | 3247 | if test $ac_prog_rejected = yes; then |
2877 | # We found a bogon in the path, so make sure we never use it. | | 3248 | # We found a bogon in the path, so make sure we never use it. |
2878 | set dummy $ac_cv_prog_CC | | 3249 | set dummy $ac_cv_prog_CC |
2879 | shift | | 3250 | shift |
2880 | if test $# != 0; then | | 3251 | if test $# != 0; then |
2881 | # We chose a different compiler from the bogus one. | | 3252 | # We chose a different compiler from the bogus one. |
2882 | # However, it has the same basename, so the bogon will be chosen | | 3253 | # However, it has the same basename, so the bogon will be chosen |
2883 | # first if we set CC to just the basename; use the full file name. | | 3254 | # first if we set CC to just the basename; use the full file name. |
2884 | shift | | 3255 | shift |
2885 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | | 3256 | ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
2886 | fi | | 3257 | fi |
2887 | fi | | 3258 | fi |
2888 | fi | | 3259 | fi |
2889 | fi | | 3260 | fi |
2890 | CC=$ac_cv_prog_CC | | 3261 | CC=$ac_cv_prog_CC |
2891 | if test -n "$CC"; then | | 3262 | if test -n "$CC"; then |
2892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | | 3263 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2893 | $as_echo "$CC" >&6; } | | 3264 | printf "%s\n" "$CC" >&6; } |
2894 | else | | 3265 | else |
2895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | | 3266 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2896 | $as_echo "no" >&6; } | | 3267 | printf "%s\n" "no" >&6; } |
2897 | fi | | 3268 | fi |
2898 | | | 3269 | |
2899 | | | 3270 | |
2900 | fi | | 3271 | fi |
2901 | if test -z "$CC"; then | | 3272 | if test -z "$CC"; then |
2902 | if test -n "$ac_tool_prefix"; then | | 3273 | if test -n "$ac_tool_prefix"; then |
2903 | for ac_prog in cl.exe | | 3274 | for ac_prog in cl.exe |
2904 | do | | 3275 | do |
2905 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | | 3276 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2906 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | | 3277 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | | 3278 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2908 | $as_echo_n "checking for $ac_word... " >&6; } | | 3279 | printf %s "checking for $ac_word... " >&6; } |
2909 | if ${ac_cv_prog_CC+:} false; then : | | 3280 | if test ${ac_cv_prog_CC+y} |
2910 | $as_echo_n "(cached) " >&6 | | 3281 | then : |
2911 | else | | 3282 | printf %s "(cached) " >&6 |
| | | 3283 | else $as_nop |
2912 | if test -n "$CC"; then | | 3284 | if test -n "$CC"; then |
2913 | ac_cv_prog_CC="$CC" # Let the user override the test. | | 3285 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2914 | else | | 3286 | else |
2915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | | 3287 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2916 | for as_dir in $PATH | | 3288 | for as_dir in $PATH |
2917 | do | | 3289 | do |
2918 | IFS=$as_save_IFS | | 3290 | IFS=$as_save_IFS |
2919 | test -z "$as_dir" && as_dir=. | | 3291 | case $as_dir in #((( |
| | | 3292 | '') as_dir=./ ;; |
| | | 3293 | */) ;; |
| | | 3294 | *) as_dir=$as_dir/ ;; |
| | | 3295 | esac |
2920 | for ac_exec_ext in '' $ac_executable_extensions; do | | 3296 | for ac_exec_ext in '' $ac_executable_extensions; do |
2921 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | | 3297 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
2922 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | | 3298 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2923 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | | 3299 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
2924 | break 2 | | 3300 | break 2 |
2925 | fi | | 3301 | fi |
2926 | done | | 3302 | done |
2927 | done | | 3303 | done |
2928 | IFS=$as_save_IFS | | 3304 | IFS=$as_save_IFS |
2929 | | | 3305 | |
2930 | fi | | 3306 | fi |
2931 | fi | | 3307 | fi |
2932 | CC=$ac_cv_prog_CC | | 3308 | CC=$ac_cv_prog_CC |
2933 | if test -n "$CC"; then | | 3309 | if test -n "$CC"; then |
2934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | | 3310 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2935 | $as_echo "$CC" >&6; } | | 3311 | printf "%s\n" "$CC" >&6; } |
2936 | else | | 3312 | else |
2937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | | 3313 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2938 | $as_echo "no" >&6; } | | 3314 | printf "%s\n" "no" >&6; } |
2939 | fi | | 3315 | fi |
2940 | | | 3316 | |
2941 | | | 3317 | |
2942 | test -n "$CC" && break | | 3318 | test -n "$CC" && break |
2943 | done | | 3319 | done |
2944 | fi | | 3320 | fi |
2945 | if test -z "$CC"; then | | 3321 | if test -z "$CC"; then |
2946 | ac_ct_CC=$CC | | 3322 | ac_ct_CC=$CC |
2947 | for ac_prog in cl.exe | | 3323 | for ac_prog in cl.exe |
2948 | do | | 3324 | do |
2949 | # Extract the first word of "$ac_prog", so it can be a program name with args. | | 3325 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2950 | set dummy $ac_prog; ac_word=$2 | | 3326 | set dummy $ac_prog; ac_word=$2 |
2951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | | 3327 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2952 | $as_echo_n "checking for $ac_word... " >&6; } | | 3328 | printf %s "checking for $ac_word... " >&6; } |
2953 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | | 3329 | if test ${ac_cv_prog_ac_ct_CC+y} |
2954 | $as_echo_n "(cached) " >&6 | | 3330 | then : |
2955 | else | | 3331 | printf %s "(cached) " >&6 |
| | | 3332 | else $as_nop |
2956 | if test -n "$ac_ct_CC"; then | | 3333 | if test -n "$ac_ct_CC"; then |
2957 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | | 3334 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2958 | else | | 3335 | else |
2959 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | | 3336 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2960 | for as_dir in $PATH | | 3337 | for as_dir in $PATH |
2961 | do | | 3338 | do |
2962 | IFS=$as_save_IFS | | 3339 | IFS=$as_save_IFS |
2963 | test -z "$as_dir" && as_dir=. | | 3340 | case $as_dir in #((( |
| | | 3341 | '') as_dir=./ ;; |
| | | 3342 | */) ;; |
| | | 3343 | *) as_dir=$as_dir/ ;; |
| | | 3344 | esac |
2964 | for ac_exec_ext in '' $ac_executable_extensions; do | | 3345 | for ac_exec_ext in '' $ac_executable_extensions; do |
2965 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | | 3346 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
2966 | ac_cv_prog_ac_ct_CC="$ac_prog" | | 3347 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2967 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | | 3348 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
2968 | break 2 | | 3349 | break 2 |
2969 | fi | | 3350 | fi |
2970 | done | | 3351 | done |
2971 | done | | 3352 | done |
2972 | IFS=$as_save_IFS | | 3353 | IFS=$as_save_IFS |
2973 | | | 3354 | |
2974 | fi | | 3355 | fi |
2975 | fi | | 3356 | fi |
2976 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | | 3357 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2977 | if test -n "$ac_ct_CC"; then | | 3358 | if test -n "$ac_ct_CC"; then |
2978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | | 3359 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2979 | $as_echo "$ac_ct_CC" >&6; } | | 3360 | printf "%s\n" "$ac_ct_CC" >&6; } |
2980 | else | | 3361 | else |
2981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | | 3362 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2982 | $as_echo "no" >&6; } | | 3363 | printf "%s\n" "no" >&6; } |
2983 | fi | | 3364 | fi |
2984 | | | 3365 | |
2985 | | | 3366 | |
2986 | test -n "$ac_ct_CC" && break | | 3367 | test -n "$ac_ct_CC" && break |
2987 | done | | 3368 | done |
2988 | | | 3369 | |
2989 | if test "x$ac_ct_CC" = x; then | | 3370 | if test "x$ac_ct_CC" = x; then |
2990 | CC="" | | 3371 | CC="" |
2991 | else | | 3372 | else |
2992 | case $cross_compiling:$ac_tool_warned in | | 3373 | case $cross_compiling:$ac_tool_warned in |
2993 | yes:) | | 3374 | yes:) |
2994 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | | 3375 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
2995 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | | 3376 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2996 | ac_tool_warned=yes ;; | | 3377 | ac_tool_warned=yes ;; |
2997 | esac | | 3378 | esac |
2998 | CC=$ac_ct_CC | | 3379 | CC=$ac_ct_CC |
2999 | fi | | 3380 | fi |
3000 | fi | | 3381 | fi |
3001 | | | 3382 | |
3002 | fi | | 3383 | fi |
3003 | | | 3384 | if test -z "$CC"; then |
3004 | | | 3385 | if test -n "$ac_tool_prefix"; then |
3005 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | | 3386 | # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. |
3006 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | | 3387 | set dummy ${ac_tool_prefix}clang; ac_word=$2 |
3007 | as_fn_error $? "no acceptable C compiler found in \$PATH | | 3388 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3008 | See \`config.log' for more details" "$LINENO" 5; } | | 3389 | printf %s "checking for $ac_word... " >&6; } |
3009 | | | 3390 | if test ${ac_cv_prog_CC+y} |
| | | 3391 | then : |
| | | 3392 | printf %s "(cached) " >&6 |
| | | 3393 | else $as_nop |
| | | 3394 | if test -n "$CC"; then |
| | | 3395 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| | | 3396 | else |
| | | 3397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| | | 3398 | for as_dir in $PATH |
| | | 3399 | do |
| | | 3400 | IFS=$as_save_IFS |
| | | 3401 | case $as_dir in #((( |
| | | 3402 | '') as_dir=./ ;; |
| | | 3403 | */) ;; |
| | | 3404 | *) as_dir=$as_dir/ ;; |
| | | 3405 | esac |
| | | 3406 | for ac_exec_ext in '' $ac_executable_extensions; do |
| | | 3407 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| | | 3408 | ac_cv_prog_CC="${ac_tool_prefix}clang" |
| | | 3409 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| | | 3410 | break 2 |
| | | 3411 | fi |
| | | 3412 | done |
| | | 3413 | done |
| | | 3414 | IFS=$as_save_IFS |
| | | 3415 | |
| | | 3416 | fi |
| | | 3417 | fi |
| | | 3418 | CC=$ac_cv_prog_CC |
| | | 3419 | if test -n "$CC"; then |
| | | 3420 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| | | 3421 | printf "%s\n" "$CC" >&6; } |
| | | 3422 | else |
| | | 3423 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| | | 3424 | printf "%s\n" "no" >&6; } |
| | | 3425 | fi |
| | | 3426 | |
| | | 3427 | |
| | | 3428 | fi |
| | | 3429 | if test -z "$ac_cv_prog_CC"; then |
| | | 3430 | ac_ct_CC=$CC |
| | | 3431 | # Extract the first word of "clang", so it can be a program name with args. |
| | | 3432 | set dummy clang; ac_word=$2 |
| | | 3433 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| | | 3434 | printf %s "checking for $ac_word... " >&6; } |
| | | 3435 | if test ${ac_cv_prog_ac_ct_CC+y} |
| | | 3436 | then : |
| | | 3437 | printf %s "(cached) " >&6 |
| | | 3438 | else $as_nop |
| | | 3439 | if test -n "$ac_ct_CC"; then |
| | | 3440 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| | | 3441 | else |
| | | 3442 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| | | 3443 | for as_dir in $PATH |
| | | 3444 | do |
| | | 3445 | IFS=$as_save_IFS |
| | | 3446 | case $as_dir in #((( |
| | | 3447 | '') as_dir=./ ;; |
| | | 3448 | */) ;; |
| | | 3449 | *) as_dir=$as_dir/ ;; |
| | | 3450 | esac |
| | | 3451 | for ac_exec_ext in '' $ac_executable_extensions; do |
| | | 3452 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| | | 3453 | ac_cv_prog_ac_ct_CC="clang" |
| | | 3454 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| | | 3455 | break 2 |
| | | 3456 | fi |
| | | 3457 | done |
| | | 3458 | done |
| | | 3459 | IFS=$as_save_IFS |
| | | 3460 | |
| | | 3461 | fi |
| | | 3462 | fi |
| | | 3463 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| | | 3464 | if test -n "$ac_ct_CC"; then |
| | | 3465 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| | | 3466 | printf "%s\n" "$ac_ct_CC" >&6; } |
| | | 3467 | else |
| | | 3468 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| | | 3469 | printf "%s\n" "no" >&6; } |
| | | 3470 | fi |
| | | 3471 | |
| | | 3472 | if test "x$ac_ct_CC" = x; then |
| | | 3473 | CC="" |
| | | 3474 | else |
| | | 3475 | case $cross_compiling:$ac_tool_warned in |
| | | 3476 | yes:) |
| | | 3477 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| | | 3478 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| | | 3479 | ac_tool_warned=yes ;; |
| | | 3480 | esac |
| | | 3481 | CC=$ac_ct_CC |
| | | 3482 | fi |
| | | 3483 | else |
| | | 3484 | CC="$ac_cv_prog_CC" |
| | | 3485 | fi |
| | | 3486 | |
| | | 3487 | fi |
| | | 3488 | |
| | | 3489 | |
| | | 3490 | test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| | | 3491 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| | | 3492 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| | | 3493 | See \`config.log' for more details" "$LINENO" 5; } |
| | | 3494 | |
3010 | # Provide some information about the compiler. | | 3495 | # Provide some information about the compiler. |
3011 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | | 3496 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3012 | set X $ac_compile | | 3497 | set X $ac_compile |
3013 | ac_compiler=$2 | | 3498 | ac_compiler=$2 |
3014 | for ac_option in --version -v -V -qversion; do | | 3499 | for ac_option in --version -v -V -qversion -version; do |
3015 | { { ac_try="$ac_compiler $ac_option >&5" | | 3500 | { { ac_try="$ac_compiler $ac_option >&5" |
3016 | case "(($ac_try" in | | 3501 | case "(($ac_try" in |
3017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | | 3502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3018 | *) ac_try_echo=$ac_try;; | | 3503 | *) ac_try_echo=$ac_try;; |
3019 | esac | | 3504 | esac |
3020 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | | 3505 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3021 | $as_echo "$ac_try_echo"; } >&5 | | 3506 | printf "%s\n" "$ac_try_echo"; } >&5 |
3022 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | | 3507 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
3023 | ac_status=$? | | 3508 | ac_status=$? |
3024 | if test -s conftest.err; then | | 3509 | if test -s conftest.err; then |
3025 | sed '10a\ | | 3510 | sed '10a\ |
3026 | ... rest of stderr output deleted ... | | 3511 | ... rest of stderr output deleted ... |
3027 | 10q' conftest.err >conftest.er1 | | 3512 | 10q' conftest.err >conftest.er1 |
3028 | cat conftest.er1 >&5 | | 3513 | cat conftest.er1 >&5 |
3029 | fi | | 3514 | fi |
3030 | rm -f conftest.er1 conftest.err | | 3515 | rm -f conftest.er1 conftest.err |
3031 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | | 3516 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3032 | test $ac_status = 0; } | | 3517 | test $ac_status = 0; } |
3033 | done | | 3518 | done |
3034 | | | 3519 | |
3035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 3520 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3036 | /* end confdefs.h. */ | | 3521 | /* end confdefs.h. */ |
3037 | | | 3522 | |
3038 | int | | 3523 | int |
3039 | main () | | 3524 | main (void) |
3040 | { | | 3525 | { |
3041 | | | 3526 | |
3042 | ; | | 3527 | ; |
3043 | return 0; | | 3528 | return 0; |
3044 | } | | 3529 | } |
3045 | _ACEOF | | 3530 | _ACEOF |
3046 | ac_clean_files_save=$ac_clean_files | | 3531 | ac_clean_files_save=$ac_clean_files |
3047 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | | 3532 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
3048 | # Try to create an executable without -o first, disregard a.out. | | 3533 | # Try to create an executable without -o first, disregard a.out. |
3049 | # It will help us diagnose broken compilers, and finding out an intuition | | 3534 | # It will help us diagnose broken compilers, and finding out an intuition |
3050 | # of exeext. | | 3535 | # of exeext. |
3051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | | 3536 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3052 | $as_echo_n "checking whether the C compiler works... " >&6; } | | 3537 | printf %s "checking whether the C compiler works... " >&6; } |
3053 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | | 3538 | ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3054 | | | 3539 | |
3055 | # The possible output files: | | 3540 | # The possible output files: |
3056 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | | 3541 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
3057 | | | 3542 | |
3058 | ac_rmfiles= | | 3543 | ac_rmfiles= |
3059 | for ac_file in $ac_files | | 3544 | for ac_file in $ac_files |
3060 | do | | 3545 | do |
3061 | case $ac_file in | | 3546 | case $ac_file in |
3062 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | | 3547 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
3063 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | | 3548 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3064 | esac | | 3549 | esac |
3065 | done | | 3550 | done |
3066 | rm -f $ac_rmfiles | | 3551 | rm -f $ac_rmfiles |
3067 | | | 3552 | |
3068 | if { { ac_try="$ac_link_default" | | 3553 | if { { ac_try="$ac_link_default" |
3069 | case "(($ac_try" in | | 3554 | case "(($ac_try" in |
3070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | | 3555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3071 | *) ac_try_echo=$ac_try;; | | 3556 | *) ac_try_echo=$ac_try;; |
3072 | esac | | 3557 | esac |
3073 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | | 3558 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3074 | $as_echo "$ac_try_echo"; } >&5 | | 3559 | printf "%s\n" "$ac_try_echo"; } >&5 |
3075 | (eval "$ac_link_default") 2>&5 | | 3560 | (eval "$ac_link_default") 2>&5 |
3076 | ac_status=$? | | 3561 | ac_status=$? |
3077 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | | 3562 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3078 | test $ac_status = 0; }; then : | | 3563 | test $ac_status = 0; } |
| | | 3564 | then : |
3079 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | | 3565 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3080 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | | 3566 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
3081 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | | 3567 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
3082 | # so that the user can short-circuit this test for compilers unknown to | | 3568 | # so that the user can short-circuit this test for compilers unknown to |
3083 | # Autoconf. | | 3569 | # Autoconf. |
3084 | for ac_file in $ac_files '' | | 3570 | for ac_file in $ac_files '' |
3085 | do | | 3571 | do |
3086 | test -f "$ac_file" || continue | | 3572 | test -f "$ac_file" || continue |
3087 | case $ac_file in | | 3573 | case $ac_file in |
3088 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | | 3574 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
3089 | ;; | | 3575 | ;; |
3090 | [ab].out ) | | 3576 | [ab].out ) |
3091 | # We found the default executable, but exeext='' is most | | 3577 | # We found the default executable, but exeext='' is most |
3092 | # certainly right. | | 3578 | # certainly right. |
3093 | break;; | | 3579 | break;; |
3094 | *.* ) | | 3580 | *.* ) |
3095 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | | 3581 | if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; |
3096 | then :; else | | 3582 | then :; else |
3097 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | | 3583 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3098 | fi | | 3584 | fi |
3099 | # We set ac_cv_exeext here because the later test for it is not | | 3585 | # We set ac_cv_exeext here because the later test for it is not |
3100 | # safe: cross compilers may not add the suffix if given an `-o' | | 3586 | # safe: cross compilers may not add the suffix if given an `-o' |
3101 | # argument, so we may need to know it at that point already. | | 3587 | # argument, so we may need to know it at that point already. |
3102 | # Even if this section looks crufty: it has the advantage of | | 3588 | # Even if this section looks crufty: it has the advantage of |
3103 | # actually working. | | 3589 | # actually working. |
3104 | break;; | | 3590 | break;; |
3105 | * ) | | 3591 | * ) |
3106 | break;; | | 3592 | break;; |
3107 | esac | | 3593 | esac |
3108 | done | | 3594 | done |
3109 | test "$ac_cv_exeext" = no && ac_cv_exeext= | | 3595 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3110 | | | 3596 | |
3111 | else | | 3597 | else $as_nop |
3112 | ac_file='' | | 3598 | ac_file='' |
3113 | fi | | 3599 | fi |
3114 | if test -z "$ac_file"; then : | | 3600 | if test -z "$ac_file" |
3115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | | 3601 | then : |
3116 | $as_echo "no" >&6; } | | 3602 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3117 | $as_echo "$as_me: failed program was:" >&5 | | 3603 | printf "%s\n" "no" >&6; } |
| | | 3604 | printf "%s\n" "$as_me: failed program was:" >&5 |
3118 | sed 's/^/| /' conftest.$ac_ext >&5 | | 3605 | sed 's/^/| /' conftest.$ac_ext >&5 |
3119 | | | 3606 | |
3120 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | | 3607 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3121 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | | 3608 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
3122 | as_fn_error 77 "C compiler cannot create executables | | 3609 | as_fn_error 77 "C compiler cannot create executables |
3123 | See \`config.log' for more details" "$LINENO" 5; } | | 3610 | See \`config.log' for more details" "$LINENO" 5; } |
3124 | else | | 3611 | else $as_nop |
3125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | | 3612 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3126 | $as_echo "yes" >&6; } | | 3613 | printf "%s\n" "yes" >&6; } |
3127 | fi | | 3614 | fi |
3128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | | 3615 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3129 | $as_echo_n "checking for C compiler default output file name... " >&6; } | | 3616 | printf %s "checking for C compiler default output file name... " >&6; } |
3130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | | 3617 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
3131 | $as_echo "$ac_file" >&6; } | | 3618 | printf "%s\n" "$ac_file" >&6; } |
3132 | ac_exeext=$ac_cv_exeext | | 3619 | ac_exeext=$ac_cv_exeext |
3133 | | | 3620 | |
3134 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | | 3621 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
3135 | ac_clean_files=$ac_clean_files_save | | 3622 | ac_clean_files=$ac_clean_files_save |
3136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | | 3623 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3137 | $as_echo_n "checking for suffix of executables... " >&6; } | | 3624 | printf %s "checking for suffix of executables... " >&6; } |
3138 | if { { ac_try="$ac_link" | | 3625 | if { { ac_try="$ac_link" |
3139 | case "(($ac_try" in | | 3626 | case "(($ac_try" in |
3140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | | 3627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3141 | *) ac_try_echo=$ac_try;; | | 3628 | *) ac_try_echo=$ac_try;; |
3142 | esac | | 3629 | esac |
3143 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | | 3630 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3144 | $as_echo "$ac_try_echo"; } >&5 | | 3631 | printf "%s\n" "$ac_try_echo"; } >&5 |
3145 | (eval "$ac_link") 2>&5 | | 3632 | (eval "$ac_link") 2>&5 |
3146 | ac_status=$? | | 3633 | ac_status=$? |
3147 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | | 3634 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3148 | test $ac_status = 0; }; then : | | 3635 | test $ac_status = 0; } |
| | | 3636 | then : |
3149 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | | 3637 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3150 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | | 3638 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
3151 | # work properly (i.e., refer to `conftest.exe'), while it won't with | | 3639 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
3152 | # `rm'. | | 3640 | # `rm'. |
3153 | for ac_file in conftest.exe conftest conftest.*; do | | 3641 | for ac_file in conftest.exe conftest conftest.*; do |
3154 | test -f "$ac_file" || continue | | 3642 | test -f "$ac_file" || continue |
3155 | case $ac_file in | | 3643 | case $ac_file in |
3156 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | | 3644 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
3157 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | | 3645 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3158 | break;; | | 3646 | break;; |
3159 | * ) break;; | | 3647 | * ) break;; |
3160 | esac | | 3648 | esac |
3161 | done | | 3649 | done |
3162 | else | | 3650 | else $as_nop |
3163 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | | 3651 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3164 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | | 3652 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
3165 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | | 3653 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3166 | See \`config.log' for more details" "$LINENO" 5; } | | 3654 | See \`config.log' for more details" "$LINENO" 5; } |
3167 | fi | | 3655 | fi |
3168 | rm -f conftest conftest$ac_cv_exeext | | 3656 | rm -f conftest conftest$ac_cv_exeext |
3169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | | 3657 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3170 | $as_echo "$ac_cv_exeext" >&6; } | | 3658 | printf "%s\n" "$ac_cv_exeext" >&6; } |
3171 | | | 3659 | |
3172 | rm -f conftest.$ac_ext | | 3660 | rm -f conftest.$ac_ext |
3173 | EXEEXT=$ac_cv_exeext | | 3661 | EXEEXT=$ac_cv_exeext |
3174 | ac_exeext=$EXEEXT | | 3662 | ac_exeext=$EXEEXT |
3175 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 3663 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3176 | /* end confdefs.h. */ | | 3664 | /* end confdefs.h. */ |
3177 | #include <stdio.h> | | 3665 | #include <stdio.h> |
3178 | int | | 3666 | int |
3179 | main () | | 3667 | main (void) |
3180 | { | | 3668 | { |
3181 | FILE *f = fopen ("conftest.out", "w"); | | 3669 | FILE *f = fopen ("conftest.out", "w"); |
3182 | return ferror (f) || fclose (f) != 0; | | 3670 | return ferror (f) || fclose (f) != 0; |
3183 | | | 3671 | |
3184 | ; | | 3672 | ; |
3185 | return 0; | | 3673 | return 0; |
3186 | } | | 3674 | } |
3187 | _ACEOF | | 3675 | _ACEOF |
3188 | ac_clean_files="$ac_clean_files conftest.out" | | 3676 | ac_clean_files="$ac_clean_files conftest.out" |
3189 | # Check that the compiler produces executables we can run. If not, either | | 3677 | # Check that the compiler produces executables we can run. If not, either |
3190 | # the compiler is broken, or we cross compile. | | 3678 | # the compiler is broken, or we cross compile. |
3191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | | 3679 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
3192 | $as_echo_n "checking whether we are cross compiling... " >&6; } | | 3680 | printf %s "checking whether we are cross compiling... " >&6; } |
3193 | if test "$cross_compiling" != yes; then | | 3681 | if test "$cross_compiling" != yes; then |
3194 | { { ac_try="$ac_link" | | 3682 | { { ac_try="$ac_link" |
3195 | case "(($ac_try" in | | 3683 | case "(($ac_try" in |
3196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | | 3684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3197 | *) ac_try_echo=$ac_try;; | | 3685 | *) ac_try_echo=$ac_try;; |
3198 | esac | | 3686 | esac |
3199 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | | 3687 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3200 | $as_echo "$ac_try_echo"; } >&5 | | 3688 | printf "%s\n" "$ac_try_echo"; } >&5 |
3201 | (eval "$ac_link") 2>&5 | | 3689 | (eval "$ac_link") 2>&5 |
3202 | ac_status=$? | | 3690 | ac_status=$? |
3203 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | | 3691 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3204 | test $ac_status = 0; } | | 3692 | test $ac_status = 0; } |
3205 | if { ac_try='./conftest$ac_cv_exeext' | | 3693 | if { ac_try='./conftest$ac_cv_exeext' |
3206 | { { case "(($ac_try" in | | 3694 | { { case "(($ac_try" in |
3207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | | 3695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3208 | *) ac_try_echo=$ac_try;; | | 3696 | *) ac_try_echo=$ac_try;; |
3209 | esac | | 3697 | esac |
3210 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | | 3698 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3211 | $as_echo "$ac_try_echo"; } >&5 | | 3699 | printf "%s\n" "$ac_try_echo"; } >&5 |
3212 | (eval "$ac_try") 2>&5 | | 3700 | (eval "$ac_try") 2>&5 |
3213 | ac_status=$? | | 3701 | ac_status=$? |
3214 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | | 3702 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3215 | test $ac_status = 0; }; }; then | | 3703 | test $ac_status = 0; }; }; then |
3216 | cross_compiling=no | | 3704 | cross_compiling=no |
3217 | else | | 3705 | else |
3218 | if test "$cross_compiling" = maybe; then | | 3706 | if test "$cross_compiling" = maybe; then |
3219 | cross_compiling=yes | | 3707 | cross_compiling=yes |
3220 | else | | 3708 | else |
3221 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | | 3709 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3222 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | | 3710 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
3223 | as_fn_error $? "cannot run C compiled programs. | | 3711 | as_fn_error 77 "cannot run C compiled programs. |
3224 | If you meant to cross compile, use \`--host'. | | 3712 | If you meant to cross compile, use \`--host'. |
3225 | See \`config.log' for more details" "$LINENO" 5; } | | 3713 | See \`config.log' for more details" "$LINENO" 5; } |
3226 | fi | | 3714 | fi |
3227 | fi | | 3715 | fi |
3228 | fi | | 3716 | fi |
3229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | | 3717 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
3230 | $as_echo "$cross_compiling" >&6; } | | 3718 | printf "%s\n" "$cross_compiling" >&6; } |
3231 | | | 3719 | |
3232 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | | 3720 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
3233 | ac_clean_files=$ac_clean_files_save | | 3721 | ac_clean_files=$ac_clean_files_save |
3234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | | 3722 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3235 | $as_echo_n "checking for suffix of object files... " >&6; } | | 3723 | printf %s "checking for suffix of object files... " >&6; } |
3236 | if ${ac_cv_objext+:} false; then : | | 3724 | if test ${ac_cv_objext+y} |
3237 | $as_echo_n "(cached) " >&6 | | 3725 | then : |
3238 | else | | 3726 | printf %s "(cached) " >&6 |
| | | 3727 | else $as_nop |
3239 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 3728 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3240 | /* end confdefs.h. */ | | 3729 | /* end confdefs.h. */ |
3241 | | | 3730 | |
3242 | int | | 3731 | int |
3243 | main () | | 3732 | main (void) |
3244 | { | | 3733 | { |
3245 | | | 3734 | |
3246 | ; | | 3735 | ; |
3247 | return 0; | | 3736 | return 0; |
3248 | } | | 3737 | } |
3249 | _ACEOF | | 3738 | _ACEOF |
3250 | rm -f conftest.o conftest.obj | | 3739 | rm -f conftest.o conftest.obj |
3251 | if { { ac_try="$ac_compile" | | 3740 | if { { ac_try="$ac_compile" |
3252 | case "(($ac_try" in | | 3741 | case "(($ac_try" in |
3253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | | 3742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3254 | *) ac_try_echo=$ac_try;; | | 3743 | *) ac_try_echo=$ac_try;; |
3255 | esac | | 3744 | esac |
3256 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | | 3745 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3257 | $as_echo "$ac_try_echo"; } >&5 | | 3746 | printf "%s\n" "$ac_try_echo"; } >&5 |
3258 | (eval "$ac_compile") 2>&5 | | 3747 | (eval "$ac_compile") 2>&5 |
3259 | ac_status=$? | | 3748 | ac_status=$? |
3260 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | | 3749 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3261 | test $ac_status = 0; }; then : | | 3750 | test $ac_status = 0; } |
| | | 3751 | then : |
3262 | for ac_file in conftest.o conftest.obj conftest.*; do | | 3752 | for ac_file in conftest.o conftest.obj conftest.*; do |
3263 | test -f "$ac_file" || continue; | | 3753 | test -f "$ac_file" || continue; |
3264 | case $ac_file in | | 3754 | case $ac_file in |
3265 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | | 3755 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
3266 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | | 3756 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3267 | break;; | | 3757 | break;; |
3268 | esac | | 3758 | esac |
3269 | done | | 3759 | done |
3270 | else | | 3760 | else $as_nop |
3271 | $as_echo "$as_me: failed program was:" >&5 | | 3761 | printf "%s\n" "$as_me: failed program was:" >&5 |
3272 | sed 's/^/| /' conftest.$ac_ext >&5 | | 3762 | sed 's/^/| /' conftest.$ac_ext >&5 |
3273 | | | 3763 | |
3274 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | | 3764 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3275 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | | 3765 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
3276 | as_fn_error $? "cannot compute suffix of object files: cannot compile | | 3766 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3277 | See \`config.log' for more details" "$LINENO" 5; } | | 3767 | See \`config.log' for more details" "$LINENO" 5; } |
3278 | fi | | 3768 | fi |
3279 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | | 3769 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3280 | fi | | 3770 | fi |
3281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | | 3771 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3282 | $as_echo "$ac_cv_objext" >&6; } | | 3772 | printf "%s\n" "$ac_cv_objext" >&6; } |
3283 | OBJEXT=$ac_cv_objext | | 3773 | OBJEXT=$ac_cv_objext |
3284 | ac_objext=$OBJEXT | | 3774 | ac_objext=$OBJEXT |
3285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | | 3775 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 |
3286 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | | 3776 | printf %s "checking whether the compiler supports GNU C... " >&6; } |
3287 | if ${ac_cv_c_compiler_gnu+:} false; then : | | 3777 | if test ${ac_cv_c_compiler_gnu+y} |
3288 | $as_echo_n "(cached) " >&6 | | 3778 | then : |
3289 | else | | 3779 | printf %s "(cached) " >&6 |
| | | 3780 | else $as_nop |
3290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 3781 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3291 | /* end confdefs.h. */ | | 3782 | /* end confdefs.h. */ |
3292 | | | 3783 | |
3293 | int | | 3784 | int |
3294 | main () | | 3785 | main (void) |
3295 | { | | 3786 | { |
3296 | #ifndef __GNUC__ | | 3787 | #ifndef __GNUC__ |
3297 | choke me | | 3788 | choke me |
3298 | #endif | | 3789 | #endif |
3299 | | | 3790 | |
3300 | ; | | 3791 | ; |
3301 | return 0; | | 3792 | return 0; |
3302 | } | | 3793 | } |
3303 | _ACEOF | | 3794 | _ACEOF |
3304 | if ac_fn_c_try_compile "$LINENO"; then : | | 3795 | if ac_fn_c_try_compile "$LINENO" |
| | | 3796 | then : |
3305 | ac_compiler_gnu=yes | | 3797 | ac_compiler_gnu=yes |
3306 | else | | 3798 | else $as_nop |
3307 | ac_compiler_gnu=no | | 3799 | ac_compiler_gnu=no |
3308 | fi | | 3800 | fi |
3309 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 3801 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
3310 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | | 3802 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3311 | | | 3803 | |
3312 | fi | | 3804 | fi |
3313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | | 3805 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3314 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | | 3806 | printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } |
| | | 3807 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| | | 3808 | |
3315 | if test $ac_compiler_gnu = yes; then | | 3809 | if test $ac_compiler_gnu = yes; then |
3316 | GCC=yes | | 3810 | GCC=yes |
3317 | else | | 3811 | else |
3318 | GCC= | | 3812 | GCC= |
3319 | fi | | 3813 | fi |
3320 | ac_test_CFLAGS=${CFLAGS+set} | | 3814 | ac_test_CFLAGS=${CFLAGS+y} |
3321 | ac_save_CFLAGS=$CFLAGS | | 3815 | ac_save_CFLAGS=$CFLAGS |
3322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | | 3816 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3323 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | | 3817 | printf %s "checking whether $CC accepts -g... " >&6; } |
3324 | if ${ac_cv_prog_cc_g+:} false; then : | | 3818 | if test ${ac_cv_prog_cc_g+y} |
3325 | $as_echo_n "(cached) " >&6 | | 3819 | then : |
3326 | else | | 3820 | printf %s "(cached) " >&6 |
| | | 3821 | else $as_nop |
3327 | ac_save_c_werror_flag=$ac_c_werror_flag | | 3822 | ac_save_c_werror_flag=$ac_c_werror_flag |
3328 | ac_c_werror_flag=yes | | 3823 | ac_c_werror_flag=yes |
3329 | ac_cv_prog_cc_g=no | | 3824 | ac_cv_prog_cc_g=no |
3330 | CFLAGS="-g" | | 3825 | CFLAGS="-g" |
3331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 3826 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3332 | /* end confdefs.h. */ | | 3827 | /* end confdefs.h. */ |
3333 | | | 3828 | |
3334 | int | | 3829 | int |
3335 | main () | | 3830 | main (void) |
3336 | { | | 3831 | { |
3337 | | | 3832 | |
3338 | ; | | 3833 | ; |
3339 | return 0; | | 3834 | return 0; |
3340 | } | | 3835 | } |
3341 | _ACEOF | | 3836 | _ACEOF |
3342 | if ac_fn_c_try_compile "$LINENO"; then : | | 3837 | if ac_fn_c_try_compile "$LINENO" |
| | | 3838 | then : |
3343 | ac_cv_prog_cc_g=yes | | 3839 | ac_cv_prog_cc_g=yes |
3344 | else | | 3840 | else $as_nop |
3345 | CFLAGS="" | | 3841 | CFLAGS="" |
3346 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 3842 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3347 | /* end confdefs.h. */ | | 3843 | /* end confdefs.h. */ |
3348 | | | 3844 | |
3349 | int | | 3845 | int |
3350 | main () | | 3846 | main (void) |
3351 | { | | 3847 | { |
3352 | | | 3848 | |
3353 | ; | | 3849 | ; |
3354 | return 0; | | 3850 | return 0; |
3355 | } | | 3851 | } |
3356 | _ACEOF | | 3852 | _ACEOF |
3357 | if ac_fn_c_try_compile "$LINENO"; then : | | 3853 | if ac_fn_c_try_compile "$LINENO" |
| | | 3854 | then : |
3358 | | | 3855 | |
3359 | else | | 3856 | else $as_nop |
3360 | ac_c_werror_flag=$ac_save_c_werror_flag | | 3857 | ac_c_werror_flag=$ac_save_c_werror_flag |
3361 | CFLAGS="-g" | | 3858 | CFLAGS="-g" |
3362 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 3859 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3363 | /* end confdefs.h. */ | | 3860 | /* end confdefs.h. */ |
3364 | | | 3861 | |
3365 | int | | 3862 | int |
3366 | main () | | 3863 | main (void) |
3367 | { | | 3864 | { |
3368 | | | 3865 | |
3369 | ; | | 3866 | ; |
3370 | return 0; | | 3867 | return 0; |
3371 | } | | 3868 | } |
3372 | _ACEOF | | 3869 | _ACEOF |
3373 | if ac_fn_c_try_compile "$LINENO"; then : | | 3870 | if ac_fn_c_try_compile "$LINENO" |
| | | 3871 | then : |
3374 | ac_cv_prog_cc_g=yes | | 3872 | ac_cv_prog_cc_g=yes |
3375 | fi | | 3873 | fi |
3376 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 3874 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
3377 | fi | | 3875 | fi |
3378 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 3876 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
3379 | fi | | 3877 | fi |
3380 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 3878 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
3381 | ac_c_werror_flag=$ac_save_c_werror_flag | | 3879 | ac_c_werror_flag=$ac_save_c_werror_flag |
3382 | fi | | 3880 | fi |
3383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | | 3881 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3384 | $as_echo "$ac_cv_prog_cc_g" >&6; } | | 3882 | printf "%s\n" "$ac_cv_prog_cc_g" >&6; } |
3385 | if test "$ac_test_CFLAGS" = set; then | | 3883 | if test $ac_test_CFLAGS; then |
3386 | CFLAGS=$ac_save_CFLAGS | | 3884 | CFLAGS=$ac_save_CFLAGS |
3387 | elif test $ac_cv_prog_cc_g = yes; then | | 3885 | elif test $ac_cv_prog_cc_g = yes; then |
3388 | if test "$GCC" = yes; then | | 3886 | if test "$GCC" = yes; then |
3389 | CFLAGS="-g -O2" | | 3887 | CFLAGS="-g -O2" |
3390 | else | | 3888 | else |
3391 | CFLAGS="-g" | | 3889 | CFLAGS="-g" |
3392 | fi | | 3890 | fi |
3393 | else | | 3891 | else |
3394 | if test "$GCC" = yes; then | | 3892 | if test "$GCC" = yes; then |
3395 | CFLAGS="-O2" | | 3893 | CFLAGS="-O2" |
3396 | else | | 3894 | else |
3397 | CFLAGS= | | 3895 | CFLAGS= |
3398 | fi | | 3896 | fi |
3399 | fi | | 3897 | fi |
3400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | | 3898 | ac_prog_cc_stdc=no |
3401 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | | 3899 | if test x$ac_prog_cc_stdc = xno |
3402 | if ${ac_cv_prog_cc_c89+:} false; then : | | 3900 | then : |
3403 | $as_echo_n "(cached) " >&6 | | 3901 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 |
3404 | else | | 3902 | printf %s "checking for $CC option to enable C11 features... " >&6; } |
3405 | ac_cv_prog_cc_c89=no | | 3903 | if test ${ac_cv_prog_cc_c11+y} |
| | | 3904 | then : |
| | | 3905 | printf %s "(cached) " >&6 |
| | | 3906 | else $as_nop |
| | | 3907 | ac_cv_prog_cc_c11=no |
3406 | ac_save_CC=$CC | | 3908 | ac_save_CC=$CC |
3407 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 3909 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3408 | /* end confdefs.h. */ | | 3910 | /* end confdefs.h. */ |
3409 | #include <stdarg.h> | | 3911 | $ac_c_conftest_c11_program |
3410 | #include <stdio.h> | | 3912 | _ACEOF |
3411 | struct stat; | | 3913 | for ac_arg in '' -std=gnu11 |
3412 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | | 3914 | do |
3413 | struct buf { int x; }; | | 3915 | CC="$ac_save_CC $ac_arg" |
3414 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | | 3916 | if ac_fn_c_try_compile "$LINENO" |
3415 | static char *e (p, i) | | 3917 | then : |
3416 | char **p; | | 3918 | ac_cv_prog_cc_c11=$ac_arg |
3417 | int i; | | 3919 | fi |
3418 | { | | 3920 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
3419 | return p[i]; | | 3921 | test "x$ac_cv_prog_cc_c11" != "xno" && break |
3420 | } | | 3922 | done |
3421 | static char *f (char * (*g) (char **, int), char **p, ...) | | 3923 | rm -f conftest.$ac_ext |
3422 | { | | 3924 | CC=$ac_save_CC |
3423 | char *s; | | 3925 | fi |
3424 | va_list v; | | | |
3425 | va_start (v,p); | | | |
3426 | s = g (p, va_arg (v,int)); | | | |
3427 | va_end (v); | | | |
3428 | return s; | | | |
3429 | } | | | |
3430 | | | | |
3431 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | | | |
3432 | function prototypes and stuff, but not '\xHH' hex character constants. | | | |
3433 | These don't provoke an error unfortunately, instead are silently treated | | | |
3434 | as 'x'. The following induces an error, until -std is added to get | | | |
3435 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | | | |
3436 | array size at least. It's necessary to write '\x00'==0 to get something | | | |
3437 | that's true only with -std. */ | | | |
3438 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | | | |
3439 | | | 3926 | |
3440 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | | 3927 | if test "x$ac_cv_prog_cc_c11" = xno |
3441 | inside strings and character constants. */ | | 3928 | then : |
3442 | #define FOO(x) 'x' | | 3929 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
3443 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | | 3930 | printf "%s\n" "unsupported" >&6; } |
| | | 3931 | else $as_nop |
| | | 3932 | if test "x$ac_cv_prog_cc_c11" = x |
| | | 3933 | then : |
| | | 3934 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| | | 3935 | printf "%s\n" "none needed" >&6; } |
| | | 3936 | else $as_nop |
| | | 3937 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 |
| | | 3938 | printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } |
| | | 3939 | CC="$CC $ac_cv_prog_cc_c11" |
| | | 3940 | fi |
| | | 3941 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 |
| | | 3942 | ac_prog_cc_stdc=c11 |
| | | 3943 | fi |
| | | 3944 | fi |
| | | 3945 | if test x$ac_prog_cc_stdc = xno |
| | | 3946 | then : |
| | | 3947 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 |
| | | 3948 | printf %s "checking for $CC option to enable C99 features... " >&6; } |
| | | 3949 | if test ${ac_cv_prog_cc_c99+y} |
| | | 3950 | then : |
| | | 3951 | printf %s "(cached) " >&6 |
| | | 3952 | else $as_nop |
| | | 3953 | ac_cv_prog_cc_c99=no |
| | | 3954 | ac_save_CC=$CC |
| | | 3955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| | | 3956 | /* end confdefs.h. */ |
| | | 3957 | $ac_c_conftest_c99_program |
| | | 3958 | _ACEOF |
| | | 3959 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= |
| | | 3960 | do |
| | | 3961 | CC="$ac_save_CC $ac_arg" |
| | | 3962 | if ac_fn_c_try_compile "$LINENO" |
| | | 3963 | then : |
| | | 3964 | ac_cv_prog_cc_c99=$ac_arg |
| | | 3965 | fi |
| | | 3966 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| | | 3967 | test "x$ac_cv_prog_cc_c99" != "xno" && break |
| | | 3968 | done |
| | | 3969 | rm -f conftest.$ac_ext |
| | | 3970 | CC=$ac_save_CC |
| | | 3971 | fi |
3444 | | | 3972 | |
3445 | int test (int i, double x); | | 3973 | if test "x$ac_cv_prog_cc_c99" = xno |
3446 | struct s1 {int (*f) (int a);}; | | 3974 | then : |
3447 | struct s2 {int (*f) (double a);}; | | 3975 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
3448 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | | 3976 | printf "%s\n" "unsupported" >&6; } |
3449 | int argc; | | 3977 | else $as_nop |
3450 | char **argv; | | 3978 | if test "x$ac_cv_prog_cc_c99" = x |
3451 | int | | 3979 | then : |
3452 | main () | | 3980 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
3453 | { | | 3981 | printf "%s\n" "none needed" >&6; } |
3454 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | | 3982 | else $as_nop |
3455 | ; | | 3983 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
3456 | return 0; | | 3984 | printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } |
3457 | } | | 3985 | CC="$CC $ac_cv_prog_cc_c99" |
| | | 3986 | fi |
| | | 3987 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
| | | 3988 | ac_prog_cc_stdc=c99 |
| | | 3989 | fi |
| | | 3990 | fi |
| | | 3991 | if test x$ac_prog_cc_stdc = xno |
| | | 3992 | then : |
| | | 3993 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 |
| | | 3994 | printf %s "checking for $CC option to enable C89 features... " >&6; } |
| | | 3995 | if test ${ac_cv_prog_cc_c89+y} |
| | | 3996 | then : |
| | | 3997 | printf %s "(cached) " >&6 |
| | | 3998 | else $as_nop |
| | | 3999 | ac_cv_prog_cc_c89=no |
| | | 4000 | ac_save_CC=$CC |
| | | 4001 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| | | 4002 | /* end confdefs.h. */ |
| | | 4003 | $ac_c_conftest_c89_program |
3458 | _ACEOF | | 4004 | _ACEOF |
3459 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | | 4005 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
3460 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | | | |
3461 | do | | 4006 | do |
3462 | CC="$ac_save_CC $ac_arg" | | 4007 | CC="$ac_save_CC $ac_arg" |
3463 | if ac_fn_c_try_compile "$LINENO"; then : | | 4008 | if ac_fn_c_try_compile "$LINENO" |
| | | 4009 | then : |
3464 | ac_cv_prog_cc_c89=$ac_arg | | 4010 | ac_cv_prog_cc_c89=$ac_arg |
3465 | fi | | 4011 | fi |
3466 | rm -f core conftest.err conftest.$ac_objext | | 4012 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
3467 | test "x$ac_cv_prog_cc_c89" != "xno" && break | | 4013 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
3468 | done | | 4014 | done |
3469 | rm -f conftest.$ac_ext | | 4015 | rm -f conftest.$ac_ext |
3470 | CC=$ac_save_CC | | 4016 | CC=$ac_save_CC |
3471 | | | | |
3472 | fi | | 4017 | fi |
3473 | # AC_CACHE_VAL | | | |
3474 | case "x$ac_cv_prog_cc_c89" in | | | |
3475 | x) | | | |
3476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | | | |
3477 | $as_echo "none needed" >&6; } ;; | | | |
3478 | xno) | | | |
3479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | | | |
3480 | $as_echo "unsupported" >&6; } ;; | | | |
3481 | *) | | | |
3482 | CC="$CC $ac_cv_prog_cc_c89" | | | |
3483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | | | |
3484 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | | | |
3485 | esac | | | |
3486 | if test "x$ac_cv_prog_cc_c89" != xno; then : | | | |
3487 | | | 4018 | |
| | | 4019 | if test "x$ac_cv_prog_cc_c89" = xno |
| | | 4020 | then : |
| | | 4021 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| | | 4022 | printf "%s\n" "unsupported" >&6; } |
| | | 4023 | else $as_nop |
| | | 4024 | if test "x$ac_cv_prog_cc_c89" = x |
| | | 4025 | then : |
| | | 4026 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| | | 4027 | printf "%s\n" "none needed" >&6; } |
| | | 4028 | else $as_nop |
| | | 4029 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| | | 4030 | printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } |
| | | 4031 | CC="$CC $ac_cv_prog_cc_c89" |
| | | 4032 | fi |
| | | 4033 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
| | | 4034 | ac_prog_cc_stdc=c89 |
| | | 4035 | fi |
3488 | fi | | 4036 | fi |
3489 | | | 4037 | |
3490 | ac_ext=c | | 4038 | ac_ext=c |
3491 | ac_cpp='$CPP $CPPFLAGS' | | 4039 | ac_cpp='$CPP $CPPFLAGS' |
3492 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | | 4040 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3493 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | | 4041 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3494 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | | 4042 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3495 | | | 4043 | |
3496 | | | 4044 | |
3497 | ac_ext=c | | 4045 | ac_header= ac_cache= |
3498 | ac_cpp='$CPP $CPPFLAGS' | | 4046 | for ac_item in $ac_header_c_list |
3499 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | | | |
3500 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | | | |
3501 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | | | |
3502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | | | |
3503 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | | | |
3504 | # On Suns, sometimes $CPP names a directory. | | | |
3505 | if test -n "$CPP" && test -d "$CPP"; then | | | |
3506 | CPP= | | | |
3507 | fi | | | |
3508 | if test -z "$CPP"; then | | | |
3509 | if ${ac_cv_prog_CPP+:} false; then : | | | |
3510 | $as_echo_n "(cached) " >&6 | | | |
3511 | else | | | |
3512 | # Double quotes because CPP needs to be expanded | | | |
3513 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | | | |
3514 | do | | | |
3515 | ac_preproc_ok=false | | | |
3516 | for ac_c_preproc_warn_flag in '' yes | | | |
3517 | do | | 4047 | do |
3518 | # Use a header file that comes with gcc, so configuring glibc | | 4048 | if test $ac_cache; then |
3519 | # with a fresh cross-compiler works. | | 4049 | ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" |
3520 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | | 4050 | if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then |
3521 | # <limits.h> exists even on freestanding compilers. | | 4051 | printf "%s\n" "#define $ac_item 1" >> confdefs.h |
3522 | # On the NeXT, cc -E runs the code through the compiler's parser, | | 4052 | fi |
3523 | # not just through cpp. "Syntax error" is here to catch this case. | | 4053 | ac_header= ac_cache= |
3524 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 4054 | elif test $ac_header; then |
3525 | /* end confdefs.h. */ | | 4055 | ac_cache=$ac_item |
3526 | #ifdef __STDC__ | | 4056 | else |
3527 | # include <limits.h> | | 4057 | ac_header=$ac_item |
3528 | #else | | 4058 | fi |
3529 | # include <assert.h> | | 4059 | done |
3530 | #endif | | 4060 | |
3531 | Syntax error | | 4061 | |
3532 | _ACEOF | | 4062 | |
3533 | if ac_fn_c_try_cpp "$LINENO"; then : | | 4063 | |
| | | 4064 | |
| | | 4065 | |
| | | 4066 | |
| | | 4067 | |
| | | 4068 | if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes |
| | | 4069 | then : |
| | | 4070 | |
| | | 4071 | printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h |
3534 | | | 4072 | |
3535 | else | | | |
3536 | # Broken: fails on valid input. | | | |
3537 | continue | | | |
3538 | fi | | 4073 | fi |
3539 | rm -f conftest.err conftest.i conftest.$ac_ext | | | |
3540 | | | 4074 | |
3541 | # OK, works on sane cases. Now check whether nonexistent headers | | 4075 | |
3542 | # can be detected and how. | | 4076 | |
| | | 4077 | |
| | | 4078 | |
| | | 4079 | |
| | | 4080 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
| | | 4081 | printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
| | | 4082 | if test ${ac_cv_safe_to_define___extensions__+y} |
| | | 4083 | then : |
| | | 4084 | printf %s "(cached) " >&6 |
| | | 4085 | else $as_nop |
3543 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 4086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3544 | /* end confdefs.h. */ | | 4087 | /* end confdefs.h. */ |
3545 | #include <ac_nonexistent.h> | | | |
3546 | _ACEOF | | | |
3547 | if ac_fn_c_try_cpp "$LINENO"; then : | | | |
3548 | # Broken: success on invalid input. | | | |
3549 | continue | | | |
3550 | else | | | |
3551 | # Passes both tests. | | | |
3552 | ac_preproc_ok=: | | | |
3553 | break | | | |
3554 | fi | | | |
3555 | rm -f conftest.err conftest.i conftest.$ac_ext | | | |
3556 | | | | |
3557 | done | | | |
3558 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | | | |
3559 | rm -f conftest.i conftest.err conftest.$ac_ext | | | |
3560 | if $ac_preproc_ok; then : | | | |
3561 | break | | | |
3562 | fi | | | |
3563 | | | 4088 | |
3564 | done | | 4089 | # define __EXTENSIONS__ 1 |
3565 | ac_cv_prog_CPP=$CPP | | 4090 | $ac_includes_default |
| | | 4091 | int |
| | | 4092 | main (void) |
| | | 4093 | { |
3566 | | | 4094 | |
| | | 4095 | ; |
| | | 4096 | return 0; |
| | | 4097 | } |
| | | 4098 | _ACEOF |
| | | 4099 | if ac_fn_c_try_compile "$LINENO" |
| | | 4100 | then : |
| | | 4101 | ac_cv_safe_to_define___extensions__=yes |
| | | 4102 | else $as_nop |
| | | 4103 | ac_cv_safe_to_define___extensions__=no |
3567 | fi | | 4104 | fi |
3568 | CPP=$ac_cv_prog_CPP | | 4105 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
3569 | else | | | |
3570 | ac_cv_prog_CPP=$CPP | | | |
3571 | fi | | 4106 | fi |
3572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | | 4107 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
3573 | $as_echo "$CPP" >&6; } | | 4108 | printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } |
3574 | ac_preproc_ok=false | | 4109 | |
3575 | for ac_c_preproc_warn_flag in '' yes | | 4110 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 |
3576 | do | | 4111 | printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } |
3577 | # Use a header file that comes with gcc, so configuring glibc | | 4112 | if test ${ac_cv_should_define__xopen_source+y} |
3578 | # with a fresh cross-compiler works. | | 4113 | then : |
3579 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | | 4114 | printf %s "(cached) " >&6 |
3580 | # <limits.h> exists even on freestanding compilers. | | 4115 | else $as_nop |
3581 | # On the NeXT, cc -E runs the code through the compiler's parser, | | 4116 | ac_cv_should_define__xopen_source=no |
3582 | # not just through cpp. "Syntax error" is here to catch this case. | | 4117 | if test $ac_cv_header_wchar_h = yes |
| | | 4118 | then : |
3583 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 4119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3584 | /* end confdefs.h. */ | | 4120 | /* end confdefs.h. */ |
3585 | #ifdef __STDC__ | | | |
3586 | # include <limits.h> | | | |
3587 | #else | | | |
3588 | # include <assert.h> | | | |
3589 | #endif | | | |
3590 | Syntax error | | | |
3591 | _ACEOF | | | |
3592 | if ac_fn_c_try_cpp "$LINENO"; then : | | | |
3593 | | | 4121 | |
3594 | else | | 4122 | #include <wchar.h> |
3595 | # Broken: fails on valid input. | | 4123 | mbstate_t x; |
3596 | continue | | 4124 | int |
3597 | fi | | 4125 | main (void) |
3598 | rm -f conftest.err conftest.i conftest.$ac_ext | | 4126 | { |
3599 | | | 4127 | |
3600 | # OK, works on sane cases. Now check whether nonexistent headers | | 4128 | ; |
3601 | # can be detected and how. | | 4129 | return 0; |
| | | 4130 | } |
| | | 4131 | _ACEOF |
| | | 4132 | if ac_fn_c_try_compile "$LINENO" |
| | | 4133 | then : |
| | | 4134 | |
| | | 4135 | else $as_nop |
3602 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 4136 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3603 | /* end confdefs.h. */ | | 4137 | /* end confdefs.h. */ |
3604 | #include <ac_nonexistent.h> | | 4138 | |
| | | 4139 | #define _XOPEN_SOURCE 500 |
| | | 4140 | #include <wchar.h> |
| | | 4141 | mbstate_t x; |
| | | 4142 | int |
| | | 4143 | main (void) |
| | | 4144 | { |
| | | 4145 | |
| | | 4146 | ; |
| | | 4147 | return 0; |
| | | 4148 | } |
3605 | _ACEOF | | 4149 | _ACEOF |
3606 | if ac_fn_c_try_cpp "$LINENO"; then : | | 4150 | if ac_fn_c_try_compile "$LINENO" |
3607 | # Broken: success on invalid input. | | 4151 | then : |
3608 | continue | | 4152 | ac_cv_should_define__xopen_source=yes |
3609 | else | | 4153 | fi |
3610 | # Passes both tests. | | 4154 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
3611 | ac_preproc_ok=: | | 4155 | fi |
3612 | break | | 4156 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| | | 4157 | fi |
3613 | fi | | 4158 | fi |
3614 | rm -f conftest.err conftest.i conftest.$ac_ext | | 4159 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 |
| | | 4160 | printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } |
3615 | | | 4161 | |
3616 | done | | 4162 | printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h |
3617 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | | | |
3618 | rm -f conftest.i conftest.err conftest.$ac_ext | | | |
3619 | if $ac_preproc_ok; then : | | | |
3620 | | | 4163 | |
3621 | else | | 4164 | printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h |
3622 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | | 4165 | |
3623 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | | 4166 | printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h |
3624 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | | 4167 | |
3625 | See \`config.log' for more details" "$LINENO" 5; } | | 4168 | printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h |
| | | 4169 | |
| | | 4170 | printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h |
| | | 4171 | |
| | | 4172 | printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h |
| | | 4173 | |
| | | 4174 | printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
| | | 4175 | |
| | | 4176 | printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h |
| | | 4177 | |
| | | 4178 | printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h |
| | | 4179 | |
| | | 4180 | printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h |
| | | 4181 | |
| | | 4182 | printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h |
| | | 4183 | |
| | | 4184 | printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h |
| | | 4185 | |
| | | 4186 | printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h |
| | | 4187 | |
| | | 4188 | printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h |
| | | 4189 | |
| | | 4190 | printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h |
| | | 4191 | |
| | | 4192 | if test $ac_cv_header_minix_config_h = yes |
| | | 4193 | then : |
| | | 4194 | MINIX=yes |
| | | 4195 | printf "%s\n" "#define _MINIX 1" >>confdefs.h |
| | | 4196 | |
| | | 4197 | printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h |
| | | 4198 | |
| | | 4199 | printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h |
| | | 4200 | |
| | | 4201 | else $as_nop |
| | | 4202 | MINIX= |
3626 | fi | | 4203 | fi |
| | | 4204 | if test $ac_cv_safe_to_define___extensions__ = yes |
| | | 4205 | then : |
| | | 4206 | printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h |
3627 | | | 4207 | |
3628 | ac_ext=c | | 4208 | fi |
3629 | ac_cpp='$CPP $CPPFLAGS' | | 4209 | if test $ac_cv_should_define__xopen_source = yes |
3630 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | | 4210 | then : |
3631 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | | 4211 | printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h |
3632 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | | | |
3633 | | | | |
3634 | | | | |
3635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | | | |
3636 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | | | |
3637 | if ${ac_cv_path_GREP+:} false; then : | | | |
3638 | $as_echo_n "(cached) " >&6 | | | |
3639 | else | | | |
3640 | if test -z "$GREP"; then | | | |
3641 | ac_path_GREP_found=false | | | |
3642 | # Loop through the user's path and test for each of PROGNAME-LIST | | | |
3643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | | | |
3644 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | | | |
3645 | do | | | |
3646 | IFS=$as_save_IFS | | | |
3647 | test -z "$as_dir" && as_dir=. | | | |
3648 | for ac_prog in grep ggrep; do | | | |
3649 | for ac_exec_ext in '' $ac_executable_extensions; do | | | |
3650 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | | | |
3651 | as_fn_executable_p "$ac_path_GREP" || continue | | | |
3652 | # Check for GNU ac_path_GREP and select it if it is found. | | | |
3653 | # Check for GNU $ac_path_GREP | | | |
3654 | case `"$ac_path_GREP" --version 2>&1` in | | | |
3655 | *GNU*) | | | |
3656 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | | | |
3657 | *) | | | |
3658 | ac_count=0 | | | |
3659 | $as_echo_n 0123456789 >"conftest.in" | | | |
3660 | while : | | | |
3661 | do | | | |
3662 | cat "conftest.in" "conftest.in" >"conftest.tmp" | | | |
3663 | mv "conftest.tmp" "conftest.in" | | | |
3664 | cp "conftest.in" "conftest.nl" | | | |
3665 | $as_echo 'GREP' >> "conftest.nl" | | | |
3666 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | | | |
3667 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | | | |
3668 | as_fn_arith $ac_count + 1 && ac_count=$as_val | | | |
3669 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | | | |
3670 | # Best one so far, save it but keep looking for a better one | | | |
3671 | ac_cv_path_GREP="$ac_path_GREP" | | | |
3672 | ac_path_GREP_max=$ac_count | | | |
3673 | fi | | | |
3674 | # 10*(2^10) chars as input seems more than enough | | | |
3675 | test $ac_count -gt 10 && break | | | |
3676 | done | | | |
3677 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | | | |
3678 | esac | | | |
3679 | | | | |
3680 | $ac_path_GREP_found && break 3 | | | |
3681 | done | | | |
3682 | done | | | |
3683 | done | | | |
3684 | IFS=$as_save_IFS | | | |
3685 | if test -z "$ac_cv_path_GREP"; then | | | |
3686 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | | | |
3687 | fi | | | |
3688 | else | | | |
3689 | ac_cv_path_GREP=$GREP | | | |
3690 | fi | | | |
3691 | | | | |
3692 | fi | | | |
3693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | | | |
3694 | $as_echo "$ac_cv_path_GREP" >&6; } | | | |
3695 | GREP="$ac_cv_path_GREP" | | | |
3696 | | | | |
3697 | | | | |
3698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | | | |
3699 | $as_echo_n "checking for egrep... " >&6; } | | | |
3700 | if ${ac_cv_path_EGREP+:} false; then : | | | |
3701 | $as_echo_n "(cached) " >&6 | | | |
3702 | else | | | |
3703 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | | | |
3704 | then ac_cv_path_EGREP="$GREP -E" | | | |
3705 | else | | | |
3706 | if test -z "$EGREP"; then | | | |
3707 | ac_path_EGREP_found=false | | | |
3708 | # Loop through the user's path and test for each of PROGNAME-LIST | | | |
3709 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | | | |
3710 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | | | |
3711 | do | | | |
3712 | IFS=$as_save_IFS | | | |
3713 | test -z "$as_dir" && as_dir=. | | | |
3714 | for ac_prog in egrep; do | | | |
3715 | for ac_exec_ext in '' $ac_executable_extensions; do | | | |
3716 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | | | |
3717 | as_fn_executable_p "$ac_path_EGREP" || continue | | | |
3718 | # Check for GNU ac_path_EGREP and select it if it is found. | | | |
3719 | # Check for GNU $ac_path_EGREP | | | |
3720 | case `"$ac_path_EGREP" --version 2>&1` in | | | |
3721 | *GNU*) | | | |
3722 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | | | |
3723 | *) | | | |
3724 | ac_count=0 | | | |
3725 | $as_echo_n 0123456789 >"conftest.in" | | | |
3726 | while : | | | |
3727 | do | | | |
3728 | cat "conftest.in" "conftest.in" >"conftest.tmp" | | | |
3729 | mv "conftest.tmp" "conftest.in" | | | |
3730 | cp "conftest.in" "conftest.nl" | | | |
3731 | $as_echo 'EGREP' >> "conftest.nl" | | | |
3732 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | | | |
3733 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | | | |
3734 | as_fn_arith $ac_count + 1 && ac_count=$as_val | | | |
3735 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | | | |
3736 | # Best one so far, save it but keep looking for a better one | | | |
3737 | ac_cv_path_EGREP="$ac_path_EGREP" | | | |
3738 | ac_path_EGREP_max=$ac_count | | | |
3739 | fi | | | |
3740 | # 10*(2^10) chars as input seems more than enough | | | |
3741 | test $ac_count -gt 10 && break | | | |
3742 | done | | | |
3743 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | | | |
3744 | esac | | | |
3745 | | | | |
3746 | $ac_path_EGREP_found && break 3 | | | |
3747 | done | | | |
3748 | done | | | |
3749 | done | | | |
3750 | IFS=$as_save_IFS | | | |
3751 | if test -z "$ac_cv_path_EGREP"; then | | | |
3752 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | | | |
3753 | fi | | | |
3754 | else | | | |
3755 | ac_cv_path_EGREP=$EGREP | | | |
3756 | fi | | | |
3757 | | | | |
3758 | fi | | | |
3759 | fi | | | |
3760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | | | |
3761 | $as_echo "$ac_cv_path_EGREP" >&6; } | | | |
3762 | EGREP="$ac_cv_path_EGREP" | | | |
3763 | | | | |
3764 | | | | |
3765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | | | |
3766 | $as_echo_n "checking for ANSI C header files... " >&6; } | | | |
3767 | if ${ac_cv_header_stdc+:} false; then : | | | |
3768 | $as_echo_n "(cached) " >&6 | | | |
3769 | else | | | |
3770 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | | |
3771 | /* end confdefs.h. */ | | | |
3772 | #include <stdlib.h> | | | |
3773 | #include <stdarg.h> | | | |
3774 | #include <string.h> | | | |
3775 | #include <float.h> | | | |
3776 | | | | |
3777 | int | | | |
3778 | main () | | | |
3779 | { | | | |
3780 | | | | |
3781 | ; | | | |
3782 | return 0; | | | |
3783 | } | | | |
3784 | _ACEOF | | | |
3785 | if ac_fn_c_try_compile "$LINENO"; then : | | | |
3786 | ac_cv_header_stdc=yes | | | |
3787 | else | | | |
3788 | ac_cv_header_stdc=no | | | |
3789 | fi | | | |
3790 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | | |
3791 | | | | |
3792 | if test $ac_cv_header_stdc = yes; then | | | |
3793 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | | | |
3794 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | | |
3795 | /* end confdefs.h. */ | | | |
3796 | #include <string.h> | | | |
3797 | | | | |
3798 | _ACEOF | | | |
3799 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | | | |
3800 | $EGREP "memchr" >/dev/null 2>&1; then : | | | |
3801 | | | | |
3802 | else | | | |
3803 | ac_cv_header_stdc=no | | | |
3804 | fi | | | |
3805 | rm -f conftest* | | | |
3806 | | | | |
3807 | fi | | | |
3808 | | | | |
3809 | if test $ac_cv_header_stdc = yes; then | | | |
3810 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | | | |
3811 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | | |
3812 | /* end confdefs.h. */ | | | |
3813 | #include <stdlib.h> | | | |
3814 | | | | |
3815 | _ACEOF | | | |
3816 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | | | |
3817 | $EGREP "free" >/dev/null 2>&1; then : | | | |
3818 | | | | |
3819 | else | | | |
3820 | ac_cv_header_stdc=no | | | |
3821 | fi | | | |
3822 | rm -f conftest* | | | |
3823 | | | | |
3824 | fi | | | |
3825 | | | | |
3826 | if test $ac_cv_header_stdc = yes; then | | | |
3827 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | | | |
3828 | if test "$cross_compiling" = yes; then : | | | |
3829 | : | | | |
3830 | else | | | |
3831 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | | |
3832 | /* end confdefs.h. */ | | | |
3833 | #include <ctype.h> | | | |
3834 | #include <stdlib.h> | | | |
3835 | #if ((' ' & 0x0FF) == 0x020) | | | |
3836 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | | | |
3837 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | | | |
3838 | #else | | | |
3839 | # define ISLOWER(c) \ | | | |
3840 | (('a' <= (c) && (c) <= 'i') \ | | | |
3841 | || ('j' <= (c) && (c) <= 'r') \ | | | |
3842 | || ('s' <= (c) && (c) <= 'z')) | | | |
3843 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | | | |
3844 | #endif | | | |
3845 | | | | |
3846 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | | | |
3847 | int | | | |
3848 | main () | | | |
3849 | { | | | |
3850 | int i; | | | |
3851 | for (i = 0; i < 256; i++) | | | |
3852 | if (XOR (islower (i), ISLOWER (i)) | | | |
3853 | || toupper (i) != TOUPPER (i)) | | | |
3854 | return 2; | | | |
3855 | return 0; | | | |
3856 | } | | | |
3857 | _ACEOF | | | |
3858 | if ac_fn_c_try_run "$LINENO"; then : | | | |
3859 | | | | |
3860 | else | | | |
3861 | ac_cv_header_stdc=no | | | |
3862 | fi | | | |
3863 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | | | |
3864 | conftest.$ac_objext conftest.beam conftest.$ac_ext | | | |
3865 | fi | | | |
3866 | | | | |
3867 | fi | | | |
3868 | fi | | | |
3869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | | | |
3870 | $as_echo "$ac_cv_header_stdc" >&6; } | | | |
3871 | if test $ac_cv_header_stdc = yes; then | | | |
3872 | | | | |
3873 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | | | |
3874 | | | | |
3875 | fi | | | |
3876 | | | | |
3877 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | | | |
3878 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | | | |
3879 | inttypes.h stdint.h unistd.h | | | |
3880 | do : | | | |
3881 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | | | |
3882 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | | | |
3883 | " | | | |
3884 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | | | |
3885 | cat >>confdefs.h <<_ACEOF | | | |
3886 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | | | |
3887 | _ACEOF | | | |
3888 | | | | |
3889 | fi | | | |
3890 | | | | |
3891 | done | | | |
3892 | | | | |
3893 | | | | |
3894 | | | | |
3895 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | | | |
3896 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | | | |
3897 | MINIX=yes | | | |
3898 | else | | | |
3899 | MINIX= | | | |
3900 | fi | | | |
3901 | | | | |
3902 | | | | |
3903 | if test "$MINIX" = yes; then | | | |
3904 | | | | |
3905 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | | | |
3906 | | | | |
3907 | | | | |
3908 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | | | |
3909 | | | | |
3910 | | | | |
3911 | $as_echo "#define _MINIX 1" >>confdefs.h | | | |
3912 | | | | |
3913 | fi | | | |
3914 | | | | |
3915 | | | | |
3916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | | | |
3917 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | | | |
3918 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | | | |
3919 | $as_echo_n "(cached) " >&6 | | | |
3920 | else | | | |
3921 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | | |
3922 | /* end confdefs.h. */ | | | |
3923 | | | | |
3924 | # define __EXTENSIONS__ 1 | | | |
3925 | $ac_includes_default | | | |
3926 | int | | | |
3927 | main () | | | |
3928 | { | | | |
3929 | | | | |
3930 | ; | | | |
3931 | return 0; | | | |
3932 | } | | | |
3933 | _ACEOF | | | |
3934 | if ac_fn_c_try_compile "$LINENO"; then : | | | |
3935 | ac_cv_safe_to_define___extensions__=yes | | | |
3936 | else | | | |
3937 | ac_cv_safe_to_define___extensions__=no | | | |
3938 | fi | | | |
3939 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | | |
3940 | fi | | | |
3941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | | | |
3942 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | | | |
3943 | test $ac_cv_safe_to_define___extensions__ = yes && | | | |
3944 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | | | |
3945 | | | | |
3946 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | | | |
3947 | | | | |
3948 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | | | |
3949 | | | | |
3950 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | | | |
3951 | | | | |
3952 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | | | |
3953 | | | 4212 | |
| | | 4213 | fi |
3954 | | | 4214 | |
3955 | | | 4215 | |
3956 | CANONICAL_HOST=$host | | 4216 | CANONICAL_HOST=$host |
3957 | | | 4217 | |
3958 | | | 4218 | |
3959 | | | 4219 | |
3960 | # Checks for programs. | | 4220 | # Checks for programs. |
3961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | | 4221 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3962 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | | 4222 | printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
3963 | set x ${MAKE-make} | | 4223 | set x ${MAKE-make} |
3964 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | | 4224 | ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
3965 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | | 4225 | if eval test \${ac_cv_prog_make_${ac_make}_set+y} |
3966 | $as_echo_n "(cached) " >&6 | | 4226 | then : |
3967 | else | | 4227 | printf %s "(cached) " >&6 |
| | | 4228 | else $as_nop |
3968 | cat >conftest.make <<\_ACEOF | | 4229 | cat >conftest.make <<\_ACEOF |
3969 | SHELL = /bin/sh | | 4230 | SHELL = /bin/sh |
3970 | all: | | 4231 | all: |
3971 | @echo '@@@%%%=$(MAKE)=@@@%%%' | | 4232 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
3972 | _ACEOF | | 4233 | _ACEOF |
3973 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | | 4234 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
3974 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | | 4235 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3975 | *@@@%%%=?*=@@@%%%*) | | 4236 | *@@@%%%=?*=@@@%%%*) |
3976 | eval ac_cv_prog_make_${ac_make}_set=yes;; | | 4237 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
3977 | *) | | 4238 | *) |
3978 | eval ac_cv_prog_make_${ac_make}_set=no;; | | 4239 | eval ac_cv_prog_make_${ac_make}_set=no;; |
3979 | esac | | 4240 | esac |
3980 | rm -f conftest.make | | 4241 | rm -f conftest.make |
3981 | fi | | 4242 | fi |
3982 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | | 4243 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
3983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | | 4244 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3984 | $as_echo "yes" >&6; } | | 4245 | printf "%s\n" "yes" >&6; } |
3985 | SET_MAKE= | | 4246 | SET_MAKE= |
3986 | else | | 4247 | else |
3987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | | 4248 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3988 | $as_echo "no" >&6; } | | 4249 | printf "%s\n" "no" >&6; } |
3989 | SET_MAKE="MAKE=${MAKE-make}" | | 4250 | SET_MAKE="MAKE=${MAKE-make}" |
3990 | fi | | 4251 | fi |
3991 | | | 4252 | |
3992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 | | | |
3993 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | | | |
3994 | if ${ac_cv_prog_cc_c99+:} false; then : | | | |
3995 | $as_echo_n "(cached) " >&6 | | | |
3996 | else | | | |
3997 | ac_cv_prog_cc_c99=no | | | |
3998 | ac_save_CC=$CC | | | |
3999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | | |
4000 | /* end confdefs.h. */ | | | |
4001 | #include <stdarg.h> | | | |
4002 | #include <stdbool.h> | | | |
4003 | #include <stdlib.h> | | | |
4004 | #include <wchar.h> | | | |
4005 | #include <stdio.h> | | | |
4006 | | | | |
4007 | // Check varargs macros. These examples are taken from C99 6.10.3.5. | | | |
4008 | #define debug(...) fprintf (stderr, __VA_ARGS__) | | | |
4009 | #define showlist(...) puts (#__VA_ARGS__) | | | |
4010 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | | | |
4011 | static void | | | |
4012 | test_varargs_macros (void) | | | |
4013 | { | | | |
4014 | int x = 1234; | | | |
4015 | int y = 5678; | | | |
4016 | debug ("Flag"); | | | |
4017 | debug ("X = %d\n", x); | | | |
4018 | showlist (The first, second, and third items.); | | | |
4019 | report (x>y, "x is %d but y is %d", x, y); | | | |
4020 | } | | | |
4021 | | | | |
4022 | // Check long long types. | | | |
4023 | #define BIG64 18446744073709551615ull | | | |
4024 | #define BIG32 4294967295ul | | | |
4025 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | | | |
4026 | #if !BIG_OK | | | |
4027 | your preprocessor is broken; | | | |
4028 | #endif | | | |
4029 | #if BIG_OK | | | |
4030 | #else | | | |
4031 | your preprocessor is broken; | | | |
4032 | #endif | | | |
4033 | static long long int bignum = -9223372036854775807LL; | | | |
4034 | static unsigned long long int ubignum = BIG64; | | | |
4035 | | | | |
4036 | struct incomplete_array | | | |
4037 | { | | | |
4038 | int datasize; | | | |
4039 | double data[]; | | | |
4040 | }; | | | |
4041 | | | | |
4042 | struct named_init { | | | |
4043 | int number; | | | |
4044 | const wchar_t *name; | | | |
4045 | double average; | | | |
4046 | }; | | | |
4047 | | | | |
4048 | typedef const char *ccp; | | | |
4049 | | | | |
4050 | static inline int | | | |
4051 | test_restrict (ccp restrict text) | | | |
4052 | { | | | |
4053 | // See if C++-style comments work. | | | |
4054 | // Iterate through items via the restricted pointer. | | | |
4055 | // Also check for declarations in for loops. | | | |
4056 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | | | |
4057 | continue; | | | |
4058 | return 0; | | | |
4059 | } | | | |
4060 | | | | |
4061 | // Check varargs and va_copy. | | | |
4062 | static void | | | |
4063 | test_varargs (const char *format, ...) | | | |
4064 | { | | | |
4065 | va_list args; | | | |
4066 | va_start (args, format); | | | |
4067 | va_list args_copy; | | | |
4068 | va_copy (args_copy, args); | | | |
4069 | | | | |
4070 | const char *str; | | | |
4071 | int number; | | | |
4072 | float fnumber; | | | |
4073 | | | | |
4074 | while (*format) | | | |
4075 | { | | | |
4076 | switch (*format++) | | | |
4077 | { | | | |
4078 | case 's': // string | | | |
4079 | str = va_arg (args_copy, const char *); | | | |
4080 | break; | | | |
4081 | case 'd': // int | | | |
4082 | number = va_arg (args_copy, int); | | | |
4083 | break; | | | |
4084 | case 'f': // float | | | |
4085 | fnumber = va_arg (args_copy, double); | | | |
4086 | break; | | | |
4087 | default: | | | |
4088 | break; | | | |
4089 | } | | | |
4090 | } | | | |
4091 | va_end (args_copy); | | | |
4092 | va_end (args); | | | |
4093 | } | | | |
4094 | | | | |
4095 | int | | | |
4096 | main () | | | |
4097 | { | | | |
4098 | | | | |
4099 | // Check bool. | | | |
4100 | _Bool success = false; | | | |
4101 | | | | |
4102 | // Check restrict. | | | |
4103 | if (test_restrict ("String literal") == 0) | | | |
4104 | success = true; | | | |
4105 | char *restrict newvar = "Another string"; | | | |
4106 | | | | |
4107 | // Check varargs. | | | |
4108 | test_varargs ("s, d' f .", "string", 65, 34.234); | | | |
4109 | test_varargs_macros (); | | | |
4110 | | | | |
4111 | // Check flexible array members. | | | |
4112 | struct incomplete_array *ia = | | | |
4113 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | | | |
4114 | ia->datasize = 10; | | | |
4115 | for (int i = 0; i < ia->datasize; ++i) | | | |
4116 | ia->data[i] = i * 1.234; | | | |
4117 | | | | |
4118 | // Check named initializers. | | | |
4119 | struct named_init ni = { | | | |
4120 | .number = 34, | | | |
4121 | .name = L"Test wide string", | | | |
4122 | .average = 543.34343, | | | |
4123 | }; | | | |
4124 | | | | |
4125 | ni.number = 58; | | | |
4126 | | | | |
4127 | int dynamic_array[ni.number]; | | | |
4128 | dynamic_array[ni.number - 1] = 543; | | | |
4129 | | | | |
4130 | // work around unused variable warnings | | | |
4131 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | | | |
4132 | || dynamic_array[ni.number - 1] != 543); | | | |
4133 | | | | |
4134 | ; | | | |
4135 | return 0; | | | |
4136 | } | | | |
4137 | _ACEOF | | | |
4138 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 | | | |
4139 | do | | | |
4140 | CC="$ac_save_CC $ac_arg" | | | |
4141 | if ac_fn_c_try_compile "$LINENO"; then : | | | |
4142 | ac_cv_prog_cc_c99=$ac_arg | | | |
4143 | fi | | | |
4144 | rm -f core conftest.err conftest.$ac_objext | | | |
4145 | test "x$ac_cv_prog_cc_c99" != "xno" && break | | | |
4146 | done | | | |
4147 | rm -f conftest.$ac_ext | | | |
4148 | CC=$ac_save_CC | | | |
4149 | | | | |
4150 | fi | | | |
4151 | # AC_CACHE_VAL | | | |
4152 | case "x$ac_cv_prog_cc_c99" in | | | |
4153 | x) | | | |
4154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | | | |
4155 | $as_echo "none needed" >&6; } ;; | | | |
4156 | xno) | | | |
4157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | | | |
4158 | $as_echo "unsupported" >&6; } ;; | | | |
4159 | *) | | | |
4160 | CC="$CC $ac_cv_prog_cc_c99" | | | |
4161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | | | |
4162 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | | | |
4163 | esac | | | |
4164 | if test "x$ac_cv_prog_cc_c99" != xno; then : | | | |
4165 | | | | |
4166 | fi | | | |
4167 | | | 4253 | |
4168 | | | 4254 | |
4169 | # Find a good install program. We prefer a C program (faster), | | 4255 | # Find a good install program. We prefer a C program (faster), |
4170 | # so one script is as good as another. But avoid the broken or | | 4256 | # so one script is as good as another. But avoid the broken or |
4171 | # incompatible versions: | | 4257 | # incompatible versions: |
4172 | # SysV /etc/install, /usr/sbin/install | | 4258 | # SysV /etc/install, /usr/sbin/install |
4173 | # SunOS /usr/etc/install | | 4259 | # SunOS /usr/etc/install |
4174 | # IRIX /sbin/install | | 4260 | # IRIX /sbin/install |
4175 | # AIX /bin/install | | 4261 | # AIX /bin/install |
4176 | # AmigaOS /C/install, which installs bootblocks on floppy discs | | 4262 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
4177 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | | 4263 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
4178 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | | 4264 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
4179 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | | 4265 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
4180 | # OS/2's system install, which has a completely different semantic | | 4266 | # OS/2's system install, which has a completely different semantic |
4181 | # ./install, which can be erroneously created by make from ./install.sh. | | 4267 | # ./install, which can be erroneously created by make from ./install.sh. |
4182 | # Reject install programs that cannot install multiple files. | | 4268 | # Reject install programs that cannot install multiple files. |
4183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | | 4269 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
4184 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | | 4270 | printf %s "checking for a BSD-compatible install... " >&6; } |
4185 | if test -z "$INSTALL"; then | | 4271 | if test -z "$INSTALL"; then |
4186 | if ${ac_cv_path_install+:} false; then : | | 4272 | if test ${ac_cv_path_install+y} |
4187 | $as_echo_n "(cached) " >&6 | | 4273 | then : |
4188 | else | | 4274 | printf %s "(cached) " >&6 |
| | | 4275 | else $as_nop |
4189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | | 4276 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4190 | for as_dir in $PATH | | 4277 | for as_dir in $PATH |
4191 | do | | 4278 | do |
4192 | IFS=$as_save_IFS | | 4279 | IFS=$as_save_IFS |
4193 | test -z "$as_dir" && as_dir=. | | 4280 | case $as_dir in #((( |
4194 | # Account for people who put trailing slashes in PATH elements. | | 4281 | '') as_dir=./ ;; |
4195 | case $as_dir/ in #(( | | 4282 | */) ;; |
4196 | ./ | .// | /[cC]/* | \ | | 4283 | *) as_dir=$as_dir/ ;; |
| | | 4284 | esac |
| | | 4285 | # Account for fact that we put trailing slashes in our PATH walk. |
| | | 4286 | case $as_dir in #(( |
| | | 4287 | ./ | /[cC]/* | \ |
4197 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | | 4288 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
4198 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | | 4289 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
4199 | /usr/ucb/* ) ;; | | 4290 | /usr/ucb/* ) ;; |
4200 | *) | | 4291 | *) |
4201 | # OSF1 and SCO ODT 3.0 have their own names for install. | | 4292 | # OSF1 and SCO ODT 3.0 have their own names for install. |
4202 | # Don't use installbsd from OSF since it installs stuff as root | | 4293 | # Don't use installbsd from OSF since it installs stuff as root |
4203 | # by default. | | 4294 | # by default. |
4204 | for ac_prog in ginstall scoinst install; do | | 4295 | for ac_prog in ginstall scoinst install; do |
4205 | for ac_exec_ext in '' $ac_executable_extensions; do | | 4296 | for ac_exec_ext in '' $ac_executable_extensions; do |
4206 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | | 4297 | if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then |
4207 | if test $ac_prog = install && | | 4298 | if test $ac_prog = install && |
4208 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | | 4299 | grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
4209 | # AIX install. It has an incompatible calling convention. | | 4300 | # AIX install. It has an incompatible calling convention. |
4210 | : | | 4301 | : |
4211 | elif test $ac_prog = install && | | 4302 | elif test $ac_prog = install && |
4212 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | | 4303 | grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
4213 | # program-specific install script used by HP pwplus--don't use. | | 4304 | # program-specific install script used by HP pwplus--don't use. |
4214 | : | | 4305 | : |
4215 | else | | 4306 | else |
4216 | rm -rf conftest.one conftest.two conftest.dir | | 4307 | rm -rf conftest.one conftest.two conftest.dir |
4217 | echo one > conftest.one | | 4308 | echo one > conftest.one |
4218 | echo two > conftest.two | | 4309 | echo two > conftest.two |
4219 | mkdir conftest.dir | | 4310 | mkdir conftest.dir |
4220 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | | 4311 | if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && |
4221 | test -s conftest.one && test -s conftest.two && | | 4312 | test -s conftest.one && test -s conftest.two && |
4222 | test -s conftest.dir/conftest.one && | | 4313 | test -s conftest.dir/conftest.one && |
4223 | test -s conftest.dir/conftest.two | | 4314 | test -s conftest.dir/conftest.two |
4224 | then | | 4315 | then |
4225 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | | 4316 | ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" |
4226 | break 3 | | 4317 | break 3 |
4227 | fi | | 4318 | fi |
4228 | fi | | 4319 | fi |
4229 | fi | | 4320 | fi |
4230 | done | | 4321 | done |
4231 | done | | 4322 | done |
4232 | ;; | | 4323 | ;; |
4233 | esac | | 4324 | esac |
4234 | | | 4325 | |
4235 | done | | 4326 | done |
4236 | IFS=$as_save_IFS | | 4327 | IFS=$as_save_IFS |
4237 | | | 4328 | |
4238 | rm -rf conftest.one conftest.two conftest.dir | | 4329 | rm -rf conftest.one conftest.two conftest.dir |
4239 | | | 4330 | |
4240 | fi | | 4331 | fi |
4241 | if test "${ac_cv_path_install+set}" = set; then | | 4332 | if test ${ac_cv_path_install+y}; then |
4242 | INSTALL=$ac_cv_path_install | | 4333 | INSTALL=$ac_cv_path_install |
4243 | else | | 4334 | else |
4244 | # As a last resort, use the slow shell script. Don't cache a | | 4335 | # As a last resort, use the slow shell script. Don't cache a |
4245 | # value for INSTALL within a source directory, because that will | | 4336 | # value for INSTALL within a source directory, because that will |
4246 | # break other packages using the cache if that directory is | | 4337 | # break other packages using the cache if that directory is |
4247 | # removed, or if the value is a relative name. | | 4338 | # removed, or if the value is a relative name. |
4248 | INSTALL=$ac_install_sh | | 4339 | INSTALL=$ac_install_sh |
4249 | fi | | 4340 | fi |
4250 | fi | | 4341 | fi |
4251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | | 4342 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
4252 | $as_echo "$INSTALL" >&6; } | | 4343 | printf "%s\n" "$INSTALL" >&6; } |
4253 | | | 4344 | |
4254 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | | 4345 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
4255 | # It thinks the first close brace ends the variable substitution. | | 4346 | # It thinks the first close brace ends the variable substitution. |
4256 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | | 4347 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
4257 | | | 4348 | |
4258 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | | 4349 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
4259 | | | 4350 | |
4260 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | | 4351 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
4261 | | | 4352 | |
4262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | | 4353 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
4263 | $as_echo_n "checking whether ln -s works... " >&6; } | | 4354 | printf %s "checking whether ln -s works... " >&6; } |
4264 | LN_S=$as_ln_s | | 4355 | LN_S=$as_ln_s |
4265 | if test "$LN_S" = "ln -s"; then | | 4356 | if test "$LN_S" = "ln -s"; then |
4266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | | 4357 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4267 | $as_echo "yes" >&6; } | | 4358 | printf "%s\n" "yes" >&6; } |
4268 | else | | 4359 | else |
4269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | | 4360 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
4270 | $as_echo "no, using $LN_S" >&6; } | | 4361 | printf "%s\n" "no, using $LN_S" >&6; } |
4271 | fi | | 4362 | fi |
4272 | | | 4363 | |
4273 | if test -n "$ac_tool_prefix"; then | | 4364 | if test -n "$ac_tool_prefix"; then |
4274 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | | 4365 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
4275 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | | 4366 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
4276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | | 4367 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4277 | $as_echo_n "checking for $ac_word... " >&6; } | | 4368 | printf %s "checking for $ac_word... " >&6; } |
4278 | if ${ac_cv_prog_RANLIB+:} false; then : | | 4369 | if test ${ac_cv_prog_RANLIB+y} |
4279 | $as_echo_n "(cached) " >&6 | | 4370 | then : |
4280 | else | | 4371 | printf %s "(cached) " >&6 |
| | | 4372 | else $as_nop |
4281 | if test -n "$RANLIB"; then | | 4373 | if test -n "$RANLIB"; then |
4282 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | | 4374 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
4283 | else | | 4375 | else |
4284 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | | 4376 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4285 | for as_dir in $PATH | | 4377 | for as_dir in $PATH |
4286 | do | | 4378 | do |
4287 | IFS=$as_save_IFS | | 4379 | IFS=$as_save_IFS |
4288 | test -z "$as_dir" && as_dir=. | | 4380 | case $as_dir in #((( |
| | | 4381 | '') as_dir=./ ;; |
| | | 4382 | */) ;; |
| | | 4383 | *) as_dir=$as_dir/ ;; |
| | | 4384 | esac |
4289 | for ac_exec_ext in '' $ac_executable_extensions; do | | 4385 | for ac_exec_ext in '' $ac_executable_extensions; do |
4290 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | | 4386 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
4291 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | | 4387 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
4292 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | | 4388 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
4293 | break 2 | | 4389 | break 2 |
4294 | fi | | 4390 | fi |
4295 | done | | 4391 | done |
4296 | done | | 4392 | done |
4297 | IFS=$as_save_IFS | | 4393 | IFS=$as_save_IFS |
4298 | | | 4394 | |
4299 | fi | | 4395 | fi |
4300 | fi | | 4396 | fi |
4301 | RANLIB=$ac_cv_prog_RANLIB | | 4397 | RANLIB=$ac_cv_prog_RANLIB |
4302 | if test -n "$RANLIB"; then | | 4398 | if test -n "$RANLIB"; then |
4303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | | 4399 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
4304 | $as_echo "$RANLIB" >&6; } | | 4400 | printf "%s\n" "$RANLIB" >&6; } |
4305 | else | | 4401 | else |
4306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | | 4402 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4307 | $as_echo "no" >&6; } | | 4403 | printf "%s\n" "no" >&6; } |
4308 | fi | | 4404 | fi |
4309 | | | 4405 | |
4310 | | | 4406 | |
4311 | fi | | 4407 | fi |
4312 | if test -z "$ac_cv_prog_RANLIB"; then | | 4408 | if test -z "$ac_cv_prog_RANLIB"; then |
4313 | ac_ct_RANLIB=$RANLIB | | 4409 | ac_ct_RANLIB=$RANLIB |
4314 | # Extract the first word of "ranlib", so it can be a program name with args. | | 4410 | # Extract the first word of "ranlib", so it can be a program name with args. |
4315 | set dummy ranlib; ac_word=$2 | | 4411 | set dummy ranlib; ac_word=$2 |
4316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | | 4412 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4317 | $as_echo_n "checking for $ac_word... " >&6; } | | 4413 | printf %s "checking for $ac_word... " >&6; } |
4318 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | | 4414 | if test ${ac_cv_prog_ac_ct_RANLIB+y} |
4319 | $as_echo_n "(cached) " >&6 | | 4415 | then : |
4320 | else | | 4416 | printf %s "(cached) " >&6 |
| | | 4417 | else $as_nop |
4321 | if test -n "$ac_ct_RANLIB"; then | | 4418 | if test -n "$ac_ct_RANLIB"; then |
4322 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | | 4419 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
4323 | else | | 4420 | else |
4324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | | 4421 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4325 | for as_dir in $PATH | | 4422 | for as_dir in $PATH |
4326 | do | | 4423 | do |
4327 | IFS=$as_save_IFS | | 4424 | IFS=$as_save_IFS |
4328 | test -z "$as_dir" && as_dir=. | | 4425 | case $as_dir in #((( |
| | | 4426 | '') as_dir=./ ;; |
| | | 4427 | */) ;; |
| | | 4428 | *) as_dir=$as_dir/ ;; |
| | | 4429 | esac |
4329 | for ac_exec_ext in '' $ac_executable_extensions; do | | 4430 | for ac_exec_ext in '' $ac_executable_extensions; do |
4330 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | | 4431 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
4331 | ac_cv_prog_ac_ct_RANLIB="ranlib" | | 4432 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
4332 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | | 4433 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
4333 | break 2 | | 4434 | break 2 |
4334 | fi | | 4435 | fi |
4335 | done | | 4436 | done |
4336 | done | | 4437 | done |
4337 | IFS=$as_save_IFS | | 4438 | IFS=$as_save_IFS |
4338 | | | 4439 | |
4339 | fi | | 4440 | fi |
4340 | fi | | 4441 | fi |
4341 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | | 4442 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
4342 | if test -n "$ac_ct_RANLIB"; then | | 4443 | if test -n "$ac_ct_RANLIB"; then |
4343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | | 4444 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
4344 | $as_echo "$ac_ct_RANLIB" >&6; } | | 4445 | printf "%s\n" "$ac_ct_RANLIB" >&6; } |
4345 | else | | 4446 | else |
4346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | | 4447 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4347 | $as_echo "no" >&6; } | | 4448 | printf "%s\n" "no" >&6; } |
4348 | fi | | 4449 | fi |
4349 | | | 4450 | |
4350 | if test "x$ac_ct_RANLIB" = x; then | | 4451 | if test "x$ac_ct_RANLIB" = x; then |
4351 | RANLIB=":" | | 4452 | RANLIB=":" |
4352 | else | | 4453 | else |
4353 | case $cross_compiling:$ac_tool_warned in | | 4454 | case $cross_compiling:$ac_tool_warned in |
4354 | yes:) | | 4455 | yes:) |
4355 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | | 4456 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
4356 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | | 4457 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
4357 | ac_tool_warned=yes ;; | | 4458 | ac_tool_warned=yes ;; |
4358 | esac | | 4459 | esac |
4359 | RANLIB=$ac_ct_RANLIB | | 4460 | RANLIB=$ac_ct_RANLIB |
4360 | fi | | 4461 | fi |
4361 | else | | 4462 | else |
4362 | RANLIB="$ac_cv_prog_RANLIB" | | 4463 | RANLIB="$ac_cv_prog_RANLIB" |
4363 | fi | | 4464 | fi |
4364 | | | 4465 | |
4365 | for ac_prog in gawk mawk nawk awk | | 4466 | for ac_prog in gawk mawk nawk awk |
4366 | do | | 4467 | do |
4367 | # Extract the first word of "$ac_prog", so it can be a program name with args. | | 4468 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
4368 | set dummy $ac_prog; ac_word=$2 | | 4469 | set dummy $ac_prog; ac_word=$2 |
4369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | | 4470 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4370 | $as_echo_n "checking for $ac_word... " >&6; } | | 4471 | printf %s "checking for $ac_word... " >&6; } |
4371 | if ${ac_cv_prog_AWK+:} false; then : | | 4472 | if test ${ac_cv_prog_AWK+y} |
4372 | $as_echo_n "(cached) " >&6 | | 4473 | then : |
4373 | else | | 4474 | printf %s "(cached) " >&6 |
| | | 4475 | else $as_nop |
4374 | if test -n "$AWK"; then | | 4476 | if test -n "$AWK"; then |
4375 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | | 4477 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
4376 | else | | 4478 | else |
4377 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | | 4479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4378 | for as_dir in $PATH | | 4480 | for as_dir in $PATH |
4379 | do | | 4481 | do |
4380 | IFS=$as_save_IFS | | 4482 | IFS=$as_save_IFS |
4381 | test -z "$as_dir" && as_dir=. | | 4483 | case $as_dir in #((( |
| | | 4484 | '') as_dir=./ ;; |
| | | 4485 | */) ;; |
| | | 4486 | *) as_dir=$as_dir/ ;; |
| | | 4487 | esac |
4382 | for ac_exec_ext in '' $ac_executable_extensions; do | | 4488 | for ac_exec_ext in '' $ac_executable_extensions; do |
4383 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | | 4489 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
4384 | ac_cv_prog_AWK="$ac_prog" | | 4490 | ac_cv_prog_AWK="$ac_prog" |
4385 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | | 4491 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
4386 | break 2 | | 4492 | break 2 |
4387 | fi | | 4493 | fi |
4388 | done | | 4494 | done |
4389 | done | | 4495 | done |
4390 | IFS=$as_save_IFS | | 4496 | IFS=$as_save_IFS |
4391 | | | 4497 | |
4392 | fi | | 4498 | fi |
4393 | fi | | 4499 | fi |
4394 | AWK=$ac_cv_prog_AWK | | 4500 | AWK=$ac_cv_prog_AWK |
4395 | if test -n "$AWK"; then | | 4501 | if test -n "$AWK"; then |
4396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | | 4502 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
4397 | $as_echo "$AWK" >&6; } | | 4503 | printf "%s\n" "$AWK" >&6; } |
| | | 4504 | else |
| | | 4505 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| | | 4506 | printf "%s\n" "no" >&6; } |
| | | 4507 | fi |
| | | 4508 | |
| | | 4509 | |
| | | 4510 | test -n "$AWK" && break |
| | | 4511 | done |
| | | 4512 | |
| | | 4513 | # Extract the first word of "ar", so it can be a program name with args. |
| | | 4514 | set dummy ar; ac_word=$2 |
| | | 4515 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| | | 4516 | printf %s "checking for $ac_word... " >&6; } |
| | | 4517 | if test ${ac_cv_prog_AR+y} |
| | | 4518 | then : |
| | | 4519 | printf %s "(cached) " >&6 |
| | | 4520 | else $as_nop |
| | | 4521 | if test -n "$AR"; then |
| | | 4522 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| | | 4523 | else |
| | | 4524 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| | | 4525 | for as_dir in $PATH |
| | | 4526 | do |
| | | 4527 | IFS=$as_save_IFS |
| | | 4528 | case $as_dir in #((( |
| | | 4529 | '') as_dir=./ ;; |
| | | 4530 | */) ;; |
| | | 4531 | *) as_dir=$as_dir/ ;; |
| | | 4532 | esac |
| | | 4533 | for ac_exec_ext in '' $ac_executable_extensions; do |
| | | 4534 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| | | 4535 | ac_cv_prog_AR="ar" |
| | | 4536 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| | | 4537 | break 2 |
| | | 4538 | fi |
| | | 4539 | done |
| | | 4540 | done |
| | | 4541 | IFS=$as_save_IFS |
| | | 4542 | |
| | | 4543 | fi |
| | | 4544 | fi |
| | | 4545 | AR=$ac_cv_prog_AR |
| | | 4546 | if test -n "$AR"; then |
| | | 4547 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| | | 4548 | printf "%s\n" "$AR" >&6; } |
| | | 4549 | else |
| | | 4550 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| | | 4551 | printf "%s\n" "no" >&6; } |
| | | 4552 | fi |
| | | 4553 | |
| | | 4554 | |
| | | 4555 | |
| | | 4556 | AUTOCONF=${AUTOCONF-"$srcdir/missing --run autoconf"} |
| | | 4557 | |
| | | 4558 | AUTOHEADER=${AUTOHEADER-"$srcdir/missing --run autoheader"} |
| | | 4559 | |
| | | 4560 | |
| | | 4561 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fparseln in -lutil" >&5 |
| | | 4562 | printf %s "checking for fparseln in -lutil... " >&6; } |
| | | 4563 | if test ${ac_cv_lib_util_fparseln+y} |
| | | 4564 | then : |
| | | 4565 | printf %s "(cached) " >&6 |
| | | 4566 | else $as_nop |
| | | 4567 | ac_check_lib_save_LIBS=$LIBS |
| | | 4568 | LIBS="-lutil $LIBS" |
| | | 4569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| | | 4570 | /* end confdefs.h. */ |
| | | 4571 | |
| | | 4572 | /* Override any GCC internal prototype to avoid an error. |
| | | 4573 | Use char because int might match the return type of a GCC |
| | | 4574 | builtin and then its argument prototype would still apply. */ |
| | | 4575 | char fparseln (); |
| | | 4576 | int |
| | | 4577 | main (void) |
| | | 4578 | { |
| | | 4579 | return fparseln (); |
| | | 4580 | ; |
| | | 4581 | return 0; |
| | | 4582 | } |
| | | 4583 | _ACEOF |
| | | 4584 | if ac_fn_c_try_link "$LINENO" |
| | | 4585 | then : |
| | | 4586 | ac_cv_lib_util_fparseln=yes |
| | | 4587 | else $as_nop |
| | | 4588 | ac_cv_lib_util_fparseln=no |
| | | 4589 | fi |
| | | 4590 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| | | 4591 | conftest$ac_exeext conftest.$ac_ext |
| | | 4592 | LIBS=$ac_check_lib_save_LIBS |
| | | 4593 | fi |
| | | 4594 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_fparseln" >&5 |
| | | 4595 | printf "%s\n" "$ac_cv_lib_util_fparseln" >&6; } |
| | | 4596 | if test "x$ac_cv_lib_util_fparseln" = xyes |
| | | 4597 | then : |
| | | 4598 | printf "%s\n" "#define HAVE_LIBUTIL 1" >>confdefs.h |
| | | 4599 | |
| | | 4600 | LIBS="-lutil $LIBS" |
| | | 4601 | |
| | | 4602 | fi |
| | | 4603 | |
| | | 4604 | |
| | | 4605 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| | | 4606 | printf %s "checking for grep that handles long lines and -e... " >&6; } |
| | | 4607 | if test ${ac_cv_path_GREP+y} |
| | | 4608 | then : |
| | | 4609 | printf %s "(cached) " >&6 |
| | | 4610 | else $as_nop |
| | | 4611 | if test -z "$GREP"; then |
| | | 4612 | ac_path_GREP_found=false |
| | | 4613 | # Loop through the user's path and test for each of PROGNAME-LIST |
| | | 4614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| | | 4615 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| | | 4616 | do |
| | | 4617 | IFS=$as_save_IFS |
| | | 4618 | case $as_dir in #((( |
| | | 4619 | '') as_dir=./ ;; |
| | | 4620 | */) ;; |
| | | 4621 | *) as_dir=$as_dir/ ;; |
| | | 4622 | esac |
| | | 4623 | for ac_prog in grep ggrep |
| | | 4624 | do |
| | | 4625 | for ac_exec_ext in '' $ac_executable_extensions; do |
| | | 4626 | ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" |
| | | 4627 | as_fn_executable_p "$ac_path_GREP" || continue |
| | | 4628 | # Check for GNU ac_path_GREP and select it if it is found. |
| | | 4629 | # Check for GNU $ac_path_GREP |
| | | 4630 | case `"$ac_path_GREP" --version 2>&1` in |
| | | 4631 | *GNU*) |
| | | 4632 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| | | 4633 | *) |
| | | 4634 | ac_count=0 |
| | | 4635 | printf %s 0123456789 >"conftest.in" |
| | | 4636 | while : |
| | | 4637 | do |
| | | 4638 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| | | 4639 | mv "conftest.tmp" "conftest.in" |
| | | 4640 | cp "conftest.in" "conftest.nl" |
| | | 4641 | printf "%s\n" 'GREP' >> "conftest.nl" |
| | | 4642 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| | | 4643 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| | | 4644 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| | | 4645 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| | | 4646 | # Best one so far, save it but keep looking for a better one |
| | | 4647 | ac_cv_path_GREP="$ac_path_GREP" |
| | | 4648 | ac_path_GREP_max=$ac_count |
| | | 4649 | fi |
| | | 4650 | # 10*(2^10) chars as input seems more than enough |
| | | 4651 | test $ac_count -gt 10 && break |
| | | 4652 | done |
| | | 4653 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| | | 4654 | esac |
| | | 4655 | |
| | | 4656 | $ac_path_GREP_found && break 3 |
| | | 4657 | done |
| | | 4658 | done |
| | | 4659 | done |
| | | 4660 | IFS=$as_save_IFS |
| | | 4661 | if test -z "$ac_cv_path_GREP"; then |
| | | 4662 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| | | 4663 | fi |
4398 | else | | 4664 | else |
4399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | | 4665 | ac_cv_path_GREP=$GREP |
4400 | $as_echo "no" >&6; } | | | |
4401 | fi | | 4666 | fi |
4402 | | | 4667 | |
| | | 4668 | fi |
| | | 4669 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| | | 4670 | printf "%s\n" "$ac_cv_path_GREP" >&6; } |
| | | 4671 | GREP="$ac_cv_path_GREP" |
4403 | | | 4672 | |
4404 | test -n "$AWK" && break | | | |
4405 | done | | | |
4406 | | | 4673 | |
4407 | # Extract the first word of "ar", so it can be a program name with args. | | 4674 | # Autoupdate added the next two lines to ensure that your configure |
4408 | set dummy ar; ac_word=$2 | | 4675 | # script's behavior did not change. They are probably safe to remove. |
4409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | | 4676 | |
4410 | $as_echo_n "checking for $ac_word... " >&6; } | | 4677 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
4411 | if ${ac_cv_prog_AR+:} false; then : | | 4678 | printf %s "checking for egrep... " >&6; } |
4412 | $as_echo_n "(cached) " >&6 | | 4679 | if test ${ac_cv_path_EGREP+y} |
4413 | else | | 4680 | then : |
4414 | if test -n "$AR"; then | | 4681 | printf %s "(cached) " >&6 |
4415 | ac_cv_prog_AR="$AR" # Let the user override the test. | | 4682 | else $as_nop |
4416 | else | | 4683 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4417 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | | 4684 | then ac_cv_path_EGREP="$GREP -E" |
4418 | for as_dir in $PATH | | 4685 | else |
| | | 4686 | if test -z "$EGREP"; then |
| | | 4687 | ac_path_EGREP_found=false |
| | | 4688 | # Loop through the user's path and test for each of PROGNAME-LIST |
| | | 4689 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| | | 4690 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4419 | do | | 4691 | do |
4420 | IFS=$as_save_IFS | | 4692 | IFS=$as_save_IFS |
4421 | test -z "$as_dir" && as_dir=. | | 4693 | case $as_dir in #((( |
| | | 4694 | '') as_dir=./ ;; |
| | | 4695 | */) ;; |
| | | 4696 | *) as_dir=$as_dir/ ;; |
| | | 4697 | esac |
| | | 4698 | for ac_prog in egrep |
| | | 4699 | do |
4422 | for ac_exec_ext in '' $ac_executable_extensions; do | | 4700 | for ac_exec_ext in '' $ac_executable_extensions; do |
4423 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | | 4701 | ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" |
4424 | ac_cv_prog_AR="ar" | | 4702 | as_fn_executable_p "$ac_path_EGREP" || continue |
4425 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | | 4703 | # Check for GNU ac_path_EGREP and select it if it is found. |
4426 | break 2 | | 4704 | # Check for GNU $ac_path_EGREP |
4427 | fi | | 4705 | case `"$ac_path_EGREP" --version 2>&1` in |
4428 | done | | 4706 | *GNU*) |
| | | 4707 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| | | 4708 | *) |
| | | 4709 | ac_count=0 |
| | | 4710 | printf %s 0123456789 >"conftest.in" |
| | | 4711 | while : |
| | | 4712 | do |
| | | 4713 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| | | 4714 | mv "conftest.tmp" "conftest.in" |
| | | 4715 | cp "conftest.in" "conftest.nl" |
| | | 4716 | printf "%s\n" 'EGREP' >> "conftest.nl" |
| | | 4717 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| | | 4718 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| | | 4719 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| | | 4720 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| | | 4721 | # Best one so far, save it but keep looking for a better one |
| | | 4722 | ac_cv_path_EGREP="$ac_path_EGREP" |
| | | 4723 | ac_path_EGREP_max=$ac_count |
| | | 4724 | fi |
| | | 4725 | # 10*(2^10) chars as input seems more than enough |
| | | 4726 | test $ac_count -gt 10 && break |
| | | 4727 | done |
| | | 4728 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| | | 4729 | esac |
| | | 4730 | |
| | | 4731 | $ac_path_EGREP_found && break 3 |
| | | 4732 | done |
| | | 4733 | done |
4429 | done | | 4734 | done |
4430 | IFS=$as_save_IFS | | 4735 | IFS=$as_save_IFS |
| | | 4736 | if test -z "$ac_cv_path_EGREP"; then |
| | | 4737 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| | | 4738 | fi |
| | | 4739 | else |
| | | 4740 | ac_cv_path_EGREP=$EGREP |
| | | 4741 | fi |
4431 | | | 4742 | |
| | | 4743 | fi |
4432 | fi | | 4744 | fi |
| | | 4745 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| | | 4746 | printf "%s\n" "$ac_cv_path_EGREP" >&6; } |
| | | 4747 | EGREP="$ac_cv_path_EGREP" |
| | | 4748 | |
| | | 4749 | |
| | | 4750 | |
| | | 4751 | |
| | | 4752 | |
| | | 4753 | # Obsolete code to be removed. |
| | | 4754 | if test $ac_cv_header_sys_time_h = yes; then |
| | | 4755 | |
| | | 4756 | printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
| | | 4757 | |
4433 | fi | | 4758 | fi |
4434 | AR=$ac_cv_prog_AR | | 4759 | # End of obsolete code. |
4435 | if test -n "$AR"; then | | 4760 | |
4436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | | 4761 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" |
4437 | $as_echo "$AR" >&6; } | | 4762 | if test "x$ac_cv_type__Bool" = xyes |
4438 | else | | 4763 | then : |
4439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | | 4764 | |
4440 | $as_echo "no" >&6; } | | 4765 | printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h |
| | | 4766 | |
| | | 4767 | |
4441 | fi | | 4768 | fi |
4442 | | | 4769 | |
| | | 4770 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 |
| | | 4771 | printf %s "checking for stdbool.h that conforms to C99... " >&6; } |
| | | 4772 | if test ${ac_cv_header_stdbool_h+y} |
| | | 4773 | then : |
| | | 4774 | printf %s "(cached) " >&6 |
| | | 4775 | else $as_nop |
| | | 4776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| | | 4777 | /* end confdefs.h. */ |
| | | 4778 | #include <stdbool.h> |
| | | 4779 | |
| | | 4780 | #ifndef __bool_true_false_are_defined |
| | | 4781 | #error "__bool_true_false_are_defined is not defined" |
| | | 4782 | #endif |
| | | 4783 | char a[__bool_true_false_are_defined == 1 ? 1 : -1]; |
4443 | | | 4784 | |
| | | 4785 | /* Regardless of whether this is C++ or "_Bool" is a |
| | | 4786 | valid type name, "true" and "false" should be usable |
| | | 4787 | in #if expressions and integer constant expressions, |
| | | 4788 | and "bool" should be a valid type name. */ |
4444 | | | 4789 | |
4445 | AUTOCONF=${AUTOCONF-"$srcdir/missing --run autoconf"} | | 4790 | #if !true |
| | | 4791 | #error "'true' is not true" |
| | | 4792 | #endif |
| | | 4793 | #if true != 1 |
| | | 4794 | #error "'true' is not equal to 1" |
| | | 4795 | #endif |
| | | 4796 | char b[true == 1 ? 1 : -1]; |
| | | 4797 | char c[true]; |
4446 | | | 4798 | |
4447 | AUTOHEADER=${AUTOHEADER-"$srcdir/missing --run autoheader"} | | 4799 | #if false |
| | | 4800 | #error "'false' is not false" |
| | | 4801 | #endif |
| | | 4802 | #if false != 0 |
| | | 4803 | #error "'false' is not equal to 0" |
| | | 4804 | #endif |
| | | 4805 | char d[false == 0 ? 1 : -1]; |
4448 | | | 4806 | |
| | | 4807 | enum { e = false, f = true, g = false * true, h = true * 256 }; |
4449 | | | 4808 | |
4450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fparseln in -lutil" >&5 | | 4809 | char i[(bool) 0.5 == true ? 1 : -1]; |
4451 | $as_echo_n "checking for fparseln in -lutil... " >&6; } | | 4810 | char j[(bool) 0.0 == false ? 1 : -1]; |
4452 | if ${ac_cv_lib_util_fparseln+:} false; then : | | 4811 | char k[sizeof (bool) > 0 ? 1 : -1]; |
4453 | $as_echo_n "(cached) " >&6 | | 4812 | |
4454 | else | | 4813 | struct sb { bool s: 1; bool t; } s; |
4455 | ac_check_lib_save_LIBS=$LIBS | | 4814 | char l[sizeof s.t > 0 ? 1 : -1]; |
4456 | LIBS="-lutil $LIBS" | | 4815 | |
4457 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 4816 | /* The following fails for |
4458 | /* end confdefs.h. */ | | 4817 | HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ |
| | | 4818 | bool m[h]; |
| | | 4819 | char n[sizeof m == h * sizeof m[0] ? 1 : -1]; |
| | | 4820 | char o[-1 - (bool) 0 < 0 ? 1 : -1]; |
| | | 4821 | /* Catch a bug in an HP-UX C compiler. See |
| | | 4822 | https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
| | | 4823 | https://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html |
| | | 4824 | */ |
| | | 4825 | bool p = true; |
| | | 4826 | bool *pp = &p; |
| | | 4827 | |
| | | 4828 | /* C 1999 specifies that bool, true, and false are to be |
| | | 4829 | macros, but C++ 2011 and later overrule this. */ |
| | | 4830 | #if __cplusplus < 201103 |
| | | 4831 | #ifndef bool |
| | | 4832 | #error "bool is not defined" |
| | | 4833 | #endif |
| | | 4834 | #ifndef false |
| | | 4835 | #error "false is not defined" |
| | | 4836 | #endif |
| | | 4837 | #ifndef true |
| | | 4838 | #error "true is not defined" |
| | | 4839 | #endif |
| | | 4840 | #endif |
| | | 4841 | |
| | | 4842 | /* If _Bool is available, repeat with it all the tests |
| | | 4843 | above that used bool. */ |
| | | 4844 | #ifdef HAVE__BOOL |
| | | 4845 | struct sB { _Bool s: 1; _Bool t; } t; |
| | | 4846 | |
| | | 4847 | char q[(_Bool) 0.5 == true ? 1 : -1]; |
| | | 4848 | char r[(_Bool) 0.0 == false ? 1 : -1]; |
| | | 4849 | char u[sizeof (_Bool) > 0 ? 1 : -1]; |
| | | 4850 | char v[sizeof t.t > 0 ? 1 : -1]; |
| | | 4851 | |
| | | 4852 | _Bool w[h]; |
| | | 4853 | char x[sizeof m == h * sizeof m[0] ? 1 : -1]; |
| | | 4854 | char y[-1 - (_Bool) 0 < 0 ? 1 : -1]; |
| | | 4855 | _Bool z = true; |
| | | 4856 | _Bool *pz = &p; |
| | | 4857 | #endif |
4459 | | | 4858 | |
4460 | /* Override any GCC internal prototype to avoid an error. | | | |
4461 | Use char because int might match the return type of a GCC | | | |
4462 | builtin and then its argument prototype would still apply. */ | | | |
4463 | #ifdef __cplusplus | | | |
4464 | extern "C" | | | |
4465 | #endif | | | |
4466 | char fparseln (); | | | |
4467 | int | | 4859 | int |
4468 | main () | | 4860 | main (void) |
4469 | { | | 4861 | { |
4470 | return fparseln (); | | 4862 | |
| | | 4863 | bool ps = &s; |
| | | 4864 | *pp |= p; |
| | | 4865 | *pp |= ! p; |
| | | 4866 | |
| | | 4867 | #ifdef HAVE__BOOL |
| | | 4868 | _Bool pt = &t; |
| | | 4869 | *pz |= z; |
| | | 4870 | *pz |= ! z; |
| | | 4871 | #endif |
| | | 4872 | |
| | | 4873 | /* Refer to every declared value, so they cannot be |
| | | 4874 | discarded as unused. */ |
| | | 4875 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k |
| | | 4876 | + !l + !m + !n + !o + !p + !pp + !ps |
| | | 4877 | #ifdef HAVE__BOOL |
| | | 4878 | + !q + !r + !u + !v + !w + !x + !y + !z + !pt |
| | | 4879 | #endif |
| | | 4880 | ); |
| | | 4881 | |
4471 | ; | | 4882 | ; |
4472 | return 0; | | 4883 | return 0; |
4473 | } | | 4884 | } |
4474 | _ACEOF | | 4885 | _ACEOF |
4475 | if ac_fn_c_try_link "$LINENO"; then : | | 4886 | if ac_fn_c_try_compile "$LINENO" |
4476 | ac_cv_lib_util_fparseln=yes | | 4887 | then : |
4477 | else | | 4888 | ac_cv_header_stdbool_h=yes |
4478 | ac_cv_lib_util_fparseln=no | | 4889 | else $as_nop |
| | | 4890 | ac_cv_header_stdbool_h=no |
4479 | fi | | 4891 | fi |
4480 | rm -f core conftest.err conftest.$ac_objext \ | | 4892 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
4481 | conftest$ac_exeext conftest.$ac_ext | | | |
4482 | LIBS=$ac_check_lib_save_LIBS | | | |
4483 | fi | | 4893 | fi |
4484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_fparseln" >&5 | | 4894 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 |
4485 | $as_echo "$ac_cv_lib_util_fparseln" >&6; } | | 4895 | printf "%s\n" "$ac_cv_header_stdbool_h" >&6; } |
4486 | if test "x$ac_cv_lib_util_fparseln" = xyes; then : | | | |
4487 | cat >>confdefs.h <<_ACEOF | | | |
4488 | #define HAVE_LIBUTIL 1 | | | |
4489 | _ACEOF | | | |
4490 | | | 4896 | |
4491 | LIBS="-lutil $LIBS" | | 4897 | if test $ac_cv_header_stdbool_h = yes; then |
| | | 4898 | |
| | | 4899 | printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h |
4492 | | | 4900 | |
4493 | fi | | 4901 | fi |
4494 | | | 4902 | |
4495 | | | 4903 | |
4496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | | 4904 | ac_fn_c_check_header_compile "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default" |
4497 | $as_echo_n "checking for ANSI C header files... " >&6; } | | 4905 | if test "x$ac_cv_header_alloca_h" = xyes |
4498 | if ${ac_cv_header_stdc+:} false; then : | | 4906 | then : |
4499 | $as_echo_n "(cached) " >&6 | | 4907 | printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h |
4500 | else | | | |
4501 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | | |
4502 | /* end confdefs.h. */ | | | |
4503 | #include <stdlib.h> | | | |
4504 | #include <stdarg.h> | | | |
4505 | #include <string.h> | | | |
4506 | #include <float.h> | | | |
4507 | | | 4908 | |
4508 | int | | 4909 | fi |
4509 | main () | | 4910 | ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default" |
4510 | { | | 4911 | if test "x$ac_cv_header_assert_h" = xyes |
| | | 4912 | then : |
| | | 4913 | printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h |
4511 | | | 4914 | |
4512 | ; | | | |
4513 | return 0; | | | |
4514 | } | | | |
4515 | _ACEOF | | | |
4516 | if ac_fn_c_try_compile "$LINENO"; then : | | | |
4517 | ac_cv_header_stdc=yes | | | |
4518 | else | | | |
4519 | ac_cv_header_stdc=no | | | |
4520 | fi | | 4915 | fi |
4521 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 4916 | ac_fn_c_check_header_compile "$LINENO" "bsd/libutil.h" "ac_cv_header_bsd_libutil_h" "$ac_includes_default" |
| | | 4917 | if test "x$ac_cv_header_bsd_libutil_h" = xyes |
| | | 4918 | then : |
| | | 4919 | printf "%s\n" "#define HAVE_BSD_LIBUTIL_H 1" >>confdefs.h |
4522 | | | 4920 | |
4523 | if test $ac_cv_header_stdc = yes; then | | 4921 | fi |
4524 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | | 4922 | ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default" |
4525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 4923 | if test "x$ac_cv_header_ctype_h" = xyes |
4526 | /* end confdefs.h. */ | | 4924 | then : |
4527 | #include <string.h> | | 4925 | printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h |
4528 | | | 4926 | |
4529 | _ACEOF | | 4927 | fi |
4530 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | | 4928 | ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default" |
4531 | $EGREP "memchr" >/dev/null 2>&1; then : | | 4929 | if test "x$ac_cv_header_dirent_h" = xyes |
| | | 4930 | then : |
| | | 4931 | printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h |
4532 | | | 4932 | |
4533 | else | | | |
4534 | ac_cv_header_stdc=no | | | |
4535 | fi | | 4933 | fi |
4536 | rm -f conftest* | | 4934 | ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default" |
| | | 4935 | if test "x$ac_cv_header_endian_h" = xyes |
| | | 4936 | then : |
| | | 4937 | printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h |
4537 | | | 4938 | |
4538 | fi | | 4939 | fi |
| | | 4940 | ac_fn_c_check_header_compile "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default" |
| | | 4941 | if test "x$ac_cv_header_err_h" = xyes |
| | | 4942 | then : |
| | | 4943 | printf "%s\n" "#define HAVE_ERR_H 1" >>confdefs.h |
4539 | | | 4944 | |
4540 | if test $ac_cv_header_stdc = yes; then | | 4945 | fi |
4541 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | | 4946 | ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" |
4542 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 4947 | if test "x$ac_cv_header_errno_h" = xyes |
4543 | /* end confdefs.h. */ | | 4948 | then : |
4544 | #include <stdlib.h> | | 4949 | printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h |
4545 | | | 4950 | |
4546 | _ACEOF | | 4951 | fi |
4547 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | | 4952 | ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" |
4548 | $EGREP "free" >/dev/null 2>&1; then : | | 4953 | if test "x$ac_cv_header_fcntl_h" = xyes |
| | | 4954 | then : |
| | | 4955 | printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h |
4549 | | | 4956 | |
4550 | else | | | |
4551 | ac_cv_header_stdc=no | | | |
4552 | fi | | 4957 | fi |
4553 | rm -f conftest* | | 4958 | ac_fn_c_check_header_compile "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default" |
| | | 4959 | if test "x$ac_cv_header_fnmatch_h" = xyes |
| | | 4960 | then : |
| | | 4961 | printf "%s\n" "#define HAVE_FNMATCH_H 1" >>confdefs.h |
4554 | | | 4962 | |
4555 | fi | | 4963 | fi |
| | | 4964 | ac_fn_c_check_header_compile "$LINENO" "fts.h" "ac_cv_header_fts_h" "$ac_includes_default" |
| | | 4965 | if test "x$ac_cv_header_fts_h" = xyes |
| | | 4966 | then : |
| | | 4967 | printf "%s\n" "#define HAVE_FTS_H 1" >>confdefs.h |
4556 | | | 4968 | |
4557 | if test $ac_cv_header_stdc = yes; then | | 4969 | fi |
4558 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | | 4970 | ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default" |
4559 | if test "$cross_compiling" = yes; then : | | 4971 | if test "x$ac_cv_header_grp_h" = xyes |
4560 | : | | 4972 | then : |
4561 | else | | 4973 | printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h |
4562 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | | |
4563 | /* end confdefs.h. */ | | | |
4564 | #include <ctype.h> | | | |
4565 | #include <stdlib.h> | | | |
4566 | #if ((' ' & 0x0FF) == 0x020) | | | |
4567 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | | | |
4568 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | | | |
4569 | #else | | | |
4570 | # define ISLOWER(c) \ | | | |
4571 | (('a' <= (c) && (c) <= 'i') \ | | | |
4572 | || ('j' <= (c) && (c) <= 'r') \ | | | |
4573 | || ('s' <= (c) && (c) <= 'z')) | | | |
4574 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | | | |
4575 | #endif | | | |
4576 | | | 4974 | |
4577 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | | 4975 | fi |
4578 | int | | 4976 | ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" |
4579 | main () | | 4977 | if test "x$ac_cv_header_inttypes_h" = xyes |
4580 | { | | 4978 | then : |
4581 | int i; | | 4979 | printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h |
4582 | for (i = 0; i < 256; i++) | | | |
4583 | if (XOR (islower (i), ISLOWER (i)) | | | |
4584 | || toupper (i) != TOUPPER (i)) | | | |
4585 | return 2; | | | |
4586 | return 0; | | | |
4587 | } | | | |
4588 | _ACEOF | | | |
4589 | if ac_fn_c_try_run "$LINENO"; then : | | | |
4590 | | | 4980 | |
4591 | else | | | |
4592 | ac_cv_header_stdc=no | | | |
4593 | fi | | 4981 | fi |
4594 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | | 4982 | ac_fn_c_check_header_compile "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default" |
4595 | conftest.$ac_objext conftest.beam conftest.$ac_ext | | 4983 | if test "x$ac_cv_header_libutil_h" = xyes |
| | | 4984 | then : |
| | | 4985 | printf "%s\n" "#define HAVE_LIBUTIL_H 1" >>confdefs.h |
| | | 4986 | |
4596 | fi | | 4987 | fi |
| | | 4988 | ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" |
| | | 4989 | if test "x$ac_cv_header_limits_h" = xyes |
| | | 4990 | then : |
| | | 4991 | printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h |
4597 | | | 4992 | |
4598 | fi | | 4993 | fi |
| | | 4994 | ac_fn_c_check_header_compile "$LINENO" "machine/endian.h" "ac_cv_header_machine_endian_h" "$ac_includes_default" |
| | | 4995 | if test "x$ac_cv_header_machine_endian_h" = xyes |
| | | 4996 | then : |
| | | 4997 | printf "%s\n" "#define HAVE_MACHINE_ENDIAN_H 1" >>confdefs.h |
| | | 4998 | |
4599 | fi | | 4999 | fi |
4600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | | 5000 | ac_fn_c_check_header_compile "$LINENO" "ndir.h" "ac_cv_header_ndir_h" "$ac_includes_default" |
4601 | $as_echo "$ac_cv_header_stdc" >&6; } | | 5001 | if test "x$ac_cv_header_ndir_h" = xyes |
4602 | if test $ac_cv_header_stdc = yes; then | | 5002 | then : |
| | | 5003 | printf "%s\n" "#define HAVE_NDIR_H 1" >>confdefs.h |
4603 | | | 5004 | |
4604 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | | 5005 | fi |
| | | 5006 | ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default" |
| | | 5007 | if test "x$ac_cv_header_netdb_h" = xyes |
| | | 5008 | then : |
| | | 5009 | printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h |
4605 | | | 5010 | |
4606 | fi | | 5011 | fi |
| | | 5012 | ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default" |
| | | 5013 | if test "x$ac_cv_header_paths_h" = xyes |
| | | 5014 | then : |
| | | 5015 | printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h |
4607 | | | 5016 | |
4608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 | | 5017 | fi |
4609 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | | 5018 | ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default" |
4610 | if ${ac_cv_header_time+:} false; then : | | 5019 | if test "x$ac_cv_header_pwd_h" = xyes |
4611 | $as_echo_n "(cached) " >&6 | | 5020 | then : |
4612 | else | | 5021 | printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h |
4613 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | | |
4614 | /* end confdefs.h. */ | | | |
4615 | #include <sys/types.h> | | | |
4616 | #include <sys/time.h> | | | |
4617 | #include <time.h> | | | |
4618 | | | 5022 | |
4619 | int | | | |
4620 | main () | | | |
4621 | { | | | |
4622 | if ((struct tm *) 0) | | | |
4623 | return 0; | | | |
4624 | ; | | | |
4625 | return 0; | | | |
4626 | } | | | |
4627 | _ACEOF | | | |
4628 | if ac_fn_c_try_compile "$LINENO"; then : | | | |
4629 | ac_cv_header_time=yes | | | |
4630 | else | | | |
4631 | ac_cv_header_time=no | | | |
4632 | fi | | 5023 | fi |
4633 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 5024 | ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default" |
| | | 5025 | if test "x$ac_cv_header_signal_h" = xyes |
| | | 5026 | then : |
| | | 5027 | printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h |
| | | 5028 | |
4634 | fi | | 5029 | fi |
4635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | | 5030 | ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" |
4636 | $as_echo "$ac_cv_header_time" >&6; } | | 5031 | if test "x$ac_cv_header_stdarg_h" = xyes |
4637 | if test $ac_cv_header_time = yes; then | | 5032 | then : |
| | | 5033 | printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h |
4638 | | | 5034 | |
4639 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | | 5035 | fi |
| | | 5036 | ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default" |
| | | 5037 | if test "x$ac_cv_header_stddef_h" = xyes |
| | | 5038 | then : |
| | | 5039 | printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h |
4640 | | | 5040 | |
4641 | fi | | 5041 | fi |
| | | 5042 | ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
| | | 5043 | if test "x$ac_cv_header_stdint_h" = xyes |
| | | 5044 | then : |
| | | 5045 | printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h |
4642 | | | 5046 | |
4643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 | | 5047 | fi |
4644 | $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } | | 5048 | ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" |
4645 | if ${ac_cv_header_stdbool_h+:} false; then : | | 5049 | if test "x$ac_cv_header_stdio_h" = xyes |
4646 | $as_echo_n "(cached) " >&6 | | 5050 | then : |
4647 | else | | 5051 | printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h |
4648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | | |
4649 | /* end confdefs.h. */ | | | |
4650 | | | 5052 | |
4651 | #include <stdbool.h> | | 5053 | fi |
4652 | #ifndef bool | | 5054 | ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" |
4653 | "error: bool is not defined" | | 5055 | if test "x$ac_cv_header_stdlib_h" = xyes |
4654 | #endif | | 5056 | then : |
4655 | #ifndef false | | 5057 | printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h |
4656 | "error: false is not defined" | | | |
4657 | #endif | | | |
4658 | #if false | | | |
4659 | "error: false is not 0" | | | |
4660 | #endif | | | |
4661 | #ifndef true | | | |
4662 | "error: true is not defined" | | | |
4663 | #endif | | | |
4664 | #if true != 1 | | | |
4665 | "error: true is not 1" | | | |
4666 | #endif | | | |
4667 | #ifndef __bool_true_false_are_defined | | | |
4668 | "error: __bool_true_false_are_defined is not defined" | | | |
4669 | #endif | | | |
4670 | | | 5058 | |
4671 | struct s { _Bool s: 1; _Bool t; } s; | | 5059 | fi |
| | | 5060 | ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" |
| | | 5061 | if test "x$ac_cv_header_string_h" = xyes |
| | | 5062 | then : |
| | | 5063 | printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h |
4672 | | | 5064 | |
4673 | char a[true == 1 ? 1 : -1]; | | 5065 | fi |
4674 | char b[false == 0 ? 1 : -1]; | | 5066 | ac_fn_c_check_header_compile "$LINENO" "sys/byteorder.h" "ac_cv_header_sys_byteorder_h" "$ac_includes_default" |
4675 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; | | 5067 | if test "x$ac_cv_header_sys_byteorder_h" = xyes |
4676 | char d[(bool) 0.5 == true ? 1 : -1]; | | 5068 | then : |
4677 | /* See body of main program for 'e'. */ | | 5069 | printf "%s\n" "#define HAVE_SYS_BYTEORDER_H 1" >>confdefs.h |
4678 | char f[(_Bool) 0.0 == false ? 1 : -1]; | | | |
4679 | char g[true]; | | | |
4680 | char h[sizeof (_Bool)]; | | | |
4681 | char i[sizeof s.t]; | | | |
4682 | enum { j = false, k = true, l = false * true, m = true * 256 }; | | | |
4683 | /* The following fails for | | | |
4684 | HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ | | | |
4685 | _Bool n[m]; | | | |
4686 | char o[sizeof n == m * sizeof n[0] ? 1 : -1]; | | | |
4687 | char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; | | | |
4688 | /* Catch a bug in an HP-UX C compiler. See | | | |
4689 | http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html | | | |
4690 | http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html | | | |
4691 | */ | | | |
4692 | _Bool q = true; | | | |
4693 | _Bool *pq = &q; | | | |
4694 | | | 5070 | |
4695 | int | | 5071 | fi |
4696 | main () | | 5072 | ac_fn_c_check_header_compile "$LINENO" "sys/cdefs.h" "ac_cv_header_sys_cdefs_h" "$ac_includes_default" |
4697 | { | | 5073 | if test "x$ac_cv_header_sys_cdefs_h" = xyes |
| | | 5074 | then : |
| | | 5075 | printf "%s\n" "#define HAVE_SYS_CDEFS_H 1" >>confdefs.h |
4698 | | | 5076 | |
4699 | bool e = &s; | | 5077 | fi |
4700 | *pq |= q; | | 5078 | ac_fn_c_check_header_compile "$LINENO" "sys/dir.h" "ac_cv_header_sys_dir_h" "$ac_includes_default" |
4701 | *pq |= ! q; | | 5079 | if test "x$ac_cv_header_sys_dir_h" = xyes |
4702 | /* Refer to every declared value, to avoid compiler optimizations. */ | | 5080 | then : |
4703 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l | | 5081 | printf "%s\n" "#define HAVE_SYS_DIR_H 1" >>confdefs.h |
4704 | + !m + !n + !o + !p + !q + !pq); | | | |
4705 | | | 5082 | |
4706 | ; | | | |
4707 | return 0; | | | |
4708 | } | | | |
4709 | _ACEOF | | | |
4710 | if ac_fn_c_try_compile "$LINENO"; then : | | | |
4711 | ac_cv_header_stdbool_h=yes | | | |
4712 | else | | | |
4713 | ac_cv_header_stdbool_h=no | | | |
4714 | fi | | 5083 | fi |
4715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 5084 | ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default" |
| | | 5085 | if test "x$ac_cv_header_sys_endian_h" = xyes |
| | | 5086 | then : |
| | | 5087 | printf "%s\n" "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h |
| | | 5088 | |
4716 | fi | | 5089 | fi |
4717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 | | 5090 | ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default" |
4718 | $as_echo "$ac_cv_header_stdbool_h" >&6; } | | 5091 | if test "x$ac_cv_header_sys_file_h" = xyes |
4719 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" | | 5092 | then : |
4720 | if test "x$ac_cv_type__Bool" = xyes; then : | | 5093 | printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h |
4721 | | | 5094 | |
4722 | cat >>confdefs.h <<_ACEOF | | 5095 | fi |
4723 | #define HAVE__BOOL 1 | | 5096 | ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" |
4724 | _ACEOF | | 5097 | if test "x$ac_cv_header_sys_mkdev_h" = xyes |
| | | 5098 | then : |
| | | 5099 | printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h |
| | | 5100 | |
| | | 5101 | fi |
| | | 5102 | ac_fn_c_check_header_compile "$LINENO" "sys/ndir.h" "ac_cv_header_sys_ndir_h" "$ac_includes_default" |
| | | 5103 | if test "x$ac_cv_header_sys_ndir_h" = xyes |
| | | 5104 | then : |
| | | 5105 | printf "%s\n" "#define HAVE_SYS_NDIR_H 1" >>confdefs.h |
| | | 5106 | |
| | | 5107 | fi |
| | | 5108 | ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" |
| | | 5109 | if test "x$ac_cv_header_sys_param_h" = xyes |
| | | 5110 | then : |
| | | 5111 | printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h |
| | | 5112 | |
| | | 5113 | fi |
| | | 5114 | ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" |
| | | 5115 | if test "x$ac_cv_header_sys_socket_h" = xyes |
| | | 5116 | then : |
| | | 5117 | printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h |
| | | 5118 | |
| | | 5119 | fi |
| | | 5120 | ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default" |
| | | 5121 | if test "x$ac_cv_header_sys_stat_h" = xyes |
| | | 5122 | then : |
| | | 5123 | printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h |
| | | 5124 | |
| | | 5125 | fi |
| | | 5126 | ac_fn_c_check_header_compile "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default" |
| | | 5127 | if test "x$ac_cv_header_sys_statfs_h" = xyes |
| | | 5128 | then : |
| | | 5129 | printf "%s\n" "#define HAVE_SYS_STATFS_H 1" >>confdefs.h |
| | | 5130 | |
| | | 5131 | fi |
| | | 5132 | ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default" |
| | | 5133 | if test "x$ac_cv_header_sys_statvfs_h" = xyes |
| | | 5134 | then : |
| | | 5135 | printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h |
| | | 5136 | |
| | | 5137 | fi |
| | | 5138 | ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" |
| | | 5139 | if test "x$ac_cv_header_sys_time_h" = xyes |
| | | 5140 | then : |
| | | 5141 | printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h |
| | | 5142 | |
| | | 5143 | fi |
| | | 5144 | ac_fn_c_check_header_compile "$LINENO" "sys/ttycom.h" "ac_cv_header_sys_ttycom_h" "$ac_includes_default" |
| | | 5145 | if test "x$ac_cv_header_sys_ttycom_h" = xyes |
| | | 5146 | then : |
| | | 5147 | printf "%s\n" "#define HAVE_SYS_TTYCOM_H 1" >>confdefs.h |
| | | 5148 | |
| | | 5149 | fi |
| | | 5150 | ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" |
| | | 5151 | if test "x$ac_cv_header_sys_types_h" = xyes |
| | | 5152 | then : |
| | | 5153 | printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h |
4725 | | | 5154 | |
| | | 5155 | fi |
| | | 5156 | ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default" |
| | | 5157 | if test "x$ac_cv_header_sys_uio_h" = xyes |
| | | 5158 | then : |
| | | 5159 | printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h |
4726 | | | 5160 | |
4727 | fi | | 5161 | fi |
| | | 5162 | ac_fn_c_check_header_compile "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default" |
| | | 5163 | if test "x$ac_cv_header_sys_vfs_h" = xyes |
| | | 5164 | then : |
| | | 5165 | printf "%s\n" "#define HAVE_SYS_VFS_H 1" >>confdefs.h |
4728 | | | 5166 | |
| | | 5167 | fi |
| | | 5168 | ac_fn_c_check_header_compile "$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" "$ac_includes_default" |
| | | 5169 | if test "x$ac_cv_header_sysexits_h" = xyes |
| | | 5170 | then : |
| | | 5171 | printf "%s\n" "#define HAVE_SYSEXITS_H 1" >>confdefs.h |
4729 | | | 5172 | |
4730 | if test $ac_cv_header_stdbool_h = yes; then | | 5173 | fi |
| | | 5174 | ac_fn_c_check_header_compile "$LINENO" "termcap.h" "ac_cv_header_termcap_h" "$ac_includes_default" |
| | | 5175 | if test "x$ac_cv_header_termcap_h" = xyes |
| | | 5176 | then : |
| | | 5177 | printf "%s\n" "#define HAVE_TERMCAP_H 1" >>confdefs.h |
4731 | | | 5178 | |
4732 | $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h | | 5179 | fi |
| | | 5180 | ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default" |
| | | 5181 | if test "x$ac_cv_header_time_h" = xyes |
| | | 5182 | then : |
| | | 5183 | printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h |
4733 | | | 5184 | |
4734 | fi | | 5185 | fi |
| | | 5186 | ac_fn_c_check_header_compile "$LINENO" "tzfile.h" "ac_cv_header_tzfile_h" "$ac_includes_default" |
| | | 5187 | if test "x$ac_cv_header_tzfile_h" = xyes |
| | | 5188 | then : |
| | | 5189 | printf "%s\n" "#define HAVE_TZFILE_H 1" >>confdefs.h |
4735 | | | 5190 | |
| | | 5191 | fi |
| | | 5192 | ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" |
| | | 5193 | if test "x$ac_cv_header_unistd_h" = xyes |
| | | 5194 | then : |
| | | 5195 | printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h |
4736 | | | 5196 | |
4737 | for ac_header in alloca.h assert.h bsd/libutil.h ctype.h dirent.h endian.h \ | | 5197 | fi |
4738 | err.h errno.h fcntl.h fnmatch.h fts.h grp.h inttypes.h libutil.h \ | | 5198 | ac_fn_c_check_header_compile "$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default" |
4739 | limits.h machine/endian.h ndir.h netdb.h paths.h pwd.h signal.h \ | | 5199 | if test "x$ac_cv_header_util_h" = xyes |
4740 | stdarg.h stddef.h stdint.h stdio.h \ | | 5200 | then : |
4741 | stdlib.h string.h sys/byteorder.h sys/cdefs.h sys/dir.h sys/endian.h \ | | 5201 | printf "%s\n" "#define HAVE_UTIL_H 1" >>confdefs.h |
4742 | sys/file.h sys/mkdev.h sys/ndir.h sys/param.h sys/socket.h sys/stat.h \ | | | |
4743 | sys/statfs.h sys/statvfs.h sys/time.h sys/ttycom.h sys/types.h \ | | | |
4744 | sys/uio.h sys/vfs.h sysexits.h termcap.h time.h tzfile.h unistd.h \ | | | |
4745 | util.h utime.h sys/mman.h | | | |
4746 | | | 5202 | |
4747 | do : | | 5203 | fi |
4748 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | | 5204 | ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default" |
4749 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | | 5205 | if test "x$ac_cv_header_utime_h" = xyes |
4750 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | | 5206 | then : |
4751 | cat >>confdefs.h <<_ACEOF | | 5207 | printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h |
4752 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | | | |
4753 | _ACEOF | | | |
4754 | | | 5208 | |
4755 | fi | | 5209 | fi |
| | | 5210 | ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" |
| | | 5211 | if test "x$ac_cv_header_sys_mman_h" = xyes |
| | | 5212 | then : |
| | | 5213 | printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h |
4756 | | | 5214 | |
4757 | done | | 5215 | fi |
4758 | | | 5216 | |
4759 | for ac_header in sys/mount.h | | 5217 | for ac_header in sys/mount.h |
4760 | do : | | 5218 | do : |
4761 | ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" " | | 5219 | ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" " |
4762 | $ac_includes_default | | 5220 | $ac_includes_default |
4763 | #ifdef HAVE_SYS_PARAM_H | | 5221 | #ifdef HAVE_SYS_PARAM_H |
4764 | #include <sys/param.h> | | 5222 | #include <sys/param.h> |
4765 | #endif | | 5223 | #endif |
4766 | | | 5224 | |
4767 | " | | 5225 | " |
4768 | if test "x$ac_cv_header_sys_mount_h" = xyes; then : | | 5226 | if test "x$ac_cv_header_sys_mount_h" = xyes |
4769 | cat >>confdefs.h <<_ACEOF | | 5227 | then : |
4770 | #define HAVE_SYS_MOUNT_H 1 | | 5228 | printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h |
4771 | _ACEOF | | | |
4772 | : | | 5229 | : |
4773 | else | | 5230 | else $as_nop |
4774 | : | | 5231 | : |
4775 | fi | | 5232 | fi |
4776 | | | 5233 | |
4777 | done | | 5234 | done |
4778 | | | 5235 | |
4779 | | | 5236 | ac_fn_c_check_header_compile "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default" |
4780 | for ac_header in glob.h | | 5237 | if test "x$ac_cv_header_glob_h" = xyes |
4781 | do : | | 5238 | then : |
4782 | ac_fn_c_check_header_mongrel "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default" | | 5239 | printf "%s\n" "#define HAVE_GLOB_H 1" >>confdefs.h |
4783 | if test "x$ac_cv_header_glob_h" = xyes; then : | | | |
4784 | cat >>confdefs.h <<_ACEOF | | | |
4785 | #define HAVE_GLOB_H 1 | | | |
4786 | _ACEOF | | | |
4787 | | | 5240 | |
4788 | fi | | 5241 | fi |
4789 | | | 5242 | |
4790 | done | | 5243 | printf "%s\n" "#define HAVE_NBCOMPAT_GLOB 1" >>confdefs.h |
4791 | | | | |
4792 | $as_echo "#define HAVE_NBCOMPAT_GLOB 1" >>confdefs.h | | | |
4793 | | | 5244 | |
4794 | | | 5245 | |
4795 | case " $LIBOBJS " in | | 5246 | case " $LIBOBJS " in |
4796 | *" glob.$ac_objext "* ) ;; | | 5247 | *" glob.$ac_objext "* ) ;; |
4797 | *) LIBOBJS="$LIBOBJS glob.$ac_objext" | | 5248 | *) LIBOBJS="$LIBOBJS glob.$ac_objext" |
4798 | ;; | | 5249 | ;; |
4799 | esac | | 5250 | esac |
4800 | | | 5251 | |
4801 | | | 5252 | |
4802 | for ac_header in sys/queue.h | | 5253 | ac_fn_c_check_header_compile "$LINENO" "sys/queue.h" "ac_cv_header_sys_queue_h" "$ac_includes_default" |
4803 | do : | | 5254 | if test "x$ac_cv_header_sys_queue_h" = xyes |
4804 | ac_fn_c_check_header_mongrel "$LINENO" "sys/queue.h" "ac_cv_header_sys_queue_h" "$ac_includes_default" | | 5255 | then : |
4805 | if test "x$ac_cv_header_sys_queue_h" = xyes; then : | | 5256 | printf "%s\n" "#define HAVE_SYS_QUEUE_H 1" >>confdefs.h |
4806 | cat >>confdefs.h <<_ACEOF | | | |
4807 | #define HAVE_SYS_QUEUE_H 1 | | | |
4808 | _ACEOF | | | |
4809 | | | 5257 | |
4810 | fi | | 5258 | fi |
4811 | | | 5259 | |
4812 | done | | 5260 | printf "%s\n" "#define HAVE_NBCOMPAT_QUEUE 1" >>confdefs.h |
4813 | | | | |
4814 | $as_echo "#define HAVE_NBCOMPAT_QUEUE 1" >>confdefs.h | | | |
4815 | | | 5261 | |
4816 | | | 5262 | |
4817 | | | 5263 | |
4818 | for ac_header in regex.h | | 5264 | ac_fn_c_check_header_compile "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default" |
4819 | do : | | 5265 | if test "x$ac_cv_header_regex_h" = xyes |
4820 | ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default" | | 5266 | then : |
4821 | if test "x$ac_cv_header_regex_h" = xyes; then : | | 5267 | printf "%s\n" "#define HAVE_REGEX_H 1" >>confdefs.h |
4822 | cat >>confdefs.h <<_ACEOF | | | |
4823 | #define HAVE_REGEX_H 1 | | | |
4824 | _ACEOF | | | |
4825 | | | 5268 | |
4826 | fi | | 5269 | fi |
4827 | | | 5270 | |
4828 | done | | | |
4829 | | | | |
4830 | ac_fn_c_check_func "$LINENO" "regexec" "ac_cv_func_regexec" | | 5271 | ac_fn_c_check_func "$LINENO" "regexec" "ac_cv_func_regexec" |
4831 | if test "x$ac_cv_func_regexec" = xyes; then : | | 5272 | if test "x$ac_cv_func_regexec" = xyes |
| | | 5273 | then : |
4832 | : | | 5274 | : |
4833 | else | | 5275 | else $as_nop |
4834 | | | 5276 | |
4835 | $as_echo "#define HAVE_NBCOMPAT_REGEX 1" >>confdefs.h | | 5277 | printf "%s\n" "#define HAVE_NBCOMPAT_REGEX 1" >>confdefs.h |
4836 | | | 5278 | |
4837 | | | 5279 | |
4838 | case " $LIBOBJS " in | | 5280 | case " $LIBOBJS " in |
4839 | *" regcomp.$ac_objext "* ) ;; | | 5281 | *" regcomp.$ac_objext "* ) ;; |
4840 | *) LIBOBJS="$LIBOBJS regcomp.$ac_objext" | | 5282 | *) LIBOBJS="$LIBOBJS regcomp.$ac_objext" |
4841 | ;; | | 5283 | ;; |
4842 | esac | | 5284 | esac |
4843 | | | 5285 | |
4844 | case " $LIBOBJS " in | | 5286 | case " $LIBOBJS " in |
4845 | *" regerror.$ac_objext "* ) ;; | | 5287 | *" regerror.$ac_objext "* ) ;; |
4846 | *) LIBOBJS="$LIBOBJS regerror.$ac_objext" | | 5288 | *) LIBOBJS="$LIBOBJS regerror.$ac_objext" |
4847 | ;; | | 5289 | ;; |
4848 | esac | | 5290 | esac |
| @@ -4854,2673 +5296,2822 @@ esac | | | @@ -4854,2673 +5296,2822 @@ esac |
4854 | esac | | 5296 | esac |
4855 | | | 5297 | |
4856 | case " $LIBOBJS " in | | 5298 | case " $LIBOBJS " in |
4857 | *" regfree.$ac_objext "* ) ;; | | 5299 | *" regfree.$ac_objext "* ) ;; |
4858 | *) LIBOBJS="$LIBOBJS regfree.$ac_objext" | | 5300 | *) LIBOBJS="$LIBOBJS regfree.$ac_objext" |
4859 | ;; | | 5301 | ;; |
4860 | esac | | 5302 | esac |
4861 | | | 5303 | |
4862 | | | 5304 | |
4863 | fi | | 5305 | fi |
4864 | | | 5306 | |
4865 | | | 5307 | |
4866 | | | 5308 | |
4867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5 | | 5309 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5 |
4868 | $as_echo_n "checking for va_copy... " >&6; } | | 5310 | printf %s "checking for va_copy... " >&6; } |
4869 | if ${pkg_cv_have_va_copy+:} false; then : | | 5311 | if test ${pkg_cv_have_va_copy+y} |
4870 | $as_echo_n "(cached) " >&6 | | 5312 | then : |
4871 | else | | 5313 | printf %s "(cached) " >&6 |
| | | 5314 | else $as_nop |
4872 | | | 5315 | |
4873 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 5316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4874 | /* end confdefs.h. */ | | 5317 | /* end confdefs.h. */ |
4875 | | | 5318 | |
4876 | #include <stdarg.h> | | 5319 | #include <stdarg.h> |
4877 | | | 5320 | |
4878 | int | | 5321 | int |
4879 | main () | | 5322 | main (void) |
4880 | { | | 5323 | { |
4881 | | | 5324 | |
4882 | va_list ap, ap2; | | 5325 | va_list ap, ap2; |
4883 | va_copy(ap2, ap); | | 5326 | va_copy(ap2, ap); |
4884 | return 0; | | 5327 | return 0; |
4885 | ; | | 5328 | ; |
4886 | ; | | 5329 | ; |
4887 | return 0; | | 5330 | return 0; |
4888 | } | | 5331 | } |
4889 | _ACEOF | | 5332 | _ACEOF |
4890 | if ac_fn_c_try_link "$LINENO"; then : | | 5333 | if ac_fn_c_try_link "$LINENO" |
| | | 5334 | then : |
4891 | pkg_cv_have_va_copy=yes | | 5335 | pkg_cv_have_va_copy=yes |
4892 | else | | 5336 | else $as_nop |
4893 | pkg_cv_have_va_copy=no | | 5337 | pkg_cv_have_va_copy=no |
4894 | fi | | 5338 | fi |
4895 | rm -f core conftest.err conftest.$ac_objext \ | | 5339 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
4896 | conftest$ac_exeext conftest.$ac_ext | | 5340 | conftest$ac_exeext conftest.$ac_ext |
4897 | | | 5341 | |
4898 | fi | | 5342 | fi |
4899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_have_va_copy" >&5 | | 5343 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_have_va_copy" >&5 |
4900 | $as_echo "$pkg_cv_have_va_copy" >&6; } | | 5344 | printf "%s\n" "$pkg_cv_have_va_copy" >&6; } |
4901 | if test "x$pkg_cv_have_va_copy" = "xyes"; then | | 5345 | if test "x$pkg_cv_have_va_copy" = "xyes"; then |
4902 | $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h | | 5346 | printf "%s\n" "#define HAVE_VA_COPY 1" >>confdefs.h |
4903 | | | 5347 | |
4904 | | | 5348 | |
4905 | else | | 5349 | else |
4906 | : | | 5350 | : |
4907 | ] | | 5351 | ] |
4908 | : | | 5352 | : |
4909 | fi | | 5353 | fi |
4910 | | | 5354 | |
4911 | | | 5355 | |
4912 | | | 5356 | |
4913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_va_copy" >&5 | | 5357 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_va_copy" >&5 |
4914 | $as_echo_n "checking for __builtin_va_copy... " >&6; } | | 5358 | printf %s "checking for __builtin_va_copy... " >&6; } |
4915 | if ${pkg_cv_have___builtin_va_copy+:} false; then : | | 5359 | if test ${pkg_cv_have___builtin_va_copy+y} |
4916 | $as_echo_n "(cached) " >&6 | | 5360 | then : |
4917 | else | | 5361 | printf %s "(cached) " >&6 |
| | | 5362 | else $as_nop |
4918 | | | 5363 | |
4919 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 5364 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4920 | /* end confdefs.h. */ | | 5365 | /* end confdefs.h. */ |
4921 | | | 5366 | |
4922 | #include <stdarg.h> | | 5367 | #include <stdarg.h> |
4923 | | | 5368 | |
4924 | int | | 5369 | int |
4925 | main () | | 5370 | main (void) |
4926 | { | | 5371 | { |
4927 | | | 5372 | |
4928 | va_list ap, ap2; | | 5373 | va_list ap, ap2; |
4929 | __builtin_va_copy(ap2, ap); | | 5374 | __builtin_va_copy(ap2, ap); |
4930 | return 0; | | 5375 | return 0; |
4931 | ; | | 5376 | ; |
4932 | ; | | 5377 | ; |
4933 | return 0; | | 5378 | return 0; |
4934 | } | | 5379 | } |
4935 | _ACEOF | | 5380 | _ACEOF |
4936 | if ac_fn_c_try_link "$LINENO"; then : | | 5381 | if ac_fn_c_try_link "$LINENO" |
| | | 5382 | then : |
4937 | pkg_cv_have___builtin_va_copy=yes | | 5383 | pkg_cv_have___builtin_va_copy=yes |
4938 | else | | 5384 | else $as_nop |
4939 | pkg_cv_have___builtin_va_copy=no | | 5385 | pkg_cv_have___builtin_va_copy=no |
4940 | fi | | 5386 | fi |
4941 | rm -f core conftest.err conftest.$ac_objext \ | | 5387 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
4942 | conftest$ac_exeext conftest.$ac_ext | | 5388 | conftest$ac_exeext conftest.$ac_ext |
4943 | | | 5389 | |
4944 | fi | | 5390 | fi |
4945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_have___builtin_va_copy" >&5 | | 5391 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_have___builtin_va_copy" >&5 |
4946 | $as_echo "$pkg_cv_have___builtin_va_copy" >&6; } | | 5392 | printf "%s\n" "$pkg_cv_have___builtin_va_copy" >&6; } |
4947 | if test "x$pkg_cv_have___builtin_va_copy" = "xyes"; then | | 5393 | if test "x$pkg_cv_have___builtin_va_copy" = "xyes"; then |
4948 | $as_echo "#define HAVE___BUILTIN_VA_COPY 1" >>confdefs.h | | 5394 | printf "%s\n" "#define HAVE___BUILTIN_VA_COPY 1" >>confdefs.h |
4949 | | | 5395 | |
4950 | | | 5396 | |
4951 | else | | 5397 | else |
4952 | : | | 5398 | : |
4953 | ] | | 5399 | ] |
4954 | : | | 5400 | : |
4955 | fi | | 5401 | fi |
4956 | | | 5402 | |
4957 | | | 5403 | |
4958 | for ac_header in md5.h | | 5404 | for ac_header in md5.h |
4959 | do : | | 5405 | do : |
4960 | ac_fn_c_check_header_mongrel "$LINENO" "md5.h" "ac_cv_header_md5_h" "$ac_includes_default" | | 5406 | ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "$ac_includes_default" |
4961 | if test "x$ac_cv_header_md5_h" = xyes; then : | | 5407 | if test "x$ac_cv_header_md5_h" = xyes |
4962 | cat >>confdefs.h <<_ACEOF | | 5408 | then : |
4963 | #define HAVE_MD5_H 1 | | 5409 | printf "%s\n" "#define HAVE_MD5_H 1" >>confdefs.h |
4964 | _ACEOF | | | |
4965 | | | 5410 | |
4966 | | | 5411 | |
4967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MD5Init in md5.h" >&5 | | 5412 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MD5Init in md5.h" >&5 |
4968 | $as_echo_n "checking for MD5Init in md5.h... " >&6; } | | 5413 | printf %s "checking for MD5Init in md5.h... " >&6; } |
4969 | if ${pkg_cv_have_md5init+:} false; then : | | 5414 | if test ${pkg_cv_have_md5init+y} |
4970 | $as_echo_n "(cached) " >&6 | | 5415 | then : |
4971 | else | | 5416 | printf %s "(cached) " >&6 |
| | | 5417 | else $as_nop |
4972 | | | 5418 | |
4973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 5419 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4974 | /* end confdefs.h. */ | | 5420 | /* end confdefs.h. */ |
4975 | | | 5421 | |
4976 | #include <sys/types.h> | | 5422 | #include <sys/types.h> |
4977 | #include <md5.h> | | 5423 | #include <md5.h> |
4978 | | | 5424 | |
4979 | int | | 5425 | int |
4980 | main () | | 5426 | main (void) |
4981 | { | | 5427 | { |
4982 | | | 5428 | |
4983 | MD5_CTX *f; | | 5429 | MD5_CTX *f; |
4984 | MD5Init(f); | | 5430 | MD5Init(f); |
4985 | ; | | 5431 | ; |
4986 | ; | | 5432 | ; |
4987 | return 0; | | 5433 | return 0; |
4988 | } | | 5434 | } |
4989 | _ACEOF | | 5435 | _ACEOF |
4990 | if ac_fn_c_try_compile "$LINENO"; then : | | 5436 | if ac_fn_c_try_compile "$LINENO" |
| | | 5437 | then : |
4991 | pkg_cv_have_md5init=yes | | 5438 | pkg_cv_have_md5init=yes |
4992 | else | | 5439 | else $as_nop |
4993 | pkg_cv_have_md5init=no | | 5440 | pkg_cv_have_md5init=no |
4994 | fi | | 5441 | fi |
4995 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 5442 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
4996 | | | 5443 | |
4997 | fi | | 5444 | fi |
4998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_have_md5init" >&5 | | 5445 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_have_md5init" >&5 |
4999 | $as_echo "$pkg_cv_have_md5init" >&6; } | | 5446 | printf "%s\n" "$pkg_cv_have_md5init" >&6; } |
5000 | if test "x$pkg_cv_have_md5init" = "xyes"; then | | 5447 | if test "x$pkg_cv_have_md5init" = "xyes"; then |
5001 | : | | 5448 | : |
5002 | else | | 5449 | else |
5003 | | | 5450 | |
5004 | $as_echo "#define HAVE_NBCOMPAT_MD5INIT 1" >>confdefs.h | | 5451 | printf "%s\n" "#define HAVE_NBCOMPAT_MD5INIT 1" >>confdefs.h |
5005 | | | 5452 | |
5006 | | | 5453 | |
5007 | | | 5454 | |
5008 | : | | 5455 | : |
5009 | fi | | 5456 | fi |
5010 | | | 5457 | |
5011 | | | 5458 | |
5012 | fi | | 5459 | fi |
5013 | | | 5460 | |
5014 | done | | 5461 | done |
5015 | | | 5462 | |
| | | 5463 | ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "$ac_includes_default" |
| | | 5464 | if test "x$ac_cv_header_md5_h" = xyes |
| | | 5465 | then : |
| | | 5466 | printf "%s\n" "#define HAVE_MD5_H 1" >>confdefs.h |
5016 | | | 5467 | |
5017 | for ac_header in md5.h rmd160.h sha1.h sha2.h | | 5468 | fi |
5018 | do : | | 5469 | ac_fn_c_check_header_compile "$LINENO" "rmd160.h" "ac_cv_header_rmd160_h" "$ac_includes_default" |
5019 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | | 5470 | if test "x$ac_cv_header_rmd160_h" = xyes |
5020 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | | 5471 | then : |
5021 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | | 5472 | printf "%s\n" "#define HAVE_RMD160_H 1" >>confdefs.h |
5022 | cat >>confdefs.h <<_ACEOF | | | |
5023 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | | | |
5024 | _ACEOF | | | |
5025 | | | 5473 | |
5026 | fi | | 5474 | fi |
| | | 5475 | ac_fn_c_check_header_compile "$LINENO" "sha1.h" "ac_cv_header_sha1_h" "$ac_includes_default" |
| | | 5476 | if test "x$ac_cv_header_sha1_h" = xyes |
| | | 5477 | then : |
| | | 5478 | printf "%s\n" "#define HAVE_SHA1_H 1" >>confdefs.h |
5027 | | | 5479 | |
5028 | done | | 5480 | fi |
| | | 5481 | ac_fn_c_check_header_compile "$LINENO" "sha2.h" "ac_cv_header_sha2_h" "$ac_includes_default" |
| | | 5482 | if test "x$ac_cv_header_sha2_h" = xyes |
| | | 5483 | then : |
| | | 5484 | printf "%s\n" "#define HAVE_SHA2_H 1" >>confdefs.h |
| | | 5485 | |
| | | 5486 | fi |
5029 | | | 5487 | |
5030 | ac_fn_c_check_func "$LINENO" "MD5File" "ac_cv_func_MD5File" | | 5488 | ac_fn_c_check_func "$LINENO" "MD5File" "ac_cv_func_MD5File" |
5031 | if test "x$ac_cv_func_MD5File" = xyes; then : | | 5489 | if test "x$ac_cv_func_MD5File" = xyes |
| | | 5490 | then : |
5032 | : | | 5491 | : |
5033 | else | | 5492 | else $as_nop |
5034 | | | 5493 | |
5035 | $as_echo "#define HAVE_NBCOMPAT_MD5 1" >>confdefs.h | | 5494 | printf "%s\n" "#define HAVE_NBCOMPAT_MD5 1" >>confdefs.h |
5036 | | | 5495 | |
5037 | | | 5496 | |
5038 | case " $LIBOBJS " in | | 5497 | case " $LIBOBJS " in |
5039 | *" md5c.$ac_objext "* ) ;; | | 5498 | *" md5c.$ac_objext "* ) ;; |
5040 | *) LIBOBJS="$LIBOBJS md5c.$ac_objext" | | 5499 | *) LIBOBJS="$LIBOBJS md5c.$ac_objext" |
5041 | ;; | | 5500 | ;; |
5042 | esac | | 5501 | esac |
5043 | | | 5502 | |
5044 | case " $LIBOBJS " in | | 5503 | case " $LIBOBJS " in |
5045 | *" md5hl.$ac_objext "* ) ;; | | 5504 | *" md5hl.$ac_objext "* ) ;; |
5046 | *) LIBOBJS="$LIBOBJS md5hl.$ac_objext" | | 5505 | *) LIBOBJS="$LIBOBJS md5hl.$ac_objext" |
5047 | ;; | | 5506 | ;; |
5048 | esac | | 5507 | esac |
5049 | | | 5508 | |
5050 | | | 5509 | |
5051 | fi | | 5510 | fi |
5052 | | | 5511 | |
5053 | ac_fn_c_check_func "$LINENO" "RMD160File" "ac_cv_func_RMD160File" | | 5512 | ac_fn_c_check_func "$LINENO" "RMD160File" "ac_cv_func_RMD160File" |
5054 | if test "x$ac_cv_func_RMD160File" = xyes; then : | | 5513 | if test "x$ac_cv_func_RMD160File" = xyes |
| | | 5514 | then : |
5055 | : | | 5515 | : |
5056 | else | | 5516 | else $as_nop |
5057 | | | 5517 | |
5058 | $as_echo "#define HAVE_NBCOMPAT_RMD160 1" >>confdefs.h | | 5518 | printf "%s\n" "#define HAVE_NBCOMPAT_RMD160 1" >>confdefs.h |
5059 | | | 5519 | |
5060 | | | 5520 | |
5061 | case " $LIBOBJS " in | | 5521 | case " $LIBOBJS " in |
5062 | *" rmd160.$ac_objext "* ) ;; | | 5522 | *" rmd160.$ac_objext "* ) ;; |
5063 | *) LIBOBJS="$LIBOBJS rmd160.$ac_objext" | | 5523 | *) LIBOBJS="$LIBOBJS rmd160.$ac_objext" |
5064 | ;; | | 5524 | ;; |
5065 | esac | | 5525 | esac |
5066 | | | 5526 | |
5067 | case " $LIBOBJS " in | | 5527 | case " $LIBOBJS " in |
5068 | *" rmd160hl.$ac_objext "* ) ;; | | 5528 | *" rmd160hl.$ac_objext "* ) ;; |
5069 | *) LIBOBJS="$LIBOBJS rmd160hl.$ac_objext" | | 5529 | *) LIBOBJS="$LIBOBJS rmd160hl.$ac_objext" |
5070 | ;; | | 5530 | ;; |
5071 | esac | | 5531 | esac |
5072 | | | 5532 | |
5073 | | | 5533 | |
5074 | fi | | 5534 | fi |
5075 | | | 5535 | |
5076 | ac_fn_c_check_func "$LINENO" "SHA1File" "ac_cv_func_SHA1File" | | 5536 | ac_fn_c_check_func "$LINENO" "SHA1File" "ac_cv_func_SHA1File" |
5077 | if test "x$ac_cv_func_SHA1File" = xyes; then : | | 5537 | if test "x$ac_cv_func_SHA1File" = xyes |
| | | 5538 | then : |
5078 | : | | 5539 | : |
5079 | else | | 5540 | else $as_nop |
5080 | | | 5541 | |
5081 | $as_echo "#define HAVE_NBCOMPAT_SHA1 1" >>confdefs.h | | 5542 | printf "%s\n" "#define HAVE_NBCOMPAT_SHA1 1" >>confdefs.h |
5082 | | | 5543 | |
5083 | | | 5544 | |
5084 | case " $LIBOBJS " in | | 5545 | case " $LIBOBJS " in |
5085 | *" sha1.$ac_objext "* ) ;; | | 5546 | *" sha1.$ac_objext "* ) ;; |
5086 | *) LIBOBJS="$LIBOBJS sha1.$ac_objext" | | 5547 | *) LIBOBJS="$LIBOBJS sha1.$ac_objext" |
5087 | ;; | | 5548 | ;; |
5088 | esac | | 5549 | esac |
5089 | | | 5550 | |
5090 | case " $LIBOBJS " in | | 5551 | case " $LIBOBJS " in |
5091 | *" sha1hl.$ac_objext "* ) ;; | | 5552 | *" sha1hl.$ac_objext "* ) ;; |
5092 | *) LIBOBJS="$LIBOBJS sha1hl.$ac_objext" | | 5553 | *) LIBOBJS="$LIBOBJS sha1hl.$ac_objext" |
5093 | ;; | | 5554 | ;; |
5094 | esac | | 5555 | esac |
5095 | | | 5556 | |
5096 | | | 5557 | |
5097 | fi | | 5558 | fi |
5098 | | | 5559 | |
5099 | | | 5560 | |
5100 | ac_fn_c_check_func "$LINENO" "SHA512_File" "ac_cv_func_SHA512_File" | | 5561 | ac_fn_c_check_func "$LINENO" "SHA512_File" "ac_cv_func_SHA512_File" |
5101 | if test "x$ac_cv_func_SHA512_File" = xyes; then : | | 5562 | if test "x$ac_cv_func_SHA512_File" = xyes |
| | | 5563 | then : |
5102 | : | | 5564 | : |
5103 | else | | 5565 | else $as_nop |
5104 | | | 5566 | |
5105 | $as_echo "#define HAVE_NBCOMPAT_SHA2 1" >>confdefs.h | | 5567 | printf "%s\n" "#define HAVE_NBCOMPAT_SHA2 1" >>confdefs.h |
5106 | | | 5568 | |
5107 | | | 5569 | |
5108 | case " $LIBOBJS " in | | 5570 | case " $LIBOBJS " in |
5109 | *" sha2.$ac_objext "* ) ;; | | 5571 | *" sha2.$ac_objext "* ) ;; |
5110 | *) LIBOBJS="$LIBOBJS sha2.$ac_objext" | | 5572 | *) LIBOBJS="$LIBOBJS sha2.$ac_objext" |
5111 | ;; | | 5573 | ;; |
5112 | esac | | 5574 | esac |
5113 | | | 5575 | |
5114 | case " $LIBOBJS " in | | 5576 | case " $LIBOBJS " in |
5115 | *" sha2hl.$ac_objext "* ) ;; | | 5577 | *" sha2hl.$ac_objext "* ) ;; |
5116 | *) LIBOBJS="$LIBOBJS sha2hl.$ac_objext" | | 5578 | *) LIBOBJS="$LIBOBJS sha2hl.$ac_objext" |
5117 | ;; | | 5579 | ;; |
5118 | esac | | 5580 | esac |
5119 | | | 5581 | |
5120 | | | 5582 | |
5121 | fi | | 5583 | fi |
5122 | | | 5584 | |
5123 | | | 5585 | |
5124 | case $host in | | 5586 | case $host in |
5125 | *-*-hpux*) | | 5587 | *-*-hpux*) |
5126 | $as_echo "#define BROKEN_PREAD 1" >>confdefs.h | | 5588 | printf "%s\n" "#define BROKEN_PREAD 1" >>confdefs.h |
5127 | | | 5589 | |
5128 | | | 5590 | |
5129 | $as_echo "#define BROKEN_PWRITE 1" >>confdefs.h | | 5591 | printf "%s\n" "#define BROKEN_PWRITE 1" >>confdefs.h |
5130 | | | 5592 | |
5131 | | | 5593 | |
5132 | ;; | | 5594 | ;; |
5133 | *-*-sco3.2v5*) | | 5595 | *-*-sco3.2v5*) |
5134 | $as_echo "#define BROKEN_PREAD 1" >>confdefs.h | | 5596 | printf "%s\n" "#define BROKEN_PREAD 1" >>confdefs.h |
5135 | | | 5597 | |
5136 | | | 5598 | |
5137 | $as_echo "#define BROKEN_PWRITE 1" >>confdefs.h | | 5599 | printf "%s\n" "#define BROKEN_PWRITE 1" >>confdefs.h |
5138 | | | 5600 | |
5139 | | | 5601 | |
5140 | ;; | | 5602 | ;; |
5141 | esac | | 5603 | esac |
5142 | | | 5604 | |
5143 | # Check whether --enable-db was given. | | 5605 | # Check whether --enable-db was given. |
5144 | if test "${enable_db+set}" = set; then : | | 5606 | if test ${enable_db+y} |
| | | 5607 | then : |
5145 | enableval=$enable_db; | | 5608 | enableval=$enable_db; |
5146 | fi | | 5609 | fi |
5147 | | | 5610 | |
5148 | WITH_DB=$enable_db | | 5611 | WITH_DB=$enable_db |
5149 | | | 5612 | |
5150 | for ac_func in issetugid | | 5613 | ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid" |
5151 | do : | | 5614 | if test "x$ac_cv_func_issetugid" = xyes |
5152 | ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid" | | 5615 | then : |
5153 | if test "x$ac_cv_func_issetugid" = xyes; then : | | 5616 | printf "%s\n" "#define HAVE_ISSETUGID 1" >>confdefs.h |
5154 | cat >>confdefs.h <<_ACEOF | | | |
5155 | #define HAVE_ISSETUGID 1 | | | |
5156 | _ACEOF | | | |
5157 | | | 5617 | |
5158 | fi | | 5618 | fi |
5159 | done | | | |
5160 | | | 5619 | |
5161 | | | 5620 | |
5162 | # Check whether --enable-bsd-getopt was given. | | 5621 | # Check whether --enable-bsd-getopt was given. |
5163 | if test "${enable_bsd_getopt+set}" = set; then : | | 5622 | if test ${enable_bsd_getopt+y} |
| | | 5623 | then : |
5164 | enableval=$enable_bsd_getopt; | | 5624 | enableval=$enable_bsd_getopt; |
5165 | fi | | 5625 | fi |
5166 | | | 5626 | |
5167 | | | 5627 | |
5168 | ac_fn_c_check_decl "$LINENO" "optarg" "ac_cv_have_decl_optarg" " | | 5628 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 |
| | | 5629 | printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } |
| | | 5630 | if test ${ac_cv_c_undeclared_builtin_options+y} |
| | | 5631 | then : |
| | | 5632 | printf %s "(cached) " >&6 |
| | | 5633 | else $as_nop |
| | | 5634 | ac_save_CFLAGS=$CFLAGS |
| | | 5635 | ac_cv_c_undeclared_builtin_options='cannot detect' |
| | | 5636 | for ac_arg in '' -fno-builtin; do |
| | | 5637 | CFLAGS="$ac_save_CFLAGS $ac_arg" |
| | | 5638 | # This test program should *not* compile successfully. |
| | | 5639 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| | | 5640 | /* end confdefs.h. */ |
| | | 5641 | |
| | | 5642 | int |
| | | 5643 | main (void) |
| | | 5644 | { |
| | | 5645 | (void) strchr; |
| | | 5646 | ; |
| | | 5647 | return 0; |
| | | 5648 | } |
| | | 5649 | _ACEOF |
| | | 5650 | if ac_fn_c_try_compile "$LINENO" |
| | | 5651 | then : |
| | | 5652 | |
| | | 5653 | else $as_nop |
| | | 5654 | # This test program should compile successfully. |
| | | 5655 | # No library function is consistently available on |
| | | 5656 | # freestanding implementations, so test against a dummy |
| | | 5657 | # declaration. Include always-available headers on the |
| | | 5658 | # off chance that they somehow elicit warnings. |
| | | 5659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| | | 5660 | /* end confdefs.h. */ |
| | | 5661 | #include <float.h> |
| | | 5662 | #include <limits.h> |
| | | 5663 | #include <stdarg.h> |
| | | 5664 | #include <stddef.h> |
| | | 5665 | extern void ac_decl (int, char *); |
| | | 5666 | |
| | | 5667 | int |
| | | 5668 | main (void) |
| | | 5669 | { |
| | | 5670 | (void) ac_decl (0, (char *) 0); |
| | | 5671 | (void) ac_decl; |
| | | 5672 | |
| | | 5673 | ; |
| | | 5674 | return 0; |
| | | 5675 | } |
| | | 5676 | _ACEOF |
| | | 5677 | if ac_fn_c_try_compile "$LINENO" |
| | | 5678 | then : |
| | | 5679 | if test x"$ac_arg" = x |
| | | 5680 | then : |
| | | 5681 | ac_cv_c_undeclared_builtin_options='none needed' |
| | | 5682 | else $as_nop |
| | | 5683 | ac_cv_c_undeclared_builtin_options=$ac_arg |
| | | 5684 | fi |
| | | 5685 | break |
| | | 5686 | fi |
| | | 5687 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| | | 5688 | fi |
| | | 5689 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| | | 5690 | done |
| | | 5691 | CFLAGS=$ac_save_CFLAGS |
| | | 5692 | |
| | | 5693 | fi |
| | | 5694 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 |
| | | 5695 | printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } |
| | | 5696 | case $ac_cv_c_undeclared_builtin_options in #( |
| | | 5697 | 'cannot detect') : |
| | | 5698 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| | | 5699 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| | | 5700 | as_fn_error $? "cannot make $CC report undeclared builtins |
| | | 5701 | See \`config.log' for more details" "$LINENO" 5; } ;; #( |
| | | 5702 | 'none needed') : |
| | | 5703 | ac_c_undeclared_builtin_options='' ;; #( |
| | | 5704 | *) : |
| | | 5705 | ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; |
| | | 5706 | esac |
| | | 5707 | |
| | | 5708 | ac_fn_check_decl "$LINENO" "optarg" "ac_cv_have_decl_optarg" " |
5169 | #include <stdio.h> | | 5709 | #include <stdio.h> |
5170 | #include <stdlib.h> | | 5710 | #include <stdlib.h> |
5171 | #include <unistd.h> | | 5711 | #include <unistd.h> |
5172 | | | 5712 | |
5173 | " | | 5713 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
5174 | if test "x$ac_cv_have_decl_optarg" = xyes; then : | | 5714 | if test "x$ac_cv_have_decl_optarg" = xyes |
| | | 5715 | then : |
5175 | ac_have_decl=1 | | 5716 | ac_have_decl=1 |
5176 | else | | 5717 | else $as_nop |
5177 | ac_have_decl=0 | | 5718 | ac_have_decl=0 |
5178 | fi | | 5719 | fi |
5179 | | | 5720 | printf "%s\n" "#define HAVE_DECL_OPTARG $ac_have_decl" >>confdefs.h |
5180 | cat >>confdefs.h <<_ACEOF | | 5721 | if test $ac_have_decl = 1 |
5181 | #define HAVE_DECL_OPTARG $ac_have_decl | | 5722 | then : |
5182 | _ACEOF | | | |
5183 | if test $ac_have_decl = 1; then : | | | |
5184 | : | | 5723 | : |
5185 | else | | 5724 | else $as_nop |
5186 | : | | 5725 | : |
5187 | fi | | 5726 | fi |
5188 | ac_fn_c_check_decl "$LINENO" "optind" "ac_cv_have_decl_optind" " | | 5727 | ac_fn_check_decl "$LINENO" "optind" "ac_cv_have_decl_optind" " |
5189 | #include <stdio.h> | | 5728 | #include <stdio.h> |
5190 | #include <stdlib.h> | | 5729 | #include <stdlib.h> |
5191 | #include <unistd.h> | | 5730 | #include <unistd.h> |
5192 | | | 5731 | |
5193 | " | | 5732 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
5194 | if test "x$ac_cv_have_decl_optind" = xyes; then : | | 5733 | if test "x$ac_cv_have_decl_optind" = xyes |
| | | 5734 | then : |
5195 | ac_have_decl=1 | | 5735 | ac_have_decl=1 |
5196 | else | | 5736 | else $as_nop |
5197 | ac_have_decl=0 | | 5737 | ac_have_decl=0 |
5198 | fi | | 5738 | fi |
5199 | | | 5739 | printf "%s\n" "#define HAVE_DECL_OPTIND $ac_have_decl" >>confdefs.h |
5200 | cat >>confdefs.h <<_ACEOF | | 5740 | if test $ac_have_decl = 1 |
5201 | #define HAVE_DECL_OPTIND $ac_have_decl | | 5741 | then : |
5202 | _ACEOF | | | |
5203 | if test $ac_have_decl = 1; then : | | | |
5204 | : | | 5742 | : |
5205 | else | | 5743 | else $as_nop |
5206 | : | | 5744 | : |
5207 | fi | | 5745 | fi |
5208 | ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" " | | 5746 | ac_fn_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" " |
5209 | #include <stdio.h> | | 5747 | #include <stdio.h> |
5210 | #include <stdlib.h> | | 5748 | #include <stdlib.h> |
5211 | #include <unistd.h> | | 5749 | #include <unistd.h> |
5212 | | | 5750 | |
5213 | " | | 5751 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
5214 | if test "x$ac_cv_have_decl_optreset" = xyes; then : | | 5752 | if test "x$ac_cv_have_decl_optreset" = xyes |
| | | 5753 | then : |
5215 | ac_have_decl=1 | | 5754 | ac_have_decl=1 |
5216 | else | | 5755 | else $as_nop |
5217 | ac_have_decl=0 | | 5756 | ac_have_decl=0 |
5218 | fi | | 5757 | fi |
5219 | | | 5758 | printf "%s\n" "#define HAVE_DECL_OPTRESET $ac_have_decl" >>confdefs.h |
5220 | cat >>confdefs.h <<_ACEOF | | 5759 | if test $ac_have_decl = 1 |
5221 | #define HAVE_DECL_OPTRESET $ac_have_decl | | 5760 | then : |
5222 | _ACEOF | | | |
5223 | if test $ac_have_decl = 1; then : | | | |
5224 | : | | 5761 | : |
5225 | else | | 5762 | else $as_nop |
5226 | : | | 5763 | : |
5227 | fi | | 5764 | fi |
5228 | | | 5765 | |
5229 | | | 5766 | |
5230 | our_getopt_long=no | | 5767 | our_getopt_long=no |
5231 | for ac_header in getopt.h | | 5768 | for ac_header in getopt.h |
5232 | do : | | 5769 | do : |
5233 | ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" | | 5770 | ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" |
5234 | if test "x$ac_cv_header_getopt_h" = xyes; then : | | 5771 | if test "x$ac_cv_header_getopt_h" = xyes |
5235 | cat >>confdefs.h <<_ACEOF | | 5772 | then : |
5236 | #define HAVE_GETOPT_H 1 | | 5773 | printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h |
5237 | _ACEOF | | | |
5238 | ac_fn_c_check_type "$LINENO" "struct option" "ac_cv_type_struct_option" "#include <getopt.h> | | 5774 | ac_fn_c_check_type "$LINENO" "struct option" "ac_cv_type_struct_option" "#include <getopt.h> |
5239 | " | | 5775 | " |
5240 | if test "x$ac_cv_type_struct_option" = xyes; then : | | 5776 | if test "x$ac_cv_type_struct_option" = xyes |
| | | 5777 | then : |
5241 | | | 5778 | |
5242 | cat >>confdefs.h <<_ACEOF | | 5779 | printf "%s\n" "#define HAVE_STRUCT_OPTION 1" >>confdefs.h |
5243 | #define HAVE_STRUCT_OPTION 1 | | | |
5244 | _ACEOF | | | |
5245 | | | 5780 | |
5246 | : | | 5781 | : |
5247 | else | | 5782 | else $as_nop |
5248 | our_getopt_long=yes | | 5783 | our_getopt_long=yes |
5249 | fi | | 5784 | fi |
5250 | | | 5785 | |
5251 | else | | 5786 | else $as_nop |
5252 | our_getopt_long=yes | | 5787 | our_getopt_long=yes |
5253 | | | 5788 | |
5254 | fi | | 5789 | fi |
5255 | | | 5790 | |
5256 | done | | 5791 | done |
5257 | | | 5792 | |
5258 | | | | |
5259 | if test "$enable_bsd_getopt" = yes; then | | 5793 | if test "$enable_bsd_getopt" = yes; then |
5260 | if test "$ac_cv_have_decl_optreset" = no; then | | 5794 | if test "$ac_cv_have_decl_optreset" = no; then |
5261 | { $as_echo "$as_me:${as_lineno-$LINENO}: Using included getopt and getopt_long" >&5 | | 5795 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using included getopt and getopt_long" >&5 |
5262 | $as_echo "$as_me: Using included getopt and getopt_long" >&6;} | | 5796 | printf "%s\n" "$as_me: Using included getopt and getopt_long" >&6;} |
5263 | case " $LIBOBJS " in | | 5797 | case " $LIBOBJS " in |
5264 | *" getopt.$ac_objext "* ) ;; | | 5798 | *" getopt.$ac_objext "* ) ;; |
5265 | *) LIBOBJS="$LIBOBJS getopt.$ac_objext" | | 5799 | *) LIBOBJS="$LIBOBJS getopt.$ac_objext" |
5266 | ;; | | 5800 | ;; |
5267 | esac | | 5801 | esac |
5268 | | | 5802 | |
5269 | our_getopt_long=yes | | 5803 | our_getopt_long=yes |
5270 | fi | | 5804 | fi |
5271 | fi | | 5805 | fi |
5272 | | | 5806 | |
5273 | if test "$our_getopt_long" = "yes"; then | | 5807 | if test "$our_getopt_long" = "yes"; then |
5274 | case " $LIBOBJS " in | | 5808 | case " $LIBOBJS " in |
5275 | *" getopt_long.$ac_objext "* ) ;; | | 5809 | *" getopt_long.$ac_objext "* ) ;; |
5276 | *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext" | | 5810 | *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext" |
5277 | ;; | | 5811 | ;; |
5278 | esac | | 5812 | esac |
5279 | | | 5813 | |
5280 | fi | | 5814 | fi |
5281 | | | 5815 | |
5282 | pkg_use_nbcompat_vis=yes | | 5816 | pkg_use_nbcompat_vis=yes |
5283 | for ac_header in vis.h | | 5817 | for ac_header in vis.h |
5284 | do : | | 5818 | do : |
5285 | ac_fn_c_check_header_mongrel "$LINENO" "vis.h" "ac_cv_header_vis_h" "$ac_includes_default" | | 5819 | ac_fn_c_check_header_compile "$LINENO" "vis.h" "ac_cv_header_vis_h" "$ac_includes_default" |
5286 | if test "x$ac_cv_header_vis_h" = xyes; then : | | 5820 | if test "x$ac_cv_header_vis_h" = xyes |
5287 | cat >>confdefs.h <<_ACEOF | | 5821 | then : |
5288 | #define HAVE_VIS_H 1 | | 5822 | printf "%s\n" "#define HAVE_VIS_H 1" >>confdefs.h |
5289 | _ACEOF | | | |
5290 | | | 5823 | |
5291 | | | 5824 | |
5292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VIS_WHITE in vis.h" >&5 | | 5825 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for VIS_WHITE in vis.h" >&5 |
5293 | $as_echo_n "checking for VIS_WHITE in vis.h... " >&6; } | | 5826 | printf %s "checking for VIS_WHITE in vis.h... " >&6; } |
5294 | if ${pkg_cv_have_vis_white+:} false; then : | | 5827 | if test ${pkg_cv_have_vis_white+y} |
5295 | $as_echo_n "(cached) " >&6 | | 5828 | then : |
5296 | else | | 5829 | printf %s "(cached) " >&6 |
| | | 5830 | else $as_nop |
5297 | | | 5831 | |
5298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 5832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5299 | /* end confdefs.h. */ | | 5833 | /* end confdefs.h. */ |
5300 | | | 5834 | |
5301 | #include <sys/types.h> | | 5835 | #include <sys/types.h> |
5302 | #include <vis.h> | | 5836 | #include <vis.h> |
5303 | | | 5837 | |
5304 | int | | 5838 | int |
5305 | main () | | 5839 | main (void) |
5306 | { | | 5840 | { |
5307 | int X = VIS_WHITE; ; | | 5841 | int X = VIS_WHITE; ; |
5308 | ; | | 5842 | ; |
5309 | return 0; | | 5843 | return 0; |
5310 | } | | 5844 | } |
5311 | _ACEOF | | 5845 | _ACEOF |
5312 | if ac_fn_c_try_compile "$LINENO"; then : | | 5846 | if ac_fn_c_try_compile "$LINENO" |
| | | 5847 | then : |
5313 | pkg_cv_have_vis_white=yes | | 5848 | pkg_cv_have_vis_white=yes |
5314 | else | | 5849 | else $as_nop |
5315 | pkg_cv_have_vis_white=no | | 5850 | pkg_cv_have_vis_white=no |
5316 | fi | | 5851 | fi |
5317 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 5852 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
5318 | | | 5853 | |
5319 | fi | | 5854 | fi |
5320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_have_vis_white" >&5 | | 5855 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_have_vis_white" >&5 |
5321 | $as_echo "$pkg_cv_have_vis_white" >&6; } | | 5856 | printf "%s\n" "$pkg_cv_have_vis_white" >&6; } |
5322 | if test "x$pkg_cv_have_vis_white" = "xyes"; then | | 5857 | if test "x$pkg_cv_have_vis_white" = "xyes"; then |
5323 | | | 5858 | |
5324 | for ac_func in strunvis strvis strsvis svis unvis vis | | 5859 | ac_fn_c_check_func "$LINENO" "strunvis" "ac_cv_func_strunvis" |
5325 | do : | | 5860 | if test "x$ac_cv_func_strunvis" = xyes |
5326 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | | 5861 | then : |
5327 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | | 5862 | printf "%s\n" "#define HAVE_STRUNVIS 1" >>confdefs.h |
5328 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | | | |
5329 | cat >>confdefs.h <<_ACEOF | | | |
5330 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | | | |
5331 | _ACEOF | | | |
5332 | | | 5863 | |
5333 | fi | | 5864 | fi |
5334 | done | | 5865 | ac_fn_c_check_func "$LINENO" "strvis" "ac_cv_func_strvis" |
| | | 5866 | if test "x$ac_cv_func_strvis" = xyes |
| | | 5867 | then : |
| | | 5868 | printf "%s\n" "#define HAVE_STRVIS 1" >>confdefs.h |
| | | 5869 | |
| | | 5870 | fi |
| | | 5871 | ac_fn_c_check_func "$LINENO" "strsvis" "ac_cv_func_strsvis" |
| | | 5872 | if test "x$ac_cv_func_strsvis" = xyes |
| | | 5873 | then : |
| | | 5874 | printf "%s\n" "#define HAVE_STRSVIS 1" >>confdefs.h |
| | | 5875 | |
| | | 5876 | fi |
| | | 5877 | ac_fn_c_check_func "$LINENO" "svis" "ac_cv_func_svis" |
| | | 5878 | if test "x$ac_cv_func_svis" = xyes |
| | | 5879 | then : |
| | | 5880 | printf "%s\n" "#define HAVE_SVIS 1" >>confdefs.h |
| | | 5881 | |
| | | 5882 | fi |
| | | 5883 | ac_fn_c_check_func "$LINENO" "unvis" "ac_cv_func_unvis" |
| | | 5884 | if test "x$ac_cv_func_unvis" = xyes |
| | | 5885 | then : |
| | | 5886 | printf "%s\n" "#define HAVE_UNVIS 1" >>confdefs.h |
| | | 5887 | |
| | | 5888 | fi |
| | | 5889 | ac_fn_c_check_func "$LINENO" "vis" "ac_cv_func_vis" |
| | | 5890 | if test "x$ac_cv_func_vis" = xyes |
| | | 5891 | then : |
| | | 5892 | printf "%s\n" "#define HAVE_VIS 1" >>confdefs.h |
| | | 5893 | |
| | | 5894 | fi |
| | | 5895 | |
5335 | | | 5896 | |
5336 | for ac_func in strunvis strvis strsvis svis unvis vis | | 5897 | for ac_func in strunvis strvis strsvis svis unvis vis |
5337 | do : | | 5898 | do : |
5338 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | | 5899 | as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh` |
5339 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | | 5900 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
5340 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | | 5901 | if eval test \"x\$"$as_ac_var"\" = x"yes" |
| | | 5902 | then : |
5341 | cat >>confdefs.h <<_ACEOF | | 5903 | cat >>confdefs.h <<_ACEOF |
5342 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | | 5904 | #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 |
5343 | _ACEOF | | 5905 | _ACEOF |
5344 | pkg_use_nbcompat_vis=no | | 5906 | pkg_use_nbcompat_vis=no |
5345 | else | | 5907 | else $as_nop |
5346 | pkg_use_nbcompat_vis=yes; break | | 5908 | pkg_use_nbcompat_vis=yes; break |
5347 | fi | | 5909 | fi |
5348 | done | | | |
5349 | | | 5910 | |
| | | 5911 | done |
5350 | | | 5912 | |
5351 | else | | 5913 | else |
5352 | | | 5914 | |
5353 | : | | 5915 | : |
5354 | fi | | 5916 | fi |
5355 | | | 5917 | |
5356 | | | 5918 | |
5357 | fi | | 5919 | fi |
5358 | | | 5920 | |
5359 | done | | 5921 | done |
5360 | | | 5922 | |
5361 | | | | |
5362 | if test $pkg_use_nbcompat_vis = yes; then | | 5923 | if test $pkg_use_nbcompat_vis = yes; then |
5363 | $as_echo "#define HAVE_NBCOMPAT_VIS 1" >>confdefs.h | | 5924 | printf "%s\n" "#define HAVE_NBCOMPAT_VIS 1" >>confdefs.h |
5364 | | | 5925 | |
5365 | | | 5926 | |
5366 | case " $LIBOBJS " in | | 5927 | case " $LIBOBJS " in |
5367 | *" vis.$ac_objext "* ) ;; | | 5928 | *" vis.$ac_objext "* ) ;; |
5368 | *) LIBOBJS="$LIBOBJS vis.$ac_objext" | | 5929 | *) LIBOBJS="$LIBOBJS vis.$ac_objext" |
5369 | ;; | | 5930 | ;; |
5370 | esac | | 5931 | esac |
5371 | | | 5932 | |
5372 | case " $LIBOBJS " in | | 5933 | case " $LIBOBJS " in |
5373 | *" unvis.$ac_objext "* ) ;; | | 5934 | *" unvis.$ac_objext "* ) ;; |
5374 | *) LIBOBJS="$LIBOBJS unvis.$ac_objext" | | 5935 | *) LIBOBJS="$LIBOBJS unvis.$ac_objext" |
5375 | ;; | | 5936 | ;; |
5376 | esac | | 5937 | esac |
5377 | | | 5938 | |
5378 | fi | | 5939 | fi |
5379 | | | 5940 | |
5380 | | | 5941 | |
5381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5 | | 5942 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5 |
5382 | $as_echo_n "checking for __attribute__... " >&6; } | | 5943 | printf %s "checking for __attribute__... " >&6; } |
5383 | if ${ac_cv___attribute__+:} false; then : | | 5944 | if test ${ac_cv___attribute__+y} |
5384 | $as_echo_n "(cached) " >&6 | | 5945 | then : |
5385 | else | | 5946 | printf %s "(cached) " >&6 |
| | | 5947 | else $as_nop |
5386 | | | 5948 | |
5387 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 5949 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5388 | /* end confdefs.h. */ | | 5950 | /* end confdefs.h. */ |
5389 | #include <stdlib.h> | | 5951 | #include <stdlib.h> |
5390 | static void foo(void) __attribute__ ((noreturn)); | | 5952 | static void foo(void) __attribute__ ((noreturn)); |
5391 | | | 5953 | |
5392 | static void | | 5954 | static void |
5393 | foo(void) | | 5955 | foo(void) |
5394 | { | | 5956 | { |
5395 | exit(1); | | 5957 | exit(1); |
5396 | } | | 5958 | } |
5397 | | | 5959 | |
5398 | _ACEOF | | 5960 | _ACEOF |
5399 | if ac_fn_c_try_compile "$LINENO"; then : | | 5961 | if ac_fn_c_try_compile "$LINENO" |
| | | 5962 | then : |
5400 | ac_cv___attribute__=yes | | 5963 | ac_cv___attribute__=yes |
5401 | else | | 5964 | else $as_nop |
5402 | ac_cv___attribute__=no | | 5965 | ac_cv___attribute__=no |
5403 | fi | | 5966 | fi |
5404 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 5967 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
5405 | fi | | 5968 | fi |
5406 | | | 5969 | |
5407 | if test "$ac_cv___attribute__" = "yes"; then | | 5970 | if test "$ac_cv___attribute__" = "yes"; then |
5408 | | | 5971 | |
5409 | $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h | | 5972 | printf "%s\n" "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h |
5410 | | | 5973 | |
5411 | fi | | 5974 | fi |
5412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5 | | 5975 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5 |
5413 | $as_echo "$ac_cv___attribute__" >&6; } | | 5976 | printf "%s\n" "$ac_cv___attribute__" >&6; } |
5414 | | | 5977 | |
5415 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | | 5978 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
5416 | if test "x$ac_cv_type_size_t" = xyes; then : | | 5979 | if test "x$ac_cv_type_size_t" = xyes |
| | | 5980 | then : |
5417 | | | 5981 | |
5418 | else | | 5982 | else $as_nop |
5419 | | | 5983 | |
5420 | cat >>confdefs.h <<_ACEOF | | 5984 | printf "%s\n" "#define size_t unsigned int" >>confdefs.h |
5421 | #define size_t unsigned int | | | |
5422 | _ACEOF | | | |
5423 | | | 5985 | |
5424 | fi | | 5986 | fi |
5425 | | | 5987 | |
5426 | | | 5988 | |
5427 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" | | 5989 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" |
5428 | if test "x$ac_cv_type_uintptr_t" = xyes; then : | | 5990 | if test "x$ac_cv_type_uintptr_t" = xyes |
| | | 5991 | then : |
5429 | | | 5992 | |
5430 | $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h | | 5993 | printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h |
5431 | | | 5994 | |
5432 | else | | 5995 | else $as_nop |
5433 | for ac_type in 'unsigned int' 'unsigned long int' \ | | 5996 | for ac_type in 'unsigned int' 'unsigned long int' \ |
5434 | 'unsigned long long int'; do | | 5997 | 'unsigned long long int'; do |
5435 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 5998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5436 | /* end confdefs.h. */ | | 5999 | /* end confdefs.h. */ |
5437 | $ac_includes_default | | 6000 | $ac_includes_default |
5438 | int | | 6001 | int |
5439 | main () | | 6002 | main (void) |
5440 | { | | 6003 | { |
5441 | static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; | | 6004 | static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; |
5442 | test_array [0] = 0; | | 6005 | test_array [0] = 0; |
5443 | return test_array [0]; | | 6006 | return test_array [0]; |
5444 | | | 6007 | |
5445 | ; | | 6008 | ; |
5446 | return 0; | | 6009 | return 0; |
5447 | } | | 6010 | } |
5448 | _ACEOF | | 6011 | _ACEOF |
5449 | if ac_fn_c_try_compile "$LINENO"; then : | | 6012 | if ac_fn_c_try_compile "$LINENO" |
| | | 6013 | then : |
5450 | | | 6014 | |
5451 | cat >>confdefs.h <<_ACEOF | | 6015 | printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h |
5452 | #define uintptr_t $ac_type | | | |
5453 | _ACEOF | | | |
5454 | | | 6016 | |
5455 | ac_type= | | 6017 | ac_type= |
5456 | fi | | 6018 | fi |
5457 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 6019 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
5458 | test -z "$ac_type" && break | | 6020 | test -z "$ac_type" && break |
5459 | done | | 6021 | done |
5460 | fi | | 6022 | fi |
5461 | | | 6023 | |
5462 | | | 6024 | |
5463 | ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" | | 6025 | ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" |
5464 | case $ac_cv_c_int8_t in #( | | 6026 | case $ac_cv_c_int8_t in #( |
5465 | no|yes) ;; #( | | 6027 | no|yes) ;; #( |
5466 | *) | | 6028 | *) |
5467 | | | 6029 | |
5468 | cat >>confdefs.h <<_ACEOF | | 6030 | printf "%s\n" "#define int8_t $ac_cv_c_int8_t" >>confdefs.h |
5469 | #define int8_t $ac_cv_c_int8_t | | | |
5470 | _ACEOF | | | |
5471 | ;; | | 6031 | ;; |
5472 | esac | | 6032 | esac |
5473 | | | 6033 | |
5474 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" | | 6034 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" |
5475 | case $ac_cv_c_int16_t in #( | | 6035 | case $ac_cv_c_int16_t in #( |
5476 | no|yes) ;; #( | | 6036 | no|yes) ;; #( |
5477 | *) | | 6037 | *) |
5478 | | | 6038 | |
5479 | cat >>confdefs.h <<_ACEOF | | 6039 | printf "%s\n" "#define int16_t $ac_cv_c_int16_t" >>confdefs.h |
5480 | #define int16_t $ac_cv_c_int16_t | | | |
5481 | _ACEOF | | | |
5482 | ;; | | 6040 | ;; |
5483 | esac | | 6041 | esac |
5484 | | | 6042 | |
5485 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" | | 6043 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
5486 | case $ac_cv_c_int32_t in #( | | 6044 | case $ac_cv_c_int32_t in #( |
5487 | no|yes) ;; #( | | 6045 | no|yes) ;; #( |
5488 | *) | | 6046 | *) |
5489 | | | 6047 | |
5490 | cat >>confdefs.h <<_ACEOF | | 6048 | printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h |
5491 | #define int32_t $ac_cv_c_int32_t | | | |
5492 | _ACEOF | | | |
5493 | ;; | | 6049 | ;; |
5494 | esac | | 6050 | esac |
5495 | | | 6051 | |
5496 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" | | 6052 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" |
5497 | case $ac_cv_c_int64_t in #( | | 6053 | case $ac_cv_c_int64_t in #( |
5498 | no|yes) ;; #( | | 6054 | no|yes) ;; #( |
5499 | *) | | 6055 | *) |
5500 | | | 6056 | |
5501 | cat >>confdefs.h <<_ACEOF | | 6057 | printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h |
5502 | #define int64_t $ac_cv_c_int64_t | | | |
5503 | _ACEOF | | | |
5504 | ;; | | 6058 | ;; |
5505 | esac | | 6059 | esac |
5506 | | | 6060 | |
5507 | ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" | | 6061 | ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" |
5508 | case $ac_cv_c_uint8_t in #( | | 6062 | case $ac_cv_c_uint8_t in #( |
5509 | no|yes) ;; #( | | 6063 | no|yes) ;; #( |
5510 | *) | | 6064 | *) |
5511 | | | 6065 | |
5512 | $as_echo "#define _UINT8_T 1" >>confdefs.h | | 6066 | printf "%s\n" "#define _UINT8_T 1" >>confdefs.h |
5513 | | | 6067 | |
5514 | | | 6068 | |
5515 | cat >>confdefs.h <<_ACEOF | | 6069 | printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h |
5516 | #define uint8_t $ac_cv_c_uint8_t | | | |
5517 | _ACEOF | | | |
5518 | ;; | | 6070 | ;; |
5519 | esac | | 6071 | esac |
5520 | | | 6072 | |
5521 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" | | 6073 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" |
5522 | case $ac_cv_c_uint16_t in #( | | 6074 | case $ac_cv_c_uint16_t in #( |
5523 | no|yes) ;; #( | | 6075 | no|yes) ;; #( |
5524 | *) | | 6076 | *) |
5525 | | | 6077 | |
5526 | | | 6078 | |
5527 | cat >>confdefs.h <<_ACEOF | | 6079 | printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h |
5528 | #define uint16_t $ac_cv_c_uint16_t | | | |
5529 | _ACEOF | | | |
5530 | ;; | | 6080 | ;; |
5531 | esac | | 6081 | esac |
5532 | | | 6082 | |
5533 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" | | 6083 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
5534 | case $ac_cv_c_uint32_t in #( | | 6084 | case $ac_cv_c_uint32_t in #( |
5535 | no|yes) ;; #( | | 6085 | no|yes) ;; #( |
5536 | *) | | 6086 | *) |
5537 | | | 6087 | |
5538 | $as_echo "#define _UINT32_T 1" >>confdefs.h | | 6088 | printf "%s\n" "#define _UINT32_T 1" >>confdefs.h |
5539 | | | 6089 | |
5540 | | | 6090 | |
5541 | cat >>confdefs.h <<_ACEOF | | 6091 | printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h |
5542 | #define uint32_t $ac_cv_c_uint32_t | | | |
5543 | _ACEOF | | | |
5544 | ;; | | 6092 | ;; |
5545 | esac | | 6093 | esac |
5546 | | | 6094 | |
5547 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" | | 6095 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" |
5548 | case $ac_cv_c_uint64_t in #( | | 6096 | case $ac_cv_c_uint64_t in #( |
5549 | no|yes) ;; #( | | 6097 | no|yes) ;; #( |
5550 | *) | | 6098 | *) |
5551 | | | 6099 | |
5552 | $as_echo "#define _UINT64_T 1" >>confdefs.h | | 6100 | printf "%s\n" "#define _UINT64_T 1" >>confdefs.h |
5553 | | | 6101 | |
5554 | | | 6102 | |
5555 | cat >>confdefs.h <<_ACEOF | | 6103 | printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h |
5556 | #define uint64_t $ac_cv_c_uint64_t | | | |
5557 | _ACEOF | | | |
5558 | ;; | | 6104 | ;; |
5559 | esac | | 6105 | esac |
5560 | | | 6106 | |
5561 | ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "#if STDC_HEADERS | | 6107 | ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "#if STDC_HEADERS |
5562 | #include <stdlib.h> | | 6108 | #include <stdlib.h> |
5563 | #include <stddef.h> | | 6109 | #include <stddef.h> |
5564 | #endif | | 6110 | #endif |
5565 | #if HAVE_INTTYPES_H | | 6111 | #if HAVE_INTTYPES_H |
5566 | #include <inttypes.h> | | 6112 | #include <inttypes.h> |
5567 | #endif | | 6113 | #endif |
5568 | #if HAVE_SYS_TYPES_H | | 6114 | #if HAVE_SYS_TYPES_H |
5569 | #include <sys/types.h> | | 6115 | #include <sys/types.h> |
5570 | #endif | | 6116 | #endif |
5571 | #if HAVE_SYS_BITYPES_H | | 6117 | #if HAVE_SYS_BITYPES_H |
5572 | #include <sys/bitypes.h> | | 6118 | #include <sys/bitypes.h> |
5573 | #endif | | 6119 | #endif |
5574 | " | | 6120 | " |
5575 | if test "x$ac_cv_type_long_long" = xyes; then : | | 6121 | if test "x$ac_cv_type_long_long" = xyes |
| | | 6122 | then : |
5576 | | | 6123 | |
5577 | cat >>confdefs.h <<_ACEOF | | 6124 | printf "%s\n" "#define HAVE_LONG_LONG 1" >>confdefs.h |
5578 | #define HAVE_LONG_LONG 1 | | | |
5579 | _ACEOF | | | |
5580 | | | 6125 | |
5581 | | | 6126 | |
5582 | fi | | 6127 | fi |
5583 | ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "#if STDC_HEADERS | | 6128 | ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "#if STDC_HEADERS |
5584 | #include <stdlib.h> | | 6129 | #include <stdlib.h> |
5585 | #include <stddef.h> | | 6130 | #include <stddef.h> |
5586 | #endif | | 6131 | #endif |
5587 | #if HAVE_INTTYPES_H | | 6132 | #if HAVE_INTTYPES_H |
5588 | #include <inttypes.h> | | 6133 | #include <inttypes.h> |
5589 | #endif | | 6134 | #endif |
5590 | #if HAVE_SYS_TYPES_H | | 6135 | #if HAVE_SYS_TYPES_H |
5591 | #include <sys/types.h> | | 6136 | #include <sys/types.h> |
5592 | #endif | | 6137 | #endif |
5593 | #if HAVE_SYS_BITYPES_H | | 6138 | #if HAVE_SYS_BITYPES_H |
5594 | #include <sys/bitypes.h> | | 6139 | #include <sys/bitypes.h> |
5595 | #endif | | 6140 | #endif |
5596 | " | | 6141 | " |
5597 | if test "x$ac_cv_type_long_double" = xyes; then : | | 6142 | if test "x$ac_cv_type_long_double" = xyes |
| | | 6143 | then : |
5598 | | | 6144 | |
5599 | cat >>confdefs.h <<_ACEOF | | 6145 | printf "%s\n" "#define HAVE_LONG_DOUBLE 1" >>confdefs.h |
5600 | #define HAVE_LONG_DOUBLE 1 | | | |
5601 | _ACEOF | | | |
5602 | | | 6146 | |
5603 | | | 6147 | |
5604 | fi | | 6148 | fi |
5605 | | | 6149 | |
5606 | ac_fn_c_check_type "$LINENO" "fsid_t" "ac_cv_type_fsid_t" "#if HAVE_SYS_TYPES_H | | 6150 | ac_fn_c_check_type "$LINENO" "fsid_t" "ac_cv_type_fsid_t" "#if HAVE_SYS_TYPES_H |
5607 | #include <sys/types.h> | | 6151 | #include <sys/types.h> |
5608 | #endif | | 6152 | #endif |
5609 | #if HAVE_SYS_PARAM_H | | 6153 | #if HAVE_SYS_PARAM_H |
5610 | #include <sys/param.h> | | 6154 | #include <sys/param.h> |
5611 | #endif | | 6155 | #endif |
5612 | #if HAVE_SYS_MOUNT_H | | 6156 | #if HAVE_SYS_MOUNT_H |
5613 | #include <sys/mount.h> | | 6157 | #include <sys/mount.h> |
5614 | #endif | | 6158 | #endif |
5615 | #if HAVE_SYS_VFS_H | | 6159 | #if HAVE_SYS_VFS_H |
5616 | #include <sys/vfs.h> | | 6160 | #include <sys/vfs.h> |
5617 | #endif | | 6161 | #endif |
5618 | " | | 6162 | " |
5619 | if test "x$ac_cv_type_fsid_t" = xyes; then : | | 6163 | if test "x$ac_cv_type_fsid_t" = xyes |
| | | 6164 | then : |
5620 | | | 6165 | |
5621 | cat >>confdefs.h <<_ACEOF | | 6166 | printf "%s\n" "#define HAVE_FSID_T 1" >>confdefs.h |
5622 | #define HAVE_FSID_T 1 | | | |
5623 | _ACEOF | | | |
5624 | | | 6167 | |
5625 | | | 6168 | |
5626 | fi | | 6169 | fi |
5627 | | | 6170 | |
5628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | | 6171 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
5629 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | | 6172 | printf %s "checking whether byte ordering is bigendian... " >&6; } |
5630 | if ${ac_cv_c_bigendian+:} false; then : | | 6173 | if test ${ac_cv_c_bigendian+y} |
5631 | $as_echo_n "(cached) " >&6 | | 6174 | then : |
5632 | else | | 6175 | printf %s "(cached) " >&6 |
| | | 6176 | else $as_nop |
5633 | ac_cv_c_bigendian=unknown | | 6177 | ac_cv_c_bigendian=unknown |
5634 | # See if we're dealing with a universal compiler. | | 6178 | # See if we're dealing with a universal compiler. |
5635 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 6179 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5636 | /* end confdefs.h. */ | | 6180 | /* end confdefs.h. */ |
5637 | #ifndef __APPLE_CC__ | | 6181 | #ifndef __APPLE_CC__ |
5638 | not a universal capable compiler | | 6182 | not a universal capable compiler |
5639 | #endif | | 6183 | #endif |
5640 | typedef int dummy; | | 6184 | typedef int dummy; |
5641 | | | 6185 | |
5642 | _ACEOF | | 6186 | _ACEOF |
5643 | if ac_fn_c_try_compile "$LINENO"; then : | | 6187 | if ac_fn_c_try_compile "$LINENO" |
| | | 6188 | then : |
5644 | | | 6189 | |
5645 | # Check for potential -arch flags. It is not universal unless | | 6190 | # Check for potential -arch flags. It is not universal unless |
5646 | # there are at least two -arch flags with different values. | | 6191 | # there are at least two -arch flags with different values. |
5647 | ac_arch= | | 6192 | ac_arch= |
5648 | ac_prev= | | 6193 | ac_prev= |
5649 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | | 6194 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
5650 | if test -n "$ac_prev"; then | | 6195 | if test -n "$ac_prev"; then |
5651 | case $ac_word in | | 6196 | case $ac_word in |
5652 | i?86 | x86_64 | ppc | ppc64) | | 6197 | i?86 | x86_64 | ppc | ppc64) |
5653 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | | 6198 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
5654 | ac_arch=$ac_word | | 6199 | ac_arch=$ac_word |
5655 | else | | 6200 | else |
5656 | ac_cv_c_bigendian=universal | | 6201 | ac_cv_c_bigendian=universal |
5657 | break | | 6202 | break |
5658 | fi | | 6203 | fi |
5659 | ;; | | 6204 | ;; |
5660 | esac | | 6205 | esac |
5661 | ac_prev= | | 6206 | ac_prev= |
5662 | elif test "x$ac_word" = "x-arch"; then | | 6207 | elif test "x$ac_word" = "x-arch"; then |
5663 | ac_prev=arch | | 6208 | ac_prev=arch |
5664 | fi | | 6209 | fi |
5665 | done | | 6210 | done |
5666 | fi | | 6211 | fi |
5667 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 6212 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
5668 | if test $ac_cv_c_bigendian = unknown; then | | 6213 | if test $ac_cv_c_bigendian = unknown; then |
5669 | # See if sys/param.h defines the BYTE_ORDER macro. | | 6214 | # See if sys/param.h defines the BYTE_ORDER macro. |
5670 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 6215 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5671 | /* end confdefs.h. */ | | 6216 | /* end confdefs.h. */ |
5672 | #include <sys/types.h> | | 6217 | #include <sys/types.h> |
5673 | #include <sys/param.h> | | 6218 | #include <sys/param.h> |
5674 | | | 6219 | |
5675 | int | | 6220 | int |
5676 | main () | | 6221 | main (void) |
5677 | { | | 6222 | { |
5678 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | | 6223 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
5679 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | | 6224 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
5680 | && LITTLE_ENDIAN) | | 6225 | && LITTLE_ENDIAN) |
5681 | bogus endian macros | | 6226 | bogus endian macros |
5682 | #endif | | 6227 | #endif |
5683 | | | 6228 | |
5684 | ; | | 6229 | ; |
5685 | return 0; | | 6230 | return 0; |
5686 | } | | 6231 | } |
5687 | _ACEOF | | 6232 | _ACEOF |
5688 | if ac_fn_c_try_compile "$LINENO"; then : | | 6233 | if ac_fn_c_try_compile "$LINENO" |
| | | 6234 | then : |
5689 | # It does; now see whether it defined to BIG_ENDIAN or not. | | 6235 | # It does; now see whether it defined to BIG_ENDIAN or not. |
5690 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 6236 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5691 | /* end confdefs.h. */ | | 6237 | /* end confdefs.h. */ |
5692 | #include <sys/types.h> | | 6238 | #include <sys/types.h> |
5693 | #include <sys/param.h> | | 6239 | #include <sys/param.h> |
5694 | | | 6240 | |
5695 | int | | 6241 | int |
5696 | main () | | 6242 | main (void) |
5697 | { | | 6243 | { |
5698 | #if BYTE_ORDER != BIG_ENDIAN | | 6244 | #if BYTE_ORDER != BIG_ENDIAN |
5699 | not big endian | | 6245 | not big endian |
5700 | #endif | | 6246 | #endif |
5701 | | | 6247 | |
5702 | ; | | 6248 | ; |
5703 | return 0; | | 6249 | return 0; |
5704 | } | | 6250 | } |
5705 | _ACEOF | | 6251 | _ACEOF |
5706 | if ac_fn_c_try_compile "$LINENO"; then : | | 6252 | if ac_fn_c_try_compile "$LINENO" |
| | | 6253 | then : |
5707 | ac_cv_c_bigendian=yes | | 6254 | ac_cv_c_bigendian=yes |
5708 | else | | 6255 | else $as_nop |
5709 | ac_cv_c_bigendian=no | | 6256 | ac_cv_c_bigendian=no |
5710 | fi | | 6257 | fi |
5711 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 6258 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
5712 | fi | | 6259 | fi |
5713 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 6260 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
5714 | fi | | 6261 | fi |
5715 | if test $ac_cv_c_bigendian = unknown; then | | 6262 | if test $ac_cv_c_bigendian = unknown; then |
5716 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | | 6263 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
5717 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 6264 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5718 | /* end confdefs.h. */ | | 6265 | /* end confdefs.h. */ |
5719 | #include <limits.h> | | 6266 | #include <limits.h> |
5720 | | | 6267 | |
5721 | int | | 6268 | int |
5722 | main () | | 6269 | main (void) |
5723 | { | | 6270 | { |
5724 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | | 6271 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
5725 | bogus endian macros | | 6272 | bogus endian macros |
5726 | #endif | | 6273 | #endif |
5727 | | | 6274 | |
5728 | ; | | 6275 | ; |
5729 | return 0; | | 6276 | return 0; |
5730 | } | | 6277 | } |
5731 | _ACEOF | | 6278 | _ACEOF |
5732 | if ac_fn_c_try_compile "$LINENO"; then : | | 6279 | if ac_fn_c_try_compile "$LINENO" |
| | | 6280 | then : |
5733 | # It does; now see whether it defined to _BIG_ENDIAN or not. | | 6281 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
5734 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 6282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5735 | /* end confdefs.h. */ | | 6283 | /* end confdefs.h. */ |
5736 | #include <limits.h> | | 6284 | #include <limits.h> |
5737 | | | 6285 | |
5738 | int | | 6286 | int |
5739 | main () | | 6287 | main (void) |
5740 | { | | 6288 | { |
5741 | #ifndef _BIG_ENDIAN | | 6289 | #ifndef _BIG_ENDIAN |
5742 | not big endian | | 6290 | not big endian |
5743 | #endif | | 6291 | #endif |
5744 | | | 6292 | |
5745 | ; | | 6293 | ; |
5746 | return 0; | | 6294 | return 0; |
5747 | } | | 6295 | } |
5748 | _ACEOF | | 6296 | _ACEOF |
5749 | if ac_fn_c_try_compile "$LINENO"; then : | | 6297 | if ac_fn_c_try_compile "$LINENO" |
| | | 6298 | then : |
5750 | ac_cv_c_bigendian=yes | | 6299 | ac_cv_c_bigendian=yes |
5751 | else | | 6300 | else $as_nop |
5752 | ac_cv_c_bigendian=no | | 6301 | ac_cv_c_bigendian=no |
5753 | fi | | 6302 | fi |
5754 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 6303 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
5755 | fi | | 6304 | fi |
5756 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 6305 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
5757 | fi | | 6306 | fi |
5758 | if test $ac_cv_c_bigendian = unknown; then | | 6307 | if test $ac_cv_c_bigendian = unknown; then |
5759 | # Compile a test program. | | 6308 | # Compile a test program. |
5760 | if test "$cross_compiling" = yes; then : | | 6309 | if test "$cross_compiling" = yes |
| | | 6310 | then : |
5761 | # Try to guess by grepping values from an object file. | | 6311 | # Try to guess by grepping values from an object file. |
5762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 6312 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5763 | /* end confdefs.h. */ | | 6313 | /* end confdefs.h. */ |
5764 | short int ascii_mm[] = | | 6314 | unsigned short int ascii_mm[] = |
5765 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | | 6315 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
5766 | short int ascii_ii[] = | | 6316 | unsigned short int ascii_ii[] = |
5767 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | | 6317 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
5768 | int use_ascii (int i) { | | 6318 | int use_ascii (int i) { |
5769 | return ascii_mm[i] + ascii_ii[i]; | | 6319 | return ascii_mm[i] + ascii_ii[i]; |
5770 | } | | 6320 | } |
5771 | short int ebcdic_ii[] = | | 6321 | unsigned short int ebcdic_ii[] = |
5772 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | | 6322 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
5773 | short int ebcdic_mm[] = | | 6323 | unsigned short int ebcdic_mm[] = |
5774 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | | 6324 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
5775 | int use_ebcdic (int i) { | | 6325 | int use_ebcdic (int i) { |
5776 | return ebcdic_mm[i] + ebcdic_ii[i]; | | 6326 | return ebcdic_mm[i] + ebcdic_ii[i]; |
5777 | } | | 6327 | } |
5778 | extern int foo; | | 6328 | extern int foo; |
5779 | | | 6329 | |
5780 | int | | 6330 | int |
5781 | main () | | 6331 | main (void) |
5782 | { | | 6332 | { |
5783 | return use_ascii (foo) == use_ebcdic (foo); | | 6333 | return use_ascii (foo) == use_ebcdic (foo); |
5784 | ; | | 6334 | ; |
5785 | return 0; | | 6335 | return 0; |
5786 | } | | 6336 | } |
5787 | _ACEOF | | 6337 | _ACEOF |
5788 | if ac_fn_c_try_compile "$LINENO"; then : | | 6338 | if ac_fn_c_try_compile "$LINENO" |
| | | 6339 | then : |
5789 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | | 6340 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
5790 | ac_cv_c_bigendian=yes | | 6341 | ac_cv_c_bigendian=yes |
5791 | fi | | 6342 | fi |
5792 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | | 6343 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
5793 | if test "$ac_cv_c_bigendian" = unknown; then | | 6344 | if test "$ac_cv_c_bigendian" = unknown; then |
5794 | ac_cv_c_bigendian=no | | 6345 | ac_cv_c_bigendian=no |
5795 | else | | 6346 | else |
5796 | # finding both strings is unlikely to happen, but who knows? | | 6347 | # finding both strings is unlikely to happen, but who knows? |
5797 | ac_cv_c_bigendian=unknown | | 6348 | ac_cv_c_bigendian=unknown |
5798 | fi | | 6349 | fi |
5799 | fi | | 6350 | fi |
5800 | fi | | 6351 | fi |
5801 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 6352 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
5802 | else | | 6353 | else $as_nop |
5803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 6354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5804 | /* end confdefs.h. */ | | 6355 | /* end confdefs.h. */ |
5805 | $ac_includes_default | | 6356 | $ac_includes_default |
5806 | int | | 6357 | int |
5807 | main () | | 6358 | main (void) |
5808 | { | | 6359 | { |
5809 | | | 6360 | |
5810 | /* Are we little or big endian? From Harbison&Steele. */ | | 6361 | /* Are we little or big endian? From Harbison&Steele. */ |
5811 | union | | 6362 | union |
5812 | { | | 6363 | { |
5813 | long int l; | | 6364 | long int l; |
5814 | char c[sizeof (long int)]; | | 6365 | char c[sizeof (long int)]; |
5815 | } u; | | 6366 | } u; |
5816 | u.l = 1; | | 6367 | u.l = 1; |
5817 | return u.c[sizeof (long int) - 1] == 1; | | 6368 | return u.c[sizeof (long int) - 1] == 1; |
5818 | | | 6369 | |
5819 | ; | | 6370 | ; |
5820 | return 0; | | 6371 | return 0; |
5821 | } | | 6372 | } |
5822 | _ACEOF | | 6373 | _ACEOF |
5823 | if ac_fn_c_try_run "$LINENO"; then : | | 6374 | if ac_fn_c_try_run "$LINENO" |
| | | 6375 | then : |
5824 | ac_cv_c_bigendian=no | | 6376 | ac_cv_c_bigendian=no |
5825 | else | | 6377 | else $as_nop |
5826 | ac_cv_c_bigendian=yes | | 6378 | ac_cv_c_bigendian=yes |
5827 | fi | | 6379 | fi |
5828 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | | 6380 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5829 | conftest.$ac_objext conftest.beam conftest.$ac_ext | | 6381 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
5830 | fi | | 6382 | fi |
5831 | | | 6383 | |
5832 | fi | | 6384 | fi |
5833 | fi | | 6385 | fi |
5834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | | 6386 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
5835 | $as_echo "$ac_cv_c_bigendian" >&6; } | | 6387 | printf "%s\n" "$ac_cv_c_bigendian" >&6; } |
5836 | case $ac_cv_c_bigendian in #( | | 6388 | case $ac_cv_c_bigendian in #( |
5837 | yes) | | 6389 | yes) |
5838 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | | 6390 | printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h |
5839 | ;; #( | | 6391 | ;; #( |
5840 | no) | | 6392 | no) |
5841 | ;; #( | | 6393 | ;; #( |
5842 | universal) | | 6394 | universal) |
5843 | | | 6395 | |
5844 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | | 6396 | printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
5845 | | | 6397 | |
5846 | ;; #( | | 6398 | ;; #( |
5847 | *) | | 6399 | *) |
5848 | as_fn_error $? "unknown endianness | | 6400 | as_fn_error $? "unknown endianness |
5849 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | | 6401 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
5850 | esac | | 6402 | esac |
5851 | | | 6403 | |
5852 | # The cast to long int works around a bug in the HP C Compiler | | 6404 | # The cast to long int works around a bug in the HP C Compiler |
5853 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | | 6405 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
5854 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | | 6406 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
5855 | # This bug is HP SR number 8606223364. | | 6407 | # This bug is HP SR number 8606223364. |
5856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 | | 6408 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 |
5857 | $as_echo_n "checking size of off_t... " >&6; } | | 6409 | printf %s "checking size of off_t... " >&6; } |
5858 | if ${ac_cv_sizeof_off_t+:} false; then : | | 6410 | if test ${ac_cv_sizeof_off_t+y} |
5859 | $as_echo_n "(cached) " >&6 | | 6411 | then : |
5860 | else | | 6412 | printf %s "(cached) " >&6 |
5861 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : | | 6413 | else $as_nop |
| | | 6414 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default" |
| | | 6415 | then : |
5862 | | | 6416 | |
5863 | else | | 6417 | else $as_nop |
5864 | if test "$ac_cv_type_off_t" = yes; then | | 6418 | if test "$ac_cv_type_off_t" = yes; then |
5865 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | | 6419 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
5866 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | | 6420 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
5867 | as_fn_error 77 "cannot compute sizeof (off_t) | | 6421 | as_fn_error 77 "cannot compute sizeof (off_t) |
5868 | See \`config.log' for more details" "$LINENO" 5; } | | 6422 | See \`config.log' for more details" "$LINENO" 5; } |
5869 | else | | 6423 | else |
5870 | ac_cv_sizeof_off_t=0 | | 6424 | ac_cv_sizeof_off_t=0 |
5871 | fi | | 6425 | fi |
5872 | fi | | 6426 | fi |
5873 | | | 6427 | |
5874 | fi | | 6428 | fi |
5875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 | | 6429 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 |
5876 | $as_echo "$ac_cv_sizeof_off_t" >&6; } | | 6430 | printf "%s\n" "$ac_cv_sizeof_off_t" >&6; } |
5877 | | | 6431 | |
5878 | | | 6432 | |
5879 | | | 6433 | |
5880 | cat >>confdefs.h <<_ACEOF | | 6434 | printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h |
5881 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t | | | |
5882 | _ACEOF | | | |
5883 | | | 6435 | |
5884 | | | 6436 | |
5885 | | | 6437 | |
5886 | # Checks for library functions. | | 6438 | # Checks for library functions. |
5887 | ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" | | 6439 | ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" |
5888 | if test "x$ac_cv_have_decl_strerror_r" = xyes; then : | | 6440 | if test "x$ac_cv_have_decl_strerror_r" = xyes |
| | | 6441 | then : |
5889 | ac_have_decl=1 | | 6442 | ac_have_decl=1 |
5890 | else | | 6443 | else $as_nop |
5891 | ac_have_decl=0 | | 6444 | ac_have_decl=0 |
5892 | fi | | 6445 | fi |
| | | 6446 | printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h |
5893 | | | 6447 | |
5894 | cat >>confdefs.h <<_ACEOF | | | |
5895 | #define HAVE_DECL_STRERROR_R $ac_have_decl | | | |
5896 | _ACEOF | | | |
5897 | | | 6448 | |
5898 | for ac_func in strerror_r | | 6449 | if test $ac_cv_have_decl_strerror_r = yes; then |
5899 | do : | | 6450 | # For backward compatibility's sake, define HAVE_STRERROR_R. |
5900 | ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" | | 6451 | # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well |
5901 | if test "x$ac_cv_func_strerror_r" = xyes; then : | | 6452 | # as AC_CHECK_DECLS_ONCE.) |
5902 | cat >>confdefs.h <<_ACEOF | | 6453 | |
5903 | #define HAVE_STRERROR_R 1 | | 6454 | printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h |
5904 | _ACEOF | | | |
5905 | | | 6455 | |
5906 | fi | | 6456 | fi |
5907 | done | | | |
5908 | | | 6457 | |
5909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 | | 6458 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 |
5910 | $as_echo_n "checking whether strerror_r returns char *... " >&6; } | | 6459 | printf %s "checking whether strerror_r returns char *... " >&6; } |
5911 | if ${ac_cv_func_strerror_r_char_p+:} false; then : | | 6460 | if test ${ac_cv_func_strerror_r_char_p+y} |
5912 | $as_echo_n "(cached) " >&6 | | 6461 | then : |
5913 | else | | 6462 | printf %s "(cached) " >&6 |
| | | 6463 | else $as_nop |
5914 | | | 6464 | |
5915 | ac_cv_func_strerror_r_char_p=no | | 6465 | ac_cv_func_strerror_r_char_p=no |
5916 | if test $ac_cv_have_decl_strerror_r = yes; then | | 6466 | if test $ac_cv_have_decl_strerror_r = yes; then |
5917 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 6467 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5918 | /* end confdefs.h. */ | | 6468 | /* end confdefs.h. */ |
5919 | $ac_includes_default | | 6469 | #include <string.h> |
5920 | int | | 6470 | int |
5921 | main () | | 6471 | main (void) |
5922 | { | | 6472 | { |
5923 | | | 6473 | |
5924 | char buf[100]; | | 6474 | char buf[100]; |
5925 | char x = *strerror_r (0, buf, sizeof buf); | | 6475 | char x = *strerror_r (0, buf, sizeof buf); |
5926 | char *p = strerror_r (0, buf, sizeof buf); | | 6476 | char *p = strerror_r (0, buf, sizeof buf); |
5927 | return !p || x; | | 6477 | return !p || x; |
5928 | | | 6478 | |
5929 | ; | | 6479 | ; |
5930 | return 0; | | 6480 | return 0; |
5931 | } | | 6481 | } |
5932 | _ACEOF | | 6482 | _ACEOF |
5933 | if ac_fn_c_try_compile "$LINENO"; then : | | 6483 | if ac_fn_c_try_compile "$LINENO" |
5934 | ac_cv_func_strerror_r_char_p=yes | | 6484 | then : |
5935 | fi | | | |
5936 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | | |
5937 | else | | | |
5938 | # strerror_r is not declared. Choose between | | | |
5939 | # systems that have relatively inaccessible declarations for the | | | |
5940 | # function. BeOS and DEC UNIX 4.0 fall in this category, but the | | | |
5941 | # former has a strerror_r that returns char*, while the latter | | | |
5942 | # has a strerror_r that returns `int'. | | | |
5943 | # This test should segfault on the DEC system. | | | |
5944 | if test "$cross_compiling" = yes; then : | | | |
5945 | : | | | |
5946 | else | | | |
5947 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | | |
5948 | /* end confdefs.h. */ | | | |
5949 | $ac_includes_default | | | |
5950 | extern char *strerror_r (); | | | |
5951 | int | | | |
5952 | main () | | | |
5953 | { | | | |
5954 | char buf[100]; | | | |
5955 | char x = *strerror_r (0, buf, sizeof buf); | | | |
5956 | return ! isalpha (x); | | | |
5957 | ; | | | |
5958 | return 0; | | | |
5959 | } | | | |
5960 | _ACEOF | | | |
5961 | if ac_fn_c_try_run "$LINENO"; then : | | | |
5962 | ac_cv_func_strerror_r_char_p=yes | | 6485 | ac_cv_func_strerror_r_char_p=yes |
5963 | fi | | 6486 | fi |
5964 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | | 6487 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
5965 | conftest.$ac_objext conftest.beam conftest.$ac_ext | | | |
5966 | fi | | | |
5967 | | | 6488 | |
5968 | fi | | 6489 | fi |
5969 | | | 6490 | |
5970 | fi | | 6491 | fi |
5971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 | | 6492 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 |
5972 | $as_echo "$ac_cv_func_strerror_r_char_p" >&6; } | | 6493 | printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; } |
5973 | if test $ac_cv_func_strerror_r_char_p = yes; then | | 6494 | if test $ac_cv_func_strerror_r_char_p = yes; then |
5974 | | | 6495 | |
5975 | $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h | | 6496 | printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h |
5976 | | | 6497 | |
5977 | fi | | 6498 | fi |
5978 | | | 6499 | |
5979 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" | | | |
5980 | if test "x$ac_cv_type_pid_t" = xyes; then : | | | |
5981 | | | 6500 | |
5982 | else | | 6501 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default |
| | | 6502 | " |
| | | 6503 | if test "x$ac_cv_type_pid_t" = xyes |
| | | 6504 | then : |
5983 | | | 6505 | |
5984 | cat >>confdefs.h <<_ACEOF | | 6506 | else $as_nop |
5985 | #define pid_t int | | 6507 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5986 | _ACEOF | | 6508 | /* end confdefs.h. */ |
5987 | | | 6509 | |
5988 | fi | | 6510 | #if defined _WIN64 && !defined __CYGWIN__ |
| | | 6511 | LLP64 |
| | | 6512 | #endif |
5989 | | | 6513 | |
5990 | for ac_header in vfork.h | | 6514 | int |
5991 | do : | | 6515 | main (void) |
5992 | ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" | | 6516 | { |
5993 | if test "x$ac_cv_header_vfork_h" = xyes; then : | | 6517 | |
5994 | cat >>confdefs.h <<_ACEOF | | 6518 | ; |
5995 | #define HAVE_VFORK_H 1 | | 6519 | return 0; |
5996 | _ACEOF | | 6520 | } |
5997 | | | 6521 | |
| | | 6522 | _ACEOF |
| | | 6523 | if ac_fn_c_try_compile "$LINENO" |
| | | 6524 | then : |
| | | 6525 | ac_pid_type='int' |
| | | 6526 | else $as_nop |
| | | 6527 | ac_pid_type='__int64' |
5998 | fi | | 6528 | fi |
| | | 6529 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
5999 | | | 6530 | |
6000 | done | | 6531 | printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h |
6001 | | | 6532 | |
6002 | for ac_func in fork vfork | | | |
6003 | do : | | | |
6004 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | | | |
6005 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | | | |
6006 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | | | |
6007 | cat >>confdefs.h <<_ACEOF | | | |
6008 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | | | |
6009 | _ACEOF | | | |
6010 | | | 6533 | |
6011 | fi | | 6534 | fi |
| | | 6535 | |
| | | 6536 | |
| | | 6537 | |
| | | 6538 | ac_func= |
| | | 6539 | for ac_item in $ac_func_c_list |
| | | 6540 | do |
| | | 6541 | if test $ac_func; then |
| | | 6542 | ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func |
| | | 6543 | if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then |
| | | 6544 | echo "#define $ac_item 1" >> confdefs.h |
| | | 6545 | fi |
| | | 6546 | ac_func= |
| | | 6547 | else |
| | | 6548 | ac_func=$ac_item |
| | | 6549 | fi |
6012 | done | | 6550 | done |
6013 | | | 6551 | |
| | | 6552 | |
| | | 6553 | |
6014 | if test "x$ac_cv_func_fork" = xyes; then | | 6554 | if test "x$ac_cv_func_fork" = xyes; then |
6015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 | | 6555 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 |
6016 | $as_echo_n "checking for working fork... " >&6; } | | 6556 | printf %s "checking for working fork... " >&6; } |
6017 | if ${ac_cv_func_fork_works+:} false; then : | | 6557 | if test ${ac_cv_func_fork_works+y} |
6018 | $as_echo_n "(cached) " >&6 | | 6558 | then : |
6019 | else | | 6559 | printf %s "(cached) " >&6 |
6020 | if test "$cross_compiling" = yes; then : | | 6560 | else $as_nop |
| | | 6561 | if test "$cross_compiling" = yes |
| | | 6562 | then : |
6021 | ac_cv_func_fork_works=cross | | 6563 | ac_cv_func_fork_works=cross |
6022 | else | | 6564 | else $as_nop |
6023 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 6565 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6024 | /* end confdefs.h. */ | | 6566 | /* end confdefs.h. */ |
6025 | $ac_includes_default | | 6567 | $ac_includes_default |
6026 | int | | 6568 | int |
6027 | main () | | 6569 | main (void) |
6028 | { | | 6570 | { |
6029 | | | 6571 | |
6030 | /* By Ruediger Kuhlmann. */ | | 6572 | /* By Ruediger Kuhlmann. */ |
6031 | return fork () < 0; | | 6573 | return fork () < 0; |
6032 | | | 6574 | |
6033 | ; | | 6575 | ; |
6034 | return 0; | | 6576 | return 0; |
6035 | } | | 6577 | } |
6036 | _ACEOF | | 6578 | _ACEOF |
6037 | if ac_fn_c_try_run "$LINENO"; then : | | 6579 | if ac_fn_c_try_run "$LINENO" |
| | | 6580 | then : |
6038 | ac_cv_func_fork_works=yes | | 6581 | ac_cv_func_fork_works=yes |
6039 | else | | 6582 | else $as_nop |
6040 | ac_cv_func_fork_works=no | | 6583 | ac_cv_func_fork_works=no |
6041 | fi | | 6584 | fi |
6042 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | | 6585 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6043 | conftest.$ac_objext conftest.beam conftest.$ac_ext | | 6586 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
6044 | fi | | 6587 | fi |
6045 | | | 6588 | |
6046 | fi | | 6589 | fi |
6047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 | | 6590 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 |
6048 | $as_echo "$ac_cv_func_fork_works" >&6; } | | 6591 | printf "%s\n" "$ac_cv_func_fork_works" >&6; } |
6049 | | | 6592 | |
6050 | else | | 6593 | else |
6051 | ac_cv_func_fork_works=$ac_cv_func_fork | | 6594 | ac_cv_func_fork_works=$ac_cv_func_fork |
6052 | fi | | 6595 | fi |
6053 | if test "x$ac_cv_func_fork_works" = xcross; then | | 6596 | if test "x$ac_cv_func_fork_works" = xcross; then |
6054 | case $host in | | 6597 | case $host in |
6055 | *-*-amigaos* | *-*-msdosdjgpp*) | | 6598 | *-*-amigaos* | *-*-msdosdjgpp*) |
6056 | # Override, as these systems have only a dummy fork() stub | | 6599 | # Override, as these systems have only a dummy fork() stub |
6057 | ac_cv_func_fork_works=no | | 6600 | ac_cv_func_fork_works=no |
6058 | ;; | | 6601 | ;; |
6059 | *) | | 6602 | *) |
6060 | ac_cv_func_fork_works=yes | | 6603 | ac_cv_func_fork_works=yes |
6061 | ;; | | 6604 | ;; |
6062 | esac | | 6605 | esac |
6063 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | | 6606 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
6064 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | | 6607 | printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} |
6065 | fi | | 6608 | fi |
6066 | ac_cv_func_vfork_works=$ac_cv_func_vfork | | 6609 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
6067 | if test "x$ac_cv_func_vfork" = xyes; then | | 6610 | if test "x$ac_cv_func_vfork" = xyes; then |
6068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 | | 6611 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 |
6069 | $as_echo_n "checking for working vfork... " >&6; } | | 6612 | printf %s "checking for working vfork... " >&6; } |
6070 | if ${ac_cv_func_vfork_works+:} false; then : | | 6613 | if test ${ac_cv_func_vfork_works+y} |
6071 | $as_echo_n "(cached) " >&6 | | 6614 | then : |
6072 | else | | 6615 | printf %s "(cached) " >&6 |
6073 | if test "$cross_compiling" = yes; then : | | 6616 | else $as_nop |
| | | 6617 | if test "$cross_compiling" = yes |
| | | 6618 | then : |
6074 | ac_cv_func_vfork_works=cross | | 6619 | ac_cv_func_vfork_works=cross |
6075 | else | | 6620 | else $as_nop |
6076 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 6621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6077 | /* end confdefs.h. */ | | 6622 | /* end confdefs.h. */ |
6078 | /* Thanks to Paul Eggert for this test. */ | | 6623 | /* Thanks to Paul Eggert for this test. */ |
6079 | $ac_includes_default | | 6624 | $ac_includes_default |
| | | 6625 | #include <signal.h> |
6080 | #include <sys/wait.h> | | 6626 | #include <sys/wait.h> |
6081 | #ifdef HAVE_VFORK_H | | 6627 | #ifdef HAVE_VFORK_H |
6082 | # include <vfork.h> | | 6628 | # include <vfork.h> |
6083 | #endif | | 6629 | #endif |
| | | 6630 | |
| | | 6631 | static void |
| | | 6632 | do_nothing (int sig) |
| | | 6633 | { |
| | | 6634 | (void) sig; |
| | | 6635 | } |
| | | 6636 | |
6084 | /* On some sparc systems, changes by the child to local and incoming | | 6637 | /* On some sparc systems, changes by the child to local and incoming |
6085 | argument registers are propagated back to the parent. The compiler | | 6638 | argument registers are propagated back to the parent. The compiler |
6086 | is told about this with #include <vfork.h>, but some compilers | | 6639 | is told about this with #include <vfork.h>, but some compilers |
6087 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | | 6640 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a |
6088 | static variable whose address is put into a register that is | | 6641 | static variable whose address is put into a register that is |
6089 | clobbered by the vfork. */ | | 6642 | clobbered by the vfork. */ |
6090 | static void | | 6643 | static void |
6091 | #ifdef __cplusplus | | | |
6092 | sparc_address_test (int arg) | | 6644 | sparc_address_test (int arg) |
6093 | # else | | | |
6094 | sparc_address_test (arg) int arg; | | | |
6095 | #endif | | | |
6096 | { | | 6645 | { |
6097 | static pid_t child; | | 6646 | static pid_t child; |
6098 | if (!child) { | | 6647 | if (!child) { |
6099 | child = vfork (); | | 6648 | child = vfork (); |
6100 | if (child < 0) { | | 6649 | if (child < 0) { |
6101 | perror ("vfork"); | | 6650 | perror ("vfork"); |
6102 | _exit(2); | | 6651 | _exit(2); |
6103 | } | | 6652 | } |
6104 | if (!child) { | | 6653 | if (!child) { |
6105 | arg = getpid(); | | 6654 | arg = getpid(); |
6106 | write(-1, "", 0); | | 6655 | write(-1, "", 0); |
6107 | _exit (arg); | | 6656 | _exit (arg); |
6108 | } | | 6657 | } |
6109 | } | | 6658 | } |
6110 | } | | 6659 | } |
6111 | | | 6660 | |
6112 | int | | 6661 | int |
6113 | main () | | 6662 | main (void) |
6114 | { | | 6663 | { |
6115 | pid_t parent = getpid (); | | 6664 | pid_t parent = getpid (); |
6116 | pid_t child; | | 6665 | pid_t child; |
6117 | | | 6666 | |
6118 | sparc_address_test (0); | | 6667 | sparc_address_test (0); |
6119 | | | 6668 | |
| | | 6669 | /* On Solaris 2.4, changes by the child to the signal handler |
| | | 6670 | also munge signal handlers in the parent. To detect this, |
| | | 6671 | start by putting the parent's handler in a known state. */ |
| | | 6672 | signal (SIGTERM, SIG_DFL); |
| | | 6673 | |
6120 | child = vfork (); | | 6674 | child = vfork (); |
6121 | | | 6675 | |
6122 | if (child == 0) { | | 6676 | if (child == 0) { |
6123 | /* Here is another test for sparc vfork register problems. This | | 6677 | /* Here is another test for sparc vfork register problems. This |
6124 | test uses lots of local variables, at least as many local | | 6678 | test uses lots of local variables, at least as many local |
6125 | variables as main has allocated so far including compiler | | 6679 | variables as main has allocated so far including compiler |
6126 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | | 6680 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris |
6127 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | | 6681 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should |
6128 | reuse the register of parent for one of the local variables, | | 6682 | reuse the register of parent for one of the local variables, |
6129 | since it will think that parent can't possibly be used any more | | 6683 | since it will think that parent can't possibly be used any more |
6130 | in this routine. Assigning to the local variable will thus | | 6684 | in this routine. Assigning to the local variable will thus |
6131 | munge parent in the parent process. */ | | 6685 | munge parent in the parent process. */ |
6132 | pid_t | | 6686 | pid_t |
6133 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | | 6687 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), |
6134 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | | 6688 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); |
6135 | /* Convince the compiler that p..p7 are live; otherwise, it might | | 6689 | /* Convince the compiler that p..p7 are live; otherwise, it might |
6136 | use the same hardware register for all 8 local variables. */ | | 6690 | use the same hardware register for all 8 local variables. */ |
6137 | if (p != p1 || p != p2 || p != p3 || p != p4 | | 6691 | if (p != p1 || p != p2 || p != p3 || p != p4 |
6138 | || p != p5 || p != p6 || p != p7) | | 6692 | || p != p5 || p != p6 || p != p7) |
6139 | _exit(1); | | 6693 | _exit(1); |
6140 | | | 6694 | |
| | | 6695 | /* Alter the child's signal handler. */ |
| | | 6696 | if (signal (SIGTERM, do_nothing) != SIG_DFL) |
| | | 6697 | _exit(1); |
| | | 6698 | |
6141 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | | 6699 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
6142 | from child file descriptors. If the child closes a descriptor | | 6700 | from child file descriptors. If the child closes a descriptor |
6143 | before it execs or exits, this munges the parent's descriptor | | 6701 | before it execs or exits, this munges the parent's descriptor |
6144 | as well. Test for this by closing stdout in the child. */ | | 6702 | as well. Test for this by closing stdout in the child. */ |
6145 | _exit(close(fileno(stdout)) != 0); | | 6703 | _exit(close(fileno(stdout)) != 0); |
6146 | } else { | | 6704 | } else { |
6147 | int status; | | 6705 | int status; |
6148 | struct stat st; | | 6706 | struct stat st; |
6149 | | | 6707 | |
6150 | while (wait(&status) != child) | | 6708 | while (wait(&status) != child) |
6151 | ; | | 6709 | ; |
6152 | return ( | | 6710 | return ( |
6153 | /* Was there some problem with vforking? */ | | 6711 | /* Was there some problem with vforking? */ |
6154 | child < 0 | | 6712 | child < 0 |
6155 | | | 6713 | |
| | | 6714 | /* Did the child munge the parent's signal handler? */ |
| | | 6715 | || signal (SIGTERM, SIG_DFL) != SIG_DFL |
| | | 6716 | |
6156 | /* Did the child fail? (This shouldn't happen.) */ | | 6717 | /* Did the child fail? (This shouldn't happen.) */ |
6157 | || status | | 6718 | || status |
6158 | | | 6719 | |
6159 | /* Did the vfork/compiler bug occur? */ | | 6720 | /* Did the vfork/compiler bug occur? */ |
6160 | || parent != getpid() | | 6721 | || parent != getpid() |
6161 | | | 6722 | |
6162 | /* Did the file descriptor bug occur? */ | | 6723 | /* Did the file descriptor bug occur? */ |
6163 | || fstat(fileno(stdout), &st) != 0 | | 6724 | || fstat(fileno(stdout), &st) != 0 |
6164 | ); | | 6725 | ); |
6165 | } | | 6726 | } |
6166 | } | | 6727 | } |
6167 | _ACEOF | | 6728 | _ACEOF |
6168 | if ac_fn_c_try_run "$LINENO"; then : | | 6729 | if ac_fn_c_try_run "$LINENO" |
| | | 6730 | then : |
6169 | ac_cv_func_vfork_works=yes | | 6731 | ac_cv_func_vfork_works=yes |
6170 | else | | 6732 | else $as_nop |
6171 | ac_cv_func_vfork_works=no | | 6733 | ac_cv_func_vfork_works=no |
6172 | fi | | 6734 | fi |
6173 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | | 6735 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
6174 | conftest.$ac_objext conftest.beam conftest.$ac_ext | | 6736 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
6175 | fi | | 6737 | fi |
6176 | | | 6738 | |
6177 | fi | | 6739 | fi |
6178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 | | 6740 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 |
6179 | $as_echo "$ac_cv_func_vfork_works" >&6; } | | 6741 | printf "%s\n" "$ac_cv_func_vfork_works" >&6; } |
6180 | | | 6742 | |
6181 | fi; | | 6743 | fi; |
6182 | if test "x$ac_cv_func_fork_works" = xcross; then | | 6744 | if test "x$ac_cv_func_fork_works" = xcross; then |
6183 | ac_cv_func_vfork_works=$ac_cv_func_vfork | | 6745 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
6184 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 | | 6746 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
6185 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | | 6747 | printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} |
6186 | fi | | 6748 | fi |
6187 | | | 6749 | |
6188 | if test "x$ac_cv_func_vfork_works" = xyes; then | | 6750 | if test "x$ac_cv_func_vfork_works" = xyes; then |
6189 | | | 6751 | |
6190 | $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h | | 6752 | printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h |
6191 | | | 6753 | |
6192 | else | | 6754 | else |
6193 | | | 6755 | |
6194 | $as_echo "#define vfork fork" >>confdefs.h | | 6756 | printf "%s\n" "#define vfork fork" >>confdefs.h |
6195 | | | 6757 | |
6196 | fi | | 6758 | fi |
6197 | if test "x$ac_cv_func_fork_works" = xyes; then | | 6759 | if test "x$ac_cv_func_fork_works" = xyes; then |
6198 | | | 6760 | |
6199 | $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h | | 6761 | printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h |
6200 | | | 6762 | |
6201 | fi | | 6763 | fi |
6202 | | | 6764 | |
6203 | | | 6765 | |
6204 | as_ac_Symbol=`$as_echo "ac_cv_have_decl_snprintf(char *, size_t, const char *, ...)" | $as_tr_sh` | | 6766 | as_ac_Symbol=`printf "%s\n" "ac_cv_have_decl_snprintf(char *, size_t, const char *, ...)" | $as_tr_sh` |
6205 | ac_fn_c_check_decl "$LINENO" "snprintf(char *, size_t, const char *, ...)" "$as_ac_Symbol" "#include <stdio.h> | | 6767 | ac_fn_check_decl "$LINENO" "snprintf(char *, size_t, const char *, ...)" "$as_ac_Symbol" "#include <stdio.h> |
6206 | " | | 6768 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
6207 | if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then : | | 6769 | if eval test \"x\$"$as_ac_Symbol"\" = x"yes" |
| | | 6770 | then : |
6208 | ac_have_decl=1 | | 6771 | ac_have_decl=1 |
6209 | else | | 6772 | else $as_nop |
6210 | ac_have_decl=0 | | 6773 | ac_have_decl=0 |
6211 | fi | | 6774 | fi |
| | | 6775 | printf "%s\n" "#define HAVE_DECL_SNPRINTF $ac_have_decl" >>confdefs.h |
| | | 6776 | if test $ac_have_decl = 1 |
| | | 6777 | then : |
6212 | | | 6778 | |
6213 | cat >>confdefs.h <<_ACEOF | | 6779 | else $as_nop |
6214 | #define HAVE_DECL_SNPRINTF $ac_have_decl | | | |
6215 | _ACEOF | | | |
6216 | if test $ac_have_decl = 1; then : | | | |
6217 | | | | |
6218 | else | | | |
6219 | case " $LIBOBJS " in | | 6780 | case " $LIBOBJS " in |
6220 | *" snprintf.$ac_objext "* ) ;; | | 6781 | *" snprintf.$ac_objext "* ) ;; |
6221 | *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" | | 6782 | *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" |
6222 | ;; | | 6783 | ;; |
6223 | esac | | 6784 | esac |
6224 | | | 6785 | |
6225 | fi | | 6786 | fi |
6226 | | | 6787 | |
6227 | as_ac_Symbol=`$as_echo "ac_cv_have_decl_asprintf(char **, const char *, ...)" | $as_tr_sh` | | 6788 | as_ac_Symbol=`printf "%s\n" "ac_cv_have_decl_asprintf(char **, const char *, ...)" | $as_tr_sh` |
6228 | ac_fn_c_check_decl "$LINENO" "asprintf(char **, const char *, ...)" "$as_ac_Symbol" "#define _GNU_SOURCE | | 6789 | ac_fn_check_decl "$LINENO" "asprintf(char **, const char *, ...)" "$as_ac_Symbol" "#define _GNU_SOURCE |
6229 | #include <stdio.h> | | 6790 | #include <stdio.h> |
6230 | " | | 6791 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
6231 | if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then : | | 6792 | if eval test \"x\$"$as_ac_Symbol"\" = x"yes" |
| | | 6793 | then : |
6232 | ac_have_decl=1 | | 6794 | ac_have_decl=1 |
6233 | else | | 6795 | else $as_nop |
6234 | ac_have_decl=0 | | 6796 | ac_have_decl=0 |
6235 | fi | | 6797 | fi |
| | | 6798 | printf "%s\n" "#define HAVE_DECL_ASPRINTF $ac_have_decl" >>confdefs.h |
| | | 6799 | if test $ac_have_decl = 1 |
| | | 6800 | then : |
6236 | | | 6801 | |
6237 | cat >>confdefs.h <<_ACEOF | | 6802 | else $as_nop |
6238 | #define HAVE_DECL_ASPRINTF $ac_have_decl | | | |
6239 | _ACEOF | | | |
6240 | if test $ac_have_decl = 1; then : | | | |
6241 | | | | |
6242 | else | | | |
6243 | case " $LIBOBJS " in | | 6803 | case " $LIBOBJS " in |
6244 | *" asprintf.$ac_objext "* ) ;; | | 6804 | *" asprintf.$ac_objext "* ) ;; |
6245 | *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" | | 6805 | *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" |
6246 | ;; | | 6806 | ;; |
6247 | esac | | 6807 | esac |
6248 | | | 6808 | |
6249 | fi | | 6809 | fi |
6250 | | | 6810 | |
6251 | as_ac_Symbol=`$as_echo "ac_cv_have_decl_strdup(const char *)" | $as_tr_sh` | | 6811 | as_ac_Symbol=`printf "%s\n" "ac_cv_have_decl_strdup(const char *)" | $as_tr_sh` |
6252 | ac_fn_c_check_decl "$LINENO" "strdup(const char *)" "$as_ac_Symbol" "#include <string.h> | | 6812 | ac_fn_check_decl "$LINENO" "strdup(const char *)" "$as_ac_Symbol" "#include <string.h> |
6253 | " | | 6813 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
6254 | if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then : | | 6814 | if eval test \"x\$"$as_ac_Symbol"\" = x"yes" |
| | | 6815 | then : |
6255 | ac_have_decl=1 | | 6816 | ac_have_decl=1 |
6256 | else | | 6817 | else $as_nop |
6257 | ac_have_decl=0 | | 6818 | ac_have_decl=0 |
6258 | fi | | 6819 | fi |
| | | 6820 | printf "%s\n" "#define HAVE_DECL_STRDUP $ac_have_decl" >>confdefs.h |
| | | 6821 | if test $ac_have_decl = 1 |
| | | 6822 | then : |
6259 | | | 6823 | |
6260 | cat >>confdefs.h <<_ACEOF | | 6824 | else $as_nop |
6261 | #define HAVE_DECL_STRDUP $ac_have_decl | | | |
6262 | _ACEOF | | | |
6263 | if test $ac_have_decl = 1; then : | | | |
6264 | | | | |
6265 | else | | | |
6266 | case " $LIBOBJS " in | | 6825 | case " $LIBOBJS " in |
6267 | *" strdup.$ac_objext "* ) ;; | | 6826 | *" strdup.$ac_objext "* ) ;; |
6268 | *) LIBOBJS="$LIBOBJS strdup.$ac_objext" | | 6827 | *) LIBOBJS="$LIBOBJS strdup.$ac_objext" |
6269 | ;; | | 6828 | ;; |
6270 | esac | | 6829 | esac |
6271 | | | 6830 | |
6272 | fi | | 6831 | fi |
6273 | | | 6832 | |
6274 | | | 6833 | |
6275 | case $host_os in | | 6834 | case $host_os in |
6276 | darwin*) | | 6835 | darwin*) |
6277 | # NetBSD PR 38488: warnx(3) escapes certain characters like \n | | 6836 | # NetBSD PR 38488: warnx(3) escapes certain characters like \n |
6278 | ac_cv_func_warn=no | | 6837 | ac_cv_func_warn=no |
6279 | ;; | | 6838 | ;; |
6280 | esac | | 6839 | esac |
6281 | | | 6840 | |
6282 | as_ac_Symbol=`$as_echo "ac_cv_have_decl_isblank(int)" | $as_tr_sh` | | 6841 | as_ac_Symbol=`printf "%s\n" "ac_cv_have_decl_isblank(int)" | $as_tr_sh` |
6283 | ac_fn_c_check_decl "$LINENO" "isblank(int)" "$as_ac_Symbol" "#include <ctype.h> | | 6842 | ac_fn_check_decl "$LINENO" "isblank(int)" "$as_ac_Symbol" "#include <ctype.h> |
6284 | " | | 6843 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
6285 | if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then : | | 6844 | if eval test \"x\$"$as_ac_Symbol"\" = x"yes" |
| | | 6845 | then : |
6286 | ac_have_decl=1 | | 6846 | ac_have_decl=1 |
6287 | else | | 6847 | else $as_nop |
6288 | ac_have_decl=0 | | 6848 | ac_have_decl=0 |
6289 | fi | | 6849 | fi |
| | | 6850 | printf "%s\n" "#define HAVE_DECL_ISBLANK $ac_have_decl" >>confdefs.h |
| | | 6851 | if test $ac_have_decl = 1 |
| | | 6852 | then : |
6290 | | | 6853 | |
6291 | cat >>confdefs.h <<_ACEOF | | 6854 | else $as_nop |
6292 | #define HAVE_DECL_ISBLANK $ac_have_decl | | | |
6293 | _ACEOF | | | |
6294 | if test $ac_have_decl = 1; then : | | | |
6295 | | | | |
6296 | else | | | |
6297 | case " $LIBOBJS " in | | 6855 | case " $LIBOBJS " in |
6298 | *" isblank.$ac_objext "* ) ;; | | 6856 | *" isblank.$ac_objext "* ) ;; |
6299 | *) LIBOBJS="$LIBOBJS isblank.$ac_objext" | | 6857 | *) LIBOBJS="$LIBOBJS isblank.$ac_objext" |
6300 | ;; | | 6858 | ;; |
6301 | esac | | 6859 | esac |
6302 | | | 6860 | |
6303 | fi | | 6861 | fi |
6304 | | | 6862 | |
6305 | | | 6863 | |
6306 | ac_fn_c_check_func "$LINENO" "err" "ac_cv_func_err" | | 6864 | ac_fn_c_check_func "$LINENO" "err" "ac_cv_func_err" |
6307 | if test "x$ac_cv_func_err" = xyes; then : | | 6865 | if test "x$ac_cv_func_err" = xyes |
6308 | $as_echo "#define HAVE_ERR 1" >>confdefs.h | | 6866 | then : |
| | | 6867 | printf "%s\n" "#define HAVE_ERR 1" >>confdefs.h |
6309 | | | 6868 | |
6310 | else | | 6869 | else $as_nop |
6311 | case " $LIBOBJS " in | | 6870 | case " $LIBOBJS " in |
6312 | *" err.$ac_objext "* ) ;; | | 6871 | *" err.$ac_objext "* ) ;; |
6313 | *) LIBOBJS="$LIBOBJS err.$ac_objext" | | 6872 | *) LIBOBJS="$LIBOBJS err.$ac_objext" |
6314 | ;; | | 6873 | ;; |
6315 | esac | | 6874 | esac |
6316 | | | 6875 | |
6317 | fi | | 6876 | fi |
6318 | | | | |
6319 | ac_fn_c_check_func "$LINENO" "fgetln" "ac_cv_func_fgetln" | | 6877 | ac_fn_c_check_func "$LINENO" "fgetln" "ac_cv_func_fgetln" |
6320 | if test "x$ac_cv_func_fgetln" = xyes; then : | | 6878 | if test "x$ac_cv_func_fgetln" = xyes |
6321 | $as_echo "#define HAVE_FGETLN 1" >>confdefs.h | | 6879 | then : |
| | | 6880 | printf "%s\n" "#define HAVE_FGETLN 1" >>confdefs.h |
6322 | | | 6881 | |
6323 | else | | 6882 | else $as_nop |
6324 | case " $LIBOBJS " in | | 6883 | case " $LIBOBJS " in |
6325 | *" fgetln.$ac_objext "* ) ;; | | 6884 | *" fgetln.$ac_objext "* ) ;; |
6326 | *) LIBOBJS="$LIBOBJS fgetln.$ac_objext" | | 6885 | *) LIBOBJS="$LIBOBJS fgetln.$ac_objext" |
6327 | ;; | | 6886 | ;; |
6328 | esac | | 6887 | esac |
6329 | | | 6888 | |
6330 | fi | | 6889 | fi |
6331 | | | | |
6332 | ac_fn_c_check_func "$LINENO" "fnmatch" "ac_cv_func_fnmatch" | | 6890 | ac_fn_c_check_func "$LINENO" "fnmatch" "ac_cv_func_fnmatch" |
6333 | if test "x$ac_cv_func_fnmatch" = xyes; then : | | 6891 | if test "x$ac_cv_func_fnmatch" = xyes |
6334 | $as_echo "#define HAVE_FNMATCH 1" >>confdefs.h | | 6892 | then : |
| | | 6893 | printf "%s\n" "#define HAVE_FNMATCH 1" >>confdefs.h |
6335 | | | 6894 | |
6336 | else | | 6895 | else $as_nop |
6337 | case " $LIBOBJS " in | | 6896 | case " $LIBOBJS " in |
6338 | *" fnmatch.$ac_objext "* ) ;; | | 6897 | *" fnmatch.$ac_objext "* ) ;; |
6339 | *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext" | | 6898 | *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext" |
6340 | ;; | | 6899 | ;; |
6341 | esac | | 6900 | esac |
6342 | | | 6901 | |
6343 | fi | | 6902 | fi |
6344 | | | | |
6345 | ac_fn_c_check_func "$LINENO" "fparseln" "ac_cv_func_fparseln" | | 6903 | ac_fn_c_check_func "$LINENO" "fparseln" "ac_cv_func_fparseln" |
6346 | if test "x$ac_cv_func_fparseln" = xyes; then : | | 6904 | if test "x$ac_cv_func_fparseln" = xyes |
6347 | $as_echo "#define HAVE_FPARSELN 1" >>confdefs.h | | 6905 | then : |
| | | 6906 | printf "%s\n" "#define HAVE_FPARSELN 1" >>confdefs.h |
6348 | | | 6907 | |
6349 | else | | 6908 | else $as_nop |
6350 | case " $LIBOBJS " in | | 6909 | case " $LIBOBJS " in |
6351 | *" fparseln.$ac_objext "* ) ;; | | 6910 | *" fparseln.$ac_objext "* ) ;; |
6352 | *) LIBOBJS="$LIBOBJS fparseln.$ac_objext" | | 6911 | *) LIBOBJS="$LIBOBJS fparseln.$ac_objext" |
6353 | ;; | | 6912 | ;; |
6354 | esac | | 6913 | esac |
6355 | | | 6914 | |
6356 | fi | | 6915 | fi |
6357 | | | | |
6358 | ac_fn_c_check_func "$LINENO" "getdelim" "ac_cv_func_getdelim" | | 6916 | ac_fn_c_check_func "$LINENO" "getdelim" "ac_cv_func_getdelim" |
6359 | if test "x$ac_cv_func_getdelim" = xyes; then : | | 6917 | if test "x$ac_cv_func_getdelim" = xyes |
6360 | $as_echo "#define HAVE_GETDELIM 1" >>confdefs.h | | 6918 | then : |
| | | 6919 | printf "%s\n" "#define HAVE_GETDELIM 1" >>confdefs.h |
6361 | | | 6920 | |
6362 | else | | 6921 | else $as_nop |
6363 | case " $LIBOBJS " in | | 6922 | case " $LIBOBJS " in |
6364 | *" getdelim.$ac_objext "* ) ;; | | 6923 | *" getdelim.$ac_objext "* ) ;; |
6365 | *) LIBOBJS="$LIBOBJS getdelim.$ac_objext" | | 6924 | *) LIBOBJS="$LIBOBJS getdelim.$ac_objext" |
6366 | ;; | | 6925 | ;; |
6367 | esac | | 6926 | esac |
6368 | | | 6927 | |
6369 | fi | | 6928 | fi |
6370 | | | | |
6371 | ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv" | | 6929 | ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv" |
6372 | if test "x$ac_cv_func_getenv" = xyes; then : | | 6930 | if test "x$ac_cv_func_getenv" = xyes |
6373 | $as_echo "#define HAVE_GETENV 1" >>confdefs.h | | 6931 | then : |
| | | 6932 | printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h |
6374 | | | 6933 | |
6375 | else | | 6934 | else $as_nop |
6376 | case " $LIBOBJS " in | | 6935 | case " $LIBOBJS " in |
6377 | *" getenv.$ac_objext "* ) ;; | | 6936 | *" getenv.$ac_objext "* ) ;; |
6378 | *) LIBOBJS="$LIBOBJS getenv.$ac_objext" | | 6937 | *) LIBOBJS="$LIBOBJS getenv.$ac_objext" |
6379 | ;; | | 6938 | ;; |
6380 | esac | | 6939 | esac |
6381 | | | 6940 | |
6382 | fi | | 6941 | fi |
6383 | | | | |
6384 | ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline" | | 6942 | ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline" |
6385 | if test "x$ac_cv_func_getline" = xyes; then : | | 6943 | if test "x$ac_cv_func_getline" = xyes |
6386 | $as_echo "#define HAVE_GETLINE 1" >>confdefs.h | | 6944 | then : |
| | | 6945 | printf "%s\n" "#define HAVE_GETLINE 1" >>confdefs.h |
6387 | | | 6946 | |
6388 | else | | 6947 | else $as_nop |
6389 | case " $LIBOBJS " in | | 6948 | case " $LIBOBJS " in |
6390 | *" getline.$ac_objext "* ) ;; | | 6949 | *" getline.$ac_objext "* ) ;; |
6391 | *) LIBOBJS="$LIBOBJS getline.$ac_objext" | | 6950 | *) LIBOBJS="$LIBOBJS getline.$ac_objext" |
6392 | ;; | | 6951 | ;; |
6393 | esac | | 6952 | esac |
6394 | | | 6953 | |
6395 | fi | | 6954 | fi |
6396 | | | | |
6397 | ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" | | 6955 | ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" |
6398 | if test "x$ac_cv_func_lchflags" = xyes; then : | | 6956 | if test "x$ac_cv_func_lchflags" = xyes |
6399 | $as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h | | 6957 | then : |
| | | 6958 | printf "%s\n" "#define HAVE_LCHFLAGS 1" >>confdefs.h |
6400 | | | 6959 | |
6401 | else | | 6960 | else $as_nop |
6402 | case " $LIBOBJS " in | | 6961 | case " $LIBOBJS " in |
6403 | *" lchflags.$ac_objext "* ) ;; | | 6962 | *" lchflags.$ac_objext "* ) ;; |
6404 | *) LIBOBJS="$LIBOBJS lchflags.$ac_objext" | | 6963 | *) LIBOBJS="$LIBOBJS lchflags.$ac_objext" |
6405 | ;; | | 6964 | ;; |
6406 | esac | | 6965 | esac |
6407 | | | 6966 | |
6408 | fi | | 6967 | fi |
6409 | | | | |
6410 | ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod" | | 6968 | ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod" |
6411 | if test "x$ac_cv_func_lchmod" = xyes; then : | | 6969 | if test "x$ac_cv_func_lchmod" = xyes |
6412 | $as_echo "#define HAVE_LCHMOD 1" >>confdefs.h | | 6970 | then : |
| | | 6971 | printf "%s\n" "#define HAVE_LCHMOD 1" >>confdefs.h |
6413 | | | 6972 | |
6414 | else | | 6973 | else $as_nop |
6415 | case " $LIBOBJS " in | | 6974 | case " $LIBOBJS " in |
6416 | *" lchmod.$ac_objext "* ) ;; | | 6975 | *" lchmod.$ac_objext "* ) ;; |
6417 | *) LIBOBJS="$LIBOBJS lchmod.$ac_objext" | | 6976 | *) LIBOBJS="$LIBOBJS lchmod.$ac_objext" |
6418 | ;; | | 6977 | ;; |
6419 | esac | | 6978 | esac |
6420 | | | 6979 | |
6421 | fi | | 6980 | fi |
6422 | | | | |
6423 | ac_fn_c_check_func "$LINENO" "lchown" "ac_cv_func_lchown" | | 6981 | ac_fn_c_check_func "$LINENO" "lchown" "ac_cv_func_lchown" |
6424 | if test "x$ac_cv_func_lchown" = xyes; then : | | 6982 | if test "x$ac_cv_func_lchown" = xyes |
6425 | $as_echo "#define HAVE_LCHOWN 1" >>confdefs.h | | 6983 | then : |
| | | 6984 | printf "%s\n" "#define HAVE_LCHOWN 1" >>confdefs.h |
6426 | | | 6985 | |
6427 | else | | 6986 | else $as_nop |
6428 | case " $LIBOBJS " in | | 6987 | case " $LIBOBJS " in |
6429 | *" lchown.$ac_objext "* ) ;; | | 6988 | *" lchown.$ac_objext "* ) ;; |
6430 | *) LIBOBJS="$LIBOBJS lchown.$ac_objext" | | 6989 | *) LIBOBJS="$LIBOBJS lchown.$ac_objext" |
6431 | ;; | | 6990 | ;; |
6432 | esac | | 6991 | esac |
6433 | | | 6992 | |
6434 | fi | | 6993 | fi |
6435 | | | | |
6436 | ac_fn_c_check_func "$LINENO" "lutimes" "ac_cv_func_lutimes" | | 6994 | ac_fn_c_check_func "$LINENO" "lutimes" "ac_cv_func_lutimes" |
6437 | if test "x$ac_cv_func_lutimes" = xyes; then : | | 6995 | if test "x$ac_cv_func_lutimes" = xyes |
6438 | $as_echo "#define HAVE_LUTIMES 1" >>confdefs.h | | 6996 | then : |
| | | 6997 | printf "%s\n" "#define HAVE_LUTIMES 1" >>confdefs.h |
6439 | | | 6998 | |
6440 | else | | 6999 | else $as_nop |
6441 | case " $LIBOBJS " in | | 7000 | case " $LIBOBJS " in |
6442 | *" lutimes.$ac_objext "* ) ;; | | 7001 | *" lutimes.$ac_objext "* ) ;; |
6443 | *) LIBOBJS="$LIBOBJS lutimes.$ac_objext" | | 7002 | *) LIBOBJS="$LIBOBJS lutimes.$ac_objext" |
6444 | ;; | | 7003 | ;; |
6445 | esac | | 7004 | esac |
6446 | | | 7005 | |
6447 | fi | | 7006 | fi |
6448 | | | | |
6449 | ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp" | | 7007 | ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp" |
6450 | if test "x$ac_cv_func_mkdtemp" = xyes; then : | | 7008 | if test "x$ac_cv_func_mkdtemp" = xyes |
6451 | $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h | | 7009 | then : |
| | | 7010 | printf "%s\n" "#define HAVE_MKDTEMP 1" >>confdefs.h |
6452 | | | 7011 | |
6453 | else | | 7012 | else $as_nop |
6454 | case " $LIBOBJS " in | | 7013 | case " $LIBOBJS " in |
6455 | *" mkdtemp.$ac_objext "* ) ;; | | 7014 | *" mkdtemp.$ac_objext "* ) ;; |
6456 | *) LIBOBJS="$LIBOBJS mkdtemp.$ac_objext" | | 7015 | *) LIBOBJS="$LIBOBJS mkdtemp.$ac_objext" |
6457 | ;; | | 7016 | ;; |
6458 | esac | | 7017 | esac |
6459 | | | 7018 | |
6460 | fi | | 7019 | fi |
6461 | | | | |
6462 | ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" | | 7020 | ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" |
6463 | if test "x$ac_cv_func_mkstemp" = xyes; then : | | 7021 | if test "x$ac_cv_func_mkstemp" = xyes |
6464 | $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h | | 7022 | then : |
| | | 7023 | printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h |
6465 | | | 7024 | |
6466 | else | | 7025 | else $as_nop |
6467 | case " $LIBOBJS " in | | 7026 | case " $LIBOBJS " in |
6468 | *" mkstemp.$ac_objext "* ) ;; | | 7027 | *" mkstemp.$ac_objext "* ) ;; |
6469 | *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" | | 7028 | *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" |
6470 | ;; | | 7029 | ;; |
6471 | esac | | 7030 | esac |
6472 | | | 7031 | |
6473 | fi | | 7032 | fi |
6474 | | | | |
6475 | ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv" | | 7033 | ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv" |
6476 | if test "x$ac_cv_func_setenv" = xyes; then : | | 7034 | if test "x$ac_cv_func_setenv" = xyes |
6477 | $as_echo "#define HAVE_SETENV 1" >>confdefs.h | | 7035 | then : |
| | | 7036 | printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h |
6478 | | | 7037 | |
6479 | else | | 7038 | else $as_nop |
6480 | case " $LIBOBJS " in | | 7039 | case " $LIBOBJS " in |
6481 | *" setenv.$ac_objext "* ) ;; | | 7040 | *" setenv.$ac_objext "* ) ;; |
6482 | *) LIBOBJS="$LIBOBJS setenv.$ac_objext" | | 7041 | *) LIBOBJS="$LIBOBJS setenv.$ac_objext" |
6483 | ;; | | 7042 | ;; |
6484 | esac | | 7043 | esac |
6485 | | | 7044 | |
6486 | fi | | 7045 | fi |
6487 | | | | |
6488 | ac_fn_c_check_func "$LINENO" "setgroupent" "ac_cv_func_setgroupent" | | 7046 | ac_fn_c_check_func "$LINENO" "setgroupent" "ac_cv_func_setgroupent" |
6489 | if test "x$ac_cv_func_setgroupent" = xyes; then : | | 7047 | if test "x$ac_cv_func_setgroupent" = xyes |
6490 | $as_echo "#define HAVE_SETGROUPENT 1" >>confdefs.h | | 7048 | then : |
| | | 7049 | printf "%s\n" "#define HAVE_SETGROUPENT 1" >>confdefs.h |
6491 | | | 7050 | |
6492 | else | | 7051 | else $as_nop |
6493 | case " $LIBOBJS " in | | 7052 | case " $LIBOBJS " in |
6494 | *" setgroupent.$ac_objext "* ) ;; | | 7053 | *" setgroupent.$ac_objext "* ) ;; |
6495 | *) LIBOBJS="$LIBOBJS setgroupent.$ac_objext" | | 7054 | *) LIBOBJS="$LIBOBJS setgroupent.$ac_objext" |
6496 | ;; | | 7055 | ;; |
6497 | esac | | 7056 | esac |
6498 | | | 7057 | |
6499 | fi | | 7058 | fi |
6500 | | | | |
6501 | ac_fn_c_check_func "$LINENO" "setpassent" "ac_cv_func_setpassent" | | 7059 | ac_fn_c_check_func "$LINENO" "setpassent" "ac_cv_func_setpassent" |
6502 | if test "x$ac_cv_func_setpassent" = xyes; then : | | 7060 | if test "x$ac_cv_func_setpassent" = xyes |
6503 | $as_echo "#define HAVE_SETPASSENT 1" >>confdefs.h | | 7061 | then : |
| | | 7062 | printf "%s\n" "#define HAVE_SETPASSENT 1" >>confdefs.h |
6504 | | | 7063 | |
6505 | else | | 7064 | else $as_nop |
6506 | case " $LIBOBJS " in | | 7065 | case " $LIBOBJS " in |
6507 | *" setpassent.$ac_objext "* ) ;; | | 7066 | *" setpassent.$ac_objext "* ) ;; |
6508 | *) LIBOBJS="$LIBOBJS setpassent.$ac_objext" | | 7067 | *) LIBOBJS="$LIBOBJS setpassent.$ac_objext" |
6509 | ;; | | 7068 | ;; |
6510 | esac | | 7069 | esac |
6511 | | | 7070 | |
6512 | fi | | 7071 | fi |
6513 | | | | |
6514 | ac_fn_c_check_func "$LINENO" "setprogname" "ac_cv_func_setprogname" | | 7072 | ac_fn_c_check_func "$LINENO" "setprogname" "ac_cv_func_setprogname" |
6515 | if test "x$ac_cv_func_setprogname" = xyes; then : | | 7073 | if test "x$ac_cv_func_setprogname" = xyes |
6516 | $as_echo "#define HAVE_SETPROGNAME 1" >>confdefs.h | | 7074 | then : |
| | | 7075 | printf "%s\n" "#define HAVE_SETPROGNAME 1" >>confdefs.h |
6517 | | | 7076 | |
6518 | else | | 7077 | else $as_nop |
6519 | case " $LIBOBJS " in | | 7078 | case " $LIBOBJS " in |
6520 | *" setprogname.$ac_objext "* ) ;; | | 7079 | *" setprogname.$ac_objext "* ) ;; |
6521 | *) LIBOBJS="$LIBOBJS setprogname.$ac_objext" | | 7080 | *) LIBOBJS="$LIBOBJS setprogname.$ac_objext" |
6522 | ;; | | 7081 | ;; |
6523 | esac | | 7082 | esac |
6524 | | | 7083 | |
6525 | fi | | 7084 | fi |
6526 | | | | |
6527 | ac_fn_c_check_func "$LINENO" "shquote" "ac_cv_func_shquote" | | 7085 | ac_fn_c_check_func "$LINENO" "shquote" "ac_cv_func_shquote" |
6528 | if test "x$ac_cv_func_shquote" = xyes; then : | | 7086 | if test "x$ac_cv_func_shquote" = xyes |
6529 | $as_echo "#define HAVE_SHQUOTE 1" >>confdefs.h | | 7087 | then : |
| | | 7088 | printf "%s\n" "#define HAVE_SHQUOTE 1" >>confdefs.h |
6530 | | | 7089 | |
6531 | else | | 7090 | else $as_nop |
6532 | case " $LIBOBJS " in | | 7091 | case " $LIBOBJS " in |
6533 | *" shquote.$ac_objext "* ) ;; | | 7092 | *" shquote.$ac_objext "* ) ;; |
6534 | *) LIBOBJS="$LIBOBJS shquote.$ac_objext" | | 7093 | *) LIBOBJS="$LIBOBJS shquote.$ac_objext" |
6535 | ;; | | 7094 | ;; |
6536 | esac | | 7095 | esac |
6537 | | | 7096 | |
6538 | fi | | 7097 | fi |
6539 | | | | |
6540 | ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs" | | 7098 | ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs" |
6541 | if test "x$ac_cv_func_statvfs" = xyes; then : | | 7099 | if test "x$ac_cv_func_statvfs" = xyes |
6542 | $as_echo "#define HAVE_STATVFS 1" >>confdefs.h | | 7100 | then : |
| | | 7101 | printf "%s\n" "#define HAVE_STATVFS 1" >>confdefs.h |
6543 | | | 7102 | |
6544 | else | | 7103 | else $as_nop |
6545 | case " $LIBOBJS " in | | 7104 | case " $LIBOBJS " in |
6546 | *" statvfs.$ac_objext "* ) ;; | | 7105 | *" statvfs.$ac_objext "* ) ;; |
6547 | *) LIBOBJS="$LIBOBJS statvfs.$ac_objext" | | 7106 | *) LIBOBJS="$LIBOBJS statvfs.$ac_objext" |
6548 | ;; | | 7107 | ;; |
6549 | esac | | 7108 | esac |
6550 | | | 7109 | |
6551 | fi | | 7110 | fi |
6552 | | | | |
6553 | ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" | | 7111 | ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" |
6554 | if test "x$ac_cv_func_strerror" = xyes; then : | | 7112 | if test "x$ac_cv_func_strerror" = xyes |
6555 | $as_echo "#define HAVE_STRERROR 1" >>confdefs.h | | 7113 | then : |
| | | 7114 | printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h |
6556 | | | 7115 | |
6557 | else | | 7116 | else $as_nop |
6558 | case " $LIBOBJS " in | | 7117 | case " $LIBOBJS " in |
6559 | *" strerror.$ac_objext "* ) ;; | | 7118 | *" strerror.$ac_objext "* ) ;; |
6560 | *) LIBOBJS="$LIBOBJS strerror.$ac_objext" | | 7119 | *) LIBOBJS="$LIBOBJS strerror.$ac_objext" |
6561 | ;; | | 7120 | ;; |
6562 | esac | | 7121 | esac |
6563 | | | 7122 | |
6564 | fi | | 7123 | fi |
6565 | | | | |
6566 | ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" | | 7124 | ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" |
6567 | if test "x$ac_cv_func_strlcat" = xyes; then : | | 7125 | if test "x$ac_cv_func_strlcat" = xyes |
6568 | $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h | | 7126 | then : |
| | | 7127 | printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h |
6569 | | | 7128 | |
6570 | else | | 7129 | else $as_nop |
6571 | case " $LIBOBJS " in | | 7130 | case " $LIBOBJS " in |
6572 | *" strlcat.$ac_objext "* ) ;; | | 7131 | *" strlcat.$ac_objext "* ) ;; |
6573 | *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" | | 7132 | *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" |
6574 | ;; | | 7133 | ;; |
6575 | esac | | 7134 | esac |
6576 | | | 7135 | |
6577 | fi | | 7136 | fi |
6578 | | | | |
6579 | ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" | | 7137 | ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" |
6580 | if test "x$ac_cv_func_strlcpy" = xyes; then : | | 7138 | if test "x$ac_cv_func_strlcpy" = xyes |
6581 | $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h | | 7139 | then : |
| | | 7140 | printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h |
6582 | | | 7141 | |
6583 | else | | 7142 | else $as_nop |
6584 | case " $LIBOBJS " in | | 7143 | case " $LIBOBJS " in |
6585 | *" strlcpy.$ac_objext "* ) ;; | | 7144 | *" strlcpy.$ac_objext "* ) ;; |
6586 | *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" | | 7145 | *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" |
6587 | ;; | | 7146 | ;; |
6588 | esac | | 7147 | esac |
6589 | | | 7148 | |
6590 | fi | | 7149 | fi |
6591 | | | | |
6592 | ac_fn_c_check_func "$LINENO" "strmode" "ac_cv_func_strmode" | | 7150 | ac_fn_c_check_func "$LINENO" "strmode" "ac_cv_func_strmode" |
6593 | if test "x$ac_cv_func_strmode" = xyes; then : | | 7151 | if test "x$ac_cv_func_strmode" = xyes |
6594 | $as_echo "#define HAVE_STRMODE 1" >>confdefs.h | | 7152 | then : |
| | | 7153 | printf "%s\n" "#define HAVE_STRMODE 1" >>confdefs.h |
6595 | | | 7154 | |
6596 | else | | 7155 | else $as_nop |
6597 | case " $LIBOBJS " in | | 7156 | case " $LIBOBJS " in |
6598 | *" strmode.$ac_objext "* ) ;; | | 7157 | *" strmode.$ac_objext "* ) ;; |
6599 | *) LIBOBJS="$LIBOBJS strmode.$ac_objext" | | 7158 | *) LIBOBJS="$LIBOBJS strmode.$ac_objext" |
6600 | ;; | | 7159 | ;; |
6601 | esac | | 7160 | esac |
6602 | | | 7161 | |
6603 | fi | | 7162 | fi |
6604 | | | | |
6605 | ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep" | | 7163 | ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep" |
6606 | if test "x$ac_cv_func_strsep" = xyes; then : | | 7164 | if test "x$ac_cv_func_strsep" = xyes |
6607 | $as_echo "#define HAVE_STRSEP 1" >>confdefs.h | | 7165 | then : |
| | | 7166 | printf "%s\n" "#define HAVE_STRSEP 1" >>confdefs.h |
6608 | | | 7167 | |
6609 | else | | 7168 | else $as_nop |
6610 | case " $LIBOBJS " in | | 7169 | case " $LIBOBJS " in |
6611 | *" strsep.$ac_objext "* ) ;; | | 7170 | *" strsep.$ac_objext "* ) ;; |
6612 | *) LIBOBJS="$LIBOBJS strsep.$ac_objext" | | 7171 | *) LIBOBJS="$LIBOBJS strsep.$ac_objext" |
6613 | ;; | | 7172 | ;; |
6614 | esac | | 7173 | esac |
6615 | | | 7174 | |
6616 | fi | | 7175 | fi |
6617 | | | | |
6618 | ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll" | | 7176 | ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll" |
6619 | if test "x$ac_cv_func_strtoll" = xyes; then : | | 7177 | if test "x$ac_cv_func_strtoll" = xyes |
6620 | $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h | | 7178 | then : |
| | | 7179 | printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h |
6621 | | | 7180 | |
6622 | else | | 7181 | else $as_nop |
6623 | case " $LIBOBJS " in | | 7182 | case " $LIBOBJS " in |
6624 | *" strtoll.$ac_objext "* ) ;; | | 7183 | *" strtoll.$ac_objext "* ) ;; |
6625 | *) LIBOBJS="$LIBOBJS strtoll.$ac_objext" | | 7184 | *) LIBOBJS="$LIBOBJS strtoll.$ac_objext" |
6626 | ;; | | 7185 | ;; |
6627 | esac | | 7186 | esac |
6628 | | | 7187 | |
6629 | fi | | 7188 | fi |
6630 | | | | |
6631 | ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" | | 7189 | ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" |
6632 | if test "x$ac_cv_func_unsetenv" = xyes; then : | | 7190 | if test "x$ac_cv_func_unsetenv" = xyes |
6633 | $as_echo "#define HAVE_UNSETENV 1" >>confdefs.h | | 7191 | then : |
| | | 7192 | printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h |
6634 | | | 7193 | |
6635 | else | | 7194 | else $as_nop |
6636 | case " $LIBOBJS " in | | 7195 | case " $LIBOBJS " in |
6637 | *" unsetenv.$ac_objext "* ) ;; | | 7196 | *" unsetenv.$ac_objext "* ) ;; |
6638 | *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext" | | 7197 | *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext" |
6639 | ;; | | 7198 | ;; |
6640 | esac | | 7199 | esac |
6641 | | | 7200 | |
6642 | fi | | 7201 | fi |
6643 | | | | |
6644 | ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep" | | 7202 | ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep" |
6645 | if test "x$ac_cv_func_usleep" = xyes; then : | | 7203 | if test "x$ac_cv_func_usleep" = xyes |
6646 | $as_echo "#define HAVE_USLEEP 1" >>confdefs.h | | 7204 | then : |
| | | 7205 | printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h |
6647 | | | 7206 | |
6648 | else | | 7207 | else $as_nop |
6649 | case " $LIBOBJS " in | | 7208 | case " $LIBOBJS " in |
6650 | *" usleep.$ac_objext "* ) ;; | | 7209 | *" usleep.$ac_objext "* ) ;; |
6651 | *) LIBOBJS="$LIBOBJS usleep.$ac_objext" | | 7210 | *) LIBOBJS="$LIBOBJS usleep.$ac_objext" |
6652 | ;; | | 7211 | ;; |
6653 | esac | | 7212 | esac |
6654 | | | 7213 | |
6655 | fi | | 7214 | fi |
6656 | | | | |
6657 | ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes" | | 7215 | ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes" |
6658 | if test "x$ac_cv_func_utimes" = xyes; then : | | 7216 | if test "x$ac_cv_func_utimes" = xyes |
6659 | $as_echo "#define HAVE_UTIMES 1" >>confdefs.h | | 7217 | then : |
| | | 7218 | printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h |
6660 | | | 7219 | |
6661 | else | | 7220 | else $as_nop |
6662 | case " $LIBOBJS " in | | 7221 | case " $LIBOBJS " in |
6663 | *" utimes.$ac_objext "* ) ;; | | 7222 | *" utimes.$ac_objext "* ) ;; |
6664 | *) LIBOBJS="$LIBOBJS utimes.$ac_objext" | | 7223 | *) LIBOBJS="$LIBOBJS utimes.$ac_objext" |
6665 | ;; | | 7224 | ;; |
6666 | esac | | 7225 | esac |
6667 | | | 7226 | |
6668 | fi | | 7227 | fi |
6669 | | | | |
6670 | ac_fn_c_check_func "$LINENO" "warn" "ac_cv_func_warn" | | 7228 | ac_fn_c_check_func "$LINENO" "warn" "ac_cv_func_warn" |
6671 | if test "x$ac_cv_func_warn" = xyes; then : | | 7229 | if test "x$ac_cv_func_warn" = xyes |
6672 | $as_echo "#define HAVE_WARN 1" >>confdefs.h | | 7230 | then : |
| | | 7231 | printf "%s\n" "#define HAVE_WARN 1" >>confdefs.h |
6673 | | | 7232 | |
6674 | else | | 7233 | else $as_nop |
6675 | case " $LIBOBJS " in | | 7234 | case " $LIBOBJS " in |
6676 | *" warn.$ac_objext "* ) ;; | | 7235 | *" warn.$ac_objext "* ) ;; |
6677 | *) LIBOBJS="$LIBOBJS warn.$ac_objext" | | 7236 | *) LIBOBJS="$LIBOBJS warn.$ac_objext" |
6678 | ;; | | 7237 | ;; |
6679 | esac | | 7238 | esac |
6680 | | | 7239 | |
6681 | fi | | 7240 | fi |
6682 | | | 7241 | |
6683 | | | 7242 | |
6684 | | | 7243 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 |
6685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 | | 7244 | printf %s "checking for library containing socket... " >&6; } |
6686 | $as_echo_n "checking for library containing socket... " >&6; } | | 7245 | if test ${ac_cv_search_socket+y} |
6687 | if ${ac_cv_search_socket+:} false; then : | | 7246 | then : |
6688 | $as_echo_n "(cached) " >&6 | | 7247 | printf %s "(cached) " >&6 |
6689 | else | | 7248 | else $as_nop |
6690 | ac_func_search_save_LIBS=$LIBS | | 7249 | ac_func_search_save_LIBS=$LIBS |
6691 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 7250 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6692 | /* end confdefs.h. */ | | 7251 | /* end confdefs.h. */ |
6693 | | | 7252 | |
6694 | /* Override any GCC internal prototype to avoid an error. | | 7253 | /* Override any GCC internal prototype to avoid an error. |
6695 | Use char because int might match the return type of a GCC | | 7254 | Use char because int might match the return type of a GCC |
6696 | builtin and then its argument prototype would still apply. */ | | 7255 | builtin and then its argument prototype would still apply. */ |
6697 | #ifdef __cplusplus | | | |
6698 | extern "C" | | | |
6699 | #endif | | | |
6700 | char socket (); | | 7256 | char socket (); |
6701 | int | | 7257 | int |
6702 | main () | | 7258 | main (void) |
6703 | { | | 7259 | { |
6704 | return socket (); | | 7260 | return socket (); |
6705 | ; | | 7261 | ; |
6706 | return 0; | | 7262 | return 0; |
6707 | } | | 7263 | } |
6708 | _ACEOF | | 7264 | _ACEOF |
6709 | for ac_lib in '' socket network; do | | 7265 | for ac_lib in '' socket network |
| | | 7266 | do |
6710 | if test -z "$ac_lib"; then | | 7267 | if test -z "$ac_lib"; then |
6711 | ac_res="none required" | | 7268 | ac_res="none required" |
6712 | else | | 7269 | else |
6713 | ac_res=-l$ac_lib | | 7270 | ac_res=-l$ac_lib |
6714 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | | 7271 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
6715 | fi | | 7272 | fi |
6716 | if ac_fn_c_try_link "$LINENO"; then : | | 7273 | if ac_fn_c_try_link "$LINENO" |
| | | 7274 | then : |
6717 | ac_cv_search_socket=$ac_res | | 7275 | ac_cv_search_socket=$ac_res |
6718 | fi | | 7276 | fi |
6719 | rm -f core conftest.err conftest.$ac_objext \ | | 7277 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
6720 | conftest$ac_exeext | | 7278 | conftest$ac_exeext |
6721 | if ${ac_cv_search_socket+:} false; then : | | 7279 | if test ${ac_cv_search_socket+y} |
| | | 7280 | then : |
6722 | break | | 7281 | break |
6723 | fi | | 7282 | fi |
6724 | done | | 7283 | done |
6725 | if ${ac_cv_search_socket+:} false; then : | | 7284 | if test ${ac_cv_search_socket+y} |
| | | 7285 | then : |
6726 | | | 7286 | |
6727 | else | | 7287 | else $as_nop |
6728 | ac_cv_search_socket=no | | 7288 | ac_cv_search_socket=no |
6729 | fi | | 7289 | fi |
6730 | rm conftest.$ac_ext | | 7290 | rm conftest.$ac_ext |
6731 | LIBS=$ac_func_search_save_LIBS | | 7291 | LIBS=$ac_func_search_save_LIBS |
6732 | fi | | 7292 | fi |
6733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 | | 7293 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 |
6734 | $as_echo "$ac_cv_search_socket" >&6; } | | 7294 | printf "%s\n" "$ac_cv_search_socket" >&6; } |
6735 | ac_res=$ac_cv_search_socket | | 7295 | ac_res=$ac_cv_search_socket |
6736 | if test "$ac_res" != no; then : | | 7296 | if test "$ac_res" != no |
| | | 7297 | then : |
6737 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | | 7298 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
6738 | | | 7299 | |
6739 | fi | | 7300 | fi |
6740 | | | 7301 | |
6741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 | | 7302 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 |
6742 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } | | 7303 | printf %s "checking for gethostbyname in -lnsl... " >&6; } |
6743 | if ${ac_cv_lib_nsl_gethostbyname+:} false; then : | | 7304 | if test ${ac_cv_lib_nsl_gethostbyname+y} |
6744 | $as_echo_n "(cached) " >&6 | | 7305 | then : |
6745 | else | | 7306 | printf %s "(cached) " >&6 |
| | | 7307 | else $as_nop |
6746 | ac_check_lib_save_LIBS=$LIBS | | 7308 | ac_check_lib_save_LIBS=$LIBS |
6747 | LIBS="-lnsl $LIBS" | | 7309 | LIBS="-lnsl $LIBS" |
6748 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 7310 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6749 | /* end confdefs.h. */ | | 7311 | /* end confdefs.h. */ |
6750 | | | 7312 | |
6751 | /* Override any GCC internal prototype to avoid an error. | | 7313 | /* Override any GCC internal prototype to avoid an error. |
6752 | Use char because int might match the return type of a GCC | | 7314 | Use char because int might match the return type of a GCC |
6753 | builtin and then its argument prototype would still apply. */ | | 7315 | builtin and then its argument prototype would still apply. */ |
6754 | #ifdef __cplusplus | | | |
6755 | extern "C" | | | |
6756 | #endif | | | |
6757 | char gethostbyname (); | | 7316 | char gethostbyname (); |
6758 | int | | 7317 | int |
6759 | main () | | 7318 | main (void) |
6760 | { | | 7319 | { |
6761 | return gethostbyname (); | | 7320 | return gethostbyname (); |
6762 | ; | | 7321 | ; |
6763 | return 0; | | 7322 | return 0; |
6764 | } | | 7323 | } |
6765 | _ACEOF | | 7324 | _ACEOF |
6766 | if ac_fn_c_try_link "$LINENO"; then : | | 7325 | if ac_fn_c_try_link "$LINENO" |
| | | 7326 | then : |
6767 | ac_cv_lib_nsl_gethostbyname=yes | | 7327 | ac_cv_lib_nsl_gethostbyname=yes |
6768 | else | | 7328 | else $as_nop |
6769 | ac_cv_lib_nsl_gethostbyname=no | | 7329 | ac_cv_lib_nsl_gethostbyname=no |
6770 | fi | | 7330 | fi |
6771 | rm -f core conftest.err conftest.$ac_objext \ | | 7331 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
6772 | conftest$ac_exeext conftest.$ac_ext | | 7332 | conftest$ac_exeext conftest.$ac_ext |
6773 | LIBS=$ac_check_lib_save_LIBS | | 7333 | LIBS=$ac_check_lib_save_LIBS |
6774 | fi | | 7334 | fi |
6775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 | | 7335 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
6776 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } | | 7336 | printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; } |
6777 | if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : | | 7337 | if test "x$ac_cv_lib_nsl_gethostbyname" = xyes |
6778 | cat >>confdefs.h <<_ACEOF | | 7338 | then : |
6779 | #define HAVE_LIBNSL 1 | | 7339 | printf "%s\n" "#define HAVE_LIBNSL 1" >>confdefs.h |
6780 | _ACEOF | | | |
6781 | | | 7340 | |
6782 | LIBS="-lnsl $LIBS" | | 7341 | LIBS="-lnsl $LIBS" |
6783 | | | 7342 | |
6784 | fi | | 7343 | fi |
6785 | | | 7344 | |
6786 | | | 7345 | |
6787 | need_getaddrinfo=no | | 7346 | need_getaddrinfo=no |
6788 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#ifdef HAVE_SYS_TYPES_H | | 7347 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#ifdef HAVE_SYS_TYPES_H |
6789 | # include <sys/types.h> | | 7348 | # include <sys/types.h> |
6790 | #endif | | 7349 | #endif |
6791 | | | 7350 | |
6792 | #include <sys/socket.h> | | 7351 | #include <sys/socket.h> |
6793 | | | 7352 | |
6794 | " | | 7353 | " |
6795 | if test "x$ac_cv_type_socklen_t" = xyes; then : | | 7354 | if test "x$ac_cv_type_socklen_t" = xyes |
| | | 7355 | then : |
6796 | | | 7356 | |
6797 | cat >>confdefs.h <<_ACEOF | | 7357 | printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h |
6798 | #define HAVE_SOCKLEN_T 1 | | | |
6799 | _ACEOF | | | |
6800 | | | 7358 | |
6801 | | | 7359 | |
6802 | fi | | 7360 | fi |
6803 | | | 7361 | |
6804 | ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <netdb.h> | | 7362 | ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <netdb.h> |
6805 | " | | 7363 | " |
6806 | if test "x$ac_cv_type_struct_addrinfo" = xyes; then : | | 7364 | if test "x$ac_cv_type_struct_addrinfo" = xyes |
| | | 7365 | then : |
6807 | | | 7366 | |
6808 | cat >>confdefs.h <<_ACEOF | | 7367 | printf "%s\n" "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h |
6809 | #define HAVE_STRUCT_ADDRINFO 1 | | | |
6810 | _ACEOF | | | |
6811 | | | 7368 | |
6812 | | | 7369 | |
6813 | fi | | 7370 | fi |
6814 | | | 7371 | |
6815 | ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#ifdef HAVE_SYS_TYPES_H | | 7372 | ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#ifdef HAVE_SYS_TYPES_H |
6816 | # include <sys/types.h> | | 7373 | # include <sys/types.h> |
6817 | #endif | | 7374 | #endif |
6818 | #include <netinet/in.h> | | 7375 | #include <netinet/in.h> |
6819 | | | 7376 | |
6820 | " | | 7377 | " |
6821 | if test "x$ac_cv_type_struct_in6_addr" = xyes; then : | | 7378 | if test "x$ac_cv_type_struct_in6_addr" = xyes |
| | | 7379 | then : |
6822 | | | 7380 | |
6823 | cat >>confdefs.h <<_ACEOF | | 7381 | printf "%s\n" "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h |
6824 | #define HAVE_STRUCT_IN6_ADDR 1 | | | |
6825 | _ACEOF | | | |
6826 | | | 7382 | |
6827 | | | 7383 | |
6828 | fi | | 7384 | fi |
6829 | | | 7385 | |
6830 | ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#ifdef HAVE_SYS_TYPES_H | | 7386 | ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#ifdef HAVE_SYS_TYPES_H |
6831 | # include <sys/types.h> | | 7387 | # include <sys/types.h> |
6832 | #endif | | 7388 | #endif |
6833 | #include <netinet/in.h> | | 7389 | #include <netinet/in.h> |
6834 | | | 7390 | |
6835 | " | | 7391 | " |
6836 | if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then : | | 7392 | if test "x$ac_cv_type_struct_sockaddr_in6" = xyes |
| | | 7393 | then : |
6837 | | | 7394 | |
6838 | cat >>confdefs.h <<_ACEOF | | 7395 | printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h |
6839 | #define HAVE_STRUCT_SOCKADDR_IN6 1 | | | |
6840 | _ACEOF | | | |
6841 | | | 7396 | |
6842 | | | 7397 | |
6843 | fi | | 7398 | fi |
6844 | | | 7399 | |
6845 | ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#ifdef HAVE_SYS_TYPES_H | | 7400 | ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#ifdef HAVE_SYS_TYPES_H |
6846 | # include <sys/types.h> | | 7401 | # include <sys/types.h> |
6847 | #endif | | 7402 | #endif |
6848 | #include <sys/socket.h> | | 7403 | #include <sys/socket.h> |
6849 | | | 7404 | |
6850 | " | | 7405 | " |
6851 | if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then : | | 7406 | if test "x$ac_cv_type_struct_sockaddr_storage" = xyes |
| | | 7407 | then : |
6852 | | | 7408 | |
6853 | cat >>confdefs.h <<_ACEOF | | 7409 | printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h |
6854 | #define HAVE_STRUCT_SOCKADDR_STORAGE 1 | | | |
6855 | _ACEOF | | | |
6856 | | | 7410 | |
6857 | | | 7411 | |
6858 | fi | | 7412 | fi |
6859 | | | 7413 | |
6860 | for ac_func in getnameinfo gai_strerror getaddrinfo | | 7414 | |
| | | 7415 | for ac_func in getnameinfo gai_strerror getaddrinfo |
6861 | do : | | 7416 | do : |
6862 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | | 7417 | as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh` |
6863 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | | 7418 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
6864 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | | 7419 | if eval test \"x\$"$as_ac_var"\" = x"yes" |
| | | 7420 | then : |
6865 | cat >>confdefs.h <<_ACEOF | | 7421 | cat >>confdefs.h <<_ACEOF |
6866 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | | 7422 | #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 |
6867 | _ACEOF | | 7423 | _ACEOF |
6868 | : | | 7424 | : |
6869 | else | | 7425 | else $as_nop |
6870 | need_getaddrinfo=yes | | 7426 | need_getaddrinfo=yes |
6871 | fi | | 7427 | fi |
6872 | done | | | |
6873 | | | 7428 | |
| | | 7429 | done |
6874 | if test $need_getaddrinfo = yes; then | | 7430 | if test $need_getaddrinfo = yes; then |
6875 | case " $LIBOBJS " in | | 7431 | case " $LIBOBJS " in |
6876 | *" getaddrinfo.$ac_objext "* ) ;; | | 7432 | *" getaddrinfo.$ac_objext "* ) ;; |
6877 | *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" | | 7433 | *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" |
6878 | ;; | | 7434 | ;; |
6879 | esac | | 7435 | esac |
6880 | | | 7436 | |
6881 | fi | | 7437 | fi |
6882 | | | 7438 | |
6883 | need_findenv=no | | 7439 | need_findenv=no |
6884 | for ac_func in getenv setenv unsetenv | | 7440 | |
| | | 7441 | for ac_func in getenv setenv unsetenv |
6885 | do : | | 7442 | do : |
6886 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | | 7443 | as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh` |
6887 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | | 7444 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
6888 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | | 7445 | if eval test \"x\$"$as_ac_var"\" = x"yes" |
| | | 7446 | then : |
6889 | cat >>confdefs.h <<_ACEOF | | 7447 | cat >>confdefs.h <<_ACEOF |
6890 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | | 7448 | #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 |
6891 | _ACEOF | | 7449 | _ACEOF |
6892 | : | | 7450 | : |
6893 | else | | 7451 | else $as_nop |
6894 | need_findenv=yes | | 7452 | need_findenv=yes |
6895 | fi | | 7453 | fi |
6896 | done | | | |
6897 | | | 7454 | |
| | | 7455 | done |
6898 | if test $need_findenv = yes; then | | 7456 | if test $need_findenv = yes; then |
6899 | case " $LIBOBJS " in | | 7457 | case " $LIBOBJS " in |
6900 | *" findenv.$ac_objext "* ) ;; | | 7458 | *" findenv.$ac_objext "* ) ;; |
6901 | *) LIBOBJS="$LIBOBJS findenv.$ac_objext" | | 7459 | *) LIBOBJS="$LIBOBJS findenv.$ac_objext" |
6902 | ;; | | 7460 | ;; |
6903 | esac | | 7461 | esac |
6904 | | | 7462 | |
6905 | fi | | 7463 | fi |
6906 | | | 7464 | |
6907 | need_gettemp=no | | 7465 | need_gettemp=no |
6908 | for ac_func in mkdtemp mkstemp | | 7466 | |
| | | 7467 | for ac_func in mkdtemp mkstemp |
6909 | do : | | 7468 | do : |
6910 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | | 7469 | as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh` |
6911 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | | 7470 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
6912 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | | 7471 | if eval test \"x\$"$as_ac_var"\" = x"yes" |
| | | 7472 | then : |
6913 | cat >>confdefs.h <<_ACEOF | | 7473 | cat >>confdefs.h <<_ACEOF |
6914 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | | 7474 | #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 |
6915 | _ACEOF | | 7475 | _ACEOF |
6916 | : | | 7476 | : |
6917 | else | | 7477 | else $as_nop |
6918 | need_gettemp=yes | | 7478 | need_gettemp=yes |
6919 | fi | | 7479 | fi |
6920 | done | | | |
6921 | | | 7480 | |
| | | 7481 | done |
6922 | if test $need_gettemp = yes; then | | 7482 | if test $need_gettemp = yes; then |
6923 | case " $LIBOBJS " in | | 7483 | case " $LIBOBJS " in |
6924 | *" gettemp.$ac_objext "* ) ;; | | 7484 | *" gettemp.$ac_objext "* ) ;; |
6925 | *) LIBOBJS="$LIBOBJS gettemp.$ac_objext" | | 7485 | *) LIBOBJS="$LIBOBJS gettemp.$ac_objext" |
6926 | ;; | | 7486 | ;; |
6927 | esac | | 7487 | esac |
6928 | | | 7488 | |
6929 | fi | | 7489 | fi |
6930 | | | 7490 | |
6931 | for ac_func in setlocale | | 7491 | ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" |
6932 | do : | | 7492 | if test "x$ac_cv_func_setlocale" = xyes |
6933 | ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" | | 7493 | then : |
6934 | if test "x$ac_cv_func_setlocale" = xyes; then : | | 7494 | printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h |
6935 | cat >>confdefs.h <<_ACEOF | | | |
6936 | #define HAVE_SETLOCALE 1 | | | |
6937 | _ACEOF | | | |
6938 | | | 7495 | |
6939 | fi | | 7496 | fi |
6940 | done | | | |
6941 | | | 7497 | |
6942 | | | 7498 | |
6943 | need_setmode=no | | 7499 | need_setmode=no |
6944 | for ac_func in getmode setmode | | 7500 | |
| | | 7501 | for ac_func in getmode setmode |
6945 | do : | | 7502 | do : |
6946 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | | 7503 | as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh` |
6947 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | | 7504 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
6948 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | | 7505 | if eval test \"x\$"$as_ac_var"\" = x"yes" |
| | | 7506 | then : |
6949 | cat >>confdefs.h <<_ACEOF | | 7507 | cat >>confdefs.h <<_ACEOF |
6950 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | | 7508 | #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 |
6951 | _ACEOF | | 7509 | _ACEOF |
6952 | : | | 7510 | : |
6953 | else | | 7511 | else $as_nop |
6954 | need_setmode=yes | | 7512 | need_setmode=yes |
6955 | fi | | 7513 | fi |
6956 | done | | | |
6957 | | | 7514 | |
| | | 7515 | done |
6958 | | | 7516 | |
6959 | if test $need_setmode = yes; then | | 7517 | if test $need_setmode = yes; then |
6960 | case " $LIBOBJS " in | | 7518 | case " $LIBOBJS " in |
6961 | *" setmode.$ac_objext "* ) ;; | | 7519 | *" setmode.$ac_objext "* ) ;; |
6962 | *) LIBOBJS="$LIBOBJS setmode.$ac_objext" | | 7520 | *) LIBOBJS="$LIBOBJS setmode.$ac_objext" |
6963 | ;; | | 7521 | ;; |
6964 | esac | | 7522 | esac |
6965 | | | 7523 | |
6966 | fi | | 7524 | fi |
6967 | | | 7525 | |
6968 | need_strnlen=no | | 7526 | need_strnlen=no |
6969 | for ac_func in strnlen | | 7527 | |
| | | 7528 | for ac_func in strnlen |
6970 | do : | | 7529 | do : |
6971 | ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen" | | 7530 | ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen" |
6972 | if test "x$ac_cv_func_strnlen" = xyes; then : | | 7531 | if test "x$ac_cv_func_strnlen" = xyes |
6973 | cat >>confdefs.h <<_ACEOF | | 7532 | then : |
6974 | #define HAVE_STRNLEN 1 | | 7533 | printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h |
6975 | _ACEOF | | | |
6976 | : | | 7534 | : |
6977 | else | | 7535 | else $as_nop |
6978 | need_strnlen=yes | | 7536 | need_strnlen=yes |
6979 | fi | | 7537 | fi |
6980 | done | | | |
6981 | | | 7538 | |
| | | 7539 | done |
6982 | | | 7540 | |
6983 | if test $need_strnlen = yes; then | | 7541 | if test $need_strnlen = yes; then |
6984 | case " $LIBOBJS " in | | 7542 | case " $LIBOBJS " in |
6985 | *" strnlen.$ac_objext "* ) ;; | | 7543 | *" strnlen.$ac_objext "* ) ;; |
6986 | *) LIBOBJS="$LIBOBJS strnlen.$ac_objext" | | 7544 | *) LIBOBJS="$LIBOBJS strnlen.$ac_objext" |
6987 | ;; | | 7545 | ;; |
6988 | esac | | 7546 | esac |
6989 | | | 7547 | |
6990 | fi | | 7548 | fi |
6991 | | | 7549 | |
6992 | ac_fn_c_check_decl "$LINENO" "endgrent" "ac_cv_have_decl_endgrent" "$ac_includes_default" | | 7550 | ac_fn_check_decl "$LINENO" "endgrent" "ac_cv_have_decl_endgrent" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" |
6993 | if test "x$ac_cv_have_decl_endgrent" = xyes; then : | | 7551 | if test "x$ac_cv_have_decl_endgrent" = xyes |
| | | 7552 | then : |
6994 | ac_have_decl=1 | | 7553 | ac_have_decl=1 |
6995 | else | | 7554 | else $as_nop |
6996 | ac_have_decl=0 | | 7555 | ac_have_decl=0 |
6997 | fi | | 7556 | fi |
6998 | | | 7557 | printf "%s\n" "#define HAVE_DECL_ENDGRENT $ac_have_decl" >>confdefs.h |
6999 | cat >>confdefs.h <<_ACEOF | | 7558 | ac_fn_check_decl "$LINENO" "endpwent" "ac_cv_have_decl_endpwent" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" |
7000 | #define HAVE_DECL_ENDGRENT $ac_have_decl | | 7559 | if test "x$ac_cv_have_decl_endpwent" = xyes |
7001 | _ACEOF | | 7560 | then : |
7002 | ac_fn_c_check_decl "$LINENO" "endpwent" "ac_cv_have_decl_endpwent" "$ac_includes_default" | | | |
7003 | if test "x$ac_cv_have_decl_endpwent" = xyes; then : | | | |
7004 | ac_have_decl=1 | | 7561 | ac_have_decl=1 |
7005 | else | | 7562 | else $as_nop |
7006 | ac_have_decl=0 | | 7563 | ac_have_decl=0 |
7007 | fi | | 7564 | fi |
7008 | | | 7565 | printf "%s\n" "#define HAVE_DECL_ENDPWENT $ac_have_decl" >>confdefs.h |
7009 | cat >>confdefs.h <<_ACEOF | | 7566 | ac_fn_check_decl "$LINENO" "setpassent" "ac_cv_have_decl_setpassent" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" |
7010 | #define HAVE_DECL_ENDPWENT $ac_have_decl | | 7567 | if test "x$ac_cv_have_decl_setpassent" = xyes |
7011 | _ACEOF | | 7568 | then : |
7012 | ac_fn_c_check_decl "$LINENO" "setpassent" "ac_cv_have_decl_setpassent" "$ac_includes_default" | | | |
7013 | if test "x$ac_cv_have_decl_setpassent" = xyes; then : | | | |
7014 | ac_have_decl=1 | | 7569 | ac_have_decl=1 |
7015 | else | | 7570 | else $as_nop |
7016 | ac_have_decl=0 | | 7571 | ac_have_decl=0 |
7017 | fi | | 7572 | fi |
7018 | | | 7573 | printf "%s\n" "#define HAVE_DECL_SETPASSENT $ac_have_decl" >>confdefs.h |
7019 | cat >>confdefs.h <<_ACEOF | | | |
7020 | #define HAVE_DECL_SETPASSENT $ac_have_decl | | | |
7021 | _ACEOF | | | |
7022 | | | 7574 | |
7023 | | | 7575 | |
7024 | need_pwcache=no | | 7576 | need_pwcache=no |
7025 | for ac_func in gid_from_group group_from_gid pwcache_groupdb \ | | | |
7026 | pwcache_userdb uid_from_user user_from_uid \ | | | |
7027 | | | 7577 | |
| | | 7578 | for ac_func in gid_from_group group_from_gid pwcache_groupdb pwcache_userdb uid_from_user user_from_uid |
7028 | do : | | 7579 | do : |
7029 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | | 7580 | as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh` |
7030 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | | 7581 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
7031 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | | 7582 | if eval test \"x\$"$as_ac_var"\" = x"yes" |
| | | 7583 | then : |
7032 | cat >>confdefs.h <<_ACEOF | | 7584 | cat >>confdefs.h <<_ACEOF |
7033 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | | 7585 | #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 |
7034 | _ACEOF | | 7586 | _ACEOF |
7035 | : | | 7587 | : |
7036 | else | | 7588 | else $as_nop |
7037 | need_pwcache=yes | | 7589 | need_pwcache=yes |
7038 | fi | | 7590 | fi |
7039 | done | | | |
7040 | | | 7591 | |
| | | 7592 | done |
7041 | | | 7593 | |
7042 | if test $need_pwcache = yes; then | | 7594 | if test $need_pwcache = yes; then |
7043 | case " $LIBOBJS " in | | 7595 | case " $LIBOBJS " in |
7044 | *" pwcache.$ac_objext "* ) ;; | | 7596 | *" pwcache.$ac_objext "* ) ;; |
7045 | *) LIBOBJS="$LIBOBJS pwcache.$ac_objext" | | 7597 | *) LIBOBJS="$LIBOBJS pwcache.$ac_objext" |
7046 | ;; | | 7598 | ;; |
7047 | esac | | 7599 | esac |
7048 | | | 7600 | |
7049 | fi | | 7601 | fi |
7050 | | | 7602 | |
7051 | ac_fn_c_check_func "$LINENO" "fts_open" "ac_cv_func_fts_open" | | 7603 | ac_fn_c_check_func "$LINENO" "fts_open" "ac_cv_func_fts_open" |
7052 | if test "x$ac_cv_func_fts_open" = xyes; then : | | 7604 | if test "x$ac_cv_func_fts_open" = xyes |
| | | 7605 | then : |
7053 | : | | 7606 | : |
7054 | else | | 7607 | else $as_nop |
7055 | | | 7608 | |
7056 | $as_echo "#define HAVE_NBCOMPAT_FTS 1" >>confdefs.h | | 7609 | printf "%s\n" "#define HAVE_NBCOMPAT_FTS 1" >>confdefs.h |
7057 | | | 7610 | |
7058 | | | 7611 | |
7059 | case " $LIBOBJS " in | | 7612 | case " $LIBOBJS " in |
7060 | *" fts.$ac_objext "* ) ;; | | 7613 | *" fts.$ac_objext "* ) ;; |
7061 | *) LIBOBJS="$LIBOBJS fts.$ac_objext" | | 7614 | *) LIBOBJS="$LIBOBJS fts.$ac_objext" |
7062 | ;; | | 7615 | ;; |
7063 | esac | | 7616 | esac |
7064 | | | 7617 | |
7065 | | | 7618 | |
7066 | fi | | 7619 | fi |
7067 | | | 7620 | |
7068 | | | 7621 | |
7069 | ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm" | | 7622 | ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm" |
7070 | if test "x$ac_cv_func_timegm" = xyes; then : | | 7623 | if test "x$ac_cv_func_timegm" = xyes |
| | | 7624 | then : |
7071 | : | | 7625 | : |
7072 | else | | 7626 | else $as_nop |
7073 | case " $LIBOBJS " in | | 7627 | case " $LIBOBJS " in |
7074 | *" timegm.$ac_objext "* ) ;; | | 7628 | *" timegm.$ac_objext "* ) ;; |
7075 | *) LIBOBJS="$LIBOBJS timegm.$ac_objext" | | 7629 | *) LIBOBJS="$LIBOBJS timegm.$ac_objext" |
7076 | ;; | | 7630 | ;; |
7077 | esac | | 7631 | esac |
7078 | | | 7632 | |
7079 | fi | | 7633 | fi |
7080 | | | 7634 | |
7081 | | | 7635 | |
7082 | # Handle Darwin 7 having a poll() compatibility function. Be | | 7636 | # Handle Darwin 7 having a poll() compatibility function. Be |
7083 | # conservative -- if we don't find one of <poll.h> or <sys/poll.h>, then | | 7637 | # conservative -- if we don't find one of <poll.h> or <sys/poll.h>, then |
7084 | # use our own poll() implementation. | | 7638 | # use our own poll() implementation. |
7085 | # | | 7639 | # |
7086 | pkg_cv_have_poll_h=no | | 7640 | pkg_cv_have_poll_h=no |
7087 | for ac_header in poll.h sys/poll.h | | 7641 | ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default" |
7088 | do : | | 7642 | if test "x$ac_cv_header_poll_h" = xyes |
7089 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | | 7643 | then : |
7090 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | | 7644 | printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h |
7091 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | | | |
7092 | cat >>confdefs.h <<_ACEOF | | | |
7093 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | | | |
7094 | _ACEOF | | | |
7095 | | | 7645 | |
7096 | fi | | 7646 | fi |
| | | 7647 | ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default" |
| | | 7648 | if test "x$ac_cv_header_sys_poll_h" = xyes |
| | | 7649 | then : |
| | | 7650 | printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h |
7097 | | | 7651 | |
7098 | done | | 7652 | fi |
7099 | | | 7653 | |
7100 | for ac_header in poll.h sys/poll.h | | 7654 | for ac_header in poll.h sys/poll.h |
7101 | do : | | 7655 | do : |
7102 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | | 7656 | as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh` |
7103 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | | 7657 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
7104 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | | 7658 | if eval test \"x\$"$as_ac_Header"\" = x"yes" |
| | | 7659 | then : |
7105 | cat >>confdefs.h <<_ACEOF | | 7660 | cat >>confdefs.h <<_ACEOF |
7106 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | | 7661 | #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1 |
7107 | _ACEOF | | 7662 | _ACEOF |
7108 | pkg_cv_have_poll_h=yes | | 7663 | pkg_cv_have_poll_h=yes |
7109 | fi | | 7664 | fi |
7110 | | | 7665 | |
7111 | done | | 7666 | done |
7112 | | | 7667 | |
7113 | | | | |
7114 | pkg_use_nbcompat_poll=yes | | 7668 | pkg_use_nbcompat_poll=yes |
7115 | if test $pkg_cv_have_poll_h = yes; then | | 7669 | if test $pkg_cv_have_poll_h = yes; then |
7116 | pkg_use_nbcompat_poll=no | | 7670 | pkg_use_nbcompat_poll=no |
7117 | fi | | 7671 | fi |
7118 | | | 7672 | |
7119 | if test $pkg_cv_have_poll_h = yes -o test $pkg_cv_have_sys_poll_h = yes; then | | 7673 | if test $pkg_cv_have_poll_h = yes -o test $pkg_cv_have_sys_poll_h = yes; then |
7120 | ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" | | 7674 | ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" |
7121 | if test "x$ac_cv_func_poll" = xyes; then : | | 7675 | if test "x$ac_cv_func_poll" = xyes |
| | | 7676 | then : |
7122 | | | 7677 | |
7123 | | | 7678 | |
7124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll() is implemented natively" >&5 | | 7679 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll() is implemented natively" >&5 |
7125 | $as_echo_n "checking if poll() is implemented natively... " >&6; } | | 7680 | printf %s "checking if poll() is implemented natively... " >&6; } |
7126 | if ${pkg_cv_native_poll+:} false; then : | | 7681 | if test ${pkg_cv_native_poll+y} |
7127 | $as_echo_n "(cached) " >&6 | | 7682 | then : |
7128 | else | | 7683 | printf %s "(cached) " >&6 |
| | | 7684 | else $as_nop |
7129 | | | 7685 | |
7130 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 7686 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7131 | /* end confdefs.h. */ | | 7687 | /* end confdefs.h. */ |
7132 | #if HAVE_POLL_H | | 7688 | #if HAVE_POLL_H |
7133 | #include <poll.h> | | 7689 | #include <poll.h> |
7134 | #endif | | 7690 | #endif |
7135 | #if HAVE_SYS_POLL_H | | 7691 | #if HAVE_SYS_POLL_H |
7136 | #include <sys/poll.h> | | 7692 | #include <sys/poll.h> |
7137 | #endif | | 7693 | #endif |
7138 | | | 7694 | |
7139 | int | | 7695 | int |
7140 | main () | | 7696 | main (void) |
7141 | { | | 7697 | { |
7142 | #ifdef _POLL_EMUL_H_ | | 7698 | #ifdef _POLL_EMUL_H_ |
7143 | #error "poll() is emulated" | | 7699 | #error "poll() is emulated" |
7144 | #endif | | 7700 | #endif |
7145 | ; | | 7701 | ; |
7146 | ; | | 7702 | ; |
7147 | return 0; | | 7703 | return 0; |
7148 | } | | 7704 | } |
7149 | _ACEOF | | 7705 | _ACEOF |
7150 | if ac_fn_c_try_compile "$LINENO"; then : | | 7706 | if ac_fn_c_try_compile "$LINENO" |
| | | 7707 | then : |
7151 | pkg_cv_native_poll=yes | | 7708 | pkg_cv_native_poll=yes |
7152 | else | | 7709 | else $as_nop |
7153 | pkg_cv_native_poll=no | | 7710 | pkg_cv_native_poll=no |
7154 | fi | | 7711 | fi |
7155 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 7712 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
7156 | | | 7713 | |
7157 | fi | | 7714 | fi |
7158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_native_poll" >&5 | | 7715 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pkg_cv_native_poll" >&5 |
7159 | $as_echo "$pkg_cv_native_poll" >&6; } | | 7716 | printf "%s\n" "$pkg_cv_native_poll" >&6; } |
7160 | if test "x$pkg_cv_native_poll" = "xyes"; then | | 7717 | if test "x$pkg_cv_native_poll" = "xyes"; then |
7161 | pkg_use_nbcompat_poll=no | | 7718 | pkg_use_nbcompat_poll=no |
7162 | else | | 7719 | else |
7163 | pkg_use_nbcompat_poll=yes | | 7720 | pkg_use_nbcompat_poll=yes |
7164 | : | | 7721 | : |
7165 | fi | | 7722 | fi |
7166 | | | 7723 | |
7167 | | | 7724 | |
7168 | fi | | 7725 | fi |
7169 | | | 7726 | |
7170 | fi | | 7727 | fi |
7171 | | | 7728 | |
7172 | if test $pkg_use_nbcompat_poll = yes; then | | 7729 | if test $pkg_use_nbcompat_poll = yes; then |
7173 | $as_echo "#define HAVE_NBCOMPAT_POLL 1" >>confdefs.h | | 7730 | printf "%s\n" "#define HAVE_NBCOMPAT_POLL 1" >>confdefs.h |
7174 | | | 7731 | |
7175 | | | 7732 | |
7176 | case " $LIBOBJS " in | | 7733 | case " $LIBOBJS " in |
7177 | *" poll.$ac_objext "* ) ;; | | 7734 | *" poll.$ac_objext "* ) ;; |
7178 | *) LIBOBJS="$LIBOBJS poll.$ac_objext" | | 7735 | *) LIBOBJS="$LIBOBJS poll.$ac_objext" |
7179 | ;; | | 7736 | ;; |
7180 | esac | | 7737 | esac |
7181 | | | 7738 | |
7182 | fi | | 7739 | fi |
7183 | | | 7740 | |
7184 | for ac_func in getpassphrase getpgrp select | | 7741 | ac_fn_c_check_func "$LINENO" "getpassphrase" "ac_cv_func_getpassphrase" |
7185 | do : | | 7742 | if test "x$ac_cv_func_getpassphrase" = xyes |
7186 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | | 7743 | then : |
7187 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | | 7744 | printf "%s\n" "#define HAVE_GETPASSPHRASE 1" >>confdefs.h |
7188 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | | 7745 | |
7189 | cat >>confdefs.h <<_ACEOF | | 7746 | fi |
7190 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | | 7747 | ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" |
7191 | _ACEOF | | 7748 | if test "x$ac_cv_func_getpgrp" = xyes |
| | | 7749 | then : |
| | | 7750 | printf "%s\n" "#define HAVE_GETPGRP 1" >>confdefs.h |
| | | 7751 | |
| | | 7752 | fi |
| | | 7753 | ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select" |
| | | 7754 | if test "x$ac_cv_func_select" = xyes |
| | | 7755 | then : |
| | | 7756 | printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h |
7192 | | | 7757 | |
7193 | fi | | 7758 | fi |
7194 | done | | | |
7195 | | | 7759 | |
7196 | | | 7760 | |
7197 | ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" | | 7761 | ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" |
7198 | if test "x$ac_cv_func_getpgrp" = xyes; then : | | 7762 | if test "x$ac_cv_func_getpgrp" = xyes |
7199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5 | | 7763 | then : |
7200 | $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; } | | 7764 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5 |
7201 | if ${ac_cv_func_getpgrp_void+:} false; then : | | 7765 | printf %s "checking whether getpgrp requires zero arguments... " >&6; } |
7202 | $as_echo_n "(cached) " >&6 | | 7766 | if test ${ac_cv_func_getpgrp_void+y} |
7203 | else | | 7767 | then : |
| | | 7768 | printf %s "(cached) " >&6 |
| | | 7769 | else $as_nop |
7204 | # Use it with a single arg. | | 7770 | # Use it with a single arg. |
7205 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 7771 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7206 | /* end confdefs.h. */ | | 7772 | /* end confdefs.h. */ |
7207 | $ac_includes_default | | 7773 | $ac_includes_default |
7208 | int | | 7774 | int |
7209 | main () | | 7775 | main (void) |
7210 | { | | 7776 | { |
7211 | getpgrp (0); | | 7777 | getpgrp (0); |
7212 | ; | | 7778 | ; |
7213 | return 0; | | 7779 | return 0; |
7214 | } | | 7780 | } |
7215 | _ACEOF | | 7781 | _ACEOF |
7216 | if ac_fn_c_try_compile "$LINENO"; then : | | 7782 | if ac_fn_c_try_compile "$LINENO" |
| | | 7783 | then : |
7217 | ac_cv_func_getpgrp_void=no | | 7784 | ac_cv_func_getpgrp_void=no |
7218 | else | | 7785 | else $as_nop |
7219 | ac_cv_func_getpgrp_void=yes | | 7786 | ac_cv_func_getpgrp_void=yes |
7220 | fi | | 7787 | fi |
7221 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | | 7788 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
7222 | | | 7789 | |
7223 | fi | | 7790 | fi |
7224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5 | | 7791 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5 |
7225 | $as_echo "$ac_cv_func_getpgrp_void" >&6; } | | 7792 | printf "%s\n" "$ac_cv_func_getpgrp_void" >&6; } |
7226 | if test $ac_cv_func_getpgrp_void = yes; then | | 7793 | if test $ac_cv_func_getpgrp_void = yes; then |
7227 | | | 7794 | |
7228 | $as_echo "#define GETPGRP_VOID 1" >>confdefs.h | | 7795 | printf "%s\n" "#define GETPGRP_VOID 1" >>confdefs.h |
7229 | | | 7796 | |
7230 | fi | | 7797 | fi |
7231 | | | 7798 | |
7232 | fi | | 7799 | fi |
7233 | | | 7800 | |
7234 | | | 7801 | |
7235 | ac_fn_c_check_member "$LINENO" "struct statfs" "f_flags" "ac_cv_member_struct_statfs_f_flags" " #include <sys/statfs.h> | | 7802 | ac_fn_c_check_member "$LINENO" "struct statfs" "f_flags" "ac_cv_member_struct_statfs_f_flags" " #include <sys/statfs.h> |
7236 | " | | 7803 | " |
7237 | if test "x$ac_cv_member_struct_statfs_f_flags" = xyes; then : | | 7804 | if test "x$ac_cv_member_struct_statfs_f_flags" = xyes |
| | | 7805 | then : |
7238 | | | 7806 | |
7239 | cat >>confdefs.h <<_ACEOF | | 7807 | printf "%s\n" "#define HAVE_STRUCT_STATFS_F_FLAGS 1" >>confdefs.h |
7240 | #define HAVE_STRUCT_STATFS_F_FLAGS 1 | | | |
7241 | _ACEOF | | | |
7242 | | | 7808 | |
7243 | : | | 7809 | : |
7244 | else | | 7810 | else $as_nop |
7245 | : | | 7811 | : |
7246 | fi | | 7812 | fi |
7247 | | | 7813 | |
7248 | ac_fn_c_check_member "$LINENO" "struct statfs" "f_fsize" "ac_cv_member_struct_statfs_f_fsize" " #include <sys/statfs.h> | | 7814 | ac_fn_c_check_member "$LINENO" "struct statfs" "f_fsize" "ac_cv_member_struct_statfs_f_fsize" " #include <sys/statfs.h> |
7249 | " | | 7815 | " |
7250 | if test "x$ac_cv_member_struct_statfs_f_fsize" = xyes; then : | | 7816 | if test "x$ac_cv_member_struct_statfs_f_fsize" = xyes |
| | | 7817 | then : |
7251 | | | 7818 | |
7252 | cat >>confdefs.h <<_ACEOF | | 7819 | printf "%s\n" "#define HAVE_STRUCT_STATFS_F_FSIZE 1" >>confdefs.h |
7253 | #define HAVE_STRUCT_STATFS_F_FSIZE 1 | | | |
7254 | _ACEOF | | | |
7255 | | | 7820 | |
7256 | : | | 7821 | : |
7257 | else | | 7822 | else $as_nop |
7258 | : | | 7823 | : |
7259 | fi | | 7824 | fi |
7260 | | | 7825 | |
7261 | ac_fn_c_check_member "$LINENO" "struct statfs" "f_iosize" "ac_cv_member_struct_statfs_f_iosize" " #include <sys/statfs.h> | | 7826 | ac_fn_c_check_member "$LINENO" "struct statfs" "f_iosize" "ac_cv_member_struct_statfs_f_iosize" " #include <sys/statfs.h> |
7262 | " | | 7827 | " |
7263 | if test "x$ac_cv_member_struct_statfs_f_iosize" = xyes; then : | | 7828 | if test "x$ac_cv_member_struct_statfs_f_iosize" = xyes |
| | | 7829 | then : |
7264 | | | 7830 | |
7265 | cat >>confdefs.h <<_ACEOF | | 7831 | printf "%s\n" "#define HAVE_STRUCT_STATFS_F_IOSIZE 1" >>confdefs.h |
7266 | #define HAVE_STRUCT_STATFS_F_IOSIZE 1 | | | |
7267 | _ACEOF | | | |
7268 | | | 7832 | |
7269 | : | | 7833 | : |
7270 | else | | 7834 | else $as_nop |
7271 | : | | 7835 | : |
7272 | fi | | 7836 | fi |
7273 | | | 7837 | |
7274 | ac_fn_c_check_member "$LINENO" "struct dirent" "d_namlen" "ac_cv_member_struct_dirent_d_namlen" " #include <sys/types.h> | | 7838 | ac_fn_c_check_member "$LINENO" "struct dirent" "d_namlen" "ac_cv_member_struct_dirent_d_namlen" " #include <sys/types.h> |
7275 | #if HAVE_DIRENT_H | | 7839 | #if HAVE_DIRENT_H |
7276 | # include <dirent.h> | | 7840 | # include <dirent.h> |
7277 | #else | | 7841 | #else |
7278 | # define dirent direct | | 7842 | # define dirent direct |
7279 | # if HAVE_SYS_NDIR_H | | 7843 | # if HAVE_SYS_NDIR_H |
7280 | # include <sys/ndir.h> | | 7844 | # include <sys/ndir.h> |
7281 | # endif | | 7845 | # endif |
7282 | # if HAVE_SYS_DIR_H | | 7846 | # if HAVE_SYS_DIR_H |
7283 | # include <sys/dir.h> | | 7847 | # include <sys/dir.h> |
7284 | # endif | | 7848 | # endif |
7285 | # if HAVE_NDIR_H | | 7849 | # if HAVE_NDIR_H |
7286 | # include <ndir.h> | | 7850 | # include <ndir.h> |
7287 | # endif | | 7851 | # endif |
7288 | #endif | | 7852 | #endif |
7289 | " | | 7853 | " |
7290 | if test "x$ac_cv_member_struct_dirent_d_namlen" = xyes; then : | | 7854 | if test "x$ac_cv_member_struct_dirent_d_namlen" = xyes |
| | | 7855 | then : |
7291 | | | 7856 | |
7292 | cat >>confdefs.h <<_ACEOF | | 7857 | printf "%s\n" "#define HAVE_STRUCT_DIRENT_D_NAMLEN 1" >>confdefs.h |
7293 | #define HAVE_STRUCT_DIRENT_D_NAMLEN 1 | | | |
7294 | _ACEOF | | | |
7295 | | | 7858 | |
7296 | : | | 7859 | : |
7297 | else | | 7860 | else $as_nop |
7298 | : | | 7861 | : |
7299 | fi | | 7862 | fi |
7300 | ac_fn_c_check_member "$LINENO" "DIR" "dd_fd" "ac_cv_member_DIR_dd_fd" " #include <sys/types.h> | | 7863 | ac_fn_c_check_member "$LINENO" "DIR" "dd_fd" "ac_cv_member_DIR_dd_fd" " #include <sys/types.h> |
7301 | #if HAVE_DIRENT_H | | 7864 | #if HAVE_DIRENT_H |
7302 | # include <dirent.h> | | 7865 | # include <dirent.h> |
7303 | #else | | 7866 | #else |
7304 | # define dirent direct | | 7867 | # define dirent direct |
7305 | # if HAVE_SYS_NDIR_H | | 7868 | # if HAVE_SYS_NDIR_H |
7306 | # include <sys/ndir.h> | | 7869 | # include <sys/ndir.h> |
7307 | # endif | | 7870 | # endif |
7308 | # if HAVE_SYS_DIR_H | | 7871 | # if HAVE_SYS_DIR_H |
7309 | # include <sys/dir.h> | | 7872 | # include <sys/dir.h> |
7310 | # endif | | 7873 | # endif |
7311 | # if HAVE_NDIR_H | | 7874 | # if HAVE_NDIR_H |
7312 | # include <ndir.h> | | 7875 | # include <ndir.h> |
7313 | # endif | | 7876 | # endif |
7314 | #endif | | 7877 | #endif |
7315 | " | | 7878 | " |
7316 | if test "x$ac_cv_member_DIR_dd_fd" = xyes; then : | | 7879 | if test "x$ac_cv_member_DIR_dd_fd" = xyes |
| | | 7880 | then : |
7317 | | | 7881 | |
7318 | cat >>confdefs.h <<_ACEOF | | 7882 | printf "%s\n" "#define HAVE_DIR_DD_FD 1" >>confdefs.h |
7319 | #define HAVE_DIR_DD_FD 1 | | | |
7320 | _ACEOF | | | |
7321 | | | 7883 | |
7322 | : | | 7884 | : |
7323 | else | | 7885 | else $as_nop |
7324 | : | | 7886 | : |
7325 | fi | | 7887 | fi |
7326 | | | 7888 | |
7327 | | | 7889 | |
7328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirfd" >&5 | | 7890 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dirfd" >&5 |
7329 | $as_echo_n "checking for dirfd... " >&6; } | | 7891 | printf %s "checking for dirfd... " >&6; } |
7330 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 7892 | if test ${nb_cv_dirfd+y} |
| | | 7893 | then : |
| | | 7894 | printf %s "(cached) " >&6 |
| | | 7895 | else $as_nop |
| | | 7896 | |
| | | 7897 | nb_cv_dirfd=no |
| | | 7898 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7331 | /* end confdefs.h. */ | | 7899 | /* end confdefs.h. */ |
7332 | #include <sys/types.h> | | 7900 | #include <sys/types.h> |
7333 | #if HAVE_DIRENT_H | | 7901 | #if HAVE_DIRENT_H |
7334 | # include <dirent.h> | | 7902 | # include <dirent.h> |
7335 | #else | | 7903 | #else |
7336 | # define dirent direct | | 7904 | # define dirent direct |
7337 | # if HAVE_SYS_NDIR_H | | 7905 | # if HAVE_SYS_NDIR_H |
7338 | # include <sys/ndir.h> | | 7906 | # include <sys/ndir.h> |
7339 | # endif | | 7907 | # endif |
7340 | # if HAVE_SYS_DIR_H | | 7908 | # if HAVE_SYS_DIR_H |
7341 | # include <sys/dir.h> | | 7909 | # include <sys/dir.h> |
7342 | # endif | | 7910 | # endif |
7343 | # if HAVE_NDIR_H | | 7911 | # if HAVE_NDIR_H |
7344 | # include <ndir.h> | | 7912 | # include <ndir.h> |
7345 | # endif | | 7913 | # endif |
7346 | #endif | | 7914 | #endif |
7347 | int dummy_var; | | 7915 | int dummy_var; |
7348 | | | 7916 | |
7349 | int | | 7917 | int |
7350 | main () | | 7918 | main (void) |
7351 | { | | 7919 | { |
7352 | dummy_var = dirfd((DIR *)0) | | 7920 | dummy_var = dirfd((DIR *)0) |
7353 | ; | | 7921 | ; |
7354 | return 0; | | 7922 | return 0; |
7355 | } | | 7923 | } |
7356 | _ACEOF | | 7924 | _ACEOF |
7357 | if ac_fn_c_try_link "$LINENO"; then : | | 7925 | if ac_fn_c_try_link "$LINENO" |
7358 | | | 7926 | then : |
7359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | | 7927 | nb_cv_dirfd=yes |
7360 | $as_echo "yes" >&6; } | | 7928 | fi |
7361 | | | 7929 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
7362 | $as_echo "#define HAVE_DIRFD 1" >>confdefs.h | | 7930 | conftest$ac_exeext conftest.$ac_ext |
7363 | | | | |
7364 | | | 7931 | |
7365 | else | | 7932 | fi |
7366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | | 7933 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nb_cv_dirfd" >&5 |
7367 | $as_echo "no" >&6; } | | 7934 | printf "%s\n" "$nb_cv_dirfd" >&6; } |
| | | 7935 | if test $nb_cv_dirfd = yes; then |
7368 | | | 7936 | |
| | | 7937 | printf "%s\n" "#define HAVE_DIRFD 1" >>confdefs.h |
7369 | | | 7938 | |
7370 | fi | | 7939 | fi |
7371 | rm -f core conftest.err conftest.$ac_objext \ | | | |
7372 | conftest$ac_exeext conftest.$ac_ext | | | |
7373 | | | 7940 | |
7374 | if test $ac_cv_type_long_long = yes; then | | 7941 | if test $ac_cv_type_long_long = yes; then |
7375 | | | 7942 | |
7376 | | | 7943 | |
7377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking *printf() support for %lld" >&5 | | | |
7378 | $as_echo_n "checking *printf() support for %lld... " >&6; } | | | |
7379 | can_printf_longlong=no | | 7944 | can_printf_longlong=no |
7380 | if test "$cross_compiling" = yes; then : | | 7945 | |
7381 | : | | 7946 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for *printf() support for %lld" >&5 |
7382 | else | | 7947 | printf %s "checking for *printf() support for %lld... " >&6; } |
| | | 7948 | if test ${nb_cv_printf_lld+y} |
| | | 7949 | then : |
| | | 7950 | printf %s "(cached) " >&6 |
| | | 7951 | else $as_nop |
| | | 7952 | |
| | | 7953 | nb_cv_printf_lld=no |
| | | 7954 | if test "$cross_compiling" = yes |
| | | 7955 | then : |
| | | 7956 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| | | 7957 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| | | 7958 | as_fn_error $? "cannot run test program while cross compiling |
| | | 7959 | See \`config.log' for more details" "$LINENO" 5; } |
| | | 7960 | else $as_nop |
7383 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 7961 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7384 | /* end confdefs.h. */ | | 7962 | /* end confdefs.h. */ |
7385 | | | 7963 | |
7386 | #include <stdio.h> | | 7964 | #include <stdio.h> |
7387 | int main() { | | 7965 | int main() { |
7388 | char buf[100]; | | 7966 | char buf[100]; |
7389 | sprintf(buf, "%lld", 4294967300LL); | | 7967 | sprintf(buf, "%lld", 4294967300LL); |
7390 | return (strcmp(buf, "4294967300")); | | 7968 | return (strcmp(buf, "4294967300")); |
7391 | } | | 7969 | } |
7392 | | | 7970 | |
7393 | _ACEOF | | 7971 | _ACEOF |
7394 | if ac_fn_c_try_run "$LINENO"; then : | | 7972 | if ac_fn_c_try_run "$LINENO" |
7395 | | | 7973 | then : |
7396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | | 7974 | nb_cv_printf_lld=yes |
7397 | $as_echo "yes" >&6; } | | | |
7398 | can_printf_longlong=yes | | | |
7399 | | | | |
7400 | else | | | |
7401 | | | | |
7402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | | | |
7403 | $as_echo "no" >&6; } | | | |
7404 | | | | |
7405 | fi | | 7975 | fi |
7406 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | | 7976 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7407 | conftest.$ac_objext conftest.beam conftest.$ac_ext | | 7977 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
7408 | fi | | 7978 | fi |
7409 | | | 7979 | |
7410 | | | 7980 | |
| | | 7981 | fi |
| | | 7982 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nb_cv_printf_lld" >&5 |
| | | 7983 | printf "%s\n" "$nb_cv_printf_lld" >&6; } |
| | | 7984 | if test $nb_cv_printf_lld = yes; then |
| | | 7985 | can_printf_longlong=yes |
| | | 7986 | fi |
| | | 7987 | |
7411 | if test $can_printf_longlong != yes; then | | 7988 | if test $can_printf_longlong != yes; then |
7412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking *printf() support for %qd" >&5 | | 7989 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for *printf() support for %qd" >&5 |
7413 | $as_echo_n "checking *printf() support for %qd... " >&6; } | | 7990 | printf %s "checking for *printf() support for %qd... " >&6; } |
7414 | if test "$cross_compiling" = yes; then : | | 7991 | if test ${nb_cv_printf_qd+y} |
7415 | : | | 7992 | then : |
7416 | else | | 7993 | printf %s "(cached) " >&6 |
| | | 7994 | else $as_nop |
| | | 7995 | |
| | | 7996 | nb_cv_printf_qd=no |
| | | 7997 | if test "$cross_compiling" = yes |
| | | 7998 | then : |
| | | 7999 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| | | 8000 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| | | 8001 | as_fn_error $? "cannot run test program while cross compiling |
| | | 8002 | See \`config.log' for more details" "$LINENO" 5; } |
| | | 8003 | else $as_nop |
7417 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 8004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7418 | /* end confdefs.h. */ | | 8005 | /* end confdefs.h. */ |
7419 | | | 8006 | |
7420 | #include <stdio.h> | | 8007 | #include <stdio.h> |
7421 | int main() { | | 8008 | int main() { |
7422 | char buf[100]; | | 8009 | char buf[100]; |
7423 | sprintf(buf, "%qd", 4294967300LL); | | 8010 | sprintf(buf, "%qd", 4294967300LL); |
7424 | return (strcmp(buf, "4294967300")); | | 8011 | return (strcmp(buf, "4294967300")); |
7425 | } | | 8012 | } |
7426 | | | 8013 | |
7427 | _ACEOF | | 8014 | _ACEOF |
7428 | if ac_fn_c_try_run "$LINENO"; then : | | 8015 | if ac_fn_c_try_run "$LINENO" |
7429 | | | 8016 | then : |
7430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | | 8017 | nb_cv_printf_qd=yes |
7431 | $as_echo "yes" >&6; } | | | |
7432 | can_printf_longlong=yes | | | |
7433 | $as_echo "#define HAVE_PRINTF_QD 1" >>confdefs.h | | | |
7434 | | | | |
7435 | | | | |
7436 | | | | |
7437 | else | | | |
7438 | | | | |
7439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | | | |
7440 | $as_echo "no" >&6; } | | | |
7441 | | | | |
7442 | fi | | 8018 | fi |
7443 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | | 8019 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7444 | conftest.$ac_objext conftest.beam conftest.$ac_ext | | 8020 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
7445 | fi | | 8021 | fi |
7446 | | | 8022 | |
| | | 8023 | |
| | | 8024 | fi |
| | | 8025 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nb_cv_printf_qd" >&5 |
| | | 8026 | printf "%s\n" "$nb_cv_printf_qd" >&6; } |
| | | 8027 | if test $nb_cv_printf_qd = yes; then |
| | | 8028 | printf "%s\n" "#define HAVE_PRINTF_QD 1" >>confdefs.h |
| | | 8029 | |
| | | 8030 | |
| | | 8031 | can_printf_longlong=yes |
| | | 8032 | fi |
7447 | fi | | 8033 | fi |
7448 | | | 8034 | |
7449 | if test $can_printf_longlong = yes; then | | 8035 | if test $can_printf_longlong = yes; then |
7450 | $as_echo "#define HAVE_WORKING_LONG_LONG 1" >>confdefs.h | | 8036 | printf "%s\n" "#define HAVE_WORKING_LONG_LONG 1" >>confdefs.h |
7451 | | | 8037 | |
7452 | | | 8038 | |
7453 | ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll" | | 8039 | ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll" |
7454 | if test "x$ac_cv_func_strtoll" = xyes; then : | | 8040 | if test "x$ac_cv_func_strtoll" = xyes |
7455 | $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h | | 8041 | then : |
| | | 8042 | printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h |
7456 | | | 8043 | |
7457 | else | | 8044 | else $as_nop |
7458 | case " $LIBOBJS " in | | 8045 | case " $LIBOBJS " in |
7459 | *" strtoll.$ac_objext "* ) ;; | | 8046 | *" strtoll.$ac_objext "* ) ;; |
7460 | *) LIBOBJS="$LIBOBJS strtoll.$ac_objext" | | 8047 | *) LIBOBJS="$LIBOBJS strtoll.$ac_objext" |
7461 | ;; | | 8048 | ;; |
7462 | esac | | 8049 | esac |
7463 | | | 8050 | |
7464 | fi | | 8051 | fi |
7465 | | | 8052 | |
7466 | | | | |
7467 | fi | | 8053 | fi |
7468 | | | 8054 | |
7469 | fi | | 8055 | fi |
7470 | | | 8056 | |
7471 | | | 8057 | |
7472 | | | 8058 | |
7473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf is standards compliant" >&5 | | 8059 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if vsnprintf is standards compliant" >&5 |
7474 | $as_echo_n "checking if vsnprintf is standards compliant... " >&6; } | | 8060 | printf %s "checking if vsnprintf is standards compliant... " >&6; } |
7475 | have_std_vsnprintf=no | | 8061 | if test ${nb_cv_std_vsnprintf+y} |
7476 | if test "$cross_compiling" = yes; then : | | 8062 | then : |
7477 | : | | 8063 | printf %s "(cached) " >&6 |
7478 | else | | 8064 | else $as_nop |
| | | 8065 | |
| | | 8066 | nb_cv_std_vsnprintf=no |
| | | 8067 | if test "$cross_compiling" = yes |
| | | 8068 | then : |
| | | 8069 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| | | 8070 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| | | 8071 | as_fn_error $? "cannot run test program while cross compiling |
| | | 8072 | See \`config.log' for more details" "$LINENO" 5; } |
| | | 8073 | else $as_nop |
7479 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | | 8074 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7480 | /* end confdefs.h. */ | | 8075 | /* end confdefs.h. */ |
7481 | | | 8076 | |
7482 | #include <stdio.h> | | 8077 | #include <stdio.h> |
7483 | #include <stdlib.h> | | 8078 | #include <stdlib.h> |
7484 | #include <stdarg.h> | | 8079 | #include <stdarg.h> |
7485 | void dotest(char *fmt, ...) { | | 8080 | void dotest(char *fmt, ...) { |
7486 | char buf[3]; | | 8081 | char buf[3]; |
7487 | va_list ap; | | 8082 | va_list ap; |
7488 | va_start(ap, fmt); | | 8083 | va_start(ap, fmt); |
7489 | exit(snprintf(buf, 3, fmt, ap) == 4 ? 0 : 1); | | 8084 | exit(snprintf(buf, 3, fmt, ap) == 4 ? 0 : 1); |
7490 | } | | 8085 | } |
7491 | int main() { | | 8086 | int main() { |
7492 | dotest("test"); | | 8087 | dotest("test"); |
7493 | } | | 8088 | } |
7494 | | | 8089 | |
7495 | _ACEOF | | 8090 | _ACEOF |
7496 | if ac_fn_c_try_run "$LINENO"; then : | | 8091 | if ac_fn_c_try_run "$LINENO" |
7497 | | | 8092 | then : |
7498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | | 8093 | nb_cv_std_vsnprintf=yes |
7499 | $as_echo "yes" >&6; } | | | |
7500 | have_std_vsnprintf=yes | | | |
7501 | | | | |
7502 | else | | | |
7503 | | | | |
7504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | | | |
7505 | $as_echo "no" >&6; } | | | |
7506 | | | | |
7507 | fi | | 8094 | fi |
7508 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | | 8095 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7509 | conftest.$ac_objext conftest.beam conftest.$ac_ext | | 8096 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
7510 | fi | | 8097 | fi |
7511 | | | 8098 | |
7512 | | | 8099 | |
7513 | if test $have_std_vsnprintf = no; then | | 8100 | fi |
| | | 8101 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $nb_cv_std_vsnprintf" >&5 |
| | | 8102 | printf "%s\n" "$nb_cv_std_vsnprintf" >&6; } |
| | | 8103 | |
| | | 8104 | if test nb_cv_std_vsnprintf = no; then |
7514 | case " $LIBOBJS " in | | 8105 | case " $LIBOBJS " in |
7515 | *" snprintf.$ac_objext "* ) ;; | | 8106 | *" snprintf.$ac_objext "* ) ;; |
7516 | *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" | | 8107 | *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" |
7517 | ;; | | 8108 | ;; |
7518 | esac | | 8109 | esac |
7519 | | | 8110 | |
7520 | fi | | 8111 | fi |
7521 | | | 8112 | |
7522 | | | 8113 | |
7523 | | | 8114 | |
7524 | ac_config_files="$ac_config_files Makefile" | | 8115 | ac_config_files="$ac_config_files Makefile" |
7525 | | | 8116 | |
7526 | cat >confcache <<\_ACEOF | | 8117 | cat >confcache <<\_ACEOF |
| @@ -7540,28 +8131,28 @@ cat >confcache <<\_ACEOF | | | @@ -7540,28 +8131,28 @@ cat >confcache <<\_ACEOF |
7540 | _ACEOF | | 8131 | _ACEOF |
7541 | | | 8132 | |
7542 | # The following way of writing the cache mishandles newlines in values, | | 8133 | # The following way of writing the cache mishandles newlines in values, |
7543 | # but we know of no workaround that is simple, portable, and efficient. | | 8134 | # but we know of no workaround that is simple, portable, and efficient. |
7544 | # So, we kill variables containing newlines. | | 8135 | # So, we kill variables containing newlines. |
7545 | # Ultrix sh set writes to stderr and can't be redirected directly, | | 8136 | # Ultrix sh set writes to stderr and can't be redirected directly, |
7546 | # and sets the high bit in the cache file unless we assign to the vars. | | 8137 | # and sets the high bit in the cache file unless we assign to the vars. |
7547 | ( | | 8138 | ( |
7548 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | | 8139 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
7549 | eval ac_val=\$$ac_var | | 8140 | eval ac_val=\$$ac_var |
7550 | case $ac_val in #( | | 8141 | case $ac_val in #( |
7551 | *${as_nl}*) | | 8142 | *${as_nl}*) |
7552 | case $ac_var in #( | | 8143 | case $ac_var in #( |
7553 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | | 8144 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
7554 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | | 8145 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
7555 | esac | | 8146 | esac |
7556 | case $ac_var in #( | | 8147 | case $ac_var in #( |
7557 | _ | IFS | as_nl) ;; #( | | 8148 | _ | IFS | as_nl) ;; #( |
7558 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | | 8149 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
7559 | *) { eval $ac_var=; unset $ac_var;} ;; | | 8150 | *) { eval $ac_var=; unset $ac_var;} ;; |
7560 | esac ;; | | 8151 | esac ;; |
7561 | esac | | 8152 | esac |
7562 | done | | 8153 | done |
7563 | | | 8154 | |
7564 | (set) 2>&1 | | | 8155 | (set) 2>&1 | |
7565 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | | 8156 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
7566 | *${as_nl}ac_space=\ *) | | 8157 | *${as_nl}ac_space=\ *) |
7567 | # `set' does not quote correctly, so add quotes: double-quote | | 8158 | # `set' does not quote correctly, so add quotes: double-quote |
| @@ -7571,298 +8162,281 @@ $as_echo "$as_me: WARNING: cache variabl | | | @@ -7571,298 +8162,281 @@ $as_echo "$as_me: WARNING: cache variabl |
7571 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | | 8162 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
7572 | ;; #( | | 8163 | ;; #( |
7573 | *) | | 8164 | *) |
7574 | # `set' quotes correctly as required by POSIX, so do not add quotes. | | 8165 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
7575 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | | 8166 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
7576 | ;; | | 8167 | ;; |
7577 | esac | | | 8168 | esac | |
7578 | sort | | 8169 | sort |
7579 | ) | | | 8170 | ) | |
7580 | sed ' | | 8171 | sed ' |
7581 | /^ac_cv_env_/b end | | 8172 | /^ac_cv_env_/b end |
7582 | t clear | | 8173 | t clear |
7583 | :clear | | 8174 | :clear |
7584 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | | 8175 | s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ |
7585 | t end | | 8176 | t end |
7586 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | | 8177 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
7587 | :end' >>confcache | | 8178 | :end' >>confcache |
7588 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | | 8179 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
7589 | if test -w "$cache_file"; then | | 8180 | if test -w "$cache_file"; then |
7590 | if test "x$cache_file" != "x/dev/null"; then | | 8181 | if test "x$cache_file" != "x/dev/null"; then |
7591 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | | 8182 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
7592 | $as_echo "$as_me: updating cache $cache_file" >&6;} | | 8183 | printf "%s\n" "$as_me: updating cache $cache_file" >&6;} |
7593 | if test ! -f "$cache_file" || test -h "$cache_file"; then | | 8184 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
7594 | cat confcache >"$cache_file" | | 8185 | cat confcache >"$cache_file" |
7595 | else | | 8186 | else |
7596 | case $cache_file in #( | | 8187 | case $cache_file in #( |
7597 | */* | ?:*) | | 8188 | */* | ?:*) |
7598 | mv -f confcache "$cache_file"$$ && | | 8189 | mv -f confcache "$cache_file"$$ && |
7599 | mv -f "$cache_file"$$ "$cache_file" ;; #( | | 8190 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
7600 | *) | | 8191 | *) |
7601 | mv -f confcache "$cache_file" ;; | | 8192 | mv -f confcache "$cache_file" ;; |
7602 | esac | | 8193 | esac |
7603 | fi | | 8194 | fi |
7604 | fi | | 8195 | fi |
7605 | else | | 8196 | else |
7606 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | | 8197 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
7607 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | | 8198 | printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} |
7608 | fi | | 8199 | fi |
7609 | fi | | 8200 | fi |
7610 | rm -f confcache | | 8201 | rm -f confcache |
7611 | | | 8202 | |
7612 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | | 8203 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
7613 | # Let make expand exec_prefix. | | 8204 | # Let make expand exec_prefix. |
7614 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | | 8205 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
7615 | | | 8206 | |
7616 | DEFS=-DHAVE_CONFIG_H | | 8207 | DEFS=-DHAVE_CONFIG_H |
7617 | | | 8208 | |
7618 | ac_libobjs= | | 8209 | ac_libobjs= |
7619 | ac_ltlibobjs= | | 8210 | ac_ltlibobjs= |
7620 | U= | | 8211 | U= |
7621 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | | 8212 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
7622 | # 1. Remove the extension, and $U if already installed. | | 8213 | # 1. Remove the extension, and $U if already installed. |
7623 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | | 8214 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
7624 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | | 8215 | ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` |
7625 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | | 8216 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
7626 | # will be set to the directory where LIBOBJS objects are built. | | 8217 | # will be set to the directory where LIBOBJS objects are built. |
7627 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | | 8218 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
7628 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | | 8219 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
7629 | done | | 8220 | done |
7630 | LIBOBJS=$ac_libobjs | | 8221 | LIBOBJS=$ac_libobjs |
7631 | | | 8222 | |
7632 | LTLIBOBJS=$ac_ltlibobjs | | 8223 | LTLIBOBJS=$ac_ltlibobjs |
7633 | | | 8224 | |
7634 | | | 8225 | |
7635 | | | 8226 | |
7636 | | | 8227 | |
7637 | : "${CONFIG_STATUS=./config.status}" | | 8228 | : "${CONFIG_STATUS=./config.status}" |
7638 | ac_write_fail=0 | | 8229 | ac_write_fail=0 |
7639 | ac_clean_files_save=$ac_clean_files | | 8230 | ac_clean_files_save=$ac_clean_files |
7640 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | | 8231 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
7641 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | | 8232 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
7642 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | | 8233 | printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} |
7643 | as_write_fail=0 | | 8234 | as_write_fail=0 |
7644 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | | 8235 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
7645 | #! $SHELL | | 8236 | #! $SHELL |
7646 | # Generated by $as_me. | | 8237 | # Generated by $as_me. |
7647 | # Run this file to recreate the current configuration. | | 8238 | # Run this file to recreate the current configuration. |
7648 | # Compiler output produced by configure, useful for debugging | | 8239 | # Compiler output produced by configure, useful for debugging |
7649 | # configure, is in config.log if it exists. | | 8240 | # configure, is in config.log if it exists. |
7650 | | | 8241 | |
7651 | debug=false | | 8242 | debug=false |
7652 | ac_cs_recheck=false | | 8243 | ac_cs_recheck=false |
7653 | ac_cs_silent=false | | 8244 | ac_cs_silent=false |
7654 | | | 8245 | |
7655 | SHELL=\${CONFIG_SHELL-$SHELL} | | 8246 | SHELL=\${CONFIG_SHELL-$SHELL} |
7656 | export SHELL | | 8247 | export SHELL |
7657 | _ASEOF | | 8248 | _ASEOF |
7658 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | | 8249 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
7659 | ## -------------------- ## | | 8250 | ## -------------------- ## |
7660 | ## M4sh Initialization. ## | | 8251 | ## M4sh Initialization. ## |
7661 | ## -------------------- ## | | 8252 | ## -------------------- ## |
7662 | | | 8253 | |
7663 | # Be more Bourne compatible | | 8254 | # Be more Bourne compatible |
7664 | DUALCASE=1; export DUALCASE # for MKS sh | | 8255 | DUALCASE=1; export DUALCASE # for MKS sh |
7665 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | | 8256 | as_nop=: |
| | | 8257 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| | | 8258 | then : |
7666 | emulate sh | | 8259 | emulate sh |
7667 | NULLCMD=: | | 8260 | NULLCMD=: |
7668 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | | 8261 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
7669 | # is contrary to our usage. Disable this feature. | | 8262 | # is contrary to our usage. Disable this feature. |
7670 | alias -g '${1+"$@"}'='"$@"' | | 8263 | alias -g '${1+"$@"}'='"$@"' |
7671 | setopt NO_GLOB_SUBST | | 8264 | setopt NO_GLOB_SUBST |
7672 | else | | 8265 | else $as_nop |
7673 | case `(set -o) 2>/dev/null` in #( | | 8266 | case `(set -o) 2>/dev/null` in #( |
7674 | *posix*) : | | 8267 | *posix*) : |
7675 | set -o posix ;; #( | | 8268 | set -o posix ;; #( |
7676 | *) : | | 8269 | *) : |
7677 | ;; | | 8270 | ;; |
7678 | esac | | 8271 | esac |
7679 | fi | | 8272 | fi |
7680 | | | 8273 | |
7681 | | | 8274 | |
| | | 8275 | |
| | | 8276 | # Reset variables that may have inherited troublesome values from |
| | | 8277 | # the environment. |
| | | 8278 | |
| | | 8279 | # IFS needs to be set, to space, tab, and newline, in precisely that order. |
| | | 8280 | # (If _AS_PATH_WALK were called with IFS unset, it would have the |
| | | 8281 | # side effect of setting IFS to empty, thus disabling word splitting.) |
| | | 8282 | # Quoting is to prevent editors from complaining about space-tab. |
7682 | as_nl=' | | 8283 | as_nl=' |
7683 | ' | | 8284 | ' |
7684 | export as_nl | | 8285 | export as_nl |
7685 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | | 8286 | IFS=" "" $as_nl" |
7686 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | | 8287 | |
7687 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | | 8288 | PS1='$ ' |
7688 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | | 8289 | PS2='> ' |
7689 | # Prefer a ksh shell builtin over an external printf program on Solaris, | | 8290 | PS4='+ ' |
7690 | # but without wasting forks for bash or zsh. | | 8291 | |
7691 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | | 8292 | # Ensure predictable behavior from utilities with locale-dependent output. |
7692 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | | 8293 | LC_ALL=C |
7693 | as_echo='print -r --' | | 8294 | export LC_ALL |
7694 | as_echo_n='print -rn --' | | 8295 | LANGUAGE=C |
7695 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | | 8296 | export LANGUAGE |
7696 | as_echo='printf %s\n' | | 8297 | |
7697 | as_echo_n='printf %s' | | 8298 | # We cannot yet rely on "unset" to work, but we need these variables |
7698 | else | | 8299 | # to be unset--not just set to an empty or harmless value--now, to |
7699 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | | 8300 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
7700 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | | 8301 | # also avoids known problems related to "unset" and subshell syntax |
7701 | as_echo_n='/usr/ucb/echo -n' | | 8302 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
7702 | else | | 8303 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
7703 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | | 8304 | do eval test \${$as_var+y} \ |
7704 | as_echo_n_body='eval | | 8305 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
7705 | arg=$1; | | 8306 | done |
7706 | case $arg in #( | | 8307 | |
7707 | *"$as_nl"*) | | 8308 | # Ensure that fds 0, 1, and 2 are open. |
7708 | expr "X$arg" : "X\\(.*\\)$as_nl"; | | 8309 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
7709 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | | 8310 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
7710 | esac; | | 8311 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
7711 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | | | |
7712 | ' | | | |
7713 | export as_echo_n_body | | | |
7714 | as_echo_n='sh -c $as_echo_n_body as_echo' | | | |
7715 | fi | | | |
7716 | export as_echo_body | | | |
7717 | as_echo='sh -c $as_echo_body as_echo' | | | |
7718 | fi | | | |
7719 | | | 8312 | |
7720 | # The user is always right. | | 8313 | # The user is always right. |
7721 | if test "${PATH_SEPARATOR+set}" != set; then | | 8314 | if ${PATH_SEPARATOR+false} :; then |
7722 | PATH_SEPARATOR=: | | 8315 | PATH_SEPARATOR=: |
7723 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | | 8316 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
7724 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | | 8317 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
7725 | PATH_SEPARATOR=';' | | 8318 | PATH_SEPARATOR=';' |
7726 | } | | 8319 | } |
7727 | fi | | 8320 | fi |
7728 | | | 8321 | |
7729 | | | 8322 | |
7730 | # IFS | | | |
7731 | # We need space, tab and new line, in precisely that order. Quoting is | | | |
7732 | # there to prevent editors from complaining about space-tab. | | | |
7733 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | | | |
7734 | # splitting by setting IFS to empty value.) | | | |
7735 | IFS=" "" $as_nl" | | | |
7736 | | | | |
7737 | # Find who we are. Look in the path if we contain no directory separator. | | 8323 | # Find who we are. Look in the path if we contain no directory separator. |
7738 | as_myself= | | 8324 | as_myself= |
7739 | case $0 in #(( | | 8325 | case $0 in #(( |
7740 | *[\\/]* ) as_myself=$0 ;; | | 8326 | *[\\/]* ) as_myself=$0 ;; |
7741 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | | 8327 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7742 | for as_dir in $PATH | | 8328 | for as_dir in $PATH |
7743 | do | | 8329 | do |
7744 | IFS=$as_save_IFS | | 8330 | IFS=$as_save_IFS |
7745 | test -z "$as_dir" && as_dir=. | | 8331 | case $as_dir in #((( |
7746 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | | 8332 | '') as_dir=./ ;; |
| | | 8333 | */) ;; |
| | | 8334 | *) as_dir=$as_dir/ ;; |
| | | 8335 | esac |
| | | 8336 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
7747 | done | | 8337 | done |
7748 | IFS=$as_save_IFS | | 8338 | IFS=$as_save_IFS |
7749 | | | 8339 | |
7750 | ;; | | 8340 | ;; |
7751 | esac | | 8341 | esac |
7752 | # We did not find ourselves, most probably we were run as `sh COMMAND' | | 8342 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
7753 | # in which case we are not to be found in the path. | | 8343 | # in which case we are not to be found in the path. |
7754 | if test "x$as_myself" = x; then | | 8344 | if test "x$as_myself" = x; then |
7755 | as_myself=$0 | | 8345 | as_myself=$0 |
7756 | fi | | 8346 | fi |
7757 | if test ! -f "$as_myself"; then | | 8347 | if test ! -f "$as_myself"; then |
7758 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | | 8348 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
7759 | exit 1 | | 8349 | exit 1 |
7760 | fi | | 8350 | fi |
7761 | | | 8351 | |
7762 | # Unset variables that we do not need and which cause bugs (e.g. in | | | |
7763 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | | | |
7764 | # suppresses any "Segmentation fault" message there. '((' could | | | |
7765 | # trigger a bug in pdksh 5.2.14. | | | |
7766 | for as_var in BASH_ENV ENV MAIL MAILPATH | | | |
7767 | do eval test x\${$as_var+set} = xset \ | | | |
7768 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | | | |
7769 | done | | | |
7770 | PS1='$ ' | | | |
7771 | PS2='> ' | | | |
7772 | PS4='+ ' | | | |
7773 | | | | |
7774 | # NLS nuisances. | | | |
7775 | LC_ALL=C | | | |
7776 | export LC_ALL | | | |
7777 | LANGUAGE=C | | | |
7778 | export LANGUAGE | | | |
7779 | | | | |
7780 | # CDPATH. | | | |
7781 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | | | |
7782 | | | 8352 | |
7783 | | | 8353 | |
7784 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | | 8354 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
7785 | # ---------------------------------------- | | 8355 | # ---------------------------------------- |
7786 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | | 8356 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
7787 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | | 8357 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
7788 | # script with STATUS, using 1 if that was 0. | | 8358 | # script with STATUS, using 1 if that was 0. |
7789 | as_fn_error () | | 8359 | as_fn_error () |
7790 | { | | 8360 | { |
7791 | as_status=$1; test $as_status -eq 0 && as_status=1 | | 8361 | as_status=$1; test $as_status -eq 0 && as_status=1 |
7792 | if test "$4"; then | | 8362 | if test "$4"; then |
7793 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | | 8363 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
7794 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | | 8364 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
7795 | fi | | 8365 | fi |
7796 | $as_echo "$as_me: error: $2" >&2 | | 8366 | printf "%s\n" "$as_me: error: $2" >&2 |
7797 | as_fn_exit $as_status | | 8367 | as_fn_exit $as_status |
7798 | } # as_fn_error | | 8368 | } # as_fn_error |
7799 | | | 8369 | |
7800 | | | 8370 | |
| | | 8371 | |
7801 | # as_fn_set_status STATUS | | 8372 | # as_fn_set_status STATUS |
7802 | # ----------------------- | | 8373 | # ----------------------- |
7803 | # Set $? to STATUS, without forking. | | 8374 | # Set $? to STATUS, without forking. |
7804 | as_fn_set_status () | | 8375 | as_fn_set_status () |
7805 | { | | 8376 | { |
7806 | return $1 | | 8377 | return $1 |
7807 | } # as_fn_set_status | | 8378 | } # as_fn_set_status |
7808 | | | 8379 | |
7809 | # as_fn_exit STATUS | | 8380 | # as_fn_exit STATUS |
7810 | # ----------------- | | 8381 | # ----------------- |
7811 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | | 8382 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
7812 | as_fn_exit () | | 8383 | as_fn_exit () |
7813 | { | | 8384 | { |
7814 | set +e | | 8385 | set +e |
7815 | as_fn_set_status $1 | | 8386 | as_fn_set_status $1 |
7816 | exit $1 | | 8387 | exit $1 |
7817 | } # as_fn_exit | | 8388 | } # as_fn_exit |
7818 | | | 8389 | |
7819 | # as_fn_unset VAR | | 8390 | # as_fn_unset VAR |
7820 | # --------------- | | 8391 | # --------------- |
7821 | # Portably unset VAR. | | 8392 | # Portably unset VAR. |
7822 | as_fn_unset () | | 8393 | as_fn_unset () |
7823 | { | | 8394 | { |
7824 | { eval $1=; unset $1;} | | 8395 | { eval $1=; unset $1;} |
7825 | } | | 8396 | } |
7826 | as_unset=as_fn_unset | | 8397 | as_unset=as_fn_unset |
| | | 8398 | |
7827 | # as_fn_append VAR VALUE | | 8399 | # as_fn_append VAR VALUE |
7828 | # ---------------------- | | 8400 | # ---------------------- |
7829 | # Append the text in VALUE to the end of the definition contained in VAR. Take | | 8401 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
7830 | # advantage of any shell optimizations that allow amortized linear growth over | | 8402 | # advantage of any shell optimizations that allow amortized linear growth over |
7831 | # repeated appends, instead of the typical quadratic growth present in naive | | 8403 | # repeated appends, instead of the typical quadratic growth present in naive |
7832 | # implementations. | | 8404 | # implementations. |
7833 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | | 8405 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
| | | 8406 | then : |
7834 | eval 'as_fn_append () | | 8407 | eval 'as_fn_append () |
7835 | { | | 8408 | { |
7836 | eval $1+=\$2 | | 8409 | eval $1+=\$2 |
7837 | }' | | 8410 | }' |
7838 | else | | 8411 | else $as_nop |
7839 | as_fn_append () | | 8412 | as_fn_append () |
7840 | { | | 8413 | { |
7841 | eval $1=\$$1\$2 | | 8414 | eval $1=\$$1\$2 |
7842 | } | | 8415 | } |
7843 | fi # as_fn_append | | 8416 | fi # as_fn_append |
7844 | | | 8417 | |
7845 | # as_fn_arith ARG... | | 8418 | # as_fn_arith ARG... |
7846 | # ------------------ | | 8419 | # ------------------ |
7847 | # Perform arithmetic evaluation on the ARGs, and store the result in the | | 8420 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
7848 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | | 8421 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
7849 | # must be portable across $(()) and expr. | | 8422 | # must be portable across $(()) and expr. |
7850 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | | 8423 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
| | | 8424 | then : |
7851 | eval 'as_fn_arith () | | 8425 | eval 'as_fn_arith () |
7852 | { | | 8426 | { |
7853 | as_val=$(( $* )) | | 8427 | as_val=$(( $* )) |
7854 | }' | | 8428 | }' |
7855 | else | | 8429 | else $as_nop |
7856 | as_fn_arith () | | 8430 | as_fn_arith () |
7857 | { | | 8431 | { |
7858 | as_val=`expr "$@" || test $? -eq 1` | | 8432 | as_val=`expr "$@" || test $? -eq 1` |
7859 | } | | 8433 | } |
7860 | fi # as_fn_arith | | 8434 | fi # as_fn_arith |
7861 | | | 8435 | |
7862 | | | 8436 | |
7863 | if expr a : '\(a\)' >/dev/null 2>&1 && | | 8437 | if expr a : '\(a\)' >/dev/null 2>&1 && |
7864 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | | 8438 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
7865 | as_expr=expr | | 8439 | as_expr=expr |
7866 | else | | 8440 | else |
7867 | as_expr=false | | 8441 | as_expr=false |
7868 | fi | | 8442 | fi |
| @@ -7873,61 +8447,71 @@ else | | | @@ -7873,61 +8447,71 @@ else |
7873 | as_basename=false | | 8447 | as_basename=false |
7874 | fi | | 8448 | fi |
7875 | | | 8449 | |
7876 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | | 8450 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
7877 | as_dirname=dirname | | 8451 | as_dirname=dirname |
7878 | else | | 8452 | else |
7879 | as_dirname=false | | 8453 | as_dirname=false |
7880 | fi | | 8454 | fi |
7881 | | | 8455 | |
7882 | as_me=`$as_basename -- "$0" || | | 8456 | as_me=`$as_basename -- "$0" || |
7883 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | | 8457 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
7884 | X"$0" : 'X\(//\)$' \| \ | | 8458 | X"$0" : 'X\(//\)$' \| \ |
7885 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | | 8459 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
7886 | $as_echo X/"$0" | | | 8460 | printf "%s\n" X/"$0" | |
7887 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | | 8461 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
7888 | s//\1/ | | 8462 | s//\1/ |
7889 | q | | 8463 | q |
7890 | } | | 8464 | } |
7891 | /^X\/\(\/\/\)$/{ | | 8465 | /^X\/\(\/\/\)$/{ |
7892 | s//\1/ | | 8466 | s//\1/ |
7893 | q | | 8467 | q |
7894 | } | | 8468 | } |
7895 | /^X\/\(\/\).*/{ | | 8469 | /^X\/\(\/\).*/{ |
7896 | s//\1/ | | 8470 | s//\1/ |
7897 | q | | 8471 | q |
7898 | } | | 8472 | } |
7899 | s/.*/./; q'` | | 8473 | s/.*/./; q'` |
7900 | | | 8474 | |
7901 | # Avoid depending upon Character Ranges. | | 8475 | # Avoid depending upon Character Ranges. |
7902 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | | 8476 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
7903 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | | 8477 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
7904 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | | 8478 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
7905 | as_cr_digits='0123456789' | | 8479 | as_cr_digits='0123456789' |
7906 | as_cr_alnum=$as_cr_Letters$as_cr_digits | | 8480 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
7907 | | | 8481 | |
| | | 8482 | |
| | | 8483 | # Determine whether it's possible to make 'echo' print without a newline. |
| | | 8484 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
| | | 8485 | # for compatibility with existing Makefiles. |
7908 | ECHO_C= ECHO_N= ECHO_T= | | 8486 | ECHO_C= ECHO_N= ECHO_T= |
7909 | case `echo -n x` in #((((( | | 8487 | case `echo -n x` in #((((( |
7910 | -n*) | | 8488 | -n*) |
7911 | case `echo 'xy\c'` in | | 8489 | case `echo 'xy\c'` in |
7912 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | | 8490 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
7913 | xy) ECHO_C='\c';; | | 8491 | xy) ECHO_C='\c';; |
7914 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | | 8492 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
7915 | ECHO_T=' ';; | | 8493 | ECHO_T=' ';; |
7916 | esac;; | | 8494 | esac;; |
7917 | *) | | 8495 | *) |
7918 | ECHO_N='-n';; | | 8496 | ECHO_N='-n';; |
7919 | esac | | 8497 | esac |
7920 | | | 8498 | |
| | | 8499 | # For backward compatibility with old third-party macros, we provide |
| | | 8500 | # the shell variables $as_echo and $as_echo_n. New code should use |
| | | 8501 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
| | | 8502 | as_echo='printf %s\n' |
| | | 8503 | as_echo_n='printf %s' |
| | | 8504 | |
7921 | rm -f conf$$ conf$$.exe conf$$.file | | 8505 | rm -f conf$$ conf$$.exe conf$$.file |
7922 | if test -d conf$$.dir; then | | 8506 | if test -d conf$$.dir; then |
7923 | rm -f conf$$.dir/conf$$.file | | 8507 | rm -f conf$$.dir/conf$$.file |
7924 | else | | 8508 | else |
7925 | rm -f conf$$.dir | | 8509 | rm -f conf$$.dir |
7926 | mkdir conf$$.dir 2>/dev/null | | 8510 | mkdir conf$$.dir 2>/dev/null |
7927 | fi | | 8511 | fi |
7928 | if (echo >conf$$.file) 2>/dev/null; then | | 8512 | if (echo >conf$$.file) 2>/dev/null; then |
7929 | if ln -s conf$$.file conf$$ 2>/dev/null; then | | 8513 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
7930 | as_ln_s='ln -s' | | 8514 | as_ln_s='ln -s' |
7931 | # ... but there are two gotchas: | | 8515 | # ... but there are two gotchas: |
7932 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | | 8516 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
7933 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | | 8517 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| @@ -7949,36 +8533,36 @@ rmdir conf$$.dir 2>/dev/null | | | @@ -7949,36 +8533,36 @@ rmdir conf$$.dir 2>/dev/null |
7949 | # as_fn_mkdir_p | | 8533 | # as_fn_mkdir_p |
7950 | # ------------- | | 8534 | # ------------- |
7951 | # Create "$as_dir" as a directory, including parents if necessary. | | 8535 | # Create "$as_dir" as a directory, including parents if necessary. |
7952 | as_fn_mkdir_p () | | 8536 | as_fn_mkdir_p () |
7953 | { | | 8537 | { |
7954 | | | 8538 | |
7955 | case $as_dir in #( | | 8539 | case $as_dir in #( |
7956 | -*) as_dir=./$as_dir;; | | 8540 | -*) as_dir=./$as_dir;; |
7957 | esac | | 8541 | esac |
7958 | test -d "$as_dir" || eval $as_mkdir_p || { | | 8542 | test -d "$as_dir" || eval $as_mkdir_p || { |
7959 | as_dirs= | | 8543 | as_dirs= |
7960 | while :; do | | 8544 | while :; do |
7961 | case $as_dir in #( | | 8545 | case $as_dir in #( |
7962 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | | 8546 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
7963 | *) as_qdir=$as_dir;; | | 8547 | *) as_qdir=$as_dir;; |
7964 | esac | | 8548 | esac |
7965 | as_dirs="'$as_qdir' $as_dirs" | | 8549 | as_dirs="'$as_qdir' $as_dirs" |
7966 | as_dir=`$as_dirname -- "$as_dir" || | | 8550 | as_dir=`$as_dirname -- "$as_dir" || |
7967 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | | 8551 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
7968 | X"$as_dir" : 'X\(//\)[^/]' \| \ | | 8552 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
7969 | X"$as_dir" : 'X\(//\)$' \| \ | | 8553 | X"$as_dir" : 'X\(//\)$' \| \ |
7970 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | | 8554 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
7971 | $as_echo X"$as_dir" | | | 8555 | printf "%s\n" X"$as_dir" | |
7972 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | | 8556 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
7973 | s//\1/ | | 8557 | s//\1/ |
7974 | q | | 8558 | q |
7975 | } | | 8559 | } |
7976 | /^X\(\/\/\)[^/].*/{ | | 8560 | /^X\(\/\/\)[^/].*/{ |
7977 | s//\1/ | | 8561 | s//\1/ |
7978 | q | | 8562 | q |
7979 | } | | 8563 | } |
7980 | /^X\(\/\/\)$/{ | | 8564 | /^X\(\/\/\)$/{ |
7981 | s//\1/ | | 8565 | s//\1/ |
7982 | q | | 8566 | q |
7983 | } | | 8567 | } |
7984 | /^X\(\/\).*/{ | | 8568 | /^X\(\/\).*/{ |
| @@ -8021,27 +8605,27 @@ as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr | | | @@ -8021,27 +8605,27 @@ as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr |
8021 | exec 6>&1 | | 8605 | exec 6>&1 |
8022 | ## ----------------------------------- ## | | 8606 | ## ----------------------------------- ## |
8023 | ## Main body of $CONFIG_STATUS script. ## | | 8607 | ## Main body of $CONFIG_STATUS script. ## |
8024 | ## ----------------------------------- ## | | 8608 | ## ----------------------------------- ## |
8025 | _ASEOF | | 8609 | _ASEOF |
8026 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | | 8610 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
8027 | | | 8611 | |
8028 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | | 8612 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8029 | # Save the log message, to keep $0 and so on meaningful, and to | | 8613 | # Save the log message, to keep $0 and so on meaningful, and to |
8030 | # report actual input values of CONFIG_FILES etc. instead of their | | 8614 | # report actual input values of CONFIG_FILES etc. instead of their |
8031 | # values after options handling. | | 8615 | # values after options handling. |
8032 | ac_log=" | | 8616 | ac_log=" |
8033 | This file was extended by libnbcompat $as_me 20190708, which was | | 8617 | This file was extended by libnbcompat $as_me 20190708, which was |
8034 | generated by GNU Autoconf 2.69. Invocation command line was | | 8618 | generated by GNU Autoconf 2.71. Invocation command line was |
8035 | | | 8619 | |
8036 | CONFIG_FILES = $CONFIG_FILES | | 8620 | CONFIG_FILES = $CONFIG_FILES |
8037 | CONFIG_HEADERS = $CONFIG_HEADERS | | 8621 | CONFIG_HEADERS = $CONFIG_HEADERS |
8038 | CONFIG_LINKS = $CONFIG_LINKS | | 8622 | CONFIG_LINKS = $CONFIG_LINKS |
8039 | CONFIG_COMMANDS = $CONFIG_COMMANDS | | 8623 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
8040 | $ $0 $@ | | 8624 | $ $0 $@ |
8041 | | | 8625 | |
8042 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | | 8626 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
8043 | " | | 8627 | " |
8044 | | | 8628 | |
8045 | _ACEOF | | 8629 | _ACEOF |
8046 | | | 8630 | |
8047 | case $ac_config_files in *" | | 8631 | case $ac_config_files in *" |
| @@ -8079,34 +8663,36 @@ Usage: $0 [OPTION]... [TAG]... | | | @@ -8079,34 +8663,36 @@ Usage: $0 [OPTION]... [TAG]... |
8079 | instantiate the configuration file FILE | | 8663 | instantiate the configuration file FILE |
8080 | --header=FILE[:TEMPLATE] | | 8664 | --header=FILE[:TEMPLATE] |
8081 | instantiate the configuration header FILE | | 8665 | instantiate the configuration header FILE |
8082 | | | 8666 | |
8083 | Configuration files: | | 8667 | Configuration files: |
8084 | $config_files | | 8668 | $config_files |
8085 | | | 8669 | |
8086 | Configuration headers: | | 8670 | Configuration headers: |
8087 | $config_headers | | 8671 | $config_headers |
8088 | | | 8672 | |
8089 | Report bugs to <joerg@NetBSD.org>." | | 8673 | Report bugs to <joerg@NetBSD.org>." |
8090 | | | 8674 | |
8091 | _ACEOF | | 8675 | _ACEOF |
| | | 8676 | ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` |
| | | 8677 | ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` |
8092 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | | 8678 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
8093 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | | 8679 | ac_cs_config='$ac_cs_config_escaped' |
8094 | ac_cs_version="\\ | | 8680 | ac_cs_version="\\ |
8095 | libnbcompat config.status 20190708 | | 8681 | libnbcompat config.status 20190708 |
8096 | configured by $0, generated by GNU Autoconf 2.69, | | 8682 | configured by $0, generated by GNU Autoconf 2.71, |
8097 | with options \\"\$ac_cs_config\\" | | 8683 | with options \\"\$ac_cs_config\\" |
8098 | | | 8684 | |
8099 | Copyright (C) 2012 Free Software Foundation, Inc. | | 8685 | Copyright (C) 2021 Free Software Foundation, Inc. |
8100 | This config.status script is free software; the Free Software Foundation | | 8686 | This config.status script is free software; the Free Software Foundation |
8101 | gives unlimited permission to copy, distribute and modify it." | | 8687 | gives unlimited permission to copy, distribute and modify it." |
8102 | | | 8688 | |
8103 | ac_pwd='$ac_pwd' | | 8689 | ac_pwd='$ac_pwd' |
8104 | srcdir='$srcdir' | | 8690 | srcdir='$srcdir' |
8105 | INSTALL='$INSTALL' | | 8691 | INSTALL='$INSTALL' |
8106 | AWK='$AWK' | | 8692 | AWK='$AWK' |
8107 | test -n "\$AWK" || AWK=awk | | 8693 | test -n "\$AWK" || AWK=awk |
8108 | _ACEOF | | 8694 | _ACEOF |
8109 | | | 8695 | |
8110 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | | 8696 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8111 | # The default lists apply if the user does not specify any file. | | 8697 | # The default lists apply if the user does not specify any file. |
8112 | ac_need_defaults=: | | 8698 | ac_need_defaults=: |
| @@ -8125,52 +8711,52 @@ do | | | @@ -8125,52 +8711,52 @@ do |
8125 | ;; | | 8711 | ;; |
8126 | *) | | 8712 | *) |
8127 | ac_option=$1 | | 8713 | ac_option=$1 |
8128 | ac_optarg=$2 | | 8714 | ac_optarg=$2 |
8129 | ac_shift=shift | | 8715 | ac_shift=shift |
8130 | ;; | | 8716 | ;; |
8131 | esac | | 8717 | esac |
8132 | | | 8718 | |
8133 | case $ac_option in | | 8719 | case $ac_option in |
8134 | # Handling of the options. | | 8720 | # Handling of the options. |
8135 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | | 8721 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
8136 | ac_cs_recheck=: ;; | | 8722 | ac_cs_recheck=: ;; |
8137 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | | 8723 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
8138 | $as_echo "$ac_cs_version"; exit ;; | | 8724 | printf "%s\n" "$ac_cs_version"; exit ;; |
8139 | --config | --confi | --conf | --con | --co | --c ) | | 8725 | --config | --confi | --conf | --con | --co | --c ) |
8140 | $as_echo "$ac_cs_config"; exit ;; | | 8726 | printf "%s\n" "$ac_cs_config"; exit ;; |
8141 | --debug | --debu | --deb | --de | --d | -d ) | | 8727 | --debug | --debu | --deb | --de | --d | -d ) |
8142 | debug=: ;; | | 8728 | debug=: ;; |
8143 | --file | --fil | --fi | --f ) | | 8729 | --file | --fil | --fi | --f ) |
8144 | $ac_shift | | 8730 | $ac_shift |
8145 | case $ac_optarg in | | 8731 | case $ac_optarg in |
8146 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | | 8732 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
8147 | '') as_fn_error $? "missing file argument" ;; | | 8733 | '') as_fn_error $? "missing file argument" ;; |
8148 | esac | | 8734 | esac |
8149 | as_fn_append CONFIG_FILES " '$ac_optarg'" | | 8735 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
8150 | ac_need_defaults=false;; | | 8736 | ac_need_defaults=false;; |
8151 | --header | --heade | --head | --hea ) | | 8737 | --header | --heade | --head | --hea ) |
8152 | $ac_shift | | 8738 | $ac_shift |
8153 | case $ac_optarg in | | 8739 | case $ac_optarg in |
8154 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | | 8740 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
8155 | esac | | 8741 | esac |
8156 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | | 8742 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
8157 | ac_need_defaults=false;; | | 8743 | ac_need_defaults=false;; |
8158 | --he | --h) | | 8744 | --he | --h) |
8159 | # Conflict between --help and --header | | 8745 | # Conflict between --help and --header |
8160 | as_fn_error $? "ambiguous option: \`$1' | | 8746 | as_fn_error $? "ambiguous option: \`$1' |
8161 | Try \`$0 --help' for more information.";; | | 8747 | Try \`$0 --help' for more information.";; |
8162 | --help | --hel | -h ) | | 8748 | --help | --hel | -h ) |
8163 | $as_echo "$ac_cs_usage"; exit ;; | | 8749 | printf "%s\n" "$ac_cs_usage"; exit ;; |
8164 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | | 8750 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
8165 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | | 8751 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
8166 | ac_cs_silent=: ;; | | 8752 | ac_cs_silent=: ;; |
8167 | | | 8753 | |
8168 | # This is an error. | | 8754 | # This is an error. |
8169 | -*) as_fn_error $? "unrecognized option: \`$1' | | 8755 | -*) as_fn_error $? "unrecognized option: \`$1' |
8170 | Try \`$0 --help' for more information." ;; | | 8756 | Try \`$0 --help' for more information." ;; |
8171 | | | 8757 | |
8172 | *) as_fn_append ac_config_targets " $1" | | 8758 | *) as_fn_append ac_config_targets " $1" |
8173 | ac_need_defaults=false ;; | | 8759 | ac_need_defaults=false ;; |
8174 | | | 8760 | |
8175 | esac | | 8761 | esac |
8176 | shift | | 8762 | shift |
| @@ -8178,68 +8764,68 @@ done | | | @@ -8178,68 +8764,68 @@ done |
8178 | | | 8764 | |
8179 | ac_configure_extra_args= | | 8765 | ac_configure_extra_args= |
8180 | | | 8766 | |
8181 | if $ac_cs_silent; then | | 8767 | if $ac_cs_silent; then |
8182 | exec 6>/dev/null | | 8768 | exec 6>/dev/null |
8183 | ac_configure_extra_args="$ac_configure_extra_args --silent" | | 8769 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
8184 | fi | | 8770 | fi |
8185 | | | 8771 | |
8186 | _ACEOF | | 8772 | _ACEOF |
8187 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | | 8773 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
8188 | if \$ac_cs_recheck; then | | 8774 | if \$ac_cs_recheck; then |
8189 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | | 8775 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
8190 | shift | | 8776 | shift |
8191 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | | 8777 | \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 |
8192 | CONFIG_SHELL='$SHELL' | | 8778 | CONFIG_SHELL='$SHELL' |
8193 | export CONFIG_SHELL | | 8779 | export CONFIG_SHELL |
8194 | exec "\$@" | | 8780 | exec "\$@" |
8195 | fi | | 8781 | fi |
8196 | | | 8782 | |
8197 | _ACEOF | | 8783 | _ACEOF |
8198 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | | 8784 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8199 | exec 5>>config.log | | 8785 | exec 5>>config.log |
8200 | { | | 8786 | { |
8201 | echo | | 8787 | echo |
8202 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | | 8788 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
8203 | ## Running $as_me. ## | | 8789 | ## Running $as_me. ## |
8204 | _ASBOX | | 8790 | _ASBOX |
8205 | $as_echo "$ac_log" | | 8791 | printf "%s\n" "$ac_log" |
8206 | } >&5 | | 8792 | } >&5 |
8207 | | | 8793 | |
8208 | _ACEOF | | 8794 | _ACEOF |
8209 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | | 8795 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
8210 | _ACEOF | | 8796 | _ACEOF |
8211 | | | 8797 | |
8212 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | | 8798 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8213 | | | 8799 | |
8214 | # Handling of arguments. | | 8800 | # Handling of arguments. |
8215 | for ac_config_target in $ac_config_targets | | 8801 | for ac_config_target in $ac_config_targets |
8216 | do | | 8802 | do |
8217 | case $ac_config_target in | | 8803 | case $ac_config_target in |
8218 | "nbcompat/config.h") CONFIG_HEADERS="$CONFIG_HEADERS nbcompat/config.h" ;; | | 8804 | "nbcompat/config.h") CONFIG_HEADERS="$CONFIG_HEADERS nbcompat/config.h" ;; |
8219 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | | 8805 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
8220 | | | 8806 | |
8221 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | | 8807 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
8222 | esac | | 8808 | esac |
8223 | done | | 8809 | done |
8224 | | | 8810 | |
8225 | | | 8811 | |
8226 | # If the user did not use the arguments to specify the items to instantiate, | | 8812 | # If the user did not use the arguments to specify the items to instantiate, |
8227 | # then the envvar interface is used. Set only those that are not. | | 8813 | # then the envvar interface is used. Set only those that are not. |
8228 | # We use the long form for the default assignment because of an extremely | | 8814 | # We use the long form for the default assignment because of an extremely |
8229 | # bizarre bug on SunOS 4.1.3. | | 8815 | # bizarre bug on SunOS 4.1.3. |
8230 | if $ac_need_defaults; then | | 8816 | if $ac_need_defaults; then |
8231 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | | 8817 | test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files |
8232 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | | 8818 | test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers |
8233 | fi | | 8819 | fi |
8234 | | | 8820 | |
8235 | # Have a temporary directory for convenience. Make it in the build tree | | 8821 | # Have a temporary directory for convenience. Make it in the build tree |
8236 | # simply because there is no reason against having it here, and in addition, | | 8822 | # simply because there is no reason against having it here, and in addition, |
8237 | # creating and moving files from /tmp can sometimes cause problems. | | 8823 | # creating and moving files from /tmp can sometimes cause problems. |
8238 | # Hook for its removal unless debugging. | | 8824 | # Hook for its removal unless debugging. |
8239 | # Note that there is a small window in which the directory will not be cleaned: | | 8825 | # Note that there is a small window in which the directory will not be cleaned: |
8240 | # after its creation but before its name has been assigned to `$tmp'. | | 8826 | # after its creation but before its name has been assigned to `$tmp'. |
8241 | $debug || | | 8827 | $debug || |
8242 | { | | 8828 | { |
8243 | tmp= ac_tmp= | | 8829 | tmp= ac_tmp= |
8244 | trap 'exit_status=$? | | 8830 | trap 'exit_status=$? |
8245 | : "${ac_tmp:=$tmp}" | | 8831 | : "${ac_tmp:=$tmp}" |
| @@ -8555,88 +9141,88 @@ do | | | @@ -8555,88 +9141,88 @@ do |
8555 | do | | 9141 | do |
8556 | case $ac_f in | | 9142 | case $ac_f in |
8557 | -) ac_f="$ac_tmp/stdin";; | | 9143 | -) ac_f="$ac_tmp/stdin";; |
8558 | *) # Look for the file first in the build tree, then in the source tree | | 9144 | *) # Look for the file first in the build tree, then in the source tree |
8559 | # (if the path is not absolute). The absolute path cannot be DOS-style, | | 9145 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
8560 | # because $ac_f cannot contain `:'. | | 9146 | # because $ac_f cannot contain `:'. |
8561 | test -f "$ac_f" || | | 9147 | test -f "$ac_f" || |
8562 | case $ac_f in | | 9148 | case $ac_f in |
8563 | [\\/$]*) false;; | | 9149 | [\\/$]*) false;; |
8564 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | | 9150 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
8565 | esac || | | 9151 | esac || |
8566 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | | 9152 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
8567 | esac | | 9153 | esac |
8568 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | | 9154 | case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
8569 | as_fn_append ac_file_inputs " '$ac_f'" | | 9155 | as_fn_append ac_file_inputs " '$ac_f'" |
8570 | done | | 9156 | done |
8571 | | | 9157 | |
8572 | # Let's still pretend it is `configure' which instantiates (i.e., don't | | 9158 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
8573 | # use $as_me), people would be surprised to read: | | 9159 | # use $as_me), people would be surprised to read: |
8574 | # /* config.h. Generated by config.status. */ | | 9160 | # /* config.h. Generated by config.status. */ |
8575 | configure_input='Generated from '` | | 9161 | configure_input='Generated from '` |
8576 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | | 9162 | printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
8577 | `' by configure.' | | 9163 | `' by configure.' |
8578 | if test x"$ac_file" != x-; then | | 9164 | if test x"$ac_file" != x-; then |
8579 | configure_input="$ac_file. $configure_input" | | 9165 | configure_input="$ac_file. $configure_input" |
8580 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | | 9166 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
8581 | $as_echo "$as_me: creating $ac_file" >&6;} | | 9167 | printf "%s\n" "$as_me: creating $ac_file" >&6;} |
8582 | fi | | 9168 | fi |
8583 | # Neutralize special characters interpreted by sed in replacement strings. | | 9169 | # Neutralize special characters interpreted by sed in replacement strings. |
8584 | case $configure_input in #( | | 9170 | case $configure_input in #( |
8585 | *\&* | *\|* | *\\* ) | | 9171 | *\&* | *\|* | *\\* ) |
8586 | ac_sed_conf_input=`$as_echo "$configure_input" | | | 9172 | ac_sed_conf_input=`printf "%s\n" "$configure_input" | |
8587 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | | 9173 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
8588 | *) ac_sed_conf_input=$configure_input;; | | 9174 | *) ac_sed_conf_input=$configure_input;; |
8589 | esac | | 9175 | esac |
8590 | | | 9176 | |
8591 | case $ac_tag in | | 9177 | case $ac_tag in |
8592 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | | 9178 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
8593 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | | 9179 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
8594 | esac | | 9180 | esac |
8595 | ;; | | 9181 | ;; |
8596 | esac | | 9182 | esac |
8597 | | | 9183 | |
8598 | ac_dir=`$as_dirname -- "$ac_file" || | | 9184 | ac_dir=`$as_dirname -- "$ac_file" || |
8599 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | | 9185 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8600 | X"$ac_file" : 'X\(//\)[^/]' \| \ | | 9186 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
8601 | X"$ac_file" : 'X\(//\)$' \| \ | | 9187 | X"$ac_file" : 'X\(//\)$' \| \ |
8602 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | | 9188 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
8603 | $as_echo X"$ac_file" | | | 9189 | printf "%s\n" X"$ac_file" | |
8604 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | | 9190 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
8605 | s//\1/ | | 9191 | s//\1/ |
8606 | q | | 9192 | q |
8607 | } | | 9193 | } |
8608 | /^X\(\/\/\)[^/].*/{ | | 9194 | /^X\(\/\/\)[^/].*/{ |
8609 | s//\1/ | | 9195 | s//\1/ |
8610 | q | | 9196 | q |
8611 | } | | 9197 | } |
8612 | /^X\(\/\/\)$/{ | | 9198 | /^X\(\/\/\)$/{ |
8613 | s//\1/ | | 9199 | s//\1/ |
8614 | q | | 9200 | q |
8615 | } | | 9201 | } |
8616 | /^X\(\/\).*/{ | | 9202 | /^X\(\/\).*/{ |
8617 | s//\1/ | | 9203 | s//\1/ |
8618 | q | | 9204 | q |
8619 | } | | 9205 | } |
8620 | s/.*/./; q'` | | 9206 | s/.*/./; q'` |
8621 | as_dir="$ac_dir"; as_fn_mkdir_p | | 9207 | as_dir="$ac_dir"; as_fn_mkdir_p |
8622 | ac_builddir=. | | 9208 | ac_builddir=. |
8623 | | | 9209 | |
8624 | case "$ac_dir" in | | 9210 | case "$ac_dir" in |
8625 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | | 9211 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
8626 | *) | | 9212 | *) |
8627 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | | 9213 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
8628 | # A ".." for each directory in $ac_dir_suffix. | | 9214 | # A ".." for each directory in $ac_dir_suffix. |
8629 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | | 9215 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
8630 | case $ac_top_builddir_sub in | | 9216 | case $ac_top_builddir_sub in |
8631 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | | 9217 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
8632 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | | 9218 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
8633 | esac ;; | | 9219 | esac ;; |
8634 | esac | | 9220 | esac |
8635 | ac_abs_top_builddir=$ac_pwd | | 9221 | ac_abs_top_builddir=$ac_pwd |
8636 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | | 9222 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
8637 | # for backward compatibility: | | 9223 | # for backward compatibility: |
8638 | ac_top_builddir=$ac_top_build_prefix | | 9224 | ac_top_builddir=$ac_top_build_prefix |
8639 | | | 9225 | |
8640 | case $srcdir in | | 9226 | case $srcdir in |
8641 | .) # We are building in place. | | 9227 | .) # We are building in place. |
8642 | ac_srcdir=. | | 9228 | ac_srcdir=. |
| @@ -8673,28 +9259,28 @@ ac_datarootdir_hack=; ac_datarootdir_see | | | @@ -8673,28 +9259,28 @@ ac_datarootdir_hack=; ac_datarootdir_see |
8673 | ac_sed_dataroot=' | | 9259 | ac_sed_dataroot=' |
8674 | /datarootdir/ { | | 9260 | /datarootdir/ { |
8675 | p | | 9261 | p |
8676 | q | | 9262 | q |
8677 | } | | 9263 | } |
8678 | /@datadir@/p | | 9264 | /@datadir@/p |
8679 | /@docdir@/p | | 9265 | /@docdir@/p |
8680 | /@infodir@/p | | 9266 | /@infodir@/p |
8681 | /@localedir@/p | | 9267 | /@localedir@/p |
8682 | /@mandir@/p' | | 9268 | /@mandir@/p' |
8683 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | | 9269 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
8684 | *datarootdir*) ac_datarootdir_seen=yes;; | | 9270 | *datarootdir*) ac_datarootdir_seen=yes;; |
8685 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | | 9271 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
8686 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | | 9272 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
8687 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | | 9273 | printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
8688 | _ACEOF | | 9274 | _ACEOF |
8689 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | | 9275 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
8690 | ac_datarootdir_hack=' | | 9276 | ac_datarootdir_hack=' |
8691 | s&@datadir@&$datadir&g | | 9277 | s&@datadir@&$datadir&g |
8692 | s&@docdir@&$docdir&g | | 9278 | s&@docdir@&$docdir&g |
8693 | s&@infodir@&$infodir&g | | 9279 | s&@infodir@&$infodir&g |
8694 | s&@localedir@&$localedir&g | | 9280 | s&@localedir@&$localedir&g |
8695 | s&@mandir@&$mandir&g | | 9281 | s&@mandir@&$mandir&g |
8696 | s&\\\${datarootdir}&$datarootdir&g' ;; | | 9282 | s&\\\${datarootdir}&$datarootdir&g' ;; |
8697 | esac | | 9283 | esac |
8698 | _ACEOF | | 9284 | _ACEOF |
8699 | | | 9285 | |
8700 | # Neutralize VPATH when `$srcdir' = `.'. | | 9286 | # Neutralize VPATH when `$srcdir' = `.'. |
| @@ -8717,58 +9303,58 @@ s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t | | | @@ -8717,58 +9303,58 @@ s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t |
8717 | s&@builddir@&$ac_builddir&;t t | | 9303 | s&@builddir@&$ac_builddir&;t t |
8718 | s&@abs_builddir@&$ac_abs_builddir&;t t | | 9304 | s&@abs_builddir@&$ac_abs_builddir&;t t |
8719 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | | 9305 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
8720 | s&@INSTALL@&$ac_INSTALL&;t t | | 9306 | s&@INSTALL@&$ac_INSTALL&;t t |
8721 | $ac_datarootdir_hack | | 9307 | $ac_datarootdir_hack |
8722 | " | | 9308 | " |
8723 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | | 9309 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
8724 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | | 9310 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
8725 | | | 9311 | |
8726 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | | 9312 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
8727 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | | 9313 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
8728 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | | 9314 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
8729 | "$ac_tmp/out"`; test -z "$ac_out"; } && | | 9315 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
8730 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | | 9316 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
8731 | which seems to be undefined. Please make sure it is defined" >&5 | | 9317 | which seems to be undefined. Please make sure it is defined" >&5 |
8732 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | | 9318 | printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
8733 | which seems to be undefined. Please make sure it is defined" >&2;} | | 9319 | which seems to be undefined. Please make sure it is defined" >&2;} |
8734 | | | 9320 | |
8735 | rm -f "$ac_tmp/stdin" | | 9321 | rm -f "$ac_tmp/stdin" |
8736 | case $ac_file in | | 9322 | case $ac_file in |
8737 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | | 9323 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
8738 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | | 9324 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
8739 | esac \ | | 9325 | esac \ |
8740 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | | 9326 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
8741 | ;; | | 9327 | ;; |
8742 | :H) | | 9328 | :H) |
8743 | # | | 9329 | # |
8744 | # CONFIG_HEADER | | 9330 | # CONFIG_HEADER |
8745 | # | | 9331 | # |
8746 | if test x"$ac_file" != x-; then | | 9332 | if test x"$ac_file" != x-; then |
8747 | { | | 9333 | { |
8748 | $as_echo "/* $configure_input */" \ | | 9334 | printf "%s\n" "/* $configure_input */" >&1 \ |
8749 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | | 9335 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
8750 | } >"$ac_tmp/config.h" \ | | 9336 | } >"$ac_tmp/config.h" \ |
8751 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | | 9337 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
8752 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | | 9338 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
8753 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | | 9339 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
8754 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | | 9340 | printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} |
8755 | else | | 9341 | else |
8756 | rm -f "$ac_file" | | 9342 | rm -f "$ac_file" |
8757 | mv "$ac_tmp/config.h" "$ac_file" \ | | 9343 | mv "$ac_tmp/config.h" "$ac_file" \ |
8758 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | | 9344 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
8759 | fi | | 9345 | fi |
8760 | else | | 9346 | else |
8761 | $as_echo "/* $configure_input */" \ | | 9347 | printf "%s\n" "/* $configure_input */" >&1 \ |
8762 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | | 9348 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
8763 | || as_fn_error $? "could not create -" "$LINENO" 5 | | 9349 | || as_fn_error $? "could not create -" "$LINENO" 5 |
8764 | fi | | 9350 | fi |
8765 | ;; | | 9351 | ;; |
8766 | | | 9352 | |
8767 | | | 9353 | |
8768 | esac | | 9354 | esac |
8769 | | | 9355 | |
8770 | done # for ac_tag | | 9356 | done # for ac_tag |
8771 | | | 9357 | |
8772 | | | 9358 | |
8773 | as_fn_exit 0 | | 9359 | as_fn_exit 0 |
8774 | _ACEOF | | 9360 | _ACEOF |
| @@ -8789,17 +9375,18 @@ test $ac_write_fail = 0 || | | | @@ -8789,17 +9375,18 @@ test $ac_write_fail = 0 || |
8789 | if test "$no_create" != yes; then | | 9375 | if test "$no_create" != yes; then |
8790 | ac_cs_success=: | | 9376 | ac_cs_success=: |
8791 | ac_config_status_args= | | 9377 | ac_config_status_args= |
8792 | test "$silent" = yes && | | 9378 | test "$silent" = yes && |
8793 | ac_config_status_args="$ac_config_status_args --quiet" | | 9379 | ac_config_status_args="$ac_config_status_args --quiet" |
8794 | exec 5>/dev/null | | 9380 | exec 5>/dev/null |
8795 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | | 9381 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
8796 | exec 5>>config.log | | 9382 | exec 5>>config.log |
8797 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | | 9383 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
8798 | # would make configure fail if this is the last instruction. | | 9384 | # would make configure fail if this is the last instruction. |
8799 | $ac_cs_success || as_fn_exit 1 | | 9385 | $ac_cs_success || as_fn_exit 1 |
8800 | fi | | 9386 | fi |
8801 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | | 9387 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
8802 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | | 9388 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
8803 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | | 9389 | printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
8804 | fi | | 9390 | fi |
8805 | | | 9391 | |
| | | 9392 | |