$NetBSD: patch-ab,v 1.17 2009/05/17 12:55:52 sno Exp $ --- configure.orig 2009-04-25 18:25:48.000000000 +0000 +++ configure 2009-04-25 18:53:35.000000000 +0000 @@ -2593,11 +2593,18 @@ # For the build number: months since Jan 2000, day of month from the timestamp # For the revision number: hour, minute from the timestamp if test $GRAPHVIZ_VERSION_MICRO != "0"; then - GRAPHVIZ_VERSION_BUILD=`expr \( ${GRAPHVIZ_VERSION_MICRO:0:4} - 2000 \) \* 12 + ${GRAPHVIZ_VERSION_MICRO:4:2}`${GRAPHVIZ_VERSION_MICRO:6:2} - GRAPHVIZ_VERSION_REVISION=${GRAPHVIZ_VERSION_MICRO:9:4} + # JR: patch from Michael van Elst: + # if we have a shellm we should have a working awk, too + eval `echo "$GRAPHVIZ_VERSION_MICRO" | awk '{ + print "GRAPHVIZ_VERSION_BUILD=" \ + (substr($1,1,4)-2000)*12+substr($1,5,2) \ + substr($1,7,2) + print "GRAPHVIZ_VERSION_REVISION=" \ + substr($1,10,4) + }'` fi ;; -esac +esac @@ -6448,6 +6455,9 @@ ;; *-sgi-irix* ) ;; + *-ibm-aix* ) + CC=cc_r + ;; esac else for ac_prog in windres @@ -26307,7 +26317,7 @@ LUA_VERSION=`$PKGCONFIG --modversion lua$l` LUA_INCLUDES="$LUA_CFLAGS "`$PKGCONFIG --cflags lua$l` LUA_LIBS="$LUA_LFLAGS "`$PKGCONFIG --libs lua$l` - LUA_INSTALL_DIR="/usr/lib$LIBPOSTFIX/lua/`$PKGCONFIG --variable=V lua`" + LUA_INSTALL_DIR="${PREFIX}/lib$LIBPOSTFIX/lua/`$PKGCONFIG --variable=V lua`" pkgconfig_lualib_found=`$PKGCONFIG --exists lualib$l 2>/dev/null` if test "x$?" = "x0"; then @@ -26371,7 +26381,7 @@ LUA_INCLUDES=`$LUACONFIG --include` LUA_LIBS=`$LUACONFIG --libs` LUA_VERSION="5.0.x" - LUA_INSTALL_DIR="/usr/lib$LIBPOSTFIX/lua/5.0" + LUA_INSTALL_DIR="${PREFIX}/lib$LIBPOSTFIX/lua/5.0" fi fi @@ -26957,8 +26967,8 @@ fi - OCAML_INCLUDES=-I/usr/lib$LIBPOSTFIX/ocaml - OCAML_LIBS=-L/usr/lib$LIBPOSTFIX/ocaml + OCAML_INCLUDES=-I${PREFIX}/lib$LIBPOSTFIX/ocaml + OCAML_LIBS=-L${PREFIX}/lib$LIBPOSTFIX/ocaml save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $OCAML_INCLUDES" if test "${ac_cv_header_caml_mlvalues_h+set}" = set; then @@ -27414,13 +27424,13 @@ if test "x$PHP" = "x"; then use_php="No (php not available)" else - if test -d /usr/include/php5; then - PHP_INCLUDES="-I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/Zend -I/usr/include/php5/TSRM" + if test -d ${PREFIX}/include/php5; then + PHP_INCLUDES="-I${PREFIX}/include/php5 -I${PREFIX}/include/php5/main -I${PREFIX}/include/php5/Zend -I${PREFIX}/include/php5/TSRM" else - PHP_INCLUDES="-I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM" + PHP_INCLUDES="-I${PREFIX}/include/php -I${PREFIX}/include/php/main -I${PREFIX}/include/php/Zend -I${PREFIX}/include/php/TSRM" fi - PHP_INSTALL_DIR="/usr/lib${LIBPOSTFIX}/php/modules" - PHP_INSTALL_DATADIR="/usr/share/php" + PHP_INSTALL_DIR="${PREFIX}/lib${LIBPOSTFIX}/php/modules" + PHP_INSTALL_DATADIR="${PREFIX}/share/php" PHP_LIBS= save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$CPPFLAGS $PHP_INCLUDES" @@ -33333,7 +33343,7 @@ # Check whether --with-platformsdkincludedir was given. if test "${with_platformsdkincludedir+set}" = set; then - withval=$with_platformsdkincludedir; PLATFORMSDKINCLUDE=$withval; PLATFORMSDKINCLUDE_ESCAPED=${PLATFORMSDKINCLUDE//'\\'/\\\\}; PLATFORMSDKINCLUDE_ESCAPED=${PLATFORMSDKINCLUDE_ESCAPED// /\\ } + withval=$with_platformsdkincludedir; PLATFORMSDKINCLUDE=$withval; PLATFORMSDKINCLUDE_ESCAPED=`echo ${PLATFORMSDKINCLUDE} | sed "s/'\\'/\\\\/g" | sed "s/ /\\ /g"` fi