Autoconf Creating Automatic Configuration Scripts for Version 2.64, 26 July 2009

Total Page:16

File Type:pdf, Size:1020Kb

Autoconf Creating Automatic Configuration Scripts for Version 2.64, 26 July 2009 Autoconf Creating Automatic Configuration Scripts for version 2.64, 26 July 2009 David MacKenzie Ben Elliston Akim Demaille This manual (26 July 2009) is for GNU Autoconf (version 2.64), a package for creating scripts to configure source code packages using templates and an M4 macro package. Copyright c 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, with the Front-Cover texts being “A GNU Manual,” and with the Back-Cover Texts as in (a) below. A copy of the license is included in the section entitled “GNU Free Documentation License.” (a) The FSF’s Back-Cover Text is: “You have the freedom to copy and modify this GNU manual. Buying copies from the FSF supports it in developing GNU and promoting software freedom.” i Table of Contents 1 Introduction..................................... 1 2 The GNU Build System ........................ 3 2.1 Automake...................................................... 3 2.2 Gnulib ......................................................... 3 2.3 Libtool......................................................... 4 2.4 Pointers........................................................ 4 3 Making configure Scripts ...................... 5 3.1 Writing ‘configure.ac’ ........................................ 6 3.1.1 A Shell Script Compiler ................................... 6 3.1.2 The Autoconf Language ................................... 7 3.1.3 Standard ‘configure.ac’ Layout .......................... 8 3.2 Using autoscan to Create ‘configure.ac’ ...................... 9 3.3 Using ifnames to List Conditionals............................ 10 3.4 Using autoconf to Create configure ......................... 10 3.5 Using autoreconf to Update configure Scripts ............... 13 4 Initialization and Output Files ............... 17 4.1 Initializing configure......................................... 17 4.2 Dealing with Autoconf versions................................ 18 4.3 Notices in configure ......................................... 18 4.4 Finding configure Input ..................................... 19 4.5 Outputting Files .............................................. 20 4.6 Performing Configuration Actions ............................. 20 4.7 Creating Configuration Files .................................. 22 4.8 Substitutions in Makefiles ..................................... 23 4.8.1 Preset Output Variables .................................. 23 4.8.2 Installation Directory Variables........................... 26 4.8.3 Changed Directory Variables ............................. 30 4.8.4 Build Directories ......................................... 31 4.8.5 Automatic Remaking..................................... 31 4.9 Configuration Header Files .................................... 32 4.9.1 Configuration Header Templates.......................... 33 4.9.2 Using autoheader to Create ‘config.h.in’............... 34 4.9.3 Autoheader Macros ...................................... 36 4.10 Running Arbitrary Configuration Commands ................. 36 4.11 Creating Configuration Links................................. 37 4.12 Configuring Other Packages in Subdirectories................. 38 4.13 Default Prefix................................................ 38 ii Autoconf 5 Existing Tests.................................. 41 5.1 Common Behavior ............................................ 41 5.1.1 Standard Symbols ........................................ 41 5.1.2 Default Includes.......................................... 41 5.2 Alternative Programs ......................................... 43 5.2.1 Particular Program Checks ............................... 43 5.2.2 Generic Program and File Checks ........................ 46 5.3 Files .......................................................... 48 5.4 Library Files .................................................. 49 5.5 Library Functions ............................................. 50 5.5.1 Portability of C Functions ................................ 50 5.5.2 Particular Function Checks ............................... 53 5.5.3 Generic Function Checks ................................. 59 5.6 Header Files .................................................. 61 5.6.1 Portability of Headers .................................... 61 5.6.2 Particular Header Checks................................. 63 5.6.3 Generic Header Checks ................................... 68 5.7 Declarations .................................................. 69 5.7.1 Particular Declaration Checks ............................ 69 5.7.2 Generic Declaration Checks .............................. 69 5.8 Structures .................................................... 71 5.8.1 Particular Structure Checks .............................. 71 5.8.2 Generic Structure Checks................................. 71 5.9 Types......................................................... 72 5.9.1 Particular Type Checks .................................. 72 5.9.2 Generic Type Checks ..................................... 74 5.10 Compilers and Preprocessors ................................. 75 5.10.1 Specific Compiler Characteristics ........................ 75 5.10.2 Generic Compiler Characteristics ........................ 76 5.10.3 C Compiler Characteristics .............................. 77 5.10.4 C++ Compiler Characteristics .......................... 83 5.10.5 Objective C Compiler Characteristics.................... 83 5.10.6 Erlang Compiler and Interpreter Characteristics ......... 84 5.10.7 Fortran Compiler Characteristics ........................ 84 5.11 System Services .............................................. 89 5.12 Posix Variants ............................................... 90 5.13 Erlang Libraries ............................................. 91 6 Writing Tests .................................. 95 6.1 Language Choice .............................................. 95 6.2 Writing Test Programs ........................................ 96 6.2.1 Guidelines for Test Programs ............................. 97 6.2.2 Test Functions ........................................... 97 6.2.3 Generating Sources....................................... 98 6.3 Running the Preprocessor .................................... 100 6.4 Running the Compiler ....................................... 101 6.5 Running the Linker .......................................... 102 6.6 Checking Runtime Behavior .................................. 102 iii 6.7 Systemology ................................................. 104 6.8 Multiple Cases ............................................... 105 7 Results of Tests .............................. 107 7.1 Defining C Preprocessor Symbols............................. 107 7.2 Setting Output Variables..................................... 108 7.3 Special Characters in Output Variables....................... 110 7.4 Caching Results.............................................. 111 7.4.1 Cache Variable Names .................................. 112 7.4.2 Cache Files ............................................. 113 7.4.3 Cache Checkpointing .................................... 113 7.5 Printing Messages............................................ 114 8 Programming in M4 ......................... 117 8.1 M4 Quotation ............................................... 117 8.1.1 Active Characters ....................................... 117 8.1.2 One Macro Call ......................................... 118 8.1.3 Quoting and Parameters ................................ 119 8.1.4 Quotation and Nested Macros ........................... 120 8.1.5 changequote is Evil..................................... 121 8.1.6 Quadrigraphs ........................................... 122 8.1.7 Dealing with unbalanced parentheses .................... 123 8.1.8 Quotation Rule Of Thumb .............................. 125 8.2 Using autom4te.............................................. 126 8.2.1 Invoking autom4te ...................................... 126 8.2.2 Customizing autom4te .................................. 130 8.3 Programming in M4sugar .................................... 131 8.3.1 Redefined M4 Macros ................................... 131 8.3.2 Diagnostic messages from M4sugar ...................... 134 8.3.3 Diversion support ....................................... 135 8.3.4 Conditional constructs .................................. 137 8.3.5 Looping constructs ...................................... 140 8.3.6 Evaluation Macros ...................................... 144 8.3.7 String manipulation in M4 .............................. 148 8.3.8 Arithmetic computation in M4 .......................... 151 8.3.9 Set manipulation in M4 ................................. 153 8.3.10 Forbidden Patterns .................................... 157 8.4 Debugging via autom4te ..................................... 157 9 Programming in M4sh ....................... 159 9.1 Common Shell Constructs.................................... 159 9.2 Support for indirect variable names .......................... 161 9.3 Initialization Macros ......................................... 164 9.4 File Descriptor Macros ....................................... 165 iv Autoconf 10 Writing Autoconf Macros .................. 167 10.1 Macro Definitions ..........................................
Recommended publications
  • Source Code Trees in the VALLEY of THE
    PROGRAMMING GNOME Source code trees IN THE VALLEY OF THE CODETHORSTEN FISCHER So you’ve just like the one in Listing 1. Not too complex, eh? written yet another Unfortunately, creating a Makefile isn’t always the terrific GNOME best solution, as assumptions on programs program. Great! But locations, path names and others things may not be does it, like so many true in all cases, forcing the user to edit the file in other great programs, order to get it to work properly. lack something in terms of ease of installation? Even the Listing 1: A simple Makefile for a GNOME 1: CC=/usr/bin/gcc best and easiest to use programs 2: CFLAGS=`gnome-config —cflags gnome gnomeui` will cause headaches if you have to 3: LDFLAGS=`gnome-config —libs gnome gnomeui` type in lines like this, 4: OBJ=example.o one.o two.o 5: BINARIES=example With the help of gcc -c sourcee.c gnome-config —libs —cflags 6: gnome gnomeui gnomecanvaspixbuf -o sourcee.o 7: all: $(BINARIES) Automake and Autoconf, 8: you can create easily perhaps repeated for each of the files, and maybe 9: example: $(OBJ) with additional compiler flags too, only to then 10: $(CC) $(LDFLAGS) -o $@ $(OBJ) installed source code demand that everything is linked. And at the end, 11: do you then also have to copy the finished binary 12: .c.o: text trees. Read on to 13: $(CC) $(CFLAGS) -c $< manually into the destination directory? Instead, 14: find out how. wouldn’t you rather have an easy, portable and 15: clean: quick installation process? Well, you can – if you 16: rm -rf $(OBJ) $(BINARIES) know how.
    [Show full text]
  • Red Hat Enterprise Linux 6 Developer Guide
    Red Hat Enterprise Linux 6 Developer Guide An introduction to application development tools in Red Hat Enterprise Linux 6 Dave Brolley William Cohen Roland Grunberg Aldy Hernandez Karsten Hopp Jakub Jelinek Developer Guide Jeff Johnston Benjamin Kosnik Aleksander Kurtakov Chris Moller Phil Muldoon Andrew Overholt Charley Wang Kent Sebastian Red Hat Enterprise Linux 6 Developer Guide An introduction to application development tools in Red Hat Enterprise Linux 6 Edition 0 Author Dave Brolley [email protected] Author William Cohen [email protected] Author Roland Grunberg [email protected] Author Aldy Hernandez [email protected] Author Karsten Hopp [email protected] Author Jakub Jelinek [email protected] Author Jeff Johnston [email protected] Author Benjamin Kosnik [email protected] Author Aleksander Kurtakov [email protected] Author Chris Moller [email protected] Author Phil Muldoon [email protected] Author Andrew Overholt [email protected] Author Charley Wang [email protected] Author Kent Sebastian [email protected] Editor Don Domingo [email protected] Editor Jacquelynn East [email protected] Copyright © 2010 Red Hat, Inc. and others. The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/. In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version. Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law.
    [Show full text]
  • The GNOME Desktop Environment
    The GNOME desktop environment Miguel de Icaza ([email protected]) Instituto de Ciencias Nucleares, UNAM Elliot Lee ([email protected]) Federico Mena ([email protected]) Instituto de Ciencias Nucleares, UNAM Tom Tromey ([email protected]) April 27, 1998 Abstract We present an overview of the free GNU Network Object Model Environment (GNOME). GNOME is a suite of X11 GUI applications that provides joy to users and hackers alike. It has been designed for extensibility and automation by using CORBA and scripting languages throughout the code. GNOME is licensed under the terms of the GNU GPL and the GNU LGPL and has been developed on the Internet by a loosely-coupled team of programmers. 1 Motivation Free operating systems1 are excellent at providing server-class services, and so are often the ideal choice for a server machine. However, the lack of a consistent user interface and of consumer-targeted applications has prevented free operating systems from reaching the vast majority of users — the desktop users. As such, the benefits of free software have only been enjoyed by the technically savvy computer user community. Most users are still locked into proprietary solutions for their desktop environments. By using GNOME, free operating systems will have a complete, user-friendly desktop which will provide users with powerful and easy-to-use graphical applications. Many people have suggested that the cause for the lack of free user-oriented appli- cations is that these do not provide enough excitement to hackers, as opposed to system- level programming. Since most of the GNOME code had to be written by hackers, we kept them happy: the magic recipe here is to design GNOME around an adrenaline response by trying to use exciting models and ideas in the applications.
    [Show full text]
  • Why and How I Use Lilypond Daniel F
    Why and How I Use LilyPond Daniel F. Savarese Version 1.1 Copyright © 2018 Daniel F. Savarese1 even with an academic discount. I never got my money's Introduction worth out of it. At the time I couldn't explain exactly why, but I was never productive using it. In June of 2017, I received an email from someone using my classical guitar transcriptions inquiring about how I Years later, when I started playing piano, I upgraded to use LilyPond2 to typeset (or engrave) music. He was the latest version of Finale and suddenly found it easier dissatisfied with his existing WYSIWYG3 commercial to produce scores using the software. It had nothing to software and was looking for alternatives. He was im- do with new features in the product. After notating eight pressed with the appearance of my transcription of Lá- original piano compositions, I realized that my previous grima and wondered if I would share the source for it difficulties had to do with the idiosyncratic requirements and my other transcriptions. of guitar music that were not well-supported by the soft- ware. Nevertheless, note entry and the overall user inter- I sent the inquirer a lengthy response explaining that I'd face of Finale were tedious. I appreciated how accurate like to share the source for my transcriptions, but that it the MIDI playback could be with respect to dynamics, wouldn't be readily usable by anyone given the rather tempo changes, articulations, and so on. But I had little involved set of support files and programs I've built to need for MIDI output.
    [Show full text]
  • Autoconf.Pdf
    Autoconf Creating Automatic Configuration Scripts for version 2.66, 2 July 2010 David MacKenzie Ben Elliston Akim Demaille This manual (2 July 2010) is for GNU Autoconf (version 2.66), a package for creating scripts to configure source code packages using templates and an M4 macro package. Copyright c 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, with the Front-Cover texts being \A GNU Manual," and with the Back-Cover Texts as in (a) below. A copy of the license is included in the section entitled \GNU Free Documentation License." (a) The FSF's Back-Cover Text is: \You have the freedom to copy and modify this GNU manual. Buying copies from the FSF supports it in developing GNU and promoting software freedom." i Table of Contents 1 Introduction::::::::::::::::::::::::::::::::::::: 1 2 The GNU Build System:::::::::::::::::::::::: 3 2.1 Automake:::::::::::::::::::::::::::::::::::::::::::::::::::::: 3 2.2 Gnulib ::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 3 2.3 Libtool::::::::::::::::::::::::::::::::::::::::::::::::::::::::: 4 2.4 Pointers:::::::::::::::::::::::::::::::::::::::::::::::::::::::: 4 3 Making configure Scripts :::::::::::::::::::::: 5 3.1 Writing `configure.ac' ::::::::::::::::::::::::::::::::::::::::
    [Show full text]
  • Autotools Tutorial
    Autotools Tutorial Mengke HU ECE Department Drexel University ASPITRG Group Meeting Outline 1 Introduction 2 GNU Coding standards 3 Autoconf 4 Automake 5 Libtools 6 Demonstration The Basics of Autotools 1 The purpose of autotools I It serves the needs of your users (checking platform and libraries; compiling and installing ). I It makes your project incredibly portablefor dierent system platforms. 2 Why should we use autotools: I A lot of free softwares target Linux operating system. I Autotools allow your project to build successfully on future versions or distributions with virtually no changes to the build scripts. The Basics of Autotools 1 The purpose of autotools I It serves the needs of your users (checking platform and libraries; compiling and installing ). I It makes your project incredibly portablefor dierent system platforms. 2 Why should we use autotools: I A lot of free softwares target Linux operating system. I Autotools allow your project to build successfully on future versions or distributions with virtually no changes to the build scripts. The Basics of Autotools 1 3 GNU packages for GNU build system I Autoconf Generate a conguration script for a project I Automake Simplify the process of creating consistent and functional makeles I Libtool Provides an abstraction for the portable creation of shared libraries 2 Basic steps (commends) to build and install software I tar -zxvf package_name-version.tar.gz I cd package_name-version I ./congure I make I sudo make install The Basics of Autotools 1 3 GNU packages for GNU build
    [Show full text]
  • 1 What Is Gimp? 3 2 Default Short Cuts and Dynamic Keybinding 9
    GUM The Gimp User Manual version 1.0.0 Karin Kylander & Olof S Kylander legalities Legalities The Gimp user manual may be reproduced and distributed, subject to the fol- lowing conditions: Copyright © 1997 1998 by Karin Kylander Copyright © 1998 by Olof S Kylander E-mail: [email protected] (summer 98 [email protected]) The Gimp User Manual is an open document; you may reproduce it under the terms of the Graphic Documentation Project Copying Licence (aka GDPL) as published by Frozenriver. This document is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANT- ABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Graphic Documentation Project Copying License for more details. GRAPHIC DOCUMENTATION PROJECT COPYING LICENSE The following copyright license applies to all works by the Graphic Docu- mentation Project. Please read the license carefully---it is similar to the GNU General Public License, but there are several conditions in it that differ from what you may be used to. The Graphic Documentation Project manuals may be reproduced and distrib- uted in whole, subject to the following conditions: The Gimp User Manual Page i Legalities All Graphic Documentation Project manuals are copyrighted by their respective authors. THEY ARE NOT IN THE PUBLIC DOMAIN. • The copyright notice above and this permission notice must be preserved complete. • All work done under the Graphic Documentation Project Copying License must be available in source code for anyone who wants to obtain it. The source code for a work means the preferred form of the work for making modifications to it.
    [Show full text]
  • Linux from Scratch Version 6.2
    Linux From Scratch Version 6.2 Gerard Beekmans Linux From Scratch: Version 6.2 by Gerard Beekmans Copyright © 1999–2006 Gerard Beekmans Copyright (c) 1999–2006, Gerard Beekmans All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: • Redistributions in any form must retain the above copyright notice, this list of conditions and the following disclaimer • Neither the name of “Linux From Scratch” nor the names of its contributors may be used to endorse or promote products derived from this material without specific prior written permission • Any material derived from Linux From Scratch must contain a reference to the “Linux From Scratch” project THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Linux From Scratch - Version 6.2 Table of Contents Preface
    [Show full text]
  • Download Chapter 3: "Configuring Your Project with Autoconf"
    CONFIGURING YOUR PROJECT WITH AUTOCONF Come my friends, ’Tis not too late to seek a newer world. —Alfred, Lord Tennyson, “Ulysses” Because Automake and Libtool are essen- tially add-on components to the original Autoconf framework, it’s useful to spend some time focusing on using Autoconf without Automake and Libtool. This will provide a fair amount of insight into how Autoconf operates by exposing aspects of the tool that are often hidden by Automake. Before Automake came along, Autoconf was used alone. In fact, many legacy open source projects never made the transition from Autoconf to the full GNU Autotools suite. As a result, it’s not unusual to find a file called configure.in (the original Autoconf naming convention) as well as handwritten Makefile.in templates in older open source projects. In this chapter, I’ll show you how to add an Autoconf build system to an existing project. I’ll spend most of this chapter talking about the fundamental features of Autoconf, and in Chapter 4, I’ll go into much more detail about how some of the more complex Autoconf macros work and how to properly use them. Throughout this process, we’ll continue using the Jupiter project as our example. Autotools © 2010 by John Calcote Autoconf Configuration Scripts The input to the autoconf program is shell script sprinkled with macro calls. The input stream must also include the definitions of all referenced macros—both those that Autoconf provides and those that you write yourself. The macro language used in Autoconf is called M4. (The name means M, plus 4 more letters, or the word Macro.1) The m4 utility is a general-purpose macro language processor originally written by Brian Kernighan and Dennis Ritchie in 1977.
    [Show full text]
  • Lilypond Automated Music Formatting and the Art of Shipping
    LilyPond Automated music formatting and The Art of Shipping Han-Wen Nienhuys LilyPond Software Design Jan Nieuwenhuizen 7th Fórum Internacional Software Livre April 20, 2006. Porto Alegre, Brazil Han-Wen Nienhuys Automatic music formatting (FISL 7.0) ‘‘But that's been done before, no?'' (Finale 2003) Gold standard Hand engraved scores (early 20th century) Han-Wen Nienhuys Automatic music formatting (FISL 7.0) Beautiful music typography A thing of beauty is a joy forever Ease of reading Better performance Han-Wen Nienhuys Automatic music formatting (FISL 7.0) Automated music typography Problem statement Design overview Examples of engraving Implementation Typography algorithms Formatting architecture Zen and the Art of Shipping Software Conclusions Han-Wen Nienhuys Automatic music formatting (FISL 7.0) Modeling notation Han-Wen Nienhuys Automatic music formatting (FISL 7.0) Modeling notation 7 3 z 4 ëë ­ è ë è Simple hierarchy does not 5 2 z work for complex notation > 4 ë ë Han-Wen Nienhuys Automatic music formatting (FISL 7.0) Divide and conquer > > { c'4 d'8 } > > typography ⇐ notation ⇐ hierarchical representation 1 Typography: where to put symbols 2 Notation: what symbols for which music 3 Music representation: how to encode music 4 Program architecture: glue together everything Han-Wen Nienhuys Automatic music formatting (FISL 7.0) Typography Music engraving: create pleasing look Visual: distance and blackness A craft: learned in practice No literature Han-Wen Nienhuys Automatic music formatting (FISL 7.0)
    [Show full text]
  • Curriculum Vitae June 7, 2008
    Curriculum Vitae June 7, 2008 Name: Han-Wen Nienhuys Driving license: yes Sex: Male E-mail: [email protected] Nationality: Dutch WWW: http://www.xs4all.nl/~hanwen/ Objective • To take on new challenges. • To simplify complex problems. • To share knowledge. Professional interests Software design and implementation, mathematical modeling techniques, numerical algorithms, linear algebra, music representation, digital typography. Education Formal education PhD, Institute for Information and Computing Sciences, Utrecht University. 2003. Engineering degree in applied mathematics (MSc equivalent, cum laude). Technical University Eindhoven, 1998. Graduation topic: analysis. Courses ASCI Course on Visualization and Virtual Reality, 2001. (ASCI is a Dutch graduate school) Skills Expert in: program design, coding and software engineering. Programming language experience: C (1991–now), C++ (1996–now), Python (1998–now), Scheme (2000-now), Java (2000–2002) years, Quill (2004; Certified Quintiq Specialist). Working knowledge of: Unix programming, Emacs, OpenGL, Java3D, Autoconf, Make, HTML, (Fedora) Linux, CVS, darcs, LATEX, METAFONT, Cocoa development, PostScript, Pango, SVG, PDF, LISP, Unicode. Proficient at: giving presentations, scientific writing, and technical writing. Languages: Dutch (native), English (fluent, reading and writing), Portuguese (speaking fluently, reasonable reading) German (reasonable reading), French (basic reading). Work experience March 2007–present Software Engineer, at Google Engineering Brazil. March 2005–August 2006 Freelance consultant, owner of LilyPond Software Design (http://lilypond-design.com) 1 April 2004–February 2005 Consultant Advanced Planning & Scheduling and Software Engineer, at Quintiq Applications B.V. Mar–Jun, 2003 Junior researcher at Utrecht University, Institute of Information and Computing Sciences. 1998–2003 Research assistant/PhD. student at Utrecht University, Institute of Information and Computing Sciences. 1996 Intern at the R&D department of Oce-Nederland´ B.V., writing software to simulate heat diffusion.
    [Show full text]
  • Linux for EDA Open-Source Development Tools
    Linux for EDA Open-Source Development Tools Stephen A. Edwards Columbia University Department of Computer Science [email protected] http://www.cs.columbia.edu/˜sedwards Espresso An example project: Berkeley’s Espresso two-level minimizer. 18k LOC total in 59 .c files and 17 .h files. Written in C in pre-ANSI days. Ported extensively. Supports ANSI C and K&R C on VAX, SunOS 3 & 4, Ultrix, Sequent, HPUX, and Apollo. Autoconf A modern approach to cross-platform portability. How do you compile a program on multiple platforms? • Multiple code bases • Single code base sprinkled with platform-checking #ifdefs • Single code base with platform-checking #ifdefs confined to a few files: (#include "platform.h") • Single code base with feature-specific #ifdefs computed by a script that tests each feature Autoconf Basic configure.ac: AC_INIT(espresso.c) AM_INIT_AUTOMAKE(espresso, 2.3) AC_PROG_CC AC_LANG(C) AC_CONFIG_FILES([Makefile]) AC_OUTPUT Autoconf $ autoconf $ ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk ... checking dependency style of gcc... gcc3 configure: creating ./config.status config.status: creating Makefile config.status: executing depfiles commands $ ls Makefile Makefile $ Espresso’s port.h (fragment) #ifdef __STDC__ #include <stdlib.h> #else #ifdef hpux extern int abort(); extern void free(), exit(), perror(); #else extern VOID_HACK abort(), free(), exit(), perror(); #endif /* hpux */ extern char *getenv(), *malloc(), *realloc(),
    [Show full text]