我正在尝试通过使用.configure脚本更容易安装,将神秘的科学F77程序更新到现代世界。然而,事实证明这比宣传的更难。我正在拖拽和尖叫进入21世纪的程序需要SuperMongo绘图库,我正在试图弄清楚如何让Automake为必要的SuperMongo库找到正确的路径(libplotsub.a,libdevices.a和libutils.a)我没有让你善良的灵魂看看代码的内容,而是创建了一个骨架github存储库(https://github.com/Acetylene5/autoconf_testing)。
主程序是test.f,并调用junk.f文件。这两个文件都包含Stuff.com公共块。文件junk.f调用两个函数:一个(dcopy)来自LAPACK库,另一个(drawcurs)来自SuperMongo程序。我这样做的原因是因为我在石器时代快速推出的这个程序使用了这两个库。
我在interwebs上发现了一个LAPACK宏(ax_lapack.m4),它似乎在我的系统上找到了LAPACK库。我试图将此.m4文件复制到ax_supermongo.m4,并更改必需的名称和目录。但是,我不是M4专家,所以我不知道这是不是我想要的。我不认为是,因为如果你查看./configure的输出,它似乎找不到sm_graphics文件(ax_supermongo.m4使用的令牌supermongo例程到SM库的位置):< / p>
deen@aida44170:~/Code/FORTRAN/testing/autoconf/master> autoreconf -i
deen@aida44170:~/Code/FORTRAN/testing/autoconf/master> ./configure
configure: loading site script /usr/share/site/x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether the Fortran 77 compiler works... yes
checking for Fortran 77 compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU Fortran 77 compiler... no
checking whether /usr/local2/misc/iraf/iraf/unix/hlib/f77.sh accepts -g... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... none
checking for sgemm_... no
checking for ATL_xerbla in -latlas... no
checking for sgemm_ in -lblas... yes
checking for dgemm_ in -ldgemm... no
checking for sgemm_ in -lmkl... no
checking for sgemm_... (cached) no
checking for sgemm_ in -lcxml... no
checking for sgemm_ in -ldxml... no
checking for sgemm_ in -lscs... no
checking for sgemm_ in -lcomplib.sgimath... no
checking for sgemm_ in -lblas... (cached) yes
checking for sgemm_ in -lessl... no
checking for sgemm_ in -lblas... (cached) yes
checking build system type... x86_64-suse-linux-gnu
checking host system type... x86_64-suse-linux-gnu
checking how to get verbose linking output from /usr/local2/misc/iraf/iraf/unix/hlib/f77.sh... configure: WARNING: cannot determine how to obtain linking information from /usr/local2/misc/iraf/iraf/unix/hlib/f77.sh
checking for Fortran 77 libraries of /usr/local2/misc/iraf/iraf/unix/hlib/f77.sh...
checking for dummy main to link with Fortran 77 libraries... none
checking for Fortran 77 name-mangling scheme... lower case, underscore, extra underscore
checking for cheev_... no
checking for cheev_ in -llapack... yes
checking for sm_graphics__... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: executing depfiles commands
在我的系统上,Supermongo库位于:/ usr / local / misc / sm / sm2_4_36 / lib /
有关如何让autoconf查看此目录,或者可能使用命令行变量在此处传递目录的任何建议?
如果您需要更多信息,请与我们联系。
凯西
答案 0 :(得分:0)
autoconf
不会尝试为您找到这些库,但它会生成configure
脚本。如果您希望configure
脚本在/usr/local/misc/sm/sm2_4_36/lib/
中查找,您使用的机制将取决于您的系统,但是为LDFLAGS=-L/usr/local/misc/sm/sm2_4_36/lib/
形式的配置脚本提供参数是很常见的。 。您可能还需要向-I
添加类似的CPPFLAGS
子句以查找头文件。