Skip to content

Instantly share code, notes, and snippets.

@overthink
Created April 10, 2015 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save overthink/54350e8205d7b0ba5061 to your computer and use it in GitHub Desktop.
Save overthink/54350e8205d7b0ba5061 to your computer and use it in GitHub Desktop.
~/tmp/units-2.11$ make clean
rm -f *.o units units.fn units.ky units.pg units.tp \
units.vr units.log units.dvi units.1 units.cp distname .chk \
units.toc units.aux units.cps units.op units_cur_inst units_cur
~/tmp/units-2.11$ time (./configure && make)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C 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 C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for gcc option to accept ISO C99... -std=gnu99
checking for an ANSI C-conforming const... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for library containing sin... -lm
checking for readline in -lreadline... yes
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for strchr... yes
checking for strspn... yes
checking for strtok... yes
checking for setenv... yes
checking for setlocale... yes
checking for locale and UTF-8 support... yes
checking for isfinite... yes
checking for mksinfo... no
checking for python... /usr/bin/python
configure: creating ./config.status
config.status: creating Makefile
gcc -std=gnu99 -DUNITSFILE=\"/usr/local/share/units/definitions.units\" -DLOCALEMAP=\"/usr/local/share/units/locale_map.txt\" -D
READLINE -DSUPPORT_UTF8 -DPACKAGE_NAME=\"GNU\ units\" -DPACKAGE_TARNAME=\"units\" -DPACKAGE_VERSION=\"2.11\" -DPACKAGE_STRING=\"
GNU\ units\ 2.11\" -DPACKAGE_BUGREPORT=\"adrianm@gnu.org\" -DPACKAGE_URL=\"http://www.gnu.org/software/units/\" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYP
ES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -g -O2 -I. -c units.c
units.c: In function ‘isfract’:
units.c:2887:5: warning: ignoring return value of ‘strtod’, declared with attribute warn_unused_result [-Wunused-result]
units.c:2888:5: warning: ignoring return value of ‘strtol’, declared with attribute warn_unused_result [-Wunused-result]
gcc -std=gnu99 -DUNITSFILE=\"/usr/local/share/units/definitions.units\" -DLOCALEMAP=\"/usr/local/share/units/locale_map.txt\" -D
READLINE -DSUPPORT_UTF8 -DPACKAGE_NAME=\"GNU\ units\" -DPACKAGE_TARNAME=\"units\" -DPACKAGE_VERSION=\"2.11\" -DPACKAGE_STRING=\"
GNU\ units\ 2.11\" -DPACKAGE_BUGREPORT=\"adrianm@gnu.org\" -DPACKAGE_URL=\"http://www.gnu.org/software/units/\" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYP
ES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -g -O2 -I. -c parse.tab.c
gcc -std=gnu99 -DUNITSFILE=\"/usr/local/share/units/definitions.units\" -DLOCALEMAP=\"/usr/local/share/units/locale_map.txt\" -D
READLINE -DSUPPORT_UTF8 -DPACKAGE_NAME=\"GNU\ units\" -DPACKAGE_TARNAME=\"units\" -DPACKAGE_VERSION=\"2.11\" -DPACKAGE_STRING=\"
GNU\ units\ 2.11\" -DPACKAGE_BUGREPORT=\"adrianm@gnu.org\" -DPACKAGE_URL=\"http://www.gnu.org/software/units/\" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYP
ES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -g -O2 -I. -c getopt.c
gcc -std=gnu99 -DUNITSFILE=\"/usr/local/share/units/definitions.units\" -DLOCALEMAP=\"/usr/local/share/units/locale_map.txt\" -D
READLINE -DSUPPORT_UTF8 -DPACKAGE_NAME=\"GNU\ units\" -DPACKAGE_TARNAME=\"units\" -DPACKAGE_VERSION=\"2.11\" -DPACKAGE_STRING=\"
GNU\ units\ 2.11\" -DPACKAGE_BUGREPORT=\"adrianm@gnu.org\" -DPACKAGE_URL=\"http://www.gnu.org/software/units/\" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYP
ES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -g -O2 -I. -c getopt1.c
gcc -std=gnu99 -g -O2 -o units units.o parse.tab.o getopt.o getopt1.o -lreadline -lm
sed s!@DATAFILE@!/usr/local/share/units/definitions.units! ./units.man > units.1
Creating units_cur for Python 2
sed -e "s@outfile = 'currency.units'@outfile='/usr/local/share/units/currency.units'@"\
-e "s@/usr/bin/python@/usr/bin/python@" \
units_cur > units_cur_inst
real 0m2.818s
user 0m1.796s
sys 0m0.332s
~/tmp/units-2.11$ time echo '3 millilightseconds -> miles' | frink
Frink - Copyright 2000-2012 Alan Eliasen, eliasen@mindspring.com.
149896229/268224 (approx. 558.8471911536626)
Last result was 149896229/268224 (approx. 558.8471911536626)
real 0m0.751s
user 0m1.576s
sys 0m0.048s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment