EOF
-# construct the glaze.pc file
-cat > glaze.pc <<EOF
+# construct the glaze.pc and glaze-32.pc files
+if [ "$have_m64" = "Yes" ]; then
+ cat > glaze.pc <<EOF
prefix=${PREFIX}
exec_prefix=\${prefix}
libdir=${LIBDIR:-\${exec_prefix\}/lib}
Libs: -L\${libdir} -lglaze
Cflags: -I\${includedir}/glaze
EOF
+fi
+
+if [ "$have_m32" = "Yes" ]; then
+ cat > glaze-32.pc <<EOF
+prefix=${PREFIX}
+exec_prefix=\${prefix}
+libdir=${LIBDIR:-\${exec_prefix\}/lib}
+includedir=${INCLUDEDIR:-\${prefix\}/include}
+
+Name: ${PROJECT}
+Description: ${PROJECT_BLURB}
+Version: ${VERSION}
+
+Libs: -L\${libdir} -lglaze-32
+Cflags: -I\${includedir}/glaze
+EOF
+fi
+