You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by da...@apache.org on 2017/05/28 18:31:51 UTC
svn commit: r1796518 [1/19] - in /spamassassin/trunk/build/pga: ./ docs/
examples/ examples/c/ examples/fortran/ examples/mgh/ examples/templates/
include/ lib/ lib/linux/ man/ man/man1/ man/man2/ man/man3/ man/man4/
man/man5/ man/man6/ man/man7/ man/m...
Author: davej
Date: Sun May 28 18:31:49 2017
New Revision: 1796518
URL: http://svn.apache.org/viewvc?rev=1796518&view=rev
Log:
Added PGA required to build garescorer.
Added:
spamassassin/trunk/build/pga/
spamassassin/trunk/build/pga/CHANGES
spamassassin/trunk/build/pga/COPYRIGHT
spamassassin/trunk/build/pga/Makefile
spamassassin/trunk/build/pga/Makefile.in
spamassassin/trunk/build/pga/README
spamassassin/trunk/build/pga/config.status (with props)
spamassassin/trunk/build/pga/configure (with props)
spamassassin/trunk/build/pga/configure.in
spamassassin/trunk/build/pga/docs/
spamassassin/trunk/build/pga/docs/tpage.sty
spamassassin/trunk/build/pga/docs/user_guide.ps (with props)
spamassassin/trunk/build/pga/docs/user_guide.tex
spamassassin/trunk/build/pga/examples/
spamassassin/trunk/build/pga/examples/Makefile
spamassassin/trunk/build/pga/examples/Makefile.in
spamassassin/trunk/build/pga/examples/README
spamassassin/trunk/build/pga/examples/c/
spamassassin/trunk/build/pga/examples/c/Makefile
spamassassin/trunk/build/pga/examples/c/Makefile.in
spamassassin/trunk/build/pga/examples/c/README
spamassassin/trunk/build/pga/examples/c/classic (with props)
spamassassin/trunk/build/pga/examples/c/classic.c
spamassassin/trunk/build/pga/examples/c/dejong (with props)
spamassassin/trunk/build/pga/examples/c/dejong.c
spamassassin/trunk/build/pga/examples/c/example (with props)
spamassassin/trunk/build/pga/examples/c/example.c
spamassassin/trunk/build/pga/examples/c/maxbit (with props)
spamassassin/trunk/build/pga/examples/c/maxbit.c
spamassassin/trunk/build/pga/examples/c/maxchar (with props)
spamassassin/trunk/build/pga/examples/c/maxchar.c
spamassassin/trunk/build/pga/examples/c/maxint (with props)
spamassassin/trunk/build/pga/examples/c/maxint.c
spamassassin/trunk/build/pga/examples/c/name (with props)
spamassassin/trunk/build/pga/examples/c/name.c
spamassassin/trunk/build/pga/examples/c/namefull (with props)
spamassassin/trunk/build/pga/examples/c/namefull.c
spamassassin/trunk/build/pga/examples/c/test.c
spamassassin/trunk/build/pga/examples/c/udtstr (with props)
spamassassin/trunk/build/pga/examples/c/udtstr.c
spamassassin/trunk/build/pga/examples/fortran/
spamassassin/trunk/build/pga/examples/fortran/Makefile
spamassassin/trunk/build/pga/examples/fortran/Makefile.in
spamassassin/trunk/build/pga/examples/fortran/README
spamassassin/trunk/build/pga/examples/fortran/classic (with props)
spamassassin/trunk/build/pga/examples/fortran/classic.f
spamassassin/trunk/build/pga/examples/fortran/dejong (with props)
spamassassin/trunk/build/pga/examples/fortran/dejong.f
spamassassin/trunk/build/pga/examples/fortran/example (with props)
spamassassin/trunk/build/pga/examples/fortran/example.f
spamassassin/trunk/build/pga/examples/fortran/maxbit (with props)
spamassassin/trunk/build/pga/examples/fortran/maxbit.f
spamassassin/trunk/build/pga/examples/fortran/maxchar (with props)
spamassassin/trunk/build/pga/examples/fortran/maxchar.f
spamassassin/trunk/build/pga/examples/fortran/maxint (with props)
spamassassin/trunk/build/pga/examples/fortran/maxint.f
spamassassin/trunk/build/pga/examples/fortran/mpif.h (with props)
spamassassin/trunk/build/pga/examples/fortran/name (with props)
spamassassin/trunk/build/pga/examples/fortran/name.f
spamassassin/trunk/build/pga/examples/fortran/namefull (with props)
spamassassin/trunk/build/pga/examples/fortran/namefull.f
spamassassin/trunk/build/pga/examples/fortran/pgapackf.h (with props)
spamassassin/trunk/build/pga/examples/mgh/
spamassassin/trunk/build/pga/examples/mgh/Makefile
spamassassin/trunk/build/pga/examples/mgh/Makefile.in
spamassassin/trunk/build/pga/examples/mgh/README
spamassassin/trunk/build/pga/examples/mgh/grdfcn77.f
spamassassin/trunk/build/pga/examples/mgh/hesfcn77.f
spamassassin/trunk/build/pga/examples/mgh/mpif.h (with props)
spamassassin/trunk/build/pga/examples/mgh/objfcn77.f
spamassassin/trunk/build/pga/examples/mgh/pgapackf.h (with props)
spamassassin/trunk/build/pga/examples/mgh/ssqfcn77.f
spamassassin/trunk/build/pga/examples/mgh/ssqjac77.f
spamassassin/trunk/build/pga/examples/mgh/testprog (with props)
spamassassin/trunk/build/pga/examples/mgh/testprog.f
spamassassin/trunk/build/pga/examples/mgh/vecfcn77.f
spamassassin/trunk/build/pga/examples/mgh/vecjac77.f
spamassassin/trunk/build/pga/examples/templates/
spamassassin/trunk/build/pga/examples/templates/README
spamassassin/trunk/build/pga/examples/templates/uf_native.c
spamassassin/trunk/build/pga/examples/templates/uf_native.f
spamassassin/trunk/build/pga/examples/templates/uf_new.c
spamassassin/trunk/build/pga/include/
spamassassin/trunk/build/pga/include/fakempi_h
spamassassin/trunk/build/pga/include/fakempif_h
spamassassin/trunk/build/pga/include/mpi.h (with props)
spamassassin/trunk/build/pga/include/mpif.h (with props)
spamassassin/trunk/build/pga/include/pgapack.h
spamassassin/trunk/build/pga/include/pgapackf.h
spamassassin/trunk/build/pga/lib/
spamassassin/trunk/build/pga/lib/linux/
spamassassin/trunk/build/pga/man/
spamassassin/trunk/build/pga/man/man1/
spamassassin/trunk/build/pga/man/man1/PGAEncodeIntegerAsBinary.1
spamassassin/trunk/build/pga/man/man1/PGAEncodeIntegerAsGrayCode.1
spamassassin/trunk/build/pga/man/man1/PGAEncodeRealAsBinary.1
spamassassin/trunk/build/pga/man/man1/PGAEncodeRealAsGrayCode.1
spamassassin/trunk/build/pga/man/man1/PGAEvaluate.1
spamassassin/trunk/build/pga/man/man1/PGAFitness.1
spamassassin/trunk/build/pga/man/man1/PGAGetBinaryAllele.1
spamassassin/trunk/build/pga/man/man1/PGAGetCharacterAllele.1
spamassassin/trunk/build/pga/man/man1/PGAGetEvaluation.1
spamassassin/trunk/build/pga/man/man1/PGAGetEvaluationUpToDateFlag.1
spamassassin/trunk/build/pga/man/man1/PGAGetFitness.1
spamassassin/trunk/build/pga/man/man1/PGAGetFitnessCmaxValue.1
spamassassin/trunk/build/pga/man/man1/PGAGetFitnessMinType.1
spamassassin/trunk/build/pga/man/man1/PGAGetFitnessType.1
spamassassin/trunk/build/pga/man/man1/PGAGetIntegerAllele.1
spamassassin/trunk/build/pga/man/man1/PGAGetIntegerFromBinary.1
spamassassin/trunk/build/pga/man/man1/PGAGetIntegerFromGrayCode.1
spamassassin/trunk/build/pga/man/man1/PGAGetMaxFitnessRank.1
spamassassin/trunk/build/pga/man/man1/PGAGetRealAllele.1
spamassassin/trunk/build/pga/man/man1/PGAGetRealFromBinary.1
spamassassin/trunk/build/pga/man/man1/PGAGetRealFromGrayCode.1
spamassassin/trunk/build/pga/man/man1/PGARank.1
spamassassin/trunk/build/pga/man/man1/PGASetBinaryAllele.1
spamassassin/trunk/build/pga/man/man1/PGASetCharacterAllele.1
spamassassin/trunk/build/pga/man/man1/PGASetEvaluation.1
spamassassin/trunk/build/pga/man/man1/PGASetEvaluationUpToDateFlag.1
spamassassin/trunk/build/pga/man/man1/PGASetFitnessCmaxValue.1
spamassassin/trunk/build/pga/man/man1/PGASetFitnessMinType.1
spamassassin/trunk/build/pga/man/man1/PGASetFitnessType.1
spamassassin/trunk/build/pga/man/man1/PGASetIntegerAllele.1
spamassassin/trunk/build/pga/man/man1/PGASetMaxFitnessRank.1
spamassassin/trunk/build/pga/man/man1/PGASetRealAllele.1
spamassassin/trunk/build/pga/man/man2/
spamassassin/trunk/build/pga/man/man2/PGAGetBinaryInitProb.2
spamassassin/trunk/build/pga/man/man2/PGAGetIntegerInitType.2
spamassassin/trunk/build/pga/man/man2/PGAGetMaxIntegerInitValue.2
spamassassin/trunk/build/pga/man/man2/PGAGetMaxRealInitValue.2
spamassassin/trunk/build/pga/man/man2/PGAGetMinIntegerInitValue.2
spamassassin/trunk/build/pga/man/man2/PGAGetMinRealInitValue.2
spamassassin/trunk/build/pga/man/man2/PGAGetRandomInitFlag.2
spamassassin/trunk/build/pga/man/man2/PGAGetRealInitType.2
spamassassin/trunk/build/pga/man/man2/PGASetBinaryInitProb.2
spamassassin/trunk/build/pga/man/man2/PGASetCharacterInitType.2
spamassassin/trunk/build/pga/man/man2/PGASetIntegerInitPermute.2
spamassassin/trunk/build/pga/man/man2/PGASetIntegerInitRange.2
spamassassin/trunk/build/pga/man/man2/PGASetRandomInitFlag.2
spamassassin/trunk/build/pga/man/man2/PGASetRealInitPercent.2
spamassassin/trunk/build/pga/man/man2/PGASetRealInitRange.2
spamassassin/trunk/build/pga/man/man3/
spamassassin/trunk/build/pga/man/man3/PGACrossover.3
spamassassin/trunk/build/pga/man/man3/PGAGetCrossoverProb.3
spamassassin/trunk/build/pga/man/man3/PGAGetCrossoverType.3
spamassassin/trunk/build/pga/man/man3/PGAGetMutationBoundedFlag.3
spamassassin/trunk/build/pga/man/man3/PGAGetMutationIntegerValue.3
spamassassin/trunk/build/pga/man/man3/PGAGetMutationProb.3
spamassassin/trunk/build/pga/man/man3/PGAGetMutationRealValue.3
spamassassin/trunk/build/pga/man/man3/PGAGetMutationType.3
spamassassin/trunk/build/pga/man/man3/PGAGetPTournamentProb.3
spamassassin/trunk/build/pga/man/man3/PGAGetRestartAlleleChangeProb.3
spamassassin/trunk/build/pga/man/man3/PGAGetRestartFlag.3
spamassassin/trunk/build/pga/man/man3/PGAGetRestartFrequencyValue.3
spamassassin/trunk/build/pga/man/man3/PGAGetSelectType.3
spamassassin/trunk/build/pga/man/man3/PGAGetUniformCrossoverProb.3
spamassassin/trunk/build/pga/man/man3/PGAMutate.3
spamassassin/trunk/build/pga/man/man3/PGARestart.3
spamassassin/trunk/build/pga/man/man3/PGASelect.3
spamassassin/trunk/build/pga/man/man3/PGASelectNextIndex.3
spamassassin/trunk/build/pga/man/man3/PGASetCrossoverProb.3
spamassassin/trunk/build/pga/man/man3/PGASetCrossoverType.3
spamassassin/trunk/build/pga/man/man3/PGASetMutationBoundedFlag.3
spamassassin/trunk/build/pga/man/man3/PGASetMutationIntegerValue.3
spamassassin/trunk/build/pga/man/man3/PGASetMutationProb.3
spamassassin/trunk/build/pga/man/man3/PGASetMutationRealValue.3
spamassassin/trunk/build/pga/man/man3/PGASetPTournamentProb.3
spamassassin/trunk/build/pga/man/man3/PGASetRestartAlleleChangeProb.3
spamassassin/trunk/build/pga/man/man3/PGASetRestartFlag.3
spamassassin/trunk/build/pga/man/man3/PGASetRestartFrequencyValue.3
spamassassin/trunk/build/pga/man/man3/PGASetSelectType.3
spamassassin/trunk/build/pga/man/man3/PGASetUniformCrossoverProb.3
spamassassin/trunk/build/pga/man/man4/
spamassassin/trunk/build/pga/man/man4/PGABuildDatatype.4
spamassassin/trunk/build/pga/man/man4/PGAGetCommunicator.4
spamassassin/trunk/build/pga/man/man4/PGAGetNumProcs.4
spamassassin/trunk/build/pga/man/man4/PGAGetRank.4
spamassassin/trunk/build/pga/man/man4/PGAReceiveIndividual.4
spamassassin/trunk/build/pga/man/man4/PGASendIndividual.4
spamassassin/trunk/build/pga/man/man4/PGASendReceiveIndividual.4
spamassassin/trunk/build/pga/man/man4/PGASetCommunicator.4
spamassassin/trunk/build/pga/man/man5/
spamassassin/trunk/build/pga/man/man5/PGACheckSum.5
spamassassin/trunk/build/pga/man/man5/PGAGetBestIndex.5
spamassassin/trunk/build/pga/man/man5/PGAGetRandomSeed.5
spamassassin/trunk/build/pga/man/man5/PGAGetWorstIndex.5
spamassassin/trunk/build/pga/man/man5/PGAHammingDistance.5
spamassassin/trunk/build/pga/man/man5/PGAMean.5
spamassassin/trunk/build/pga/man/man5/PGARandom01.5
spamassassin/trunk/build/pga/man/man5/PGARandomFlip.5
spamassassin/trunk/build/pga/man/man5/PGARandomGaussian.5
spamassassin/trunk/build/pga/man/man5/PGARandomInterval.5
spamassassin/trunk/build/pga/man/man5/PGARandomUniform.5
spamassassin/trunk/build/pga/man/man5/PGARound.5
spamassassin/trunk/build/pga/man/man5/PGASetRandomSeed.5
spamassassin/trunk/build/pga/man/man5/PGAStddev.5
spamassassin/trunk/build/pga/man/man6/
spamassassin/trunk/build/pga/man/man6/PGAError.6
spamassassin/trunk/build/pga/man/man6/PGAGetMaxMachineDoubleValue.6
spamassassin/trunk/build/pga/man/man6/PGAGetMaxMachineIntValue.6
spamassassin/trunk/build/pga/man/man6/PGAGetMinMachineDoubleValue.6
spamassassin/trunk/build/pga/man/man6/PGAGetMinMachineIntValue.6
spamassassin/trunk/build/pga/man/man7/
spamassassin/trunk/build/pga/man/man7/PGAGetPrintFrequencyValue.7
spamassassin/trunk/build/pga/man/man7/PGAPrintContextVariable.7
spamassassin/trunk/build/pga/man/man7/PGAPrintIndividual.7
spamassassin/trunk/build/pga/man/man7/PGAPrintPopulation.7
spamassassin/trunk/build/pga/man/man7/PGAPrintReport.7
spamassassin/trunk/build/pga/man/man7/PGAPrintString.7
spamassassin/trunk/build/pga/man/man7/PGASetPrintFrequencyValue.7
spamassassin/trunk/build/pga/man/man7/PGASetPrintOptions.7
spamassassin/trunk/build/pga/man/man8/
spamassassin/trunk/build/pga/man/man8/PGAChange.8
spamassassin/trunk/build/pga/man/man8/PGACheckStoppingConditions.8
spamassassin/trunk/build/pga/man/man8/PGACopyIndividual.8
spamassassin/trunk/build/pga/man/man8/PGACreate.8
spamassassin/trunk/build/pga/man/man8/PGADestroy.8
spamassassin/trunk/build/pga/man/man8/PGADone.8
spamassassin/trunk/build/pga/man/man8/PGADuplicate.8
spamassassin/trunk/build/pga/man/man8/PGAGetDataType.8
spamassassin/trunk/build/pga/man/man8/PGAGetGAIterValue.8
spamassassin/trunk/build/pga/man/man8/PGAGetMaxGAIterValue.8
spamassassin/trunk/build/pga/man/man8/PGAGetMutationAndCrossoverFlag.8
spamassassin/trunk/build/pga/man/man8/PGAGetMutationOrCrossoverFlag.8
spamassassin/trunk/build/pga/man/man8/PGAGetNoDuplicatesFlag.8
spamassassin/trunk/build/pga/man/man8/PGAGetNumReplaceValue.8
spamassassin/trunk/build/pga/man/man8/PGAGetOptDirFlag.8
spamassassin/trunk/build/pga/man/man8/PGAGetPopReplaceType.8
spamassassin/trunk/build/pga/man/man8/PGAGetPopSize.8
spamassassin/trunk/build/pga/man/man8/PGAGetSortedPopIndex.8
spamassassin/trunk/build/pga/man/man8/PGAGetStoppingRuleType.8
spamassassin/trunk/build/pga/man/man8/PGAGetStringLength.8
spamassassin/trunk/build/pga/man/man8/PGARun.8
spamassassin/trunk/build/pga/man/man8/PGARunGM.8
spamassassin/trunk/build/pga/man/man8/PGARunMutationAndCrossover.8
spamassassin/trunk/build/pga/man/man8/PGARunMutationOrCrossover.8
spamassassin/trunk/build/pga/man/man8/PGASetMaxGAIterValue.8
spamassassin/trunk/build/pga/man/man8/PGASetMaxNoChangeValue.8
spamassassin/trunk/build/pga/man/man8/PGASetMaxSimilarityValue.8
spamassassin/trunk/build/pga/man/man8/PGASetMutationAndCrossoverFlag.8
spamassassin/trunk/build/pga/man/man8/PGASetMutationOrCrossoverFlag.8
spamassassin/trunk/build/pga/man/man8/PGASetNoDuplicatesFlag.8
spamassassin/trunk/build/pga/man/man8/PGASetNumReplaceValue.8
spamassassin/trunk/build/pga/man/man8/PGASetPopReplaceType.8
spamassassin/trunk/build/pga/man/man8/PGASetPopSize.8
spamassassin/trunk/build/pga/man/man8/PGASetStoppingRuleType.8
spamassassin/trunk/build/pga/man/man8/PGASetUp.8
spamassassin/trunk/build/pga/man/man8/PGASetUserFunction.8
spamassassin/trunk/build/pga/man/man8/PGASortPop.8
spamassassin/trunk/build/pga/man/man8/PGAUpdateGeneration.8
spamassassin/trunk/build/pga/man/mandesc
spamassassin/trunk/build/pga/man/manl/
spamassassin/trunk/build/pga/man/manl/PGAClearDebugLevel.l
spamassassin/trunk/build/pga/man/manl/PGAClearDebugLevelByName.l
spamassassin/trunk/build/pga/man/manl/PGADebugPrint.l
spamassassin/trunk/build/pga/man/manl/PGASetDebugLevel.l
spamassassin/trunk/build/pga/man/manl/PGASetDebugLevelByName.l
spamassassin/trunk/build/pga/source/
spamassassin/trunk/build/pga/source/Makefile
spamassassin/trunk/build/pga/source/Makefile.in
spamassassin/trunk/build/pga/source/binary.c
spamassassin/trunk/build/pga/source/char.c
spamassassin/trunk/build/pga/source/cmdline.c
spamassassin/trunk/build/pga/source/create.c
spamassassin/trunk/build/pga/source/cross.c
spamassassin/trunk/build/pga/source/debug.c
spamassassin/trunk/build/pga/source/duplcate.c
spamassassin/trunk/build/pga/source/evaluate.c
spamassassin/trunk/build/pga/source/f2c.c
spamassassin/trunk/build/pga/source/fitness.c
spamassassin/trunk/build/pga/source/hamming.c
spamassassin/trunk/build/pga/source/heap.c
spamassassin/trunk/build/pga/source/integer.c
spamassassin/trunk/build/pga/source/mpi_stub.c
spamassassin/trunk/build/pga/source/mutation.c
spamassassin/trunk/build/pga/source/parallel.c
spamassassin/trunk/build/pga/source/pga.c
spamassassin/trunk/build/pga/source/pop.c
spamassassin/trunk/build/pga/source/random.c
spamassassin/trunk/build/pga/source/real.c
spamassassin/trunk/build/pga/source/report.c
spamassassin/trunk/build/pga/source/restart.c
spamassassin/trunk/build/pga/source/select.c
spamassassin/trunk/build/pga/source/stop.c
spamassassin/trunk/build/pga/source/system.c
spamassassin/trunk/build/pga/source/user.c
spamassassin/trunk/build/pga/source/utility.c
spamassassin/trunk/build/pga/test/
spamassassin/trunk/build/pga/test/Makefile
spamassassin/trunk/build/pga/test/Makefile.in
spamassassin/trunk/build/pga/test/README
spamassassin/trunk/build/pga/test/instverf (with props)
spamassassin/trunk/build/pga/test/instverf.c
spamassassin/trunk/build/pga/test/instverf.data
spamassassin/trunk/build/pga/test/mpif.h (with props)
spamassassin/trunk/build/pga/test/pgapackf.h (with props)
spamassassin/trunk/build/pga/util/
spamassassin/trunk/build/pga/util/README
spamassassin/trunk/build/pga/util/convertfortran.pl (with props)
spamassassin/trunk/build/pga/util/upgrade_script.pl (with props)
spamassassin/trunk/build/pga/util/wordsizes.c
Added: spamassassin/trunk/build/pga/CHANGES
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/CHANGES?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/CHANGES (added)
+++ spamassassin/trunk/build/pga/CHANGES Sun May 28 18:31:49 2017
@@ -0,0 +1,234 @@
+Changes in Version 1.1
+======================
+
+ 1) New COPYRIGHT -- the Mathematics and Computer Science Division
+ at Argonne National Laboratory has agreed to relicense PGAPACK
+ under the MPICH2 license. The COPYRIGHT file as well as all
+ source files in source/*.c have been updated accordingly.
+
+ 2) man/manl/*.l: Set Section to 3
+
+ 3) source/integer.c: The off-by-one error reported by Robin Farin
+ in http://bugs.debian.org/333381 has been corrected.
+
+ 4) source/report.c: Made two print statements conditional on
+ ctx->rep.PrintFreq > 0 to allow for complete suppression
+
+ 5) source/mpi_stub.c: A different set of #define statements for
+ Fortran name mangling was introduced.
+
+ 6) source/system.c: If PGAPACK was compiled with 'FAKE_MPI' defined
+ for a 'serial' debug version, print 'Sequential' instead of
+ 'Parallel' in the version number statement.
+
+ 7) README: updated, removed two sections referring to now-defunct
+ websites and mailing lists.
+
+Changes in Version 1.0
+======================
+
+ 1) Added support for parallel execution of the global model (single
+ population) using MPI (Message Passing Interface).
+
+ 2) Added support for a restart operator. The best string is used
+ to reinitialize the population.
+
+ 3) Added support for new native data type Character.
+
+ 4) Added support to specify the multiplier of the worst evaluation
+ value when remapping a minimization problem.
+
+ 5) Separated specification of mutation type from rate.
+
+ 6) Added new integer mutation operators.
+
+ 7) Added an option to maintain integer and real allele values within
+ the range specified on initialization after mutation.
+
+ 8) The configure script argument -optimize has been removed and
+ replaced with the -debug switch for compiling a debug version.
+ An optimized version of PGAPack is now built by default.
+
+ 9) The configure script argument -arch AIX has been replaced with
+ -arch rs6000.
+
+ 10) The configure script now accepts the -cflags and -flags switchs to
+ supply supply options to the C and FORTRAN compiler, respectively.
+
+ 11) Changed PGATRUE and PGAFALSE to PGA_TRUE and PGA_FALSE.
+
+ 12) Renamed debug macros to begin with PGA_DEBUG instead of PGADEBUG.
+
+ 13) Renamed report macros to begin with PGA_REPORT (instead of, for
+ example PGA_ONLINE).
+
+ 14) Removed macro PGAERROR from pgapack.h.
+
+ 15) Rewrote PGARandomInterval(ctx, L, U) so that it would not
+ return L-1. It now returns [L, U].
+
+ 16) PGADone, PGAUpdateGenertaion and PGAEvaluate all take an MPI
+ communicator as the last argument. See PGARunGM in parallel.c
+ for details on how to rewrite a user run routine.
+
+ 17) Removed "Time" from the output.
+
+ 18) Shortened the names of the source files as follows:
+
+ character.c char.c
+ crossover.c cross.c
+ duplicate.c duplcate.c
+ f2c_interface.c f2c.c
+
+ 19) Shortened the name of the examples files as follows:
+
+ maxbit_custom.c maxbitc.c
+ maxbit_menu.c maxbitm.c
+ maxint_custom.c maxbitc.c
+ rastrigin.c rstrgnb.c
+ real_rastrigin.c rstrgnr.c
+ udt_struct.c udtstr.c
+ udt_struct_array.c udtastr.c
+
+ 20) Replaced the function names on the left with the function
+ names on the right. The Perl script ./util/upgrade_script.pl
+ may be of use in automating part of the renaming process on
+ exisiting files.
+
+ PGABinaryBuildIndividualDatatype()
+ -> PGABinaryBuildDatatype()
+ PGABinaryRandomize() -> PGABinaryInitString()
+ PGABinaryWrite() -> PGABinaryPrint()
+ PGABinaryWriteString() -> PGABinaryPrintString()
+ PGABuildIndividualDatatype() -> PGABuildDatatype()
+ PGACharacterBuildIndividualDatatype()
+ -> PGACharacterBuildDatatype()
+ PGACharacterRandomize() -> PGACharacterInitString()
+ PGACharacterWriteString() -> PGACharacterPrintString()
+ PGAFitnessLinNor() -> PGAFitnessLinearNormal()
+ PGAFitnessLinRank() -> PGAFitnessLinearRank()
+ PGAFitnessMinRecprl() -> PGAFitnessMinReciprocal()
+ PGAGetEvalUpToDate() -> PGAGetEvaluationUpToDateFlag()
+ PGAGetEvaluate() -> PGAGetEvaluation()
+ PGAGetFitnessRankMax() -> PGAGetMaxFitnessRank()
+ PGAGetBest() -> PGAGetBestIndex()
+ PGAGetWorst() -> PGAGetWorstIndex()
+ PGAGetInitIntegerMax() -> PGAGetMaxIntegerInitValue()
+ PGAGetInitIntegerMin() -> PGAGetMinIntegerInitValue()
+ PGAGetInitRealMax() -> PGAGetMaxRealInitValue()
+ PGAGetInitRealMin() -> PGAGetMinRealInitValue()
+ PGAGetIntegerType() -> PGAGetIntegerInitType()
+ PGAGetIter() -> PGAGetGAIterValue()
+ PGAGetMaxDouble() -> PGAGetMaxMachineDoubleValue()
+ PGAGetMaxInt() -> PGAGetMaxMachineIntValue()
+ PGAGetMaxIter() -> PGAGetMaxGAIterValue()
+ PGAGetMinDouble() -> PGAGetMinMachineDoubleValue()
+ PGAGetMinInt() -> PGAGetMinMachineIntValue()
+ PGAGetMutateIntegerVal() -> PGAGetMutationIntegerValue()
+ PGAGetMutateOnlyNoCross() -> PGAGetMutationAndCrossoverFlag()
+ -> PGAGetMutationOrCrossoverFlag()
+ PGAGetMutateRealVal() -> PGAGetMutationRealValue()
+ PGAGetNoDuplicates() -> PGAGetNoDuplicatesFlag()
+ PGAGetNprocs() -> PGAGetNumProcs()
+ PGAGetNumReplace() -> PGAGetNumReplaceValue()
+ PGAGetOptDir() -> PGAGetOptDirFlag()
+ PGAGetPID() -> PGAGetRank()
+ PGAGetPopReplace() -> PGAGetPopReplaceType()
+ PGAGetPrintFreq() -> PGAGetPrintFrequency()
+ PGAGetRandomInit() -> PGAGetRandomInitFlag()
+ PGAGetRestart() -> PGAGetRestartFlag()
+ PGAGetRestartFrequency() -> PGAGetRestartFrequencyValue()
+ PGAGetSortPop() -> PGAGetSortedPopIndex()
+ PGAGetStoppingRule() -> PGAGetStoppingRuleType()
+ PGAGetStringLen() -> PGAGetStringLength()
+ PGAGetUniformCrossProb() -> PGAGetUniformCrossoverProb()
+ PGAIntegerBuildIndividualDatatype()
+ -> PGAIntegerBuildDatatype()
+ PGAIntegerRandomize() -> PGAIntegerInitString()
+ PGAIntegerWriteString() -> PGAIntegerPrintString()
+ PGAParallelDone() -> PGADoneMS()
+ PGAParallelEvaluateMS() -> PGAEvaluateMS()
+ PGAPrintContext() -> PGAPrintContextVariable()
+ PGAPrintVersion() -> PGAPrintVersionNumber()
+ PGARealBuildIndividualDatatype()-> PGARealBuildDatatype()
+ PGARealRandomize() -> PGARealInitString()
+ PGARealWriteString() -> PGARealPrintString()
+ PGARunMutateAndCross() -> PGARunMutationAndCrossover()
+ PGARunMutateOrCross() -> PGARunMutationOrCrossover()
+ PGASelectNext() -> PGASelectNextIndex()
+ PGASetCharacterInit() -> PGASetCharacterInitType()
+ PGASetEvaluate() -> PGASetEvaluation()
+ PGASetEvalUpToDate() -> PGASetEvaluationUpToDateFlag()
+ PGASetFitnessRankMax() -> PGASetMaxFitnessRank()
+ PGASetIntegerInitLU() -> PGASetIntegerInitRange()
+ PGASetMaxIter() -> PGASetMaxGAIterValue()
+ PGASetMaxNoChange() -> PGASetMaxNoChangeValue()
+ PGASetMaxSimilarity() -> PGASetMaxSimilarityValue()
+ PGASetMutateOnlyNoCross() -> PGASetMutationOrCrossoverFlag()
+ -> PGASetMutationAndCrossoverFlag()
+ PGASetMutationIntegerVal() -> PGASetMutationIntegerValue()
+ PGASetMutationRealVal() -> PGASetMutationRealValue()
+ PGASetNoDuplicates() -> PGASetNoDuplicatesFlag()
+ PGASetNumReplace() -> PGASetNumReplaceValue()
+ PGASetPopReplacement() -> PGASetPopReplacementType()
+ PGASetPrintFreq() -> PGASetPrintFrequencyValue()
+ PGASetRandomInit() -> PGASetRandomInitFlag()
+ PGASetRealInitLU() -> PGASetRealInitRange()
+ PGASetRestart() -> PGASetRestartFlag()
+ PGASetRestartFrequency() -> PGASetRestartFrequencyValue()
+ PGASetStoppingRule() -> PGASetStoppingRuleType()
+ PGASetSupportingDebugFlags() -> PGASetDebugFlag()
+ PGASetUniformCrossProb() -> PGASetUniformCrossoverProb()
+ PGAWriteString() -> PGAPrintString()
+
+
+Changes in Version 0.2b
+=======================
+
+ 1) In PGABinaryTwoPointCrossover, add<ed a test before left-shifting.
+ The right operand of a shift must be strictly less than the number
+ of bits in the left operand, otherwise the result is undefined.
+
+ 2) In udt_char.c, changed the data type to signed char since whether
+ char is signed is implementation dependent.
+
+ 3) In real_rastrigin, made upper and lower to be dynamic arrays rather
+ than static arrays to allow variable string length.
+
+
+Changes in Version 0.2a
+=======================
+
+ 1) Created pgapack-0.2.a.tar.Z to replace pgapack-0.2.tar.Z
+ when we found the IRIX's do not have a ranlib (unless it
+ is in /usr/local.
+
+ 2) Deleted a space from ./examples/c/Makefile.in
+
+ 3) Added the -w flag to FFLAGS for the freebsd version to
+ suppress warnings.
+
+
+Changes in Version 0.2
+======================
+
+ 1) In PGASetUp, we changed the default value for the number of
+ individuals to replace each generation from 10 to 10% of the
+ population size.
+
+ 2) Took all the parallel stuff out.
+
+ 3) Defined PGAPrintReport and put various PGAPrint functions in
+ the new file system.c
+
+ 5) Changed EvalUpToDate to all lower case.
+
+ 6) Changed PGARunMutateOnlyNoCross to take PGA_OLDPOP and PGA_NEWPOP
+ as arguments
+
+ 7) Changed the low-level ops functions to take p,pop as arguments
+ instead of a void pointer
+
+ 8) Changed PGAMutate to a 3-argument function. It just mutates,
+ but does not copy the string to its final location. Use
+ PGACopyIndividual for that.
Added: spamassassin/trunk/build/pga/COPYRIGHT
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/COPYRIGHT?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/COPYRIGHT (added)
+++ spamassassin/trunk/build/pga/COPYRIGHT Sun May 28 18:31:49 2017
@@ -0,0 +1,36 @@
+COPYRIGHT
+
+The following is a notice of limited availability of the code, and disclaimer
+which must be included in the prologue of the code and in all source listings
+of the code.
+
+(C) COPYRIGHT 2008 University of Chicago
+
+Permission is hereby granted to use, reproduce, prepare derivative works, and
+to redistribute to others. This software was authored by:
+
+D. Levine
+Mathematics and Computer Science Division
+Argonne National Laboratory Group
+
+with programming assistance of participants in Argonne National
+Laboratory's SERS program.
+
+GOVERNMENT LICENSE
+
+Portions of this material resulted from work developed under a
+U.S. Government Contract and are subject to the following license: the
+Government is granted for itself and others acting on its behalf a paid-up,
+nonexclusive, irrevocable worldwide license in this computer software to
+reproduce, prepare derivative works, and perform publicly and display
+publicly.
+
+DISCLAIMER
+
+This computer code material was prepared, in part, as an account of work
+sponsored by an agency of the United States Government. Neither the United
+States, nor the University of Chicago, nor any of their employees, makes any
+warranty express or implied, or assumes any legal liability or responsibility
+for the accuracy, completeness, or usefulness of any information, apparatus,
+product, or process disclosed, or represents that its use would not infringe
+privately owned rights.
Added: spamassassin/trunk/build/pga/Makefile
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/Makefile?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/Makefile (added)
+++ spamassassin/trunk/build/pga/Makefile Sun May 28 18:31:49 2017
@@ -0,0 +1,47 @@
+# Generated automatically from Makefile.in by configure.
+RM = /bin/rm -f
+SHELL = /bin/sh
+
+default:
+ @echo "Choices are:"
+ @echo "make install (install the PGAPack distribution)"
+ @echo "make clean (return to the state just after configure was run)"
+ @echo "make spotless (keep ONLY *.a and include files)"
+
+install:
+ @echo "Installing PGAPack . . ."
+ @cd source ; make
+ @echo "Installing Examples . . ."
+ @cd examples ; make
+ @echo "Installing Test program . . ."
+ @cd test ; make
+ @echo "Install successful."
+ @echo " Please \"cd test\" and run the \"instverf\" program"
+ @echo " to verify the correctness of your installation."
+
+clean:
+ @echo "Removing superfluous files . . ."
+ @$(RM) lib/*/*.o
+ @cd examples ; make clean
+ @cd test ; make clean
+
+spotless:
+ @echo "WARNING: Removing docs, man, examples, and source directories"
+ @echo " in 5 seconds!!"
+ @sleep 1
+ @echo " .. 4 .."
+ @sleep 1
+ @echo " .. 3 .."
+ @sleep 1
+ @echo " .. 2 .."
+ @sleep 1
+ @echo " .. 1 .."
+ @sleep 1
+ @echo " .. 0 .."
+ @echo " .. Removing everything except libraries and includes!!"
+ @sleep 1
+ @$(RM) -rf docs examples man source test util lib/*/*.o
+
+distribution:
+ @/home/pgapack/util/make_distribution
+
Added: spamassassin/trunk/build/pga/Makefile.in
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/Makefile.in?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/Makefile.in (added)
+++ spamassassin/trunk/build/pga/Makefile.in Sun May 28 18:31:49 2017
@@ -0,0 +1,46 @@
+RM = @RM@
+SHELL = @SHELL@
+
+default:
+ @echo "Choices are:"
+ @echo "make install (install the PGAPack distribution)"
+ @echo "make clean (return to the state just after configure was run)"
+ @echo "make spotless (keep ONLY *.a and include files)"
+
+install:
+ @echo "Installing PGAPack . . ."
+ @cd source ; make
+ @echo "Installing Examples . . ."
+ @cd examples ; make
+ @echo "Installing Test program . . ."
+ @cd test ; make
+ @echo "Install successful."
+ @echo " Please \"cd test\" and run the \"instverf\" program"
+ @echo " to verify the correctness of your installation."
+
+clean:
+ @echo "Removing superfluous files . . ."
+ @$(RM) lib/*/*.o
+ @cd examples ; make clean
+ @cd test ; make clean
+
+spotless:
+ @echo "WARNING: Removing docs, man, examples, and source directories"
+ @echo " in 5 seconds!!"
+ @sleep 1
+ @echo " .. 4 .."
+ @sleep 1
+ @echo " .. 3 .."
+ @sleep 1
+ @echo " .. 2 .."
+ @sleep 1
+ @echo " .. 1 .."
+ @sleep 1
+ @echo " .. 0 .."
+ @echo " .. Removing everything except libraries and includes!!"
+ @sleep 1
+ @$(RM) -rf docs examples man source test util lib/*/*.o
+
+distribution:
+ @/home/pgapack/util/make_distribution
+
Added: spamassassin/trunk/build/pga/README
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/README?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/README (added)
+++ spamassassin/trunk/build/pga/README Sun May 28 18:31:49 2017
@@ -0,0 +1,219 @@
+
+[ Updated March 2008:
+ -- the original README, minus two references to the now
+ obsolete website and mailing lists, follows below
+ -- PGAPack has also been built successfully against LAM/MPI
+ and Open MPI. ]
+
+
+This is the top-level README for PGAPack V1.0
+
+Copyright
+=========
+See the file COPYRIGHT for Copyright and disclaimer information.
+
+Introduction
+============
+PGAPack is a general-purpose, data-structure-neutral, parallel genetic
+algorithm library developed at Argonne National Laboratory.
+Key features are:
+
+* Callable from Fortran or C.
+* Runs on uniprocessors, parallel computers, and workstation networks.
+* Binary-, integer-, real-, and character-valued native data types.
+* Object-oriented data structure neutral design.
+* Parameterized population replacement.
+* Multiple choices for selection, crossover, and mutation operators.
+* Easy integration of hill-climbing heuristics.
+* Easy-to-use interface for novice and application users.
+* Fully extensible to support custom operators and new data types.
+* Extensive debugging facilities.
+* A large set of example problems.
+
+
+Availability
+============
+PGAPack is freely available. The complete distribution is available
+by anonymous ftp from from ftp.mcs.anl.gov in the file
+pub/pgapack/pgapack.tar.Z. The distribution contains all source code,
+installation instructions, users guide, and a collection of examples in C and
+Fortran.
+
+
+Computational Environment
+=========================
+PGAPack is written in ANSI C and uses the MPI message passing interface
+and should run on most uniprocessors, parallel computers, and workstation
+networks. PGAPack has been tested on the workstations and parallel computers
+specified by the ARCH_TYPE variable below.
+
+
+Documentation
+=============
+* The PGAPack users guide is in ./docs/user_guide.ps.
+* Man pages for PGAPack functions are in the ./man directory.
+* Installation instructions are in this README file and the users guide.
+* Example problems are in the ./examples directory.
+
+
+Installation Requirements
+=========================
+To compile you must have an ANSI C compiler that includes a full
+implementation of the Standard C library and related header files. To build a
+*parallel* version of PGAPack you must provide an implementation of MPI
+(Message Passing Interface) for the parallel computer or workstation network
+you are running on.
+
+Most of our testing and development was done using MPICH, a freely available
+implementation of MPI. MPICH runs on many parallel computers and
+workstation networks and is publicly available and free. The complete
+distribution is available by anonymous ftp from ftp.mcs.anl.gov. Take the
+file mpich.tar.Z from the directory pub/mpi. Additional information about
+MPICH is avaliable on the World Wide Web at http://www.mcs.anl.gov/mpi.
+
+Installation Instructions
+=========================
+When installing PGAPack you make two choices: whether to build a sequential
+(the default) or parallel version, and whether to build a debug or optimized
+(the default) version. In broad outline, the
+installation steps are as follows.
+
+1. Make a directory to install PGAPack in (mkdir /usr/local/pga).
+2. Change directories to the directory created in the last step
+ (cd /usr/local/pga).
+3. Obtain the compressed tar file pgapack.tar.Z by anonymous ftp in
+ ftp.mcs.anl.gov from the directory pub/pgapack.
+4. Uncompress the tar file (uncompress pgapack.tar.Z).
+5. Untar the uncompressed tar file (tar xvf ./pgapack.tar).
+6. Run configure to configure the makefiles (configure -arch ARCH_TYPE)
+ where ARCH_TYPE is one of
+
+ sun4 for Sun SparcStations workstations,
+ next for NeXT workstations,
+ rs600 for IBM RS6000 workstations,
+ irix for Silicon Graphics workstations,
+ hpux for Hewlett Packard workstations,
+ alpha for DEC Alpha workstations,
+ linux for machines running Linux,
+ freebsd for machines running FreeBSD,
+ generic for generic 32-bit machines,
+ powerchallenge for the Silicon Graphics Power Challenge Array,
+ challenge for the Silicon Graphics Challenge,
+ t3d for the Cray T3D,
+ sp2 for the IBM SP2,
+ paragon for the Intel Paragon, or
+ exemplar for the Convex Exemplar.
+
+ The full configure options are configure -arch ARCH_TYPE [-cc CC]
+ [-cflags CFLAGS] [-f77 FC] [-fflags FFLAGS] [-debug]
+ [-mpiinc MPI_INCLUDE_DIRECTORY] [-mpilib MPI_LIBRARY] [-help]
+
+ where all parameters except -arch are optional and do the following:
+
+ [-cc]: The name of the ANSI C compiler, cc by default.
+ [-cflags]: Options passed to the C compiler.
+ [-f77]: The name of the Fortran 77 compiler, f77 by default.
+ (The Fortran compiler is used only to compile the Fortran
+ examples in the [./examples/] directory.)
+ [-fflags]: Options passed to the Fortran compiler.
+ [-debug]: If specified, enables the debugging features
+ and compiles the source code with the -g flag.
+ [-mpiinc]: The *directory* where MPI include files are located.
+ [-mpilib]: The *full path* to the MPI library.
+
+ If the [-mpilib] and [-mpiinc] options are specified, a parallel version
+ of PGAPack will be built. If these flags are not specified a sequential
+ version of PGAPack will be built.
+
+7. Execute the makefile (make install).
+8. Add PGAPack's man pages to your man page path.
+ (setenv MANPATH "$MANPATH"":/home/pgapack/man")
+9. Execute a simple test problem
+
+ Sequential version
+ ------------------
+ C: /usr/local/pga/examples/c/maxbit
+ Fortran: /usr/local/pga/examples/fortran/maxbit
+
+ Parallel version
+ ------------------
+ C: mpirun -np 4 /usr/local/pga/examples/c/maxbit
+ Fortran: mpirun -np 4 /usr/local/pga/examples/fortran/maxbit
+
+ If a parallel version of PGAPack was used, the actual commands to execute
+ a parallel program depend on the particular MPI implementation and
+ parallel computer. If the MPICH implementation was used the "mpirun"
+ command can be used to execute a parallel program on most systems.
+
+
+Example Installation
+====================
+Assuming you have the compressed tar file, pgapack.tar.Z, containing the
+distribution in /home/username. To build a sequential version of PGAPack
+containing debug features for a Sun SparcStation in /usr/local/pga and run a
+test example, type:
+
+ uncompress /home/username/pgapack.tar.Z
+ mkdir /usr/local/pga
+ cd /usr/local/pga
+ tar xvf /home/username/pgapack.tar
+ configure -arch sun4 -debug
+ make install
+ /usr/local/pga/examples/c/maxbit
+
+To build a parallel version of PGAPack for an IBM SP parallel computer using
+an MPI implementation with include files in /usr/local/mpi/include and library
+in /usr/local/mpi/lib, and run a test example, type:
+
+ uncompress /home/username/pgapack.tar.Z
+ mkdir /usr/local/pga
+ cd /usr/local/pga
+ tar xvf /home/username/pgapack.tar
+ configure -arch rs6000 -mpiinc /usr/local/mpi/include \
+ -mpilib /usr/local/mpi/lib/libmpi.a
+ make install
+ mpirun -np 4 /usr/local/pga/examples/c/maxbit
+
+
+PGAPack on PCs
+===================
+PGAPack has not been ported to MS-DOS, Windows 3.1, Windows 95, or Apple OS.
+As mentioned earlier, however, PGAPack is written in ANSI standard C and
+should compile in these environments. Be aware, however, that PGAPack's
+random number generator, PGARandom01, assumes certain machine characteristics
+for ints and floats that may not correspond with what your PC and/or compiler
+support, resulting in erroneous values.
+
+
+Structure of the Distribution Directory
+=======================================
+CHANGES: Changes new to this release of PGAPack.
+COPYRIGHT: Copyright and disclaimer information.
+README: This file.
+configure.in: The ``source code'' for the configure script.
+configure: Unix shell script to configure Makefile.in for a specific
+ architecture.
+Makefile.in: Prototype that is configured into ``Makefile'' by configure.
+docs: Directory containing documentation.
+examples: A directory containing C and Fortran examples.
+include: The PGAPack include directory.
+lib: The directory the library will be installed in.
+man: The directory containing the PGAPack man pages.
+source: The source code for the PGAPack system.
+test: A directory containing programs to verify the installation.
+
+
+Contributions
+=============
+PGAPack was written to be extensible in two ways: adding new operators that
+work with existing data types, and defining new data types. Enhancements of
+either type that you wish to share are welcome for possible inclusion in
+future versions of PGAPack.
+
+
+Acknowledgment
+==============
+Users of PGAPack are asked to acknowledge its use in any document referencing
+work based on the program, such as published research. Also, please supply
+to us a copy of any published research referencing work based on the software.
+
Added: spamassassin/trunk/build/pga/config.status
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/config.status?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/config.status (added)
+++ spamassassin/trunk/build/pga/config.status Sun May 28 18:31:49 2017
@@ -0,0 +1,112 @@
+#!/bin/sh
+# Generated automatically by configure.
+# Run this file to recreate the current configuration.
+# This directory was configured as follows,
+# on host spamassassin-vm.apache.org:
+#
+# ./configure -arch linux
+
+for arg
+do
+ case "$arg" in
+ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
+ echo running ${CONFIG_SHELL-/bin/sh} ./configure -arch linux
+ exec ${CONFIG_SHELL-/bin/sh} ./configure -arch linux ;;
+ *) echo "Usage: config.status --recheck" 2>&1; exit 1 ;;
+ esac
+done
+
+trap 'rm -f Makefile source/Makefile test/Makefile test/Makefile examples/Makefile examples/c/Makefile examples/fortran/Makefile examples/mgh/Makefile; exit 1' 1 3 15
+RANLIB='ranlib'
+CC='cc'
+FC='f77'
+CFLAGS='-O '
+FFLAGS='-w'
+CPPFLAGS='-I/usr/local/pga/include -Dlinux -DWL=32 -DFORTRANUNDERSCORE -DOPTIMIZE -DFAKE_MPI '
+FORTWRAP='$(PGA_LIB_DIR)/f2c.o: f2c.c $(HEADERS)\
+ $(COMPILE.c) f2c.c'
+HEADERS='/usr/local/pga/include/pgapack.h'
+LDFLAGS='-s -L/usr/local/pga/lib/linux -lpgaO -lm'
+PARALLEL='0'
+PGA_LIB_DIR='../lib/linux'
+PGA_LIB='pgaO'
+OBJS='$(PGA_LIB_DIR)/binary.o \\\
+ $(PGA_LIB_DIR)/char.o \\\
+ $(PGA_LIB_DIR)/cmdline.o \\\
+ $(PGA_LIB_DIR)/create.o \\\
+ $(PGA_LIB_DIR)/cross.o \\\
+ $(PGA_LIB_DIR)/debug.o \\\
+ $(PGA_LIB_DIR)/duplcate.o \\\
+ $(PGA_LIB_DIR)/evaluate.o \\\
+ $(PGA_LIB_DIR)/fitness.o \\\
+ $(PGA_LIB_DIR)/hamming.o \\\
+ $(PGA_LIB_DIR)/heap.o \\\
+ $(PGA_LIB_DIR)/integer.o \\\
+ $(PGA_LIB_DIR)/mutation.o \\\
+ $(PGA_LIB_DIR)/parallel.o \\\
+ $(PGA_LIB_DIR)/pga.o \\\
+ $(PGA_LIB_DIR)/pop.o \\\
+ $(PGA_LIB_DIR)/random.o \\\
+ $(PGA_LIB_DIR)/real.o \\\
+ $(PGA_LIB_DIR)/report.o \\\
+ $(PGA_LIB_DIR)/restart.o \\\
+ $(PGA_LIB_DIR)/select.o \\\
+ $(PGA_LIB_DIR)/stop.o \\\
+ $(PGA_LIB_DIR)/system.o \\\
+ $(PGA_LIB_DIR)/user.o \\\
+ $(PGA_LIB_DIR)/utility.o $(PGA_LIB_DIR)/f2c.o $(PGA_LIB_DIR)/mpi_stub.o'
+MPICOMP='$(PGA_LIB_DIR)/mpi_stub.o: mpi_stub.c $(HEADERS)\
+ $(COMPILE.c) mpi_stub.c'
+RM='/bin/rm -f'
+SHELL='/bin/sh'
+LIBS='-lpgaO -lm'
+srcdir='.'
+DEFS=''
+prefix=''
+exec_prefix=''
+prsub=''
+extrasub=''
+
+top_srcdir=$srcdir
+
+CONFIG_FILES=${CONFIG_FILES-"Makefile source/Makefile test/Makefile test/Makefile \
+ examples/Makefile examples/c/Makefile examples/fortran/Makefile \
+ examples/mgh/Makefile"}
+for file in .. ${CONFIG_FILES}; do if test "x$file" != x..; then
+ srcdir=$top_srcdir
+ # Remove last slash and all that follows it. Not all systems have dirname.
+ dir=`echo $file|sed 's%/[^/][^/]*$%%'`
+ if test "$dir" != "$file"; then
+ test "$top_srcdir" != . && srcdir=$top_srcdir/$dir
+ test ! -d $dir && mkdir $dir
+ fi
+ echo creating $file
+ rm -f $file
+ echo "# Generated automatically from `echo $file|sed 's|.*/||'`.in by configure." > $file
+ sed -e "
+$prsub
+$extrasub
+s%@RANLIB@%$RANLIB%g
+s%@CC@%$CC%g
+s%@FC@%$FC%g
+s%@CFLAGS@%$CFLAGS%g
+s%@FFLAGS@%$FFLAGS%g
+s%@CPPFLAGS@%$CPPFLAGS%g
+s%@FORTWRAP@%$FORTWRAP%g
+s%@HEADERS@%$HEADERS%g
+s%@LDFLAGS@%$LDFLAGS%g
+s%@PARALLEL@%$PARALLEL%g
+s%@PGA_LIB_DIR@%$PGA_LIB_DIR%g
+s%@PGA_LIB@%$PGA_LIB%g
+s%@OBJS@%$OBJS%g
+s%@MPICOMP@%$MPICOMP%g
+s%@RM@%$RM%g
+s%@SHELL@%$SHELL%g
+s%@LIBS@%$LIBS%g
+s%@srcdir@%$srcdir%g
+s%@DEFS@%$DEFS%
+" $top_srcdir/${file}.in >> $file
+fi; done
+
+
+exit 0
Propchange: spamassassin/trunk/build/pga/config.status
------------------------------------------------------------------------------
svn:executable = *
Added: spamassassin/trunk/build/pga/configure
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/pga/configure?rev=1796518&view=auto
==============================================================================
--- spamassassin/trunk/build/pga/configure (added)
+++ spamassassin/trunk/build/pga/configure Sun May 28 18:31:49 2017
@@ -0,0 +1,823 @@
+#!/bin/sh
+# This file is configure.
+#
+# Make all changes to configure.in, if at all possible. After changing,
+# run "autoconf". If autoconf is not installed, then make changes to
+# configure.
+#
+# Documentation on the autoconf program exists in GNU info file format.
+# To read this, run emacs and type C-h i. Then press the down arrow
+# until you come to the line beginning "* Autoconf:". Pressing enter on
+# this line will bring up the documentaition.
+#
+# Type "configure" (i.e., no arguments) or read below for usage information.
+#
+print_error() {
+ echo "$*" 2>&1 ;
+}
+
+print_usage()
+{
+cat <<.
+Usage: configure -arch ARCH_TYPE -cc CC -f77 FC -debug -help
+ -cflags CFLAGS -fflags FFLAGS
+ -mpiinc MPI_INC_DIR -mpilib MPI_LIB
+where
+ ARCH_TYPE = the type of machine that PGAPack is to be configured for
+ CC = the name of the ANSI C compiler
+ FC = the name of the FORTRAN 77 compiler
+ CFLAGS = C compiler flags
+ FFLAGS = FORTRAN compiler flags
+ MPI_INC_DIR = the MPI include directory
+ MPI_LIB = the full path to the MPI library
+
+
+Known architectures are:
+
+Workstations
+ sun4 (SUN OS 4.x)
+ hpux (HP UX)
+ irix (Silicon Graphics IRIX)
+ alpha (DEC Alpha)
+ rs6000 (AIX for IBM RS6000)
+ next (NeXT 680x0)
+ freebsd (PC clones running FreeBSD)
+ linux (PC clones running LINUX)
+ generic (Generic 32-bit UNIX-like machine)
+
+MPP's
+ powerchallenge (Silicon Graphics PowerChallenge)
+ challenge (Silicon Graphics Challenge)
+ t3d (Cray-T3D)
+ sp2 (IBM SP2)
+ paragon (Intel Paragon)
+ exemplar (Convex Exemplar)
+
+
+In the absence of the -f77 or -cc options, configure assumes the name of
+a FORTRAN 77 or ANSI C compiler based on the architecture type.
+
+If the -debug flag is set, then PGAPack will be built for debugging. This
+enables the extensive debugging options and datatype checks.
+
+If both -mpiinc and -mpilib are missing, PGAPack is built using a non-parallel
+"stub" library for all MPI calls.
+
+The -help flag causes this usage guide to be printed.
+
+Example 1:
+----------
+Configure and build for parallel operation on the sun4 architectue. MPI is
+in /usr/local/mpi; the MPI library is /usr/local/mpi/lib/sun4/ch_p4/libmpi.a.
+
+ configure -arch sun4 -mpilib /usr/local/mpi/lib/sun4/ch_p4/libmpi.a \
+ -mpiinc /usr/local/mpi/include
+ make install
+
+Example 2:
+----------
+Configure and build a debug sequential library on the rs6000 architecture.
+
+ configure -arch rs6000 -debug
+ make install
+.
+}
+
+###############################################################################
+# This section initializes the variables that will be used throughout
+# the script.
+###############################################################################
+#!/bin/sh
+# Guess values for system-dependent variables and create Makefiles.
+# Generated automatically using autoconf.
+# Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+# Usage: configure [--srcdir=DIR] [--host=HOST] [--gas] [--nfp]
+# [--prefix=PREFIX] [--exec-prefix=PREFIX] [--with-PACKAGE[=VALUE]]
+# Ignores all args except --srcdir, --prefix, --exec-prefix, and
+# --with-PACKAGE[=VALUE] unless this script has special code to handle it.
+
+for arg
+do
+ # Handle --exec-prefix with a space before the argument.
+ if test x$next_exec_prefix = xyes; then exec_prefix=$arg; next_exec_prefix=
+ # Handle --host with a space before the argument.
+ elif test x$next_host = xyes; then next_host=
+ # Handle --prefix with a space before the argument.
+ elif test x$next_prefix = xyes; then prefix=$arg; next_prefix=
+ # Handle --srcdir with a space before the argument.
+ elif test x$next_srcdir = xyes; then srcdir=$arg; next_srcdir=
+ else
+ case $arg in
+ # For backward compatibility, recognize -exec-prefix and --exec_prefix.
+ -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* | --exec=* | --exe=* | --ex=* | --e=*)
+ exec_prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
+ -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- | --exec | --exe | --ex | --e)
+ next_exec_prefix=yes ;;
+
+ -gas | --gas | --ga | --g) ;;
+
+ -host=* | --host=* | --hos=* | --ho=* | --h=*) ;;
+ -host | --host | --hos | --ho | --h)
+ next_host=yes ;;
+
+ -nfp | --nfp | --nf) ;;
+
+ -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
+ prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
+ -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
+ next_prefix=yes ;;
+
+ -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=* | --s=*)
+ srcdir=`echo $arg | sed 's/[-a-z_]*=//'` ;;
+ -srcdir | --srcdir | --srcdi | --srcd | --src | --sr | --s)
+ next_srcdir=yes ;;
+
+ -with-* | --with-*)
+ package=`echo $arg|sed -e 's/-*with-//' -e 's/=.*//'`
+ # Reject names that aren't valid shell variable names.
+ if test -n "`echo $package| sed 's/[-a-zA-Z0-9_]//g'`"; then
+ echo "configure: $package: invalid package name" >&2; exit 1
+ fi
+ package=`echo $package| sed 's/-/_/g'`
+ case "$arg" in
+ *=*) val="`echo $arg|sed 's/[^=]*=//'`" ;;
+ *) val=1 ;;
+ esac
+ eval "with_$package='$val'" ;;
+
+ -v | -verbose | --verbose | --verbos | --verbo | --verb | --ver | --ve | --v)
+ verbose=yes ;;
+
+ *) ;;
+ esac
+ fi
+done
+
+trap 'rm -fr conftest* confdefs* core; exit 1' 1 3 15
+trap 'rm -f confdefs*' 0
+
+# NLS nuisances.
+# These must not be set unconditionally because not all systems understand
+# e.g. LANG=C (notably SCO).
+if test "${LC_ALL+set}" = 'set' ; then LC_ALL=C; export LC_ALL; fi
+if test "${LANG+set}" = 'set' ; then LANG=C; export LANG; fi
+
+rm -f conftest* confdefs.h
+# AIX cpp loses on an empty file, so make sure it contains at least a newline.
+echo > confdefs.h
+compile='${CC-cc} $CFLAGS conftest.c -o conftest $LIBS >/dev/null 2>&1'
+
+# A filename unique to this package, relative to the directory that
+# configure is in, which we can look for to find out if srcdir is correct.
+unique_file=source/pga.c
+
+# Find the source files, if location was not specified.
+if test -z "$srcdir"; then
+ srcdirdefaulted=yes
+ # Try the directory containing this script, then `..'.
+ prog=$0
+ confdir=`echo $prog|sed 's%/[^/][^/]*$%%'`
+ test "X$confdir" = "X$prog" && confdir=.
+ srcdir=$confdir
+ if test ! -r $srcdir/$unique_file; then
+ srcdir=..
+ fi
+fi
+if test ! -r $srcdir/$unique_file; then
+ if test x$srcdirdefaulted = xyes; then
+ echo "configure: Can not find sources in \`${confdir}' or \`..'." 1>&2
+ else
+ echo "configure: Can not find sources in \`${srcdir}'." 1>&2
+ fi
+ exit 1
+fi
+# Preserve a srcdir of `.' to avoid automounter screwups with pwd.
+# But we can't avoid them for `..', to make subdirectories work.
+case $srcdir in
+ .|/*|~*) ;;
+ *) srcdir=`cd $srcdir; pwd` ;; # Make relative path absolute.
+esac
+
+
+# Save the original args to write them into config.status later.
+configure_args="$*"
+
+ARCH="" # architecture type
+PARALLEL=0 # parallel libray, or use stub routines?
+OPTIMIZE=1 # optimized?
+CPPFLAGS="" # flags to send to the C preprocessor
+LDFLAGS="" # link flags
+CFLAGS="" # flags to send to the C compiler
+FFLAGS="" # flags to send to the FORTRAN compiler
+PGA_DIR="`pwd`" # the root of the pgapack tree
+PGA_DIR=`echo $PGA_DIR | sed "s=tmp_mnt/=="` # get rid of 'tmp_mnt/'
+HEADERS="$PGA_DIR/include/pgapack.h" # headers upon which pgapack depends
+INCLUDES="-I$PGA_DIR/include" # directories where to search for include files
+LIB_DIRS="" # directories where to search for libraries
+LIBS="" # libraries with which to link
+MPI_INC_DIR=""
+MPI_LIB=""
+SHELL="/usr/bin/sh"
+RM="/bin/rm -f" # command to force removal of files
+
+OBJS='$(PGA_LIB_DIR)/binary.o \\\
+ $(PGA_LIB_DIR)/char.o \\\
+ $(PGA_LIB_DIR)/cmdline.o \\\
+ $(PGA_LIB_DIR)/create.o \\\
+ $(PGA_LIB_DIR)/cross.o \\\
+ $(PGA_LIB_DIR)/debug.o \\\
+ $(PGA_LIB_DIR)/duplcate.o \\\
+ $(PGA_LIB_DIR)/evaluate.o \\\
+ $(PGA_LIB_DIR)/fitness.o \\\
+ $(PGA_LIB_DIR)/hamming.o \\\
+ $(PGA_LIB_DIR)/heap.o \\\
+ $(PGA_LIB_DIR)/integer.o \\\
+ $(PGA_LIB_DIR)/mutation.o \\\
+ $(PGA_LIB_DIR)/parallel.o \\\
+ $(PGA_LIB_DIR)/pga.o \\\
+ $(PGA_LIB_DIR)/pop.o \\\
+ $(PGA_LIB_DIR)/random.o \\\
+ $(PGA_LIB_DIR)/real.o \\\
+ $(PGA_LIB_DIR)/report.o \\\
+ $(PGA_LIB_DIR)/restart.o \\\
+ $(PGA_LIB_DIR)/select.o \\\
+ $(PGA_LIB_DIR)/stop.o \\\
+ $(PGA_LIB_DIR)/system.o \\\
+ $(PGA_LIB_DIR)/user.o \\\
+ $(PGA_LIB_DIR)/utility.o' # these are pgapack's object files
+
+###############################################################################
+# This section parse the command line options. There a two types of options:
+# those that take arguments and those that don't. Parsing the case where an
+# option takes an argument is a little tricky. This is how it works. Suppose
+# that the program comes upon "-cc". Then we know that the next argument
+# will be the name of the C compiler. Hence, we set the flag next_cc to be
+# equal to "yes". The next time through the loop, it will be the case that
+# x$next_cc equal "xyes" because $next_cc expands to "yes". Thus, we know that
+# this argument is the name of the compiler and we assign it to USR_CC. Then
+# we set next_cc back to a null string. This way on the next time through
+# the loop x$next_cc will equal just "x". Since the shell initializes
+# variables to null strings, we do not have to initialize the "next_" family
+# of variables by hand.
+###############################################################################
+for arg
+do
+ if test x$next_arch = xyes
+ then
+ ARCH=$arg
+ next_arch=
+ elif test x$next_mpiinc = xyes
+ then
+ MPI_INC_DIR=$arg
+ next_mpiinc=
+ elif test x$next_mpilib = xyes
+ then
+ MPI_LIB=$arg
+ next_mpilib=
+ elif test x$next_f77 = xyes
+ then
+ USR_FC=$arg
+ next_f77=
+ elif test x$next_cc = xyes
+ then
+ USR_CC=$arg
+ next_cc=
+ elif test x$next_cflags = xyes
+ then
+ CFLAGS="$arg $CFLAGS"
+ next_cflags=
+ elif test x$next_fflags = xyes
+ then
+ FFLAGS="$arg $FFLAGS"
+ next_fflags=
+ else
+ case $arg in
+ -arch)
+ next_arch=yes
+ ;;
+ -f77)
+ next_f77=yes
+ ;;
+ -cc)
+ next_cc=yes
+ ;;
+ -mpiinc)
+ next_mpiinc=yes
+ PARALLEL=1
+ ;;
+ -mpilib)
+ next_mpilib=yes
+ PARALLEL=1
+ ;;
+ -debug)
+ OPTIMIZE=0
+ ;;
+ -cflags)
+ next_cflags=yes
+ ;;
+ -fflags)
+ next_fflags=yes
+ ;;
+ -help)
+ print_usage >& 2
+ exit 1
+ ;;
+ *)
+ ;;
+ esac
+ fi
+done
+
+if test "$MPI_LIB" -a "$MPI_INC_DIR" ; then
+ if test ! -d "$MPI_INC_DIR" ; then
+ print_error "MPI_INC_DIR == $MPI_INC_DIR is not a valid directory!"
+ exit 1
+ fi
+ if test ! -f "$MPI_INC_DIR/mpi.h" ; then
+ print_error "Couldn't find $MPI_INC_DIR/mpi.h!"
+ exit 1
+ fi
+
+ if test ! -f "$MPI_LIB" ; then
+ print_error "MPI_LIB == $MPI_LIB is not a file!"
+ exit 1
+ fi
+
+ PARALLEL=1
+else
+ PARALLEL=0
+ CPPFLAGS="-DFAKE_MPI $CPPFLAGS"
+fi
+
+if test $OPTIMIZE -eq 1 ; then
+ CPPFLAGS="-DOPTIMIZE $CPPFLAGS"
+ CFLAGS="-O $CFLAGS"
+ FFLAGS="-O $FFLAGS"
+ PGA_LIB="pgaO"
+else
+ CFLAGS="-g $CFLAGS"
+ FFLAGS="-g $FFLAGS"
+ PGA_LIB="pgag"
+fi
+
+
+###############################################################################
+# This section sets the default values of certain variables based upon the
+# architecture type specified. If no architecture was specified, the script
+# issues an error and aborts.
+###############################################################################
+if test -z "$ARCH"
+ then
+ print_error "You must specify the architecture with -arch <value>"
+ print_error "Valid architectures are the following:"
+ print_error " Workstations MPP's"
+ print_error " sun4 powerchallenge"
+ print_error " next challenge"
+ print_error " rs6000 t3d"
+ print_error " freebsd sp2"
+ print_error " irix paragon"
+ print_error " linux exemplar"
+ print_error " hpux"
+ print_error " alpha"
+ print_error " generic"
+ print_error ""
+ print_error "For more information type configure -help."
+ exit 1
+fi
+
+case $ARCH in
+ sun4)
+ CC=cc
+ FC=f77
+ CPPFLAGS="-DWL=32 -DFORTRANUNDERSCORE $CPPFLAGS"
+ ;;
+ next)
+ CC=cc
+ FC=
+ CPPFLAGS="-DWL=32 -DFORTRANUNDERSCORE $CPPFLAGS"
+ ;;
+ rs6000)
+ CC=cc
+ FC=f77
+ CPPFLAGS="-DWL=32 $CPPFLAGS"
+ ;;
+ freebsd)
+ CC=cc
+ FC=f77
+ FFLAGS="-w"
+ CPPFLAGS="-DWL=32 -DFORTRANUNDERSCORE $CPPFLAGS"
+ ;;
+ irix)
+ CC=cc
+ FC=f77
+ CPPFLAGS="-DWL=32 -DFORTRANUNDERSCORE $CPPFLAGS"
+ ;;
+ alpha)
+ CC=cc
+ FC=f77
+ CPPFLAGS="-DWL=64 -DFORTRANUNDERSCORE $CPPFLAGS"
+ ;;
+ hpux)
+ CC=cc
+ FC=f77
+ CPPFLAGS="-DWL=32 $CPPFLAGS"
+ SHELL=/bin/sh
+ ;;
+ linux)
+ SHELL="/bin/sh"
+ CC=cc
+ FC=f77
+ FFLAGS="-w"
+ LDFLAGS="-s $LDFLAGS"
+ CPPFLAGS="-DWL=32 -DFORTRANUNDERSCORE $CPPFLAGS"
+ ;;
+ t3d)
+ CC=/mpp/bin/cc
+ FC=/mpp/bin/cf77
+ CFLAGS="-T cray-t3d"
+ FFLAGS="-C cray-t3d -dp"
+ CPPFLAGS="-DWL=64 -DFORTRANCAP $CPPFLAGS"
+ SHELL=/bin/sh
+ ;;
+ powerchallenge)
+ CC=cc
+ FC=f77
+ CFLAGS="-mips4 -fullwarn -64"
+ CPPFLAGS="-DWL=64 -DFORTRANUNDERSCORE $CPPFLAGS"
+ ;;
+ challenge)
+ CC=cc
+ FC=f77
+ CFLAGS="-mips2 -fullwarn -32"
+ CPPFLAGS="-DWL=32 -DFORTRANUNDERSCORE $CPPFLAGS"
+ ;;
+ paragon)
+ CC=cc
+ FC=f77
+ CFLAGS="-nx $CFLAGS"
+ FFLAGS="-nx $FFLAGS"
+ CPPFLAGS="-DWL=32 -DFORTRANUNDERSCORE $CPPFLAGS"
+ ;;
+ sp2)
+ CC=cc
+ FC=f77
+ CPPFLAGS="-DWL=32 $CPPFLAGS"
+ ;;
+ exemplar)
+ CC=cc
+ FC=fort77
+ FFLAGS="-L/usr/lib -lU77 $FFLAGS"
+ CPPFLAGS="-DWL=32 $CPPFLAGS"
+ SHELL=/bin/sh
+ ;;
+ *)
+ CC=cc
+ FC=f77
+ CPPFLAGS="-DWL=32 $CPPFLAGS"
+ print_error "WARNING: Configuring for untested architecture. Using"
+ print_error " word size of 32 bits, cc and f77 as compilers."
+ print_error " You might have trouble with Fortran programs"
+ print_error " not linking correctly. Check the manual on"
+ print_error " the FORTRANUNDERSCORE #define."
+ ;;
+esac
+
+###############################################################################
+# This section sets the variables that do not relate to parallel code.
+###############################################################################
+CPPFLAGS="-D$ARCH $CPPFLAGS"
+PGA_LIB_DIR="../lib/$ARCH"
+LIB_DIRS="-L$PGA_DIR/lib/$ARCH $LIB_DIRS"
+LIBS="-l$PGA_LIB $LIBS"
+
+# Set output variable `RANLIB' to `ranlib' if `ranlib' is found,
+# otherwise to `:' (do nothing).
+if test -z "$RANLIB"; then
+ # Extract the first word of `ranlib', so it can be a program name with args.
+ set dummy ranlib; word=$2
+ echo checking for $word
+ IFS="${IFS= }"; saveifs="$IFS"; IFS="${IFS}:"
+ for dir in $PATH; do
+ test -z "$dir" && dir=.
+ if test -f $dir/$word; then
+ RANLIB="ranlib"
+ break
+ fi
+ done
+ IFS="$saveifs"
+fi
+test -z "$RANLIB" && RANLIB=":"
+test -n "$RANLIB" && test -n "$verbose" && echo " setting RANLIB to $RANLIB"
+
+
+# "Determine a C compiler to use. If `CC' is not already set in the
+# environment, check for `gcc', and use `cc' if it's not found. Set
+# output variable `CC' to the name of the compiler found.
+#
+# "If using the GNU C compiler, set shell variable `GCC' to `yes',
+# empty otherwise. If output variable `CFLAGS' was not already set,
+# set it to `-g -O' for the GNU C compiler (`-O' on systems where
+# GCC does not accept `-g'), or `-g' for other compilers."
+if test -n "$USR_CC"
+ then
+ CC=$USR_CC
+ else
+ if test -z "$CC"; then
+ # Extract the first word of `gcc', so it can be a program name with args.
+ set dummy gcc; word=$2
+ echo checking for $word
+ IFS="${IFS= }"; saveifs="$IFS"; IFS="${IFS}:"
+ for dir in $PATH; do
+ test -z "$dir" && dir=.
+ if test -f $dir/$word; then
+ CC="gcc"
+ break
+ fi
+ done
+ IFS="$saveifs"
+fi
+test -z "$CC" && CC="cc"
+test -n "$CC" && test -n "$verbose" && echo " setting CC to $CC"
+
+# Find out if we are using GNU C, under whatever name.
+cat > conftest.c <<EOF
+#ifdef __GNUC__
+ yes
+#endif
+EOF
+${CC-cc} -E conftest.c > conftest.out 2>&1
+if egrep yes conftest.out >/dev/null 2>&1; then
+ GCC=1 # For later tests.
+fi
+rm -f conftest*
+
+fi
+
+# Check for each program in the whitespace-separated list
+# PROGS-TO-CHECK-FOR exists in `PATH'. If it is found, set VARIABLE
+# to the name of that program. Otherwise, continue checking the
+# next program in the list. If none of the programs in the list are
+# found, set VARIABLE to VALUE-IF-NOT-FOUND; if VALUE-IF-NOT-FOUND
+# is not specified, the value of VARIABLE is not changed.
+if test -n "$USR_FC"
+ then
+ FC=$USR_FC
+ else
+ for p in f77 fortran xlf gf77 mpxlf if77
+do
+if test -z "$FC"; then
+ # Extract the first word of `$p', so it can be a program name with args.
+ set dummy $p; word=$2
+ echo checking for $word
+ IFS="${IFS= }"; saveifs="$IFS"; IFS="${IFS}:"
+ for dir in $PATH; do
+ test -z "$dir" && dir=.
+ if test -f $dir/$word; then
+ FC="$p"
+ break
+ fi
+ done
+ IFS="$saveifs"
+fi
+
+test -n "$FC" && test -n "$verbose" && echo " setting FC to $FC"
+
+test -n "$FC" && break
+done
+
+fi
+
+# Originally had
+# OBJS="$OBJS $(PGA_LIB_DIR)/f2c.o"
+# However, freebsd bourne shell equates $(var) and `var`. Hence, I had
+# to break the assignment up into two parts. $FORTWRAP is a Makefile
+# dependency line defining how to compile f2c.c
+if test -n "$FC"
+ then
+ TEMP='$(PGA_LIB_DIR)/f2c.o'
+ OBJS="$OBJS $TEMP"
+ FORTWRAP='$(PGA_LIB_DIR)/f2c.o: f2c.c $(HEADERS)\
+ $(COMPILE.c) f2c.c'
+fi
+
+if test ! -d lib
+ then
+ mkdir lib
+fi
+
+if test ! -d lib/$ARCH
+ then
+ mkdir lib/$ARCH
+fi
+
+# Set up symlinks for pgapackf.h to any directories with Fortran source
+rm -f ./examples/fortran/pgapackf.h ./examples/mgh/pgapackf.h ./test/pgapackf.h
+ln -s ../../include/pgapackf.h ./examples/fortran/pgapackf.h
+ln -s ../../include/pgapackf.h ./examples/mgh/pgapackf.h
+ln -s ../include/pgapackf.h ./test/pgapackf.h
+
+# Use the stub library.
+if test $PARALLEL -eq 0
+ then
+ rm -f ./include/mpi.h ./include/mpif.h ./examples/fortran/mpif.h ./examples/mgh/mpif.h ./test/mpif.h
+ ln -s fakempi_h include/mpi.h
+ ln -s fakempif_h include/mpif.h
+ ln -s ../../include/mpif.h ./examples/fortran/mpif.h
+ ln -s ../../include/mpif.h ./examples/mgh/mpif.h
+ ln -s ../include/mpif.h ./test/mpif.h
+ TEMP='$(PGA_LIB_DIR)/mpi_stub.o'
+ OBJS="$OBJS $TEMP"
+ MPICOMP='$(PGA_LIB_DIR)/mpi_stub.o: mpi_stub.c $(HEADERS)\
+ $(COMPILE.c) mpi_stub.c'
+# The tab above is IMPORTANT! Needed for make!
+else
+ rm -f ./include/mpi.h ./include/mpif.h ./examples/fortran/mpif.h ./examples/mgh/mpif.h ./test/mpif.h
+ ln -s $MPI_INC_DIR/mpif.h ./examples/fortran/mpif.h
+ ln -s $MPI_INC_DIR/mpif.h ./examples/mgh/mpif.h
+ ln -s $MPI_INC_DIR/mpif.h ./test/mpif.h
+ LIBS="$LIBS $MPI_LIB"
+ INCLUDES="$INCLUDES -I$MPI_INC_DIR"
+fi
+
+LIBS="$LIBS -lm"
+CPPFLAGS="$INCLUDES $CPPFLAGS"
+LDFLAGS="$LDFLAGS $LIB_DIRS $LIBS"
+###############################################################################
+# This section exports the variables that have previously been set.
+# Configure creates the Makefiles listed on the last line from the
+# Makefile.in in each directory. It does this by substituting the value
+# of $VAR for every occurent of @VAR@ in the Makefile.in. For
+# example, if the characters @CC@ occur any place in a Makefile.in, they
+# will be replaced with the value that $CC has when ac_subst(CC) is
+# called.
+###############################################################################
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# Set default prefixes.
+if test -n "$prefix"; then
+ test -z "$exec_prefix" && exec_prefix='${prefix}'
+ prsub="s%^prefix\\([ ]*\\)=\\([ ]*\\).*$%prefix\\1=\\2$prefix%"
+fi
+if test -n "$exec_prefix"; then
+ prsub="$prsub
+s%^exec_prefix\\([ ]*\\)=\\([ ]*\\).*$%exec_prefix\\1=\\2$exec_prefix%"
+fi
+# Quote sed substitution magic chars in DEFS.
+cat >conftest.def <<EOF
+$DEFS
+EOF
+escape_ampersand_and_backslash='s%[&\\]%\\&%g'
+DEFS=`sed "$escape_ampersand_and_backslash" <conftest.def`
+rm -f conftest.def
+# Substitute for predefined variables.
+
+trap 'rm -f config.status; exit 1' 1 3 15
+echo creating config.status
+rm -f config.status
+cat > config.status <<EOF
+#!/bin/sh
+# Generated automatically by configure.
+# Run this file to recreate the current configuration.
+# This directory was configured as follows,
+# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
+#
+# $0 $configure_args
+
+for arg
+do
+ case "\$arg" in
+ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
+ echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args
+ exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args ;;
+ *) echo "Usage: config.status --recheck" 2>&1; exit 1 ;;
+ esac
+done
+
+trap 'rm -f Makefile source/Makefile test/Makefile test/Makefile \
+ examples/Makefile examples/c/Makefile examples/fortran/Makefile \
+ examples/mgh/Makefile; exit 1' 1 3 15
+RANLIB='$RANLIB'
+CC='$CC'
+FC='$FC'
+CFLAGS='$CFLAGS'
+FFLAGS='$FFLAGS'
+CPPFLAGS='$CPPFLAGS'
+FORTWRAP='$FORTWRAP'
+HEADERS='$HEADERS'
+LDFLAGS='$LDFLAGS'
+PARALLEL='$PARALLEL'
+PGA_LIB_DIR='$PGA_LIB_DIR'
+PGA_LIB='$PGA_LIB'
+OBJS='$OBJS'
+MPICOMP='$MPICOMP'
+RM='$RM'
+SHELL='$SHELL'
+LIBS='$LIBS'
+srcdir='$srcdir'
+DEFS='$DEFS'
+prefix='$prefix'
+exec_prefix='$exec_prefix'
+prsub='$prsub'
+extrasub='$extrasub'
+EOF
+cat >> config.status <<\EOF
+
+top_srcdir=$srcdir
+
+CONFIG_FILES=${CONFIG_FILES-"Makefile source/Makefile test/Makefile test/Makefile \
+ examples/Makefile examples/c/Makefile examples/fortran/Makefile \
+ examples/mgh/Makefile"}
+for file in .. ${CONFIG_FILES}; do if test "x$file" != x..; then
+ srcdir=$top_srcdir
+ # Remove last slash and all that follows it. Not all systems have dirname.
+ dir=`echo $file|sed 's%/[^/][^/]*$%%'`
+ if test "$dir" != "$file"; then
+ test "$top_srcdir" != . && srcdir=$top_srcdir/$dir
+ test ! -d $dir && mkdir $dir
+ fi
+ echo creating $file
+ rm -f $file
+ echo "# Generated automatically from `echo $file|sed 's|.*/||'`.in by configure." > $file
+ sed -e "
+$prsub
+$extrasub
+s%@RANLIB@%$RANLIB%g
+s%@CC@%$CC%g
+s%@FC@%$FC%g
+s%@CFLAGS@%$CFLAGS%g
+s%@FFLAGS@%$FFLAGS%g
+s%@CPPFLAGS@%$CPPFLAGS%g
+s%@FORTWRAP@%$FORTWRAP%g
+s%@HEADERS@%$HEADERS%g
+s%@LDFLAGS@%$LDFLAGS%g
+s%@PARALLEL@%$PARALLEL%g
+s%@PGA_LIB_DIR@%$PGA_LIB_DIR%g
+s%@PGA_LIB@%$PGA_LIB%g
+s%@OBJS@%$OBJS%g
+s%@MPICOMP@%$MPICOMP%g
+s%@RM@%$RM%g
+s%@SHELL@%$SHELL%g
+s%@LIBS@%$LIBS%g
+s%@srcdir@%$srcdir%g
+s%@DEFS@%$DEFS%
+" $top_srcdir/${file}.in >> $file
+fi; done
+
+
+exit 0
+EOF
+chmod +x config.status
+${CONFIG_SHELL-/bin/sh} config.status
+
+
+if test ! -f ".pgapack" ; then
+ if test $PARALLEL -eq 1 ; then
+ OPERATION="parallel"
+ ECHO_LIBS="$MPI_LIB"
+ else
+ OPERATION="sequential"
+ ECHO_LIBS="stub routines in mpi_stub.c"
+ fi
+ if test $OPTIMIZE -eq 1 ; then
+ OPERATION="optimized $OPERATION"
+ else
+ OPERATION="debug $OPERATION"
+ fi
+ echo " "
+ echo "PGAPack has been configured for $OPERATION operation on"
+ echo "the $ARCH architecture, using $ECHO_LIBS."
+ echo " "
+ echo "Type \"make install\" to install PGAPack."
+ echo " "
+fi
+
+
Propchange: spamassassin/trunk/build/pga/configure
------------------------------------------------------------------------------
svn:executable = *