if(NOT WIN32 OR MINGW)
  # PkgConfig file
  set (PKGCONFIG_PREFIX ${CMAKE_INSTALL_PREFIX})
  
  if(IS_ABSOLUTE ${LIB_INSTALL_DIR})
    set (PKGCONFIG_LIBDIR ${LIB_INSTALL_DIR})
  else(IS_ABSOLUTE ${LIB_INSTALL_DIR})
    set (PKGCONFIG_LIBDIR "\${prefix}/${LIB_INSTALL_DIR}")
  endif (IS_ABSOLUTE ${LIB_INSTALL_DIR})

  if(IS_ABSOLUTE ${INCLUDE_INSTALL_DIR})
    set (PKGCONFIG_INCLUDEDIR ${INCLUDE_INSTALL_DIR})
  else(IS_ABSOLUTE ${INCLUDE_INSTALL_DIR})
    set (PKGCONFIG_INCLUDEDIR "\${prefix}/${INCLUDE_INSTALL_DIR}")
  endif(IS_ABSOLUTE ${INCLUDE_INSTALL_DIR})

  configure_file(${CMAKE_SOURCE_DIR}/libproxy/libproxy-1.0.pc.in ${CMAKE_BINARY_DIR}/libproxy-1.0.pc @ONLY)
  install(FILES ${CMAKE_BINARY_DIR}/libproxy-1.0.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
  
  # CMake Find helper
  configure_file(${CMAKE_SOURCE_DIR}/libproxy/Findlibproxy.cmake.in ${CMAKE_BINARY_DIR}/Findlibproxy.cmake @ONLY)
  install(FILES ${CMAKE_BINARY_DIR}/Findlibproxy.cmake DESTINATION ${SHARE_INSTALL_DIR}/cmake/Modules)
endif(NOT WIN32 OR MINGW)
