| 1 |
# config.links - helper for ../configure -*- mode: sh -*- |
| 2 |
# Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. |
| 3 |
# Copyright (C) 2012 g10 Code GmbH |
| 4 |
# |
| 5 |
# This file is part of Libgcrypt. |
| 6 |
# |
| 7 |
# Libgcrypt is free software; you can redistribute it and/or modify |
| 8 |
# it under the terms of the GNU Lesser General Public License as |
| 9 |
# published by the Free Software Foundation; either version 2.1 of |
| 10 |
# the License, or (at your option) any later version. |
| 11 |
# |
| 12 |
# Libgcrypt is distributed in the hope that it will be useful, |
| 13 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 |
# GNU Lesser General Public License for more details. |
| 16 |
# |
| 17 |
# You should have received a copy of the GNU Lesser General Public |
| 18 |
# License along with this program; if not, see <https://www.gnu.org/licenses/>. |
| 19 |
# SPDX-License-Identifier: LGPL-2.1-or-later |
| 20 |
# |
| 21 |
# sourced by ../configure to get the list of files to link |
| 22 |
# this should set $mpi_ln_list. |
| 23 |
# Note: this is called from the above directory. |
| 24 |
# |
| 25 |
# Reguired variables: |
| 26 |
# $ac_cv_sys_symbol_underscore |
| 27 |
# $gcry_cv_gcc_arm_platform_as_ok |
| 28 |
|
| 29 |
mpi_sflags= |
| 30 |
mpi_extra_modules= |
| 31 |
mpi_cpu_arch= |
| 32 |
|
| 33 |
test -d ./mpi || mkdir ./mpi |
| 34 |
|
| 35 |
# We grep the list of modules from the Makefile so that |
| 36 |
# we don't need to maintain them here. |
| 37 |
mpi_standard_modules=`$AWK '/^#BEGIN_ASM_LIST/,/^#END_ASM_LIST/ { |
| 38 |
if( $3 != "O" ) print $2 }' $srcdir/mpi/Makefile.am` |
| 39 |
mpi_optional_modules=`$AWK '/^#BEGIN_ASM_LIST/,/^#END_ASM_LIST/ { |
| 40 |
if( $3 == "O" ) print $2 }' $srcdir/mpi/Makefile.am` |
| 41 |
|
| 42 |
|
| 43 |
echo '/* created by config.links - do not edit */' >./mpi/asm-syntax.h |
| 44 |
echo "/* Host: ${host} */" >>./mpi/asm-syntax.h |
| 45 |
|
| 46 |
case "${host}" in |
| 47 |
i[34567]86*-*-openbsd[12]* | \ |
| 48 |
i[34567]86*-*-openbsd3.[0123]*) |
| 49 |
echo '/* No working assembler modules available */' >>./mpi/asm-syntax.h |
| 50 |
path="" |
| 51 |
mpi_cpu_arch="x86" |
| 52 |
;; |
| 53 |
i[34567]86*-*-openbsd* | \ |
| 54 |
i[34567]86*-*-freebsd*-elf | \ |
| 55 |
i[34567]86*-*-freebsd[3-9]* | \ |
| 56 |
i[34567]86*-*-freebsd[12][0-9]*| \ |
| 57 |
i[34567]86*-*-freebsdelf* | \ |
| 58 |
i[34567]86*-*-netbsd* | \ |
| 59 |
i[34567]86*-*-k*bsd* | \ |
| 60 |
pentium-*-netbsd* | \ |
| 61 |
pentiumpro-*-netbsd*) |
| 62 |
echo '#define ELF_SYNTAX' >>./mpi/asm-syntax.h |
| 63 |
cat $srcdir/mpi/i386/syntax.h >>./mpi/asm-syntax.h |
| 64 |
path="i386" |
| 65 |
mpi_cpu_arch="x86" |
| 66 |
;; |
| 67 |
i[34]86*-*-bsdi4*) |
| 68 |
echo '#define ELF_SYNTAX' >>./mpi/asm-syntax.h |
| 69 |
cat $srcdir/mpi/i386/syntax.h >>./mpi/asm-syntax.h |
| 70 |
path="i386" |
| 71 |
mpi_cpu_arch="x86" |
| 72 |
;; |
| 73 |
i[34567]86*-*-linuxaout* | \ |
| 74 |
i[34567]86*-*-linuxoldld* | \ |
| 75 |
i[34567]86*-*-*bsd*) |
| 76 |
echo '#define BSD_SYNTAX' >>./mpi/asm-syntax.h |
| 77 |
echo '#define X86_BROKEN_ALIGN' >>./mpi/asm-syntax.h |
| 78 |
cat $srcdir/mpi/i386/syntax.h >>./mpi/asm-syntax.h |
| 79 |
path="i386" |
| 80 |
mpi_cpu_arch="x86" |
| 81 |
;; |
| 82 |
i[34567]86*-msdosdjgpp* | \ |
| 83 |
i[34567]86*-apple-darwin*) |
| 84 |
echo '#define BSD_SYNTAX' >>./mpi/asm-syntax.h |
| 85 |
cat $srcdir/mpi/i386/syntax.h >>./mpi/asm-syntax.h |
| 86 |
path="i386" |
| 87 |
mpi_cpu_arch="x86" |
| 88 |
;; |
| 89 |
i[34567]86*-*-* | \ |
| 90 |
pentium-*-* | \ |
| 91 |
pentiumpro-*-*) |
| 92 |
echo '#define ELF_SYNTAX' >>./mpi/asm-syntax.h |
| 93 |
cat $srcdir/mpi/i386/syntax.h >>./mpi/asm-syntax.h |
| 94 |
path="i386" |
| 95 |
mpi_cpu_arch="x86" |
| 96 |
;; |
| 97 |
x86_64-apple-darwin*) |
| 98 |
echo '#define BSD_SYNTAX' >>./mpi/asm-syntax.h |
| 99 |
cat $srcdir/mpi/i386/syntax.h >>./mpi/asm-syntax.h |
| 100 |
cat $srcdir/mpi/amd64/func_abi.h >>./mpi/asm-syntax.h |
| 101 |
path="amd64" |
| 102 |
mpi_cpu_arch="x86" |
| 103 |
;; |
| 104 |
x86_64-*mingw32*) |
| 105 |
echo '#define USE_MS_ABI' >>./mpi/asm-syntax.h |
| 106 |
echo '#define ELF_SYNTAX' >>./mpi/asm-syntax.h |
| 107 |
cat $srcdir/mpi/i386/syntax.h >>./mpi/asm-syntax.h |
| 108 |
cat $srcdir/mpi/amd64/func_abi.h >>./mpi/asm-syntax.h |
| 109 |
path="amd64" |
| 110 |
mpi_cpu_arch="x86" |
| 111 |
;; |
| 112 |
x86_64-*-*) |
| 113 |
echo '#define ELF_SYNTAX' >>./mpi/asm-syntax.h |
| 114 |
cat $srcdir/mpi/i386/syntax.h >>./mpi/asm-syntax.h |
| 115 |
cat $srcdir/mpi/amd64/func_abi.h >>./mpi/asm-syntax.h |
| 116 |
path="amd64" |
| 117 |
mpi_cpu_arch="x86" |
| 118 |
;; |
| 119 |
alpha*-*-*) |
| 120 |
echo '/* configured for alpha */' >>./mpi/asm-syntax.h |
| 121 |
path="alpha" |
| 122 |
mpi_extra_modules="udiv-qrnnd" |
| 123 |
mpi_cpu_arch="alpha" |
| 124 |
;; |
| 125 |
aarch64-*-*) |
| 126 |
echo '/* configured for aarch64 */' >>./mpi/asm-syntax.h |
| 127 |
path="aarch64" |
| 128 |
mpi_cpu_arch="aarch64" |
| 129 |
;; |
| 130 |
arm*-*-*) |
| 131 |
mpi_cpu_arch="arm" |
| 132 |
if test "$gcry_cv_gcc_arm_platform_as_ok" = "yes" ; then |
| 133 |
echo '/* configured for arm */' >>./mpi/asm-syntax.h |
| 134 |
path="arm" |
| 135 |
else |
| 136 |
echo '/* No assembler modules configured */' >>./mpi/asm-syntax.h |
| 137 |
path="" |
| 138 |
fi |
| 139 |
;; |
| 140 |
hppa7000*-*-*) |
| 141 |
echo '/* configured for HPPA (pa7000) */' >>./mpi/asm-syntax.h |
| 142 |
path="hppa1.1 hppa" |
| 143 |
mpi_extra_modules="udiv-qrnnd" |
| 144 |
mpi_cpu_arch="hppa" |
| 145 |
;; |
| 146 |
hppa1.0*-*-*) |
| 147 |
echo '/* configured for HPPA 1.0 */' >>./mpi/asm-syntax.h |
| 148 |
path="hppa" |
| 149 |
mpi_extra_modules="udiv-qrnnd" |
| 150 |
mpi_cpu_arch="hppa" |
| 151 |
;; |
| 152 |
hppa*-*-*) # assume pa7100 |
| 153 |
echo '/* configured for HPPA (pa7100) */' >>./mpi/asm-syntax.h |
| 154 |
path="pa7100 hppa1.1 hppa" |
| 155 |
mpi_extra_modules="udiv-qrnnd" |
| 156 |
mpi_cpu_arch="hppa" |
| 157 |
;; |
| 158 |
sparc64-*-linux-gnu) |
| 159 |
echo '/* No working assembler modules available */' >>./mpi/asm-syntax.h |
| 160 |
path="" |
| 161 |
mpi_cpu_arch="sparc" |
| 162 |
;; |
| 163 |
sparc64-sun-solaris2*) |
| 164 |
echo '/* No working assembler modules available */' >>./mpi/asm-syntax.h |
| 165 |
path="" |
| 166 |
mpi_cpu_arch="sparc" |
| 167 |
;; |
| 168 |
sparc64-*-netbsd* | sparc64-*-freebsd* | sparc64-*-openbsd*) |
| 169 |
# There are no sparc64 assembler modules that work on the |
| 170 |
# *BSDs, so use the generic C functions. |
| 171 |
echo '/* No working assembler modules available */' >>./mpi/asm-syntax.h |
| 172 |
path="" |
| 173 |
mpi_cpu_arch="sparc" |
| 174 |
;; |
| 175 |
sparc64*-*-*) |
| 176 |
echo '/* No working assembler modules available */' >>./mpi/asm-syntax.h |
| 177 |
path="" |
| 178 |
mpi_cpu_arch="sparc" |
| 179 |
;; |
| 180 |
sparc9*-*-* | \ |
| 181 |
ultrasparc*-*-* ) |
| 182 |
echo '/* configured for sparc9 or higher */' >>./mpi/asm-syntax.h |
| 183 |
path="sparc32v8 sparc32" |
| 184 |
mpi_cpu_arch="sparc" |
| 185 |
;; |
| 186 |
sparc8*-*-* | \ |
| 187 |
microsparc*-*-*) |
| 188 |
echo '/* configured for sparc8 */' >>./mpi/asm-syntax.h |
| 189 |
path="sparc32v8 sparc32" |
| 190 |
mpi_cpu_arch="sparc" |
| 191 |
;; |
| 192 |
supersparc*-*-*) |
| 193 |
echo '/* configured for supersparc */' >>./mpi/asm-syntax.h |
| 194 |
path="supersparc sparc32v8 sparc32" |
| 195 |
mpi_extra_modules="udiv" |
| 196 |
mpi_cpu_arch="sparc" |
| 197 |
;; |
| 198 |
sparc*-*-*) |
| 199 |
echo '/* configured for sparc */' >>./mpi/asm-syntax.h |
| 200 |
path="sparc32" |
| 201 |
mpi_extra_modules="udiv" |
| 202 |
mpi_cpu_arch="sparc" |
| 203 |
;; |
| 204 |
mips[34]*-*-* | \ |
| 205 |
mips*-*-irix6*) |
| 206 |
echo '/* configured for MIPS3 */' >>./mpi/asm-syntax.h |
| 207 |
path="mips3" |
| 208 |
mpi_cpu_arch="mips" |
| 209 |
;; |
| 210 |
mips*-*-*) |
| 211 |
echo '/* configured for MIPS2 */' >>./mpi/asm-syntax.h |
| 212 |
path="mips2" |
| 213 |
mpi_cpu_arch="mips" |
| 214 |
;; |
| 215 |
s390x*-*-*) |
| 216 |
echo '/* No working assembler modules available */' >>./mpi/asm-syntax.h |
| 217 |
path="" |
| 218 |
mpi_cpu_arch="s390x" |
| 219 |
;; |
| 220 |
|
| 221 |
# Motorola 68k configurations. Let m68k mean 68020-68040. |
| 222 |
# mc68000 or mc68060 configurations need to be specified explicitly |
| 223 |
m680[234]0*-*-linuxaout* | \ |
| 224 |
m68k*-*-linuxaout*) |
| 225 |
echo '#define MIT_SYNTAX' >>./mpi/asm-syntax.h |
| 226 |
cat $srcdir/mpi/m68k/syntax.h >>./mpi/asm-syntax.h |
| 227 |
path="m68k/mc68020 m68k" |
| 228 |
mpi_cpu_arch="m68k" |
| 229 |
;; |
| 230 |
m68060*-*-linuxaout*) |
| 231 |
echo '#define MIT_SYNTAX' >>./mpi/asm-syntax.h |
| 232 |
cat $srcdir/mpi/m68k/syntax.h >>./mpi/asm-syntax.h |
| 233 |
path="m68k" |
| 234 |
mpi_cpu_arch="m68k" |
| 235 |
;; |
| 236 |
m680[234]0*-*-linux* | \ |
| 237 |
m68k*-*-linux*) |
| 238 |
echo '#define ELF_SYNTAX' >>./mpi/asm-syntax.h |
| 239 |
cat $srcdir/mpi/m68k/syntax.h >>./mpi/asm-syntax.h |
| 240 |
mpi_cpu_arch="m68k" |
| 241 |
;; |
| 242 |
m68060*-*-linux*) |
| 243 |
echo '#define ELF_SYNTAX' >>./mpi/asm-syntax.h |
| 244 |
cat $srcdir/mpi/m68k/syntax.h >>./mpi/asm-syntax.h |
| 245 |
path="m68k" |
| 246 |
mpi_cpu_arch="m68k" |
| 247 |
;; |
| 248 |
m680[234]0*-*-netbsd* | \ |
| 249 |
m68k-*-netbsd*) |
| 250 |
echo '#define ELF_SYNTAX' >>./mpi/asm-syntax.h |
| 251 |
cat $srcdir/mpi/m68k/syntax.h >>./mpi/asm-syntax.h |
| 252 |
path="m68k" |
| 253 |
mpi_cpu_arch="m68k" |
| 254 |
;; |
| 255 |
m68060*-*-netbsd*) |
| 256 |
echo '#define ELF_SYNTAX' >>./mpi/asm-syntax.h |
| 257 |
cat $srcdir/mpi/m68k/syntax.h >>./mpi/asm-syntax.h |
| 258 |
mpi_cpu_arch="m68k" |
| 259 |
;; |
| 260 |
m68k-atari-mint) |
| 261 |
echo '#define MIT_SYNTAX' >>./mpi/asm-syntax.h |
| 262 |
cat $srcdir/mpi/m68k/syntax.h >>./mpi/asm-syntax.h |
| 263 |
path="m68k" |
| 264 |
mpi_cpu_arch="m68k" |
| 265 |
;; |
| 266 |
m68000*-*-* | \ |
| 267 |
m68060*-*-*) |
| 268 |
echo '#define MIT_SYNTAX' >>./mpi/asm-syntax.h |
| 269 |
cat $srcdir/mpi/m68k/syntax.h >>./mpi/asm-syntax.h |
| 270 |
path="m68k/mc68000" |
| 271 |
mpi_cpu_arch="m68k" |
| 272 |
;; |
| 273 |
m680[234]0*-*-* | \ |
| 274 |
m68k*-*-*) |
| 275 |
echo '#define MIT_SYNTAX' >>./mpi/asm-syntax.h |
| 276 |
cat $srcdir/mpi/m68k/syntax.h >>./mpi/asm-syntax.h |
| 277 |
path="m68k/mc68020 m68k" |
| 278 |
mpi_cpu_arch="m68k" |
| 279 |
;; |
| 280 |
|
| 281 |
powerpc-apple-darwin*) |
| 282 |
echo '/* No working assembler modules available */' >>./mpi/asm-syntax.h |
| 283 |
path="" |
| 284 |
mpi_cpu_arch="ppc" |
| 285 |
;; |
| 286 |
|
| 287 |
powerpc*-*-netbsd* | powerpc*-*-openbsd*) |
| 288 |
echo '/* configured {Open,Net}BSD on powerpc */' >>./mpi/asm-syntax.h |
| 289 |
echo '#define ELF_SYNTAX' >>./mpi/asm-syntax.h |
| 290 |
cat $srcdir/mpi/powerpc32/syntax.h >>./mpi/asm-syntax.h |
| 291 |
mpi_sflags="-Wa,-mppc" |
| 292 |
path="powerpc32" |
| 293 |
mpi_cpu_arch="ppc" |
| 294 |
;; |
| 295 |
|
| 296 |
ppc620-*-* | \ |
| 297 |
powerpc64*-*-*) |
| 298 |
mpi_sflags="-Wa,-mppc" |
| 299 |
path="powerpc64" |
| 300 |
mpi_cpu_arch="ppc" |
| 301 |
;; |
| 302 |
powerpc*-*-linux*) |
| 303 |
echo '/* configured for powerpc/ELF */' >>./mpi/asm-syntax.h |
| 304 |
echo '#define ELF_SYNTAX' >>./mpi/asm-syntax.h |
| 305 |
cat $srcdir/mpi/powerpc32/syntax.h >>./mpi/asm-syntax.h |
| 306 |
path="powerpc32" |
| 307 |
mpi_cpu_arch="ppc" |
| 308 |
;; |
| 309 |
|
| 310 |
rs6000-*-aix[456789]* | \ |
| 311 |
rs6000-*-aix3.2.[456789]) |
| 312 |
mpi_sflags="-Wa,-mpwr" |
| 313 |
path="power" |
| 314 |
mpi_extra_modules="udiv-w-sdiv" |
| 315 |
mpi_cpu_arch="ppc" |
| 316 |
;; |
| 317 |
rs6000-*-* | \ |
| 318 |
power-*-* | \ |
| 319 |
power2-*-*) |
| 320 |
mpi_sflags="-Wa,-mppc" |
| 321 |
path="power" |
| 322 |
mpi_extra_modules="udiv-w-sdiv" |
| 323 |
mpi_cpu_arch="ppc" |
| 324 |
;; |
| 325 |
powerpc-ibm-aix4.2.* ) |
| 326 |
# I am not sure about this one but a machine identified by |
| 327 |
# powerpc-ibm-aix4.2.1.0 cannot use the powerpc32 code. |
| 328 |
mpi_sflags="-Wa,-mpwr" |
| 329 |
path="power" |
| 330 |
mpi_extra_modules="udiv-w-sdiv" |
| 331 |
mpi_cpu_arch="ppc" |
| 332 |
;; |
| 333 |
ppc601-*-*) |
| 334 |
mpi_sflags="-Wa,-mppc" |
| 335 |
path="power powerpc32" |
| 336 |
mpi_cpu_arch="ppc" |
| 337 |
;; |
| 338 |
ppc60[234]*-*-*) |
| 339 |
mpi_sflags="-Wa,-mppc" |
| 340 |
path="powerpc32" |
| 341 |
mpi_cpu_arch="ppc" |
| 342 |
;; |
| 343 |
powerpc*-*-*) |
| 344 |
mpi_sflags="-Wa,-mppc" |
| 345 |
path="powerpc32" |
| 346 |
mpi_cpu_arch="ppc" |
| 347 |
;; |
| 348 |
|
| 349 |
riscv64-*-*) |
| 350 |
echo '/* No working assembler modules available */' >>./mpi/asm-syntax.h |
| 351 |
path="" |
| 352 |
mpi_cpu_arch="riscv64" |
| 353 |
;; |
| 354 |
|
| 355 |
*) |
| 356 |
echo '/* Platform not known */' >>./mpi/asm-syntax.h |
| 357 |
path="" |
| 358 |
;; |
| 359 |
esac |
| 360 |
|
| 361 |
# If asm modules are disabled reset the found variables but keep |
| 362 |
# mpi_cpu_arch. |
| 363 |
if test "$try_asm_modules" != "yes" ; then |
| 364 |
echo '/* Assembler modules disabled on request */' >./mpi/asm-syntax.h |
| 365 |
path="" |
| 366 |
mpi_sflags="" |
| 367 |
mpi_extra_modules="" |
| 368 |
mpi_cpu_arch="disabled" |
| 369 |
fi |
| 370 |
|
| 371 |
# Make sure that mpi_cpu_arch is not the empty string. |
| 372 |
if test x"$mpi_cpu_arch" = x ; then |
| 373 |
mpi_cpu_arch="unknown" |
| 374 |
fi |
| 375 |
|
| 376 |
# Add .note.gnu.property section for Intel CET in assembler sources |
| 377 |
# when CET is enabled. */ |
| 378 |
if test x"$mpi_cpu_arch" = xx86 ; then |
| 379 |
cat <<EOF >> ./mpi/asm-syntax.h |
| 380 |
|
| 381 |
#if defined(__ASSEMBLER__) && defined(__CET__) |
| 382 |
# include <cet.h> |
| 383 |
#endif |
| 384 |
EOF |
| 385 |
fi |
| 386 |
|
| 387 |
# Make sysdep.h |
| 388 |
echo '/* created by config.links - do not edit */' >./mpi/sysdep.h |
| 389 |
if test x$ac_cv_sys_symbol_underscore = xyes; then |
| 390 |
cat <<EOF >>./mpi/sysdep.h |
| 391 |
#if __STDC__ |
| 392 |
#define C_SYMBOL_NAME(name) _##name |
| 393 |
#else |
| 394 |
#define C_SYMBOL_NAME(name) _/**/name |
| 395 |
#endif |
| 396 |
EOF |
| 397 |
else |
| 398 |
cat <<EOF >>./mpi/sysdep.h |
| 399 |
#define C_SYMBOL_NAME(name) name |
| 400 |
EOF |
| 401 |
fi |
| 402 |
|
| 403 |
|
| 404 |
# Figure the required modules out |
| 405 |
mpi_required_modules=$mpi_standard_modules |
| 406 |
if test "$mpi_extra_modules" != ""; then |
| 407 |
for fn in $mpi_extra_modules; do |
| 408 |
for i in $mpi_optional_modules; do |
| 409 |
if test "$fn" = "$i" ; then |
| 410 |
mpi_required_modules="$mpi_required_modules $fn" |
| 411 |
fi |
| 412 |
done |
| 413 |
done |
| 414 |
fi |
| 415 |
|
| 416 |
# Try to get file to link from the assembler subdirectory and |
| 417 |
# if this fails get it from the generic subdirectory. |
| 418 |
mpi_ln_list= |
| 419 |
mpi_mod_list= |
| 420 |
path=`echo "$mpi_extra_path $path generic" | tr ':' ' '` |
| 421 |
echo '/* Created by config.links - do not edit */' >./mpi/mod-source-info.h |
| 422 |
echo "/* Host: ${host} */" >>./mpi/mod-source-info.h |
| 423 |
echo "static char mod_source_info[] =" >>./mpi/mod-source-info.h |
| 424 |
for fn in $mpi_required_modules ; do |
| 425 |
fnu=`echo $fn | sed 's/-/_/g'` |
| 426 |
eval mpi_mod_c_${fnu}=no |
| 427 |
eval mpi_mod_asm_${fnu}=no |
| 428 |
for dir in $path ; do |
| 429 |
rm -f $srcdir/mpi/$fn.[Sc] |
| 430 |
if test -f $srcdir/mpi/$dir/$fn.S ; then |
| 431 |
echo " \":$dir/$fn.S\"" >>./mpi/mod-source-info.h |
| 432 |
mpi_ln_list="$mpi_ln_list mpi/$fn-asm.S:mpi/$dir/$fn.S" |
| 433 |
eval mpi_mod_asm_${fnu}=yes |
| 434 |
mpi_mod_list="$mpi_mod_list $fn" |
| 435 |
break; |
| 436 |
elif test -f $srcdir/mpi/$dir/$fn.c ; then |
| 437 |
echo " \":$dir/$fn.c\"" >>./mpi/mod-source-info.h |
| 438 |
mpi_ln_list="$mpi_ln_list mpi/$fn.c:mpi/$dir/$fn.c" |
| 439 |
eval mpi_mod_c_${fnu}=yes |
| 440 |
mpi_mod_list="$mpi_mod_list $fn" |
| 441 |
break; |
| 442 |
fi |
| 443 |
done |
| 444 |
done |
| 445 |
echo " ;" >>./mpi/mod-source-info.h |
| 446 |
|
| 447 |
# Same thing for the file which defines the limb size |
| 448 |
path=`echo "$path generic" | tr ':' ' '` |
| 449 |
for dir in $path ; do |
| 450 |
rm -f $srcdir/mpi/mpi-asm-defs.h |
| 451 |
if test -f $srcdir/mpi/$dir/mpi-asm-defs.h ; then |
| 452 |
mpi_ln_list="$mpi_ln_list mpi/mpi-asm-defs.h:mpi/$dir/mpi-asm-defs.h" |
| 453 |
break; |
| 454 |
fi |
| 455 |
done |