From owner-freebsd-fortran@freebsd.org Mon Aug 6 15:46:49 2018 Return-Path: Delivered-To: freebsd-fortran@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 08DA3105C89A for ; Mon, 6 Aug 2018 15:46:49 +0000 (UTC) (envelope-from as@cmplx.uk) Received: from jail0199.vps.exonetric.net (jail0199.vps.exonetric.net [IPv6:2a02:1658:1::199:1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "jail0199.vps.exonetric.net", Issuer "jail0199.vps.exonetric.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 768F57CDA5 for ; Mon, 6 Aug 2018 15:46:45 +0000 (UTC) (envelope-from as@cmplx.uk) Received: from jail0199.vps.exonetric.net (jail0199.vps.exonetric.net [178.250.76.108]) by jail0199.vps.exonetric.net (8.15.2/8.15.2) with ESMTPS id w76FkgjA065838 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Mon, 6 Aug 2018 15:46:42 GMT (envelope-from as@jail0199.vps.exonetric.net) Received: (from as@localhost) by jail0199.vps.exonetric.net (8.15.2/8.15.2/Submit) id w76FkgbJ065837 for freebsd-fortran@freebsd.org; Mon, 6 Aug 2018 15:46:42 GMT (envelope-from as) Date: Mon, 6 Aug 2018 15:46:42 GMT From: Anton Shterenlikht Message-Id: <201808061546.w76FkgbJ065837@jail0199.vps.exonetric.net> To: freebsd-fortran@freebsd.org Subject: autotools & Fortran X-BeenThere: freebsd-fortran@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Fortran on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Aug 2018 15:46:49 -0000 Hello I've several questions on using autotools in Fortran projects. Perhaps somebody can answer here or point to existing examples. 1. I have something like this right now: use, intrinsic :: iso_fortran_env integer, parameter :: fk = real32 What I want is to set fk to "real32", "real64" or "real128" via autotools, so that I can build with 3 different real kinds via a command line option. Ideally I want to avoid preprocessing. Is this feasible? Thanks Anton