Lines 1-19
Link Here
|
1 |
--- configure.orig 2017-11-11 02:22:24 UTC |
1 |
--- configure.orig 2021-01-05 15:32:39 UTC |
2 |
+++ configure |
2 |
+++ configure |
3 |
@@ -32904,7 +32904,7 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ |
3 |
@@ -1209,8 +1209,6 @@ HWLOC_top_builddir |
4 |
# The best solution is to turn off errors on particular routines |
4 |
hwloclib |
5 |
# if that isn't possible (e.g., too many of them), then |
5 |
hwloclibdir |
6 |
# just try arguments that turn off all checking |
6 |
hwlocsrcdir |
7 |
- for flags in "-mismatch" ; do |
7 |
-jsonlib |
8 |
+ for flags in "-fallow-argument-mismatch" "-mismatch" ; do |
8 |
-jsonsrcdir |
9 |
testok=no |
9 |
VISIBILITY_CFLAGS |
10 |
FFLAGS="$FFLAGS $flags" |
10 |
BUILD_PROFILING_LIB_FALSE |
11 |
cat > conftest.$ac_ext <<_ACEOF |
11 |
BUILD_PROFILING_LIB_TRUE |
12 |
@@ -32946,17 +32946,7 @@ the same routine with arguments of different types." " |
12 |
@@ -31186,336 +31184,9 @@ if test "$NEEDSPLIB" = "yes" ; then |
13 |
fi |
13 |
fi |
14 |
|
14 |
|
|
|
15 |
# json-c |
16 |
+# We use the external port devel/json-c |
17 |
|
18 |
-jsonsrcdir="" |
19 |
|
20 |
-jsonlib="" |
21 |
- |
22 |
- |
23 |
- |
24 |
- |
25 |
- if test -z "${pac_save_CFLAGS_nesting}" ; then |
26 |
- pac_save_CFLAGS_nesting=0 |
27 |
- fi |
28 |
- eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}='"$CFLAGS"' |
29 |
- pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} + 1` |
30 |
- |
31 |
- |
32 |
- if test -z "${pac_save_CPPFLAGS_nesting}" ; then |
33 |
- pac_save_CPPFLAGS_nesting=0 |
34 |
- fi |
35 |
- eval pac_save_CPPFLAGS_${pac_save_CPPFLAGS_nesting}='"$CPPFLAGS"' |
36 |
- pac_save_CPPFLAGS_nesting=`expr ${pac_save_CPPFLAGS_nesting} + 1` |
37 |
- |
38 |
- |
39 |
- if test -z "${pac_save_CXXFLAGS_nesting}" ; then |
40 |
- pac_save_CXXFLAGS_nesting=0 |
41 |
- fi |
42 |
- eval pac_save_CXXFLAGS_${pac_save_CXXFLAGS_nesting}='"$CXXFLAGS"' |
43 |
- pac_save_CXXFLAGS_nesting=`expr ${pac_save_CXXFLAGS_nesting} + 1` |
44 |
- |
45 |
- |
46 |
- if test -z "${pac_save_FFLAGS_nesting}" ; then |
47 |
- pac_save_FFLAGS_nesting=0 |
48 |
- fi |
49 |
- eval pac_save_FFLAGS_${pac_save_FFLAGS_nesting}='"$FFLAGS"' |
50 |
- pac_save_FFLAGS_nesting=`expr ${pac_save_FFLAGS_nesting} + 1` |
51 |
- |
52 |
- |
53 |
- if test -z "${pac_save_FCFLAGS_nesting}" ; then |
54 |
- pac_save_FCFLAGS_nesting=0 |
55 |
- fi |
56 |
- eval pac_save_FCFLAGS_${pac_save_FCFLAGS_nesting}='"$FCFLAGS"' |
57 |
- pac_save_FCFLAGS_nesting=`expr ${pac_save_FCFLAGS_nesting} + 1` |
58 |
- |
59 |
- |
60 |
- if test -z "${pac_save_LDFLAGS_nesting}" ; then |
61 |
- pac_save_LDFLAGS_nesting=0 |
62 |
- fi |
63 |
- eval pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}='"$LDFLAGS"' |
64 |
- pac_save_LDFLAGS_nesting=`expr ${pac_save_LDFLAGS_nesting} + 1` |
65 |
- |
66 |
- |
67 |
- if test -z "${pac_save_LIBS_nesting}" ; then |
68 |
- pac_save_LIBS_nesting=0 |
69 |
- fi |
70 |
- eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"' |
71 |
- pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1` |
72 |
- |
73 |
- |
74 |
- |
75 |
- if test "$FROM_MPICH" = "yes" ; then |
76 |
- CFLAGS="$USER_CFLAGS" |
77 |
- CPPFLAGS="$USER_CPPFLAGS" |
78 |
- CXXFLAGS="$USER_CXXFLAGS" |
79 |
- FFLAGS="$USER_FFLAGS" |
80 |
- FCFLAGS="$USER_FCFLAGS" |
81 |
- LDFLAGS="$USER_LDFLAGS" |
82 |
- LIBS="$USER_LIBS" |
83 |
- fi |
84 |
- |
85 |
- |
86 |
- pac_dir="modules/json-c" |
87 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: ===== configuring modules/json-c =====" >&5 |
88 |
-$as_echo "$as_me: ===== configuring modules/json-c =====" >&6;} |
89 |
- |
90 |
- pac_abs_srcdir=`(cd $srcdir && pwd)` |
91 |
- |
92 |
- if test -f $pac_abs_srcdir/modules/json-c/setup ; then |
93 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: sourcing $pac_abs_srcdir/modules/json-c/setup" >&5 |
94 |
-$as_echo "$as_me: sourcing $pac_abs_srcdir/modules/json-c/setup" >&6;} |
95 |
- . $pac_abs_srcdir/modules/json-c/setup |
96 |
- fi |
97 |
- |
98 |
- # Adapted for MPICH from the autoconf-2.67 implementation of |
99 |
- # AC_CONFIG_SUBDIRS. Search for "MPICH note:" for relevant commentary and |
100 |
- # local modifications. |
101 |
- |
102 |
- # Remove --cache-file, --srcdir, and --disable-option-checking arguments |
103 |
- # so they do not pile up. Otherwise relative paths (like --srcdir=.. from |
104 |
- # make distcheck) will be incorrect. |
105 |
- pac_sub_configure_args="--disable-werror" |
106 |
- pac_prev= |
107 |
- eval "set x $ac_configure_args" |
108 |
- shift |
109 |
- for pac_arg |
110 |
- do |
111 |
- if test -n "$pac_prev"; then |
112 |
- pac_prev= |
113 |
- continue |
114 |
- fi |
115 |
- case $pac_arg in |
116 |
- -cache-file | --cache-file | --cache-fil | --cache-fi \ |
117 |
- | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
118 |
- pac_prev=cache_file ;; |
119 |
- -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
120 |
- | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
121 |
- | --c=*) |
122 |
- ;; |
123 |
- --config-cache | -C) |
124 |
- ;; |
125 |
- -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
126 |
- pac_prev=srcdir ;; |
127 |
- -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
128 |
- ;; |
129 |
- -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
130 |
- pac_prev=prefix ;; |
131 |
- -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
132 |
- ;; |
133 |
- --disable-option-checking) |
134 |
- ;; |
135 |
- *) |
136 |
- # MPICH note: this is a more robust version of the "precious |
137 |
- # variable" propagation code that was present in the previous |
138 |
- # incarnation of this macro |
139 |
- for pac_pvar in $ac_precious_vars ; do |
140 |
- # check if configure argument token contains the |
141 |
- # precious variable, i.e. "name_of_prec_var=". |
142 |
- if ( echo $pac_arg | grep "^$pac_pvar=" >/dev/null 2>&1 ) ; then |
143 |
- # check if current precious variable is set in env |
144 |
- eval pvar_set=\${$pac_pvar+set} |
145 |
- if test "$pvar_set" = "set" ; then |
146 |
- # Append 'name_of_prec_var=value_of_prec_var' |
147 |
- # to the subconfigure arguments list, where |
148 |
- # value_of_prec_var is fetched from the env. |
149 |
- # this also overrides any value set on the command line |
150 |
- eval pac_pval=\${$pac_pvar} |
151 |
- pac_arg="$pac_pvar=$pac_pval" |
152 |
- break |
153 |
- fi |
154 |
- fi |
155 |
- done |
156 |
- case $pac_arg in |
157 |
- *\'*) pac_arg=`$as_echo "$pac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
158 |
- esac |
159 |
- as_fn_append pac_sub_configure_args " '$pac_arg'" ;; |
160 |
- esac |
161 |
- done |
162 |
- |
163 |
- # Always prepend --prefix to ensure using the same prefix |
164 |
- # in subdir configurations. |
165 |
- # MPICH note: see tt#983 for an example of why this is necessary |
166 |
- pac_arg="--prefix=$prefix" |
167 |
- case $pac_arg in |
168 |
- *\'*) pac_arg=`$as_echo "$pac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
169 |
- esac |
170 |
- pac_sub_configure_args="'$pac_arg' $pac_sub_configure_args" |
171 |
- |
172 |
- # Pass --silent |
173 |
- if test "$silent" = yes; then |
174 |
- pac_sub_configure_args="--silent $pac_sub_configure_args" |
175 |
- fi |
176 |
- |
177 |
- # Always prepend --disable-option-checking to silence warnings, since |
178 |
- # different subdirs can have different --enable and --with options. |
179 |
- pac_sub_configure_args="--disable-option-checking $pac_sub_configure_args" |
180 |
- |
181 |
- pac_popdir=`pwd` |
182 |
- |
183 |
- # Do not complain, so a configure script can configure whichever |
184 |
- # parts of a large source tree are present. |
185 |
- test -d "$srcdir/$pac_dir" || continue |
186 |
- |
187 |
- # MPICH note: modified to remove the internal "_AS_*" macro usage, also |
188 |
- # msg is already printed at top |
189 |
- as_dir="$pac_dir"; as_fn_mkdir_p |
190 |
- # MPICH note: we leave this internal macro reference for now. We can clone |
191 |
- # the macro locally if this turns out to be non-portable across several autoconf |
192 |
- # versions. It sets the following variables: ac_builddir, |
193 |
- # ac_top_builddir_sub, ac_top_build_prefix, ac_srcdir, ac_top_srcdir, |
194 |
- # ac_abs_top_builddir, ac_abs_builddir, ac_abs_top_srcdir, ac_abs_srcdir |
195 |
- ac_builddir=. |
196 |
- |
197 |
-case "$pac_dir" in |
198 |
-.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
199 |
-*) |
200 |
- ac_dir_suffix=/`$as_echo "$pac_dir" | sed 's|^\.[\\/]||'` |
201 |
- # A ".." for each directory in $ac_dir_suffix. |
202 |
- ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
203 |
- case $ac_top_builddir_sub in |
204 |
- "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
205 |
- *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
206 |
- esac ;; |
207 |
-esac |
208 |
-ac_abs_top_builddir=$ac_pwd |
209 |
-ac_abs_builddir=$ac_pwd$ac_dir_suffix |
210 |
-# for backward compatibility: |
211 |
-ac_top_builddir=$ac_top_build_prefix |
212 |
- |
213 |
-case $srcdir in |
214 |
- .) # We are building in place. |
215 |
- ac_srcdir=. |
216 |
- ac_top_srcdir=$ac_top_builddir_sub |
217 |
- ac_abs_top_srcdir=$ac_pwd ;; |
218 |
- [\\/]* | ?:[\\/]* ) # Absolute name. |
219 |
- ac_srcdir=$srcdir$ac_dir_suffix; |
220 |
- ac_top_srcdir=$srcdir |
221 |
- ac_abs_top_srcdir=$srcdir ;; |
222 |
- *) # Relative name. |
223 |
- ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
224 |
- ac_top_srcdir=$ac_top_build_prefix$srcdir |
225 |
- ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
226 |
-esac |
227 |
-ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
228 |
- |
229 |
- |
230 |
- cd "$pac_dir" |
231 |
- |
232 |
- # Check for guested configure; otherwise get Cygnus style configure. |
233 |
- if test -f "$ac_srcdir/configure.gnu"; then |
234 |
- pac_sub_configure=$ac_srcdir/configure.gnu |
235 |
- elif test -f "$ac_srcdir/configure"; then |
236 |
- pac_sub_configure=$ac_srcdir/configure |
237 |
- elif test -f "$ac_srcdir/configure.ac"; then |
238 |
- # This should be Cygnus configure. |
239 |
- pac_sub_configure=$ac_aux_dir/configure |
240 |
- else |
241 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $pac_dir" >&5 |
242 |
-$as_echo "$as_me: WARNING: no configuration information is in $pac_dir" >&2;} |
243 |
- pac_sub_configure= |
244 |
- fi |
245 |
- |
246 |
- # The recursion is here. |
247 |
- if test -n "$pac_sub_configure"; then |
248 |
- # MPICH note: overriding the cache file on purpose to prevent strange |
249 |
- # issues resulting from inter-dir caching |
250 |
- pac_sub_cache_file="/dev/null" |
251 |
- |
252 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $pac_sub_configure $pac_sub_configure_args --cache-file=$pac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
253 |
-$as_echo "$as_me: running $SHELL $pac_sub_configure $pac_sub_configure_args --cache-file=$pac_sub_cache_file --srcdir=$ac_srcdir" >&6;} |
254 |
- # The eval makes quoting arguments work. |
255 |
- # MPICH note: we want to execute the provided actions, not be silent |
256 |
- # or error out if the subconfigure succeeded/failed |
257 |
- if eval "\$SHELL \"\$pac_sub_configure\" $pac_sub_configure_args \ |
258 |
- --cache-file=\"\$pac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" |
259 |
- then |
260 |
- # restore the current dir for the provided actions |
261 |
- cd "$pac_popdir" |
262 |
- |
263 |
- else |
264 |
- # restore the current dir for the provided actions |
265 |
- cd "$pac_popdir" |
266 |
- as_fn_error $? "json-c configure failed" "$LINENO" 5 |
267 |
- fi |
268 |
- fi |
269 |
- |
270 |
- cd "$pac_popdir" |
271 |
- |
272 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: ===== done with modules/json-c configure =====" >&5 |
273 |
-$as_echo "$as_me: ===== done with modules/json-c configure =====" >&6;} |
274 |
- |
275 |
- # Check for any localdefs files. These may be created, so we |
276 |
- # look in the local directory first. |
277 |
- if test -f modules/json-c/localdefs ; then |
278 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: sourcing modules/json-c/localdefs" >&5 |
279 |
-$as_echo "$as_me: sourcing modules/json-c/localdefs" >&6;} |
280 |
- . modules/json-c/localdefs |
281 |
- elif test -f $pac_abs_srcdir/modules/json-c/localdefs ; then |
282 |
- { $as_echo "$as_me:${as_lineno-$LINENO}: sourcing $pac_abs_srcdir/modules/json-c/localdefs" >&5 |
283 |
-$as_echo "$as_me: sourcing $pac_abs_srcdir/modules/json-c/localdefs" >&6;} |
284 |
- . $pac_abs_srcdir/modules/json-c/localdefs |
285 |
- fi |
286 |
- |
287 |
- |
288 |
- |
289 |
- pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} - 1` |
290 |
- eval CFLAGS="\$pac_save_CFLAGS_${pac_save_CFLAGS_nesting}" |
291 |
- eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}="" |
292 |
- |
293 |
- |
294 |
- pac_save_CPPFLAGS_nesting=`expr ${pac_save_CPPFLAGS_nesting} - 1` |
295 |
- eval CPPFLAGS="\$pac_save_CPPFLAGS_${pac_save_CPPFLAGS_nesting}" |
296 |
- eval pac_save_CPPFLAGS_${pac_save_CPPFLAGS_nesting}="" |
297 |
- |
298 |
- |
299 |
- pac_save_CXXFLAGS_nesting=`expr ${pac_save_CXXFLAGS_nesting} - 1` |
300 |
- eval CXXFLAGS="\$pac_save_CXXFLAGS_${pac_save_CXXFLAGS_nesting}" |
301 |
- eval pac_save_CXXFLAGS_${pac_save_CXXFLAGS_nesting}="" |
302 |
- |
303 |
- |
304 |
- pac_save_FFLAGS_nesting=`expr ${pac_save_FFLAGS_nesting} - 1` |
305 |
- eval FFLAGS="\$pac_save_FFLAGS_${pac_save_FFLAGS_nesting}" |
306 |
- eval pac_save_FFLAGS_${pac_save_FFLAGS_nesting}="" |
307 |
- |
308 |
- |
309 |
- pac_save_FCFLAGS_nesting=`expr ${pac_save_FCFLAGS_nesting} - 1` |
310 |
- eval FCFLAGS="\$pac_save_FCFLAGS_${pac_save_FCFLAGS_nesting}" |
311 |
- eval pac_save_FCFLAGS_${pac_save_FCFLAGS_nesting}="" |
312 |
- |
313 |
- |
314 |
- pac_save_LDFLAGS_nesting=`expr ${pac_save_LDFLAGS_nesting} - 1` |
315 |
- eval LDFLAGS="\$pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}" |
316 |
- eval pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}="" |
317 |
- |
318 |
- |
319 |
- pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1` |
320 |
- eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}" |
321 |
- eval pac_save_LIBS_${pac_save_LIBS_nesting}="" |
322 |
- |
323 |
- |
324 |
-jsonsrcdir="${main_top_builddir}/modules/json-c" |
325 |
-jsonlib="${main_top_builddir}/modules/json-c/libjson-c.la" |
326 |
- |
327 |
- |
328 |
- if echo "$CPPFLAGS" | $FGREP -e "\<-I${use_top_srcdir}/modules/json-c\>" >/dev/null 2>&1; then : |
329 |
- echo "CPPFLAGS(='$CPPFLAGS') contains '-I${use_top_srcdir}/modules/json-c', not appending" >&5 |
330 |
-else |
331 |
- echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${use_top_srcdir}/modules/json-c', appending" >&5 |
332 |
- CPPFLAGS="$CPPFLAGS -I${use_top_srcdir}/modules/json-c" |
333 |
- |
334 |
-fi |
335 |
- |
336 |
- |
337 |
- |
338 |
- if echo "$CPPFLAGS" | $FGREP -e "\<-I${main_top_builddir}/modules/json-c\>" >/dev/null 2>&1; then : |
339 |
- echo "CPPFLAGS(='$CPPFLAGS') contains '-I${main_top_builddir}/modules/json-c', not appending" >&5 |
340 |
-else |
341 |
- echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${main_top_builddir}/modules/json-c', appending" >&5 |
342 |
- CPPFLAGS="$CPPFLAGS -I${main_top_builddir}/modules/json-c" |
343 |
- |
344 |
-fi |
345 |
- |
346 |
- |
347 |
# ---------------------------------------------------------------------------- |
348 |
# HWLOC |
349 |
# ---------------------------------------------------------------------------- |
350 |
@@ -45612,18 +45283,8 @@ the same routine with arguments of different types." " |
351 |
fi |
352 |
|
15 |
addarg=$pac_cv_prog_f77_mismatched_args_parm |
353 |
addarg=$pac_cv_prog_f77_mismatched_args_parm |
16 |
- |
354 |
+FFLAGS="$FFLAGS $addarg" |
|
|
355 |
|
17 |
- if test "X$addarg" != "X" ; then |
356 |
- if test "X$addarg" != "X" ; then |
18 |
- # We could add the names of all of the MPI routines that |
357 |
- # We could add the names of all of the MPI routines that |
19 |
- # accept different types. Instead, we fail cleanly. |
358 |
- # accept different types. Instead, we fail cleanly. |
Lines 24-30
Link Here
|
24 |
- # the instructions in the following error message. |
363 |
- # the instructions in the following error message. |
25 |
- as_fn_error $? "The Fortran compiler $F77 does not accept programs that call the same routine with arguments of different types without the option $addarg. Rerun configure with FFLAGS=$addarg" "$LINENO" 5 |
364 |
- as_fn_error $? "The Fortran compiler $F77 does not accept programs that call the same routine with arguments of different types without the option $addarg. Rerun configure with FFLAGS=$addarg" "$LINENO" 5 |
26 |
- fi |
365 |
- fi |
27 |
+FFLAGS="$FFLAGS $addarg" |
366 |
- |
28 |
|
|
|
29 |
bindings="$bindings f77" |
367 |
bindings="$bindings f77" |
30 |
|
368 |
|
|
|
369 |
$as_echo "#define HAVE_FORTRAN_BINDING 1" >>confdefs.h |
370 |
@@ -51252,7 +50913,11 @@ $as_echo_n "checking alignment of wchar_t... " >&6; } |
371 |
if ${ac_cv_alignof_wchar_t+:} false; then : |
372 |
$as_echo_n "(cached) " >&6 |
373 |
else |
374 |
- if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_wchar_t" "0 |
375 |
+ if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_wchar_t" " |
376 |
+ |
377 |
+#ifdef STDC_HEADERS |
378 |
+# include <stddef.h> |
379 |
+#endif |
380 |
|
381 |
#ifndef offsetof |
382 |
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) |