[Previo por Fecha] [Siguiente por Fecha] [Previo por Hilo] [Siguiente por Hilo]

[Hilos de Discusión] [Fecha] [Tema] [Autor]

[Sop.Tec.LinuxPPP] OT Duda con macro de autoconf...



 Que tal Lista,

 Intento hacer un paquete muy simple (algunos escritos
programas estan en C, pero la mayoria en Fortran), y
estoy utilizando autotools
(autoconf-automake-libtool). Creo haber captado bien
el funcionamiento gral. del autoconf, sin embargo,
tengo un problema con el script configure.ac que
procesa autoconf para crear configure, porque quiero
que las pruebas de compilacion y de las bibliotecas
las haga para Fortran y no para C (funcionamiento
default).

 Cualquier ayuda, de antemano gracias :)

Marcela 

-----
# Archivo autoconf para producir el script configure.
AC_INIT(neurobarco, 0.1, alegria071 en yahoo com mx)
AM_INIT_AUTOMAKE

AC_CONFIG_SRCDIR([source/c_unix_stubs.c])
AM_CONFIG_HEADER(config.h)

# Comprobacion de programas (compiladores C y
Fortran).
AC_PROG_CC
AC_PROG_F77(ifc ifcbin pgf77 g77 f77)

# Comprobacion de bibliotecas.
_AC_LANG([Fortran])
AC_CHECK_LIB(mpi, MPI_Init, ,[AC_MSG_ERROR([***  Could
not find MPI library  ***])])

AC_F77_LIBRARY_LDFLAGS

# This macro tries to find out how to compile programs
that use MPI (Message Passing Interface),
# a standard API for parallel process communication
(see http://www-unix.mcs.anl.gov/mpi/)
# On success, it sets the MPICC, MPICXX, or MPIF77
output variable to the name of the MPI compiler,
# depending upon the current language. (This may just
be $CC/$CXX/$F77, but is more often something
# like mpicc/mpiCC/mpif77.) It also sets MPILIBS to
any libraries that are needed for linking MPI
# (e.g. -lmpi, if a special MPICC/MPICXX/MPIF77 was
not found).
ACX_MPI( )

# Comprobando archivos cabecera.
AC_CHECK_HEADERS([sys/param.h sys/time.h])

# Comprobando typedefs, structures, y caracteristicas
del  compilador.
AC_HEADER_TIME

# Comprobando funciones de biblioteca.
AC_CHECK_FUNCS([gettimeofday])

AC_CONFIG_FILES([Makefile ./source/Makefile])
AC_OUTPUT

_________________________________________________________
Do You Yahoo!?
La mejor conexión a internet y 25MB extra a tu correo por $100 al mes. http://net.yahoo.com.mx
-- 
Lista de soporte de LinuxPPP
Dirección email: Linux en linuxppp com
Dirección web: http://mail.linuxppp.com/mailman/listinfo/linux
Reglas de la lista: http://linuxppp.net/reglas.html



[Hilos de Discusión] [Fecha] [Tema] [Autor]