#! /bin/sh
#
-# Copyright 2000-2006 The Apache Software Foundation or its licensors, as
-# applicable.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
real_srcdir=$top_srcdir/$dir
real_builddir=$top_builddir/$dir
fi
- cat - $top_srcdir/$makefile.in <<EOF |sed 's/^include \(.*\)/.include "\1"/' >$makefile
+ cat - $top_srcdir/$makefile.in <<EOF | \
+ sed 's/^include \(.*\)/.include "\1"/' | \
+ sed 's/^ifdef \(.*\)/.ifdef \1/' | \
+ sed 's/^else\(.*\)/.else\1/' | \
+ sed 's/^endif\(.*\)/.endif\1/' >$makefile
top_srcdir = $top_srcdir
top_builddir = $top_builddir
srcdir = $real_srcdir