cd
NPS_VERSION=1.9.32.10
wget https://github.com/pagespeed/ngx_pagespeed/archive/release-${NPS_VERSION}-beta.zip
unzip release-${NPS_VERSION}-beta.zip
cd ngx_pagespeed-release-${NPS_VERSION}-beta/
wget https://dl.google.com/dl/page-speed/psol/${NPS_VERSION}.tar.gz
tar -xzvf ${NPS_VERSION}.tar.gz # extracts to psol/
./configure --prefix=/opt/nginx/nginx-1.8.0 --with-http_gunzip_module --with-http_geoip_module --with-debug --with-http_ssl_module --add-module=../modules/headers-more-nginx-module --add-module=../modules/ngx_pagespeed-release-1.9.32.10-beta --add-module=../nginx-auth-ldap
...
checking for mmap("/dev/zero", MAP_SHARED) ... found
checking for System V shared memory ... found
checking for POSIX semaphores ... not found
checking for POSIX semaphores in libpthread ... found
checking for struct msghdr.msg_control ... found
checking for ioctl(FIONBIO) ... found
checking for struct tm.tm_gmtoff ... found
checking for struct dirent.d_namlen ... not found
checking for struct dirent.d_type ... found
checking for sysconf(_SC_NPROCESSORS_ONLN) ... found
checking for openat(), fstatat() ... found
checking for getaddrinfo() ... found
configuring additional modules
adding module in ../modules/headers-more-nginx-module
+ ngx_http_headers_more_filter_module was configured
adding module in ../modules/ngx_pagespeed-release-1.9.32.10-beta
mod_pagespeed_dir=../modules/ngx_pagespeed-release-1.9.32.10-beta/psol/include
build_from_source=false
checking for psol ... not found
./configure: error: module ngx_pagespeed requires the pagespeed optimization library.
Look in objs/autoconf.err for more details.