1dnl Copyright (C) 2009 Facebook 2dnl Copying and distribution of this file, with or without modification, 3dnl are permitted in any medium without royalty provided the copyright 4dnl notice and this notice are preserved. 5dnl 6dnl Licensed to the Apache Software Foundation (ASF) under one 7dnl or more contributor license agreements. See the NOTICE file 8dnl distributed with this work for additional information 9dnl regarding copyright ownership. The ASF licenses this file 10dnl to you under the Apache License, Version 2.0 (the 11dnl "License"); you may not use this file except in compliance 12dnl with the License. You may obtain a copy of the License at 13dnl 14dnl http://www.apache.org/licenses/LICENSE-2.0 15dnl 16dnl Unless required by applicable law or agreed to in writing, 17dnl software distributed under the License is distributed on an 18dnl "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 19dnl KIND, either express or implied. See the License for the 20dnl specific language governing permissions and limitations 21dnl under the License. 22 23PHP_ARG_ENABLE(thrift_protocol, whether to enable the thrift_protocol extension, 24[ --enable-thrift_protocol Enable the thrift_protocol extension]) 25 26if test "$PHP_THRIFT_PROTOCOL" != "no"; then 27 PHP_REQUIRE_CXX() 28 PHP_ADD_LIBRARY_WITH_PATH(stdc++, "", THRIFT_PROTOCOL_SHARED_LIBADD) 29 PHP_SUBST(THRIFT_PROTOCOL_SHARED_LIBADD) 30 CXXFLAGS="$CXXFLAGS -std=c++11" 31 32 PHP_NEW_EXTENSION(thrift_protocol, php_thrift_protocol.cpp, $ext_shared) 33fi 34 35