source: trunk/dports/graphics/povray/files/patch-configure @ 92166

Last change on this file since 92166 was 92166, checked in by jeremyhu@…, 8 years ago

povray: Don't use -march, -mcpu, or -mtune (#34144)

File size: 34.7 KB
Line 
1--- configure.orig      2004-08-02 16:20:13.000000000 -0700
2+++ configure   2012-04-20 14:50:23.000000000 -0700
3@@ -10646,6 +10646,7 @@ cat confdefs.h >>conftest.$ac_ext
4 cat >>conftest.$ac_ext <<_ACEOF
5 /* end confdefs.h.  */
6 #include <stdio.h>
7+#include <stdlib.h>
8 #include <string.h>
9 #include "png.h"
10 int main (void)
11@@ -10653,7 +10654,7 @@ int main (void)
12   const char *version = png_get_libpng_ver(NULL)
13     ;
14   fprintf (stderr, "%s\n", version);
15-  return ! (strcmp (version ? version : "", "$required_libpng_version") >= 0);
16+  return (system ("pkg-config --atleast-version=$required_libpng_version libpng"));
17 }
18 
19 
20@@ -14889,990 +14890,8 @@ echo "${ECHO_T}$pov_prog_cc_flags_value"
21         esac
22       done
23 
24-      if test -z "$pov_arch"; then
25-        case "$host" in
26-          i486-*)         pov_arch="i486";;
27-          i586-*)         pov_arch="pentium";;  # for GCC / ICC
28-          i686-*|i386-*)  # FreeBSD seems to only report i386
29-            pov_cpu=${pov_modelname:-`uname -p 2> /dev/null`}
30-            case "$pov_cpu" in
31-              # Intel
32-              *pentium*4*|*xeon*)  pov_arch="pentium4";;  # for GCC / ICC
33-              *pentium*mmx*)       pov_arch="pentium";;   # catch this first
34-              *pentium*m*)
35-                if test x"$CXX" = x"icc"; then
36-                  pov_arch="pentium4"
37-                else
38-                  pov_arch="pentium-m"
39-                fi
40-                ;;
41-              *pentium*iii*|*celeron*)  # assume all celerons belong here
42-                if test x"$CXX" = x"icc"; then
43-                  pov_arch="pentiumiii"
44-                else
45-                  pov_arch="pentium3"
46-                fi
47-                ;;
48-              *pentium*ii*)
49-                if test x"$CXX" = x"icc"; then
50-                  pov_arch="pentiumii"
51-                else
52-                  pov_arch="pentium2"
53-                fi
54-                ;;
55-              *pentium*pro*)       pov_arch="pentiumpro";;  # for GCC / ICC
56-              *pentium*)           pov_arch="pentium";;     # for GCC / ICC
57-              # AMD
58-              *athlon*xp*)         pov_arch="athlon-xp";;
59-              *athlon*mp*)         pov_arch="athlon-mp";;
60-              *athlon*|*duron*)    pov_arch="athlon";;
61-              # others
62-              *)                   pov_arch="i686";;  # don't support true i386
63-            esac
64-            pov_arch_fallback="i686"
65-            ;;
66-          k6-*)           pov_arch="k6"; pov_arch_fallback="i686";;
67-          k7-*)           pov_arch="k7"; pov_arch_fallback="i686";;
68-          k8-*|x86_64-*)  pov_arch="k8"; pov_arch_fallback="i686";;
69-          *)              pov_arch="unknown";;
70-        esac
71-      fi
72-      if test x"$pov_arch" != x"unknown"; then
73-
74-
75-
76-  # Create a unique cache-id name (multiple flags are handled).
77-  pov_prog_cxx_flags_var=pov_cv_prog_cxx_flags`echo -march=$pov_arch -mtune=$pov_arch | sed 's,[^a-zA-Z0-9],_,g'`
78-
79-  # Create the extended regular expression to handle multiple flags.
80-  # For instance, "-first-flag -second-flag -X" gives the regexp:
81-  #   "\-f|irst-flag|\-s|econd-flag|\-X|X"
82-  #
83-  # FreeBSD and Darwin seem to have a problem with the \+ sed construct
84-  # (but apparently not with the \{x,y\} one).  For safety, I prefer to
85-  # use  [[:space:]][[:space:]]*  for  [[:space:]]\+
86-  pov_prog_cxx_flags_regexp=`echo -march=$pov_arch -mtune=$pov_arch | sed 's,\(-.\)\([^[:space:]]*\),\\\\\1|\2,g; s,[[:space:]][[:space:]]*,|,g; s,\(.\)||,\1|\1|,g; s,\(.\)|$,\1|\1,'`
87-
88-  # Cannot use AC_CACHE_CHECK due to the nature of the cache-id variable.
89-  echo "$as_me:$LINENO: checking whether $CXX accepts -march=$pov_arch -mtune=$pov_arch" >&5
90-echo $ECHO_N "checking whether $CXX accepts -march=$pov_arch -mtune=$pov_arch... $ECHO_C" >&6
91-  if eval "test \"\${$pov_prog_cxx_flags_var+set}\" = set"; then
92-  echo $ECHO_N "(cached) $ECHO_C" >&6
93-else
94-
95-      # Create a conftest file for CXX.
96-      ac_ext=cc
97-ac_cpp='$CXXCPP $CPPFLAGS'
98-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
99-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
100-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
101-
102-      cat >conftest.$ac_ext <<_ACEOF
103-#line $LINENO "configure"
104-/* confdefs.h.  */
105-_ACEOF
106-cat confdefs.h >>conftest.$ac_ext
107-cat >>conftest.$ac_ext <<_ACEOF
108-/* end confdefs.h.  */
109-
110-int
111-main ()
112-{
113-
114-  ;
115-  return 0;
116-}
117-_ACEOF
118-
119-      # Compile with $CXX and inspect standard error for given flags.
120-      { ac_try='$CXX -c conftest.$ac_ext > /dev/null 2> conftest.err0'
121-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
122-  (eval $ac_try) 2>&5
123-  ac_status=$?
124-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
125-  (exit $ac_status); }; }
126-      { ac_try='$CXX -c -march=$pov_arch -mtune=$pov_arch conftest.$ac_ext > /dev/null 2> conftest.err'
127-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
128-  (eval $ac_try) 2>&5
129-  ac_status=$?
130-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
131-  (exit $ac_status); }; }
132-      { ac_try='cat conftest.err >&5'
133-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
134-  (eval $ac_try) 2>&5
135-  ac_status=$?
136-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
137-  (exit $ac_status); }; }
138-      { ac_try='$ac_cv_prog_egrep \"$pov_prog_cxx_flags_regexp\" conftest.err 2>&1 > /dev/null'
139-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
140-  (eval $ac_try) 2>&5
141-  ac_status=$?
142-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
143-  (exit $ac_status); }; }
144-      # the command above seems to not always return the correct status, so
145-      # for safety I rerun it here; I keep the other one for logging purpose.
146-      pov_prog_cxx_flags_err=`$ac_cv_prog_egrep "$pov_prog_cxx_flags_regexp" conftest.err`
147-      { ac_try='diff conftest.err0 conftest.err >&5'
148-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
149-  (eval $ac_try) 2>&5
150-  ac_status=$?
151-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
152-  (exit $ac_status); }; }
153-      if test -z "$pov_prog_cxx_flags_err" \
154-      || test -z "`diff conftest.err0 conftest.err`"; then
155-        eval "$pov_prog_cxx_flags_var=yes"
156-      else
157-        eval "$pov_prog_cxx_flags_var=no"
158-      fi
159-
160-      rm -f conftest.$ac_ext conftest.$ac_objext conftest.err conftest.err0
161-      ac_ext=cc
162-ac_cpp='$CXXCPP $CPPFLAGS'
163-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
164-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
165-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
166-
167-
168-
169-fi
170-
171-  eval "pov_prog_cxx_flags_value=\$$pov_prog_cxx_flags_var"
172-  echo "$as_me:$LINENO: result: $pov_prog_cxx_flags_value" >&5
173-echo "${ECHO_T}$pov_prog_cxx_flags_value" >&6
174-
175-  # Update CXXFLAGS when flags are working, and run provided actions.
176-  if test x"$pov_prog_cxx_flags_value" = x"yes"; then
177-    CXXFLAGS="$CXXFLAGS -march=$pov_arch -mtune=$pov_arch"
178-
179-            if test "$subdirs"; then
180-              {
181-
182-
183-
184-  pov_prog_cc_flags_var=pov_cv_prog_cc_flags`echo -march=$pov_arch -mtune=$pov_arch | sed 's,[^a-zA-Z0-9],_,g'`
185-  pov_prog_cc_flags_regexp=`echo -march=$pov_arch -mtune=$pov_arch | sed 's,\(-.\)\([^[:space:]]*\),\\\\\1|\2,g; s,[[:space:]][[:space:]]*,|,g; s,\(.\)||,\1|\1|,g; s,\(.\)|$,\1|\1,'`
186-
187-  echo "$as_me:$LINENO: checking whether $CC accepts -march=$pov_arch -mtune=$pov_arch" >&5
188-echo $ECHO_N "checking whether $CC accepts -march=$pov_arch -mtune=$pov_arch... $ECHO_C" >&6
189-  if eval "test \"\${$pov_prog_cc_flags_var+set}\" = set"; then
190-  echo $ECHO_N "(cached) $ECHO_C" >&6
191-else
192-
193-      ac_ext=c
194-ac_cpp='$CPP $CPPFLAGS'
195-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
196-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
197-ac_compiler_gnu=$ac_cv_c_compiler_gnu
198-
199-      cat >conftest.$ac_ext <<_ACEOF
200-#line $LINENO "configure"
201-/* confdefs.h.  */
202-_ACEOF
203-cat confdefs.h >>conftest.$ac_ext
204-cat >>conftest.$ac_ext <<_ACEOF
205-/* end confdefs.h.  */
206-
207-int
208-main ()
209-{
210-
211-  ;
212-  return 0;
213-}
214-_ACEOF
215-      { ac_try='$CC -c conftest.$ac_ext > /dev/null 2> conftest.err0'
216-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
217-  (eval $ac_try) 2>&5
218-  ac_status=$?
219-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
220-  (exit $ac_status); }; }
221-      { ac_try='$CC -c -march=$pov_arch -mtune=$pov_arch conftest.$ac_ext > /dev/null 2> conftest.err'
222-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
223-  (eval $ac_try) 2>&5
224-  ac_status=$?
225-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
226-  (exit $ac_status); }; }
227-      { ac_try='cat conftest.err >&5'
228-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
229-  (eval $ac_try) 2>&5
230-  ac_status=$?
231-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
232-  (exit $ac_status); }; }
233-      { ac_try='$ac_cv_prog_egrep \"$pov_prog_cc_flags_regexp\" conftest.err 2>&1 > /dev/null'
234-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
235-  (eval $ac_try) 2>&5
236-  ac_status=$?
237-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
238-  (exit $ac_status); }; }
239-      pov_prog_cc_flags_err=`$ac_cv_prog_egrep "$pov_prog_cc_flags_regexp" conftest.err`
240-      { ac_try='diff conftest.err0 conftest.err >&5'
241-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
242-  (eval $ac_try) 2>&5
243-  ac_status=$?
244-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
245-  (exit $ac_status); }; }
246-      if test -z "$pov_prog_cc_flags_err" \
247-      || test -z "`diff conftest.err0 conftest.err`"; then
248-        eval "$pov_prog_cc_flags_var=yes"
249-      else
250-        eval "$pov_prog_cc_flags_var=no"
251-      fi
252-
253-      rm -f conftest.$ac_ext conftest.$ac_objext conftest.err conftest.err0
254-      ac_ext=cc
255-ac_cpp='$CXXCPP $CPPFLAGS'
256-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
257-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
258-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
259-
260-
261-
262-fi
263-
264-  eval "pov_prog_cc_flags_value=\$$pov_prog_cc_flags_var"
265-  echo "$as_me:$LINENO: result: $pov_prog_cc_flags_value" >&5
266-echo "${ECHO_T}$pov_prog_cc_flags_value" >&6
267-
268-  if test x"$pov_prog_cc_flags_value" = x"yes"; then
269-    CFLAGS="$CFLAGS -march=$pov_arch -mtune=$pov_arch"
270-    :
271-  else
272-
273-
274-
275-  pov_prog_cc_flags_var=pov_cv_prog_cc_flags`echo -march=$pov_arch -mcpu=$pov_arch | sed 's,[^a-zA-Z0-9],_,g'`
276-  pov_prog_cc_flags_regexp=`echo -march=$pov_arch -mcpu=$pov_arch | sed 's,\(-.\)\([^[:space:]]*\),\\\\\1|\2,g; s,[[:space:]][[:space:]]*,|,g; s,\(.\)||,\1|\1|,g; s,\(.\)|$,\1|\1,'`
277-
278-  echo "$as_me:$LINENO: checking whether $CC accepts -march=$pov_arch -mcpu=$pov_arch" >&5
279-echo $ECHO_N "checking whether $CC accepts -march=$pov_arch -mcpu=$pov_arch... $ECHO_C" >&6
280-  if eval "test \"\${$pov_prog_cc_flags_var+set}\" = set"; then
281-  echo $ECHO_N "(cached) $ECHO_C" >&6
282-else
283-
284-      ac_ext=c
285-ac_cpp='$CPP $CPPFLAGS'
286-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
287-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
288-ac_compiler_gnu=$ac_cv_c_compiler_gnu
289-
290-      cat >conftest.$ac_ext <<_ACEOF
291-#line $LINENO "configure"
292-/* confdefs.h.  */
293-_ACEOF
294-cat confdefs.h >>conftest.$ac_ext
295-cat >>conftest.$ac_ext <<_ACEOF
296-/* end confdefs.h.  */
297-
298-int
299-main ()
300-{
301-
302-  ;
303-  return 0;
304-}
305-_ACEOF
306-      { ac_try='$CC -c conftest.$ac_ext > /dev/null 2> conftest.err0'
307-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
308-  (eval $ac_try) 2>&5
309-  ac_status=$?
310-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
311-  (exit $ac_status); }; }
312-      { ac_try='$CC -c -march=$pov_arch -mcpu=$pov_arch conftest.$ac_ext > /dev/null 2> conftest.err'
313-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
314-  (eval $ac_try) 2>&5
315-  ac_status=$?
316-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
317-  (exit $ac_status); }; }
318-      { ac_try='cat conftest.err >&5'
319-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
320-  (eval $ac_try) 2>&5
321-  ac_status=$?
322-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
323-  (exit $ac_status); }; }
324-      { ac_try='$ac_cv_prog_egrep \"$pov_prog_cc_flags_regexp\" conftest.err 2>&1 > /dev/null'
325-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
326-  (eval $ac_try) 2>&5
327-  ac_status=$?
328-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
329-  (exit $ac_status); }; }
330-      pov_prog_cc_flags_err=`$ac_cv_prog_egrep "$pov_prog_cc_flags_regexp" conftest.err`
331-      { ac_try='diff conftest.err0 conftest.err >&5'
332-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
333-  (eval $ac_try) 2>&5
334-  ac_status=$?
335-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
336-  (exit $ac_status); }; }
337-      if test -z "$pov_prog_cc_flags_err" \
338-      || test -z "`diff conftest.err0 conftest.err`"; then
339-        eval "$pov_prog_cc_flags_var=yes"
340-      else
341-        eval "$pov_prog_cc_flags_var=no"
342-      fi
343-
344-      rm -f conftest.$ac_ext conftest.$ac_objext conftest.err conftest.err0
345-      ac_ext=cc
346-ac_cpp='$CXXCPP $CPPFLAGS'
347-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
348-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
349-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
350-
351-
352-
353-fi
354-
355-  eval "pov_prog_cc_flags_value=\$$pov_prog_cc_flags_var"
356-  echo "$as_me:$LINENO: result: $pov_prog_cc_flags_value" >&5
357-echo "${ECHO_T}$pov_prog_cc_flags_value" >&6
358-
359-  if test x"$pov_prog_cc_flags_value" = x"yes"; then
360-    CFLAGS="$CFLAGS -march=$pov_arch -mcpu=$pov_arch"
361-    :
362-  else
363-    :
364-  fi
365-
366-
367-  fi
368-
369-              }
370-            fi
371-
372-  else
373-
374-
375-
376-
377-  # Create a unique cache-id name (multiple flags are handled).
378-  pov_prog_cxx_flags_var=pov_cv_prog_cxx_flags`echo -march=$pov_arch -mcpu=$pov_arch | sed 's,[^a-zA-Z0-9],_,g'`
379-
380-  # Create the extended regular expression to handle multiple flags.
381-  # For instance, "-first-flag -second-flag -X" gives the regexp:
382-  #   "\-f|irst-flag|\-s|econd-flag|\-X|X"
383-  #
384-  # FreeBSD and Darwin seem to have a problem with the \+ sed construct
385-  # (but apparently not with the \{x,y\} one).  For safety, I prefer to
386-  # use  [[:space:]][[:space:]]*  for  [[:space:]]\+
387-  pov_prog_cxx_flags_regexp=`echo -march=$pov_arch -mcpu=$pov_arch | sed 's,\(-.\)\([^[:space:]]*\),\\\\\1|\2,g; s,[[:space:]][[:space:]]*,|,g; s,\(.\)||,\1|\1|,g; s,\(.\)|$,\1|\1,'`
388-
389-  # Cannot use AC_CACHE_CHECK due to the nature of the cache-id variable.
390-  echo "$as_me:$LINENO: checking whether $CXX accepts -march=$pov_arch -mcpu=$pov_arch" >&5
391-echo $ECHO_N "checking whether $CXX accepts -march=$pov_arch -mcpu=$pov_arch... $ECHO_C" >&6
392-  if eval "test \"\${$pov_prog_cxx_flags_var+set}\" = set"; then
393-  echo $ECHO_N "(cached) $ECHO_C" >&6
394-else
395-
396-      # Create a conftest file for CXX.
397-      ac_ext=cc
398-ac_cpp='$CXXCPP $CPPFLAGS'
399-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
400-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
401-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
402-
403-      cat >conftest.$ac_ext <<_ACEOF
404-#line $LINENO "configure"
405-/* confdefs.h.  */
406-_ACEOF
407-cat confdefs.h >>conftest.$ac_ext
408-cat >>conftest.$ac_ext <<_ACEOF
409-/* end confdefs.h.  */
410-
411-int
412-main ()
413-{
414-
415-  ;
416-  return 0;
417-}
418-_ACEOF
419-
420-      # Compile with $CXX and inspect standard error for given flags.
421-      { ac_try='$CXX -c conftest.$ac_ext > /dev/null 2> conftest.err0'
422-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
423-  (eval $ac_try) 2>&5
424-  ac_status=$?
425-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
426-  (exit $ac_status); }; }
427-      { ac_try='$CXX -c -march=$pov_arch -mcpu=$pov_arch conftest.$ac_ext > /dev/null 2> conftest.err'
428-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
429-  (eval $ac_try) 2>&5
430-  ac_status=$?
431-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
432-  (exit $ac_status); }; }
433-      { ac_try='cat conftest.err >&5'
434-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
435-  (eval $ac_try) 2>&5
436-  ac_status=$?
437-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
438-  (exit $ac_status); }; }
439-      { ac_try='$ac_cv_prog_egrep \"$pov_prog_cxx_flags_regexp\" conftest.err 2>&1 > /dev/null'
440-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
441-  (eval $ac_try) 2>&5
442-  ac_status=$?
443-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
444-  (exit $ac_status); }; }
445-      # the command above seems to not always return the correct status, so
446-      # for safety I rerun it here; I keep the other one for logging purpose.
447-      pov_prog_cxx_flags_err=`$ac_cv_prog_egrep "$pov_prog_cxx_flags_regexp" conftest.err`
448-      { ac_try='diff conftest.err0 conftest.err >&5'
449-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
450-  (eval $ac_try) 2>&5
451-  ac_status=$?
452-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
453-  (exit $ac_status); }; }
454-      if test -z "$pov_prog_cxx_flags_err" \
455-      || test -z "`diff conftest.err0 conftest.err`"; then
456-        eval "$pov_prog_cxx_flags_var=yes"
457-      else
458-        eval "$pov_prog_cxx_flags_var=no"
459-      fi
460-
461-      rm -f conftest.$ac_ext conftest.$ac_objext conftest.err conftest.err0
462-      ac_ext=cc
463-ac_cpp='$CXXCPP $CPPFLAGS'
464-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
465-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
466-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
467-
468-
469-
470-fi
471-
472-  eval "pov_prog_cxx_flags_value=\$$pov_prog_cxx_flags_var"
473-  echo "$as_me:$LINENO: result: $pov_prog_cxx_flags_value" >&5
474-echo "${ECHO_T}$pov_prog_cxx_flags_value" >&6
475-
476-  # Update CXXFLAGS when flags are working, and run provided actions.
477-  if test x"$pov_prog_cxx_flags_value" = x"yes"; then
478-    CXXFLAGS="$CXXFLAGS -march=$pov_arch -mcpu=$pov_arch"
479-
480-                if test "$subdirs"; then
481-                  {
482-
483-
484-  pov_prog_cc_flags_var=pov_cv_prog_cc_flags`echo -march=$pov_arch -mcpu=$pov_arch | sed 's,[^a-zA-Z0-9],_,g'`
485-  pov_prog_cc_flags_regexp=`echo -march=$pov_arch -mcpu=$pov_arch | sed 's,\(-.\)\([^[:space:]]*\),\\\\\1|\2,g; s,[[:space:]][[:space:]]*,|,g; s,\(.\)||,\1|\1|,g; s,\(.\)|$,\1|\1,'`
486-
487-  echo "$as_me:$LINENO: checking whether $CC accepts -march=$pov_arch -mcpu=$pov_arch" >&5
488-echo $ECHO_N "checking whether $CC accepts -march=$pov_arch -mcpu=$pov_arch... $ECHO_C" >&6
489-  if eval "test \"\${$pov_prog_cc_flags_var+set}\" = set"; then
490-  echo $ECHO_N "(cached) $ECHO_C" >&6
491-else
492-
493-      ac_ext=c
494-ac_cpp='$CPP $CPPFLAGS'
495-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
496-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
497-ac_compiler_gnu=$ac_cv_c_compiler_gnu
498-
499-      cat >conftest.$ac_ext <<_ACEOF
500-#line $LINENO "configure"
501-/* confdefs.h.  */
502-_ACEOF
503-cat confdefs.h >>conftest.$ac_ext
504-cat >>conftest.$ac_ext <<_ACEOF
505-/* end confdefs.h.  */
506-
507-int
508-main ()
509-{
510-
511-  ;
512-  return 0;
513-}
514-_ACEOF
515-      { ac_try='$CC -c conftest.$ac_ext > /dev/null 2> conftest.err0'
516-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
517-  (eval $ac_try) 2>&5
518-  ac_status=$?
519-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
520-  (exit $ac_status); }; }
521-      { ac_try='$CC -c -march=$pov_arch -mcpu=$pov_arch conftest.$ac_ext > /dev/null 2> conftest.err'
522-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
523-  (eval $ac_try) 2>&5
524-  ac_status=$?
525-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
526-  (exit $ac_status); }; }
527-      { ac_try='cat conftest.err >&5'
528-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
529-  (eval $ac_try) 2>&5
530-  ac_status=$?
531-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
532-  (exit $ac_status); }; }
533-      { ac_try='$ac_cv_prog_egrep \"$pov_prog_cc_flags_regexp\" conftest.err 2>&1 > /dev/null'
534-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
535-  (eval $ac_try) 2>&5
536-  ac_status=$?
537-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
538-  (exit $ac_status); }; }
539-      pov_prog_cc_flags_err=`$ac_cv_prog_egrep "$pov_prog_cc_flags_regexp" conftest.err`
540-      { ac_try='diff conftest.err0 conftest.err >&5'
541-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
542-  (eval $ac_try) 2>&5
543-  ac_status=$?
544-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
545-  (exit $ac_status); }; }
546-      if test -z "$pov_prog_cc_flags_err" \
547-      || test -z "`diff conftest.err0 conftest.err`"; then
548-        eval "$pov_prog_cc_flags_var=yes"
549-      else
550-        eval "$pov_prog_cc_flags_var=no"
551-      fi
552-
553-      rm -f conftest.$ac_ext conftest.$ac_objext conftest.err conftest.err0
554-      ac_ext=cc
555-ac_cpp='$CXXCPP $CPPFLAGS'
556-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
557-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
558-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
559-
560-
561-
562-fi
563-
564-  eval "pov_prog_cc_flags_value=\$$pov_prog_cc_flags_var"
565-  echo "$as_me:$LINENO: result: $pov_prog_cc_flags_value" >&5
566-echo "${ECHO_T}$pov_prog_cc_flags_value" >&6
567-
568-  if test x"$pov_prog_cc_flags_value" = x"yes"; then
569-    CFLAGS="$CFLAGS -march=$pov_arch -mcpu=$pov_arch"
570-    :
571-  else
572-    :
573-  fi
574- }
575-                fi
576-
577-  else
578-
579-
580-
581-
582-  # Create a unique cache-id name (multiple flags are handled).
583-  pov_prog_cxx_flags_var=pov_cv_prog_cxx_flags`echo -march=$pov_arch | sed 's,[^a-zA-Z0-9],_,g'`
584-
585-  # Create the extended regular expression to handle multiple flags.
586-  # For instance, "-first-flag -second-flag -X" gives the regexp:
587-  #   "\-f|irst-flag|\-s|econd-flag|\-X|X"
588-  #
589-  # FreeBSD and Darwin seem to have a problem with the \+ sed construct
590-  # (but apparently not with the \{x,y\} one).  For safety, I prefer to
591-  # use  [[:space:]][[:space:]]*  for  [[:space:]]\+
592-  pov_prog_cxx_flags_regexp=`echo -march=$pov_arch | sed 's,\(-.\)\([^[:space:]]*\),\\\\\1|\2,g; s,[[:space:]][[:space:]]*,|,g; s,\(.\)||,\1|\1|,g; s,\(.\)|$,\1|\1,'`
593-
594-  # Cannot use AC_CACHE_CHECK due to the nature of the cache-id variable.
595-  echo "$as_me:$LINENO: checking whether $CXX accepts -march=$pov_arch" >&5
596-echo $ECHO_N "checking whether $CXX accepts -march=$pov_arch... $ECHO_C" >&6
597-  if eval "test \"\${$pov_prog_cxx_flags_var+set}\" = set"; then
598-  echo $ECHO_N "(cached) $ECHO_C" >&6
599-else
600-
601-      # Create a conftest file for CXX.
602-      ac_ext=cc
603-ac_cpp='$CXXCPP $CPPFLAGS'
604-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
605-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
606-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
607-
608-      cat >conftest.$ac_ext <<_ACEOF
609-#line $LINENO "configure"
610-/* confdefs.h.  */
611-_ACEOF
612-cat confdefs.h >>conftest.$ac_ext
613-cat >>conftest.$ac_ext <<_ACEOF
614-/* end confdefs.h.  */
615-
616-int
617-main ()
618-{
619-
620-  ;
621-  return 0;
622-}
623-_ACEOF
624-
625-      # Compile with $CXX and inspect standard error for given flags.
626-      { ac_try='$CXX -c conftest.$ac_ext > /dev/null 2> conftest.err0'
627-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
628-  (eval $ac_try) 2>&5
629-  ac_status=$?
630-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
631-  (exit $ac_status); }; }
632-      { ac_try='$CXX -c -march=$pov_arch conftest.$ac_ext > /dev/null 2> conftest.err'
633-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
634-  (eval $ac_try) 2>&5
635-  ac_status=$?
636-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
637-  (exit $ac_status); }; }
638-      { ac_try='cat conftest.err >&5'
639-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
640-  (eval $ac_try) 2>&5
641-  ac_status=$?
642-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
643-  (exit $ac_status); }; }
644-      { ac_try='$ac_cv_prog_egrep \"$pov_prog_cxx_flags_regexp\" conftest.err 2>&1 > /dev/null'
645-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
646-  (eval $ac_try) 2>&5
647-  ac_status=$?
648-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
649-  (exit $ac_status); }; }
650-      # the command above seems to not always return the correct status, so
651-      # for safety I rerun it here; I keep the other one for logging purpose.
652-      pov_prog_cxx_flags_err=`$ac_cv_prog_egrep "$pov_prog_cxx_flags_regexp" conftest.err`
653-      { ac_try='diff conftest.err0 conftest.err >&5'
654-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
655-  (eval $ac_try) 2>&5
656-  ac_status=$?
657-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
658-  (exit $ac_status); }; }
659-      if test -z "$pov_prog_cxx_flags_err" \
660-      || test -z "`diff conftest.err0 conftest.err`"; then
661-        eval "$pov_prog_cxx_flags_var=yes"
662-      else
663-        eval "$pov_prog_cxx_flags_var=no"
664-      fi
665-
666-      rm -f conftest.$ac_ext conftest.$ac_objext conftest.err conftest.err0
667-      ac_ext=cc
668-ac_cpp='$CXXCPP $CPPFLAGS'
669-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
670-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
671-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
672-
673-
674-
675-fi
676-
677-  eval "pov_prog_cxx_flags_value=\$$pov_prog_cxx_flags_var"
678-  echo "$as_me:$LINENO: result: $pov_prog_cxx_flags_value" >&5
679-echo "${ECHO_T}$pov_prog_cxx_flags_value" >&6
680-
681-  # Update CXXFLAGS when flags are working, and run provided actions.
682-  if test x"$pov_prog_cxx_flags_value" = x"yes"; then
683-    CXXFLAGS="$CXXFLAGS -march=$pov_arch"
684-
685-                    if test "$subdirs"; then
686-                      {
687-
688-
689-  pov_prog_cc_flags_var=pov_cv_prog_cc_flags`echo -march=$pov_arch | sed 's,[^a-zA-Z0-9],_,g'`
690-  pov_prog_cc_flags_regexp=`echo -march=$pov_arch | sed 's,\(-.\)\([^[:space:]]*\),\\\\\1|\2,g; s,[[:space:]][[:space:]]*,|,g; s,\(.\)||,\1|\1|,g; s,\(.\)|$,\1|\1,'`
691-
692-  echo "$as_me:$LINENO: checking whether $CC accepts -march=$pov_arch" >&5
693-echo $ECHO_N "checking whether $CC accepts -march=$pov_arch... $ECHO_C" >&6
694-  if eval "test \"\${$pov_prog_cc_flags_var+set}\" = set"; then
695-  echo $ECHO_N "(cached) $ECHO_C" >&6
696-else
697-
698-      ac_ext=c
699-ac_cpp='$CPP $CPPFLAGS'
700-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
701-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
702-ac_compiler_gnu=$ac_cv_c_compiler_gnu
703-
704-      cat >conftest.$ac_ext <<_ACEOF
705-#line $LINENO "configure"
706-/* confdefs.h.  */
707-_ACEOF
708-cat confdefs.h >>conftest.$ac_ext
709-cat >>conftest.$ac_ext <<_ACEOF
710-/* end confdefs.h.  */
711-
712-int
713-main ()
714-{
715-
716-  ;
717-  return 0;
718-}
719-_ACEOF
720-      { ac_try='$CC -c conftest.$ac_ext > /dev/null 2> conftest.err0'
721-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
722-  (eval $ac_try) 2>&5
723-  ac_status=$?
724-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
725-  (exit $ac_status); }; }
726-      { ac_try='$CC -c -march=$pov_arch conftest.$ac_ext > /dev/null 2> conftest.err'
727-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
728-  (eval $ac_try) 2>&5
729-  ac_status=$?
730-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
731-  (exit $ac_status); }; }
732-      { ac_try='cat conftest.err >&5'
733-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
734-  (eval $ac_try) 2>&5
735-  ac_status=$?
736-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
737-  (exit $ac_status); }; }
738-      { ac_try='$ac_cv_prog_egrep \"$pov_prog_cc_flags_regexp\" conftest.err 2>&1 > /dev/null'
739-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
740-  (eval $ac_try) 2>&5
741-  ac_status=$?
742-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
743-  (exit $ac_status); }; }
744-      pov_prog_cc_flags_err=`$ac_cv_prog_egrep "$pov_prog_cc_flags_regexp" conftest.err`
745-      { ac_try='diff conftest.err0 conftest.err >&5'
746-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
747-  (eval $ac_try) 2>&5
748-  ac_status=$?
749-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
750-  (exit $ac_status); }; }
751-      if test -z "$pov_prog_cc_flags_err" \
752-      || test -z "`diff conftest.err0 conftest.err`"; then
753-        eval "$pov_prog_cc_flags_var=yes"
754-      else
755-        eval "$pov_prog_cc_flags_var=no"
756-      fi
757-
758-      rm -f conftest.$ac_ext conftest.$ac_objext conftest.err conftest.err0
759-      ac_ext=cc
760-ac_cpp='$CXXCPP $CPPFLAGS'
761-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
762-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
763-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
764-
765-
766-
767-fi
768-
769-  eval "pov_prog_cc_flags_value=\$$pov_prog_cc_flags_var"
770-  echo "$as_me:$LINENO: result: $pov_prog_cc_flags_value" >&5
771-echo "${ECHO_T}$pov_prog_cc_flags_value" >&6
772-
773-  if test x"$pov_prog_cc_flags_value" = x"yes"; then
774-    CFLAGS="$CFLAGS -march=$pov_arch"
775-    :
776-  else
777-    :
778-  fi
779- }
780-                    fi
781-
782-  else
783-
784-                    if test "$pov_arch_fallback"; then
785-                      {
786-
787-
788-
789-  # Create a unique cache-id name (multiple flags are handled).
790-  pov_prog_cxx_flags_var=pov_cv_prog_cxx_flags`echo -march=$pov_arch_fallback | sed 's,[^a-zA-Z0-9],_,g'`
791-
792-  # Create the extended regular expression to handle multiple flags.
793-  # For instance, "-first-flag -second-flag -X" gives the regexp:
794-  #   "\-f|irst-flag|\-s|econd-flag|\-X|X"
795-  #
796-  # FreeBSD and Darwin seem to have a problem with the \+ sed construct
797-  # (but apparently not with the \{x,y\} one).  For safety, I prefer to
798-  # use  [[:space:]][[:space:]]*  for  [[:space:]]\+
799-  pov_prog_cxx_flags_regexp=`echo -march=$pov_arch_fallback | sed 's,\(-.\)\([^[:space:]]*\),\\\\\1|\2,g; s,[[:space:]][[:space:]]*,|,g; s,\(.\)||,\1|\1|,g; s,\(.\)|$,\1|\1,'`
800-
801-  # Cannot use AC_CACHE_CHECK due to the nature of the cache-id variable.
802-  echo "$as_me:$LINENO: checking whether $CXX accepts -march=$pov_arch_fallback" >&5
803-echo $ECHO_N "checking whether $CXX accepts -march=$pov_arch_fallback... $ECHO_C" >&6
804-  if eval "test \"\${$pov_prog_cxx_flags_var+set}\" = set"; then
805-  echo $ECHO_N "(cached) $ECHO_C" >&6
806-else
807-
808-      # Create a conftest file for CXX.
809-      ac_ext=cc
810-ac_cpp='$CXXCPP $CPPFLAGS'
811-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
812-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
813-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
814-
815-      cat >conftest.$ac_ext <<_ACEOF
816-#line $LINENO "configure"
817-/* confdefs.h.  */
818-_ACEOF
819-cat confdefs.h >>conftest.$ac_ext
820-cat >>conftest.$ac_ext <<_ACEOF
821-/* end confdefs.h.  */
822-
823-int
824-main ()
825-{
826-
827-  ;
828-  return 0;
829-}
830-_ACEOF
831-
832-      # Compile with $CXX and inspect standard error for given flags.
833-      { ac_try='$CXX -c conftest.$ac_ext > /dev/null 2> conftest.err0'
834-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
835-  (eval $ac_try) 2>&5
836-  ac_status=$?
837-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
838-  (exit $ac_status); }; }
839-      { ac_try='$CXX -c -march=$pov_arch_fallback conftest.$ac_ext > /dev/null 2> conftest.err'
840-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
841-  (eval $ac_try) 2>&5
842-  ac_status=$?
843-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
844-  (exit $ac_status); }; }
845-      { ac_try='cat conftest.err >&5'
846-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
847-  (eval $ac_try) 2>&5
848-  ac_status=$?
849-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
850-  (exit $ac_status); }; }
851-      { ac_try='$ac_cv_prog_egrep \"$pov_prog_cxx_flags_regexp\" conftest.err 2>&1 > /dev/null'
852-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
853-  (eval $ac_try) 2>&5
854-  ac_status=$?
855-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
856-  (exit $ac_status); }; }
857-      # the command above seems to not always return the correct status, so
858-      # for safety I rerun it here; I keep the other one for logging purpose.
859-      pov_prog_cxx_flags_err=`$ac_cv_prog_egrep "$pov_prog_cxx_flags_regexp" conftest.err`
860-      { ac_try='diff conftest.err0 conftest.err >&5'
861-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
862-  (eval $ac_try) 2>&5
863-  ac_status=$?
864-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
865-  (exit $ac_status); }; }
866-      if test -z "$pov_prog_cxx_flags_err" \
867-      || test -z "`diff conftest.err0 conftest.err`"; then
868-        eval "$pov_prog_cxx_flags_var=yes"
869-      else
870-        eval "$pov_prog_cxx_flags_var=no"
871-      fi
872-
873-      rm -f conftest.$ac_ext conftest.$ac_objext conftest.err conftest.err0
874-      ac_ext=cc
875-ac_cpp='$CXXCPP $CPPFLAGS'
876-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
877-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
878-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
879-
880-
881-
882-fi
883-
884-  eval "pov_prog_cxx_flags_value=\$$pov_prog_cxx_flags_var"
885-  echo "$as_me:$LINENO: result: $pov_prog_cxx_flags_value" >&5
886-echo "${ECHO_T}$pov_prog_cxx_flags_value" >&6
887-
888-  # Update CXXFLAGS when flags are working, and run provided actions.
889-  if test x"$pov_prog_cxx_flags_value" = x"yes"; then
890-    CXXFLAGS="$CXXFLAGS -march=$pov_arch_fallback"
891-    if test "$subdirs"; then {
892-
893-
894-  pov_prog_cc_flags_var=pov_cv_prog_cc_flags`echo $pov_arch_fallback | sed 's,[^a-zA-Z0-9],_,g'`
895-  pov_prog_cc_flags_regexp=`echo $pov_arch_fallback | sed 's,\(-.\)\([^[:space:]]*\),\\\\\1|\2,g; s,[[:space:]][[:space:]]*,|,g; s,\(.\)||,\1|\1|,g; s,\(.\)|$,\1|\1,'`
896-
897-  echo "$as_me:$LINENO: checking whether $CC accepts $pov_arch_fallback" >&5
898-echo $ECHO_N "checking whether $CC accepts $pov_arch_fallback... $ECHO_C" >&6
899-  if eval "test \"\${$pov_prog_cc_flags_var+set}\" = set"; then
900-  echo $ECHO_N "(cached) $ECHO_C" >&6
901-else
902-
903-      ac_ext=c
904-ac_cpp='$CPP $CPPFLAGS'
905-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
906-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
907-ac_compiler_gnu=$ac_cv_c_compiler_gnu
908-
909-      cat >conftest.$ac_ext <<_ACEOF
910-#line $LINENO "configure"
911-/* confdefs.h.  */
912-_ACEOF
913-cat confdefs.h >>conftest.$ac_ext
914-cat >>conftest.$ac_ext <<_ACEOF
915-/* end confdefs.h.  */
916-
917-int
918-main ()
919-{
920-
921-  ;
922-  return 0;
923-}
924-_ACEOF
925-      { ac_try='$CC -c conftest.$ac_ext > /dev/null 2> conftest.err0'
926-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
927-  (eval $ac_try) 2>&5
928-  ac_status=$?
929-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
930-  (exit $ac_status); }; }
931-      { ac_try='$CC -c $pov_arch_fallback conftest.$ac_ext > /dev/null 2> conftest.err'
932-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
933-  (eval $ac_try) 2>&5
934-  ac_status=$?
935-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
936-  (exit $ac_status); }; }
937-      { ac_try='cat conftest.err >&5'
938-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
939-  (eval $ac_try) 2>&5
940-  ac_status=$?
941-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
942-  (exit $ac_status); }; }
943-      { ac_try='$ac_cv_prog_egrep \"$pov_prog_cc_flags_regexp\" conftest.err 2>&1 > /dev/null'
944-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
945-  (eval $ac_try) 2>&5
946-  ac_status=$?
947-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
948-  (exit $ac_status); }; }
949-      pov_prog_cc_flags_err=`$ac_cv_prog_egrep "$pov_prog_cc_flags_regexp" conftest.err`
950-      { ac_try='diff conftest.err0 conftest.err >&5'
951-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
952-  (eval $ac_try) 2>&5
953-  ac_status=$?
954-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
955-  (exit $ac_status); }; }
956-      if test -z "$pov_prog_cc_flags_err" \
957-      || test -z "`diff conftest.err0 conftest.err`"; then
958-        eval "$pov_prog_cc_flags_var=yes"
959-      else
960-        eval "$pov_prog_cc_flags_var=no"
961-      fi
962-
963-      rm -f conftest.$ac_ext conftest.$ac_objext conftest.err conftest.err0
964-      ac_ext=cc
965-ac_cpp='$CXXCPP $CPPFLAGS'
966-ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
967-ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
968-ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
969-
970-
971-
972-fi
973-
974-  eval "pov_prog_cc_flags_value=\$$pov_prog_cc_flags_var"
975-  echo "$as_me:$LINENO: result: $pov_prog_cc_flags_value" >&5
976-echo "${ECHO_T}$pov_prog_cc_flags_value" >&6
977-
978-  if test x"$pov_prog_cc_flags_value" = x"yes"; then
979-    CFLAGS="$CFLAGS $pov_arch_fallback"
980-    :
981-  else
982-    :
983-  fi
984- }; fi
985-
986-  else
987-    :
988-  fi
989-
990-                      }
991-                    fi
992-
993-
994-  fi
995-
996-
997-
998-  fi
999-
1000-
1001-
1002-  fi
1003-
1004-      fi
1005-
1006       # gcc says -malign-double makes no sense in the 64bit mode and reject it
1007-      for pov_flags in "-malign-double" "-minline-all-stringops"; do
1008+      for pov_flags in "-minline-all-stringops"; do
1009 
1010 
1011 
Note: See TracBrowser for help on using the repository browser.